java.lang.Object
org.elasticsearch.index.query.QueryRewriteContext
org.elasticsearch.index.query.InnerHitsRewriteContext
Context object used to rewrite
QueryBuilder
instances into an optimized version for extracting inner_hits.-
Field Summary
Fields inherited from class org.elasticsearch.index.query.QueryRewriteContext
allowedFields, allowExpensiveQueries, allowUnmappedFields, client, fullyQualifiedIndex, indexNameMatcher, indexSettings, mapperService, mappingLookup, mapUnmappedFieldAsString, nowInMillis, runtimeMappings, scriptService, valuesSourceRegistry, writeableRegistry
-
Constructor Summary
ConstructorsConstructorDescriptionInnerHitsRewriteContext
(XContentParserConfiguration parserConfiguration, LongSupplier nowInMillis) -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeAsyncActions
(ActionListener<Void> listener) Executes all registered async actions and notifies the listener once it's done.Methods inherited from class org.elasticsearch.index.query.QueryRewriteContext
allowExpensiveQueries, convertToCoordinatorRewriteContext, convertToDataRewriteContext, convertToIndexMetadataContext, convertToSearchExecutionContext, fieldType, getAllFields, getFieldType, getFullyQualifiedIndex, getIndexAnalyzers, getIndexSettings, getMappingLookup, getMatchingFieldNames, getParserConfig, getPointInTimeBuilder, getQueryRewriteInterceptor, getResolvedIndices, getTierPreference, getValuesSourceRegistry, getWriteableRegistry, hasAsyncActions, indexMatches, isExplain, nowInMillis, registerAsyncAction, setAllowUnmappedFields, setMapUnmappedFieldAsString, setQueryRewriteInterceptor
-
Constructor Details
-
InnerHitsRewriteContext
public InnerHitsRewriteContext(XContentParserConfiguration parserConfiguration, LongSupplier nowInMillis)
-
-
Method Details
-
convertToInnerHitsRewriteContext
- Overrides:
convertToInnerHitsRewriteContext
in classQueryRewriteContext
-
executeAsyncActions
Description copied from class:QueryRewriteContext
Executes all registered async actions and notifies the listener once it's done. The value that is passed to the listener is alwaysnull
. The list of registered actions is cleared once this method returns.- Overrides:
executeAsyncActions
in classQueryRewriteContext
-