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
FieldsModifier and TypeFieldDescriptionDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionSearchSlowLog(IndexSettings indexSettings, ActionLoggingFieldsProvider slowLogFieldsProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidonFetchPhase(SearchContext context, long tookInNanos) Executed after the fetch phase successfully finished.voidonQueryPhase(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, waitMethods inherited from interface org.elasticsearch.index.shard.SearchOperationListener
onCanMatchPhase, onDfsPhase, onFailedDfsPhase, onFailedFetchPhase, onFailedQueryPhase, onFreeReaderContext, onFreeScrollContext, onNewReaderContext, onNewScrollContext, onPreDfsPhase, onPreFetchPhase, onPreQueryPhase, validateReaderContext
-
Field Details
-
INDEX_SEARCH_SLOWLOG_INCLUDE_USER_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_WARN_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_INFO_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_DEBUG_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_QUERY_TRACE_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_WARN_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_INFO_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_DEBUG_SETTING
-
INDEX_SEARCH_SLOWLOG_THRESHOLD_FETCH_TRACE_SETTING
-
INDEX_SEARCH_SLOWLOG_LEVEL
Deprecated.Legacy index setting, kept for 7.x BWC compatibility. This setting has no effect in 8.x. Do not use. TODO: Remove in 9.0
-
-
Constructor Details
-
SearchSlowLog
public SearchSlowLog(IndexSettings indexSettings, ActionLoggingFieldsProvider slowLogFieldsProvider)
-
-
Method Details
-
onQueryPhase
Description copied from interface:SearchOperationListenerExecuted after the query phase successfully finished. Note: this is not invoked if the query phase execution failed.- Specified by:
onQueryPhasein interfaceSearchOperationListener- Parameters:
context- the current search contexttookInNanos- the number of nanoseconds the query execution took- See Also:
-
onFetchPhase
Description copied from interface:SearchOperationListenerExecuted after the fetch phase successfully finished. Note: this is not invoked if the fetch phase execution failed.- Specified by:
onFetchPhasein interfaceSearchOperationListener- Parameters:
context- the current search contexttookInNanos- the number of nanoseconds the fetch execution took- See Also:
-