Package org.elasticsearch.index
Class SearchSlowLog
java.lang.Object
org.elasticsearch.index.SearchSlowLog
- All Implemented Interfaces:
SearchOperationListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.index.shard.SearchOperationListener
SearchOperationListener.CompositeListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
static final Setting<org.elasticsearch.core.TimeValue>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onFetchPhase
(SearchContext context, long tookInNanos) Executed after the fetch phase successfully finished.void
onQueryPhase
(SearchContext context, long tookInNanos) Executed after the query phase successfully finished.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.index.shard.SearchOperationListener
onFailedFetchPhase, onFailedQueryPhase, onFreeReaderContext, onFreeScrollContext, onNewReaderContext, onNewScrollContext, onPreFetchPhase, onPreQueryPhase, validateReaderContext
-
Field Details
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_WARN_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_WARN_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_INFO_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_INFO_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_DEBUG_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_DEBUG_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_TRACE_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_TRACE_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_WARN_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_WARN_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_INFO_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_INFO_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_DEBUG_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_DEBUG_SETTING -
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_TRACE_SETTING
public static final Setting<org.elasticsearch.core.TimeValue> INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_TRACE_SETTING
-
-
Constructor Details
-
SearchSlowLog
-
-
Method Details
-
onQueryPhase
Description copied from interface:SearchOperationListener
Executed after the query phase successfully finished. Note: this is not invoked if the query phase execution failed.- Specified by:
onQueryPhase
in interfaceSearchOperationListener
- Parameters:
context
- the current search contexttookInNanos
- the number of nanoseconds the query execution took- See Also:
-
onFetchPhase
Description copied from interface:SearchOperationListener
Executed after the fetch phase successfully finished. Note: this is not invoked if the fetch phase execution failed.- Specified by:
onFetchPhase
in interfaceSearchOperationListener
- Parameters:
context
- the current search contexttookInNanos
- the number of nanoseconds the fetch execution took- See Also:
-