java.lang.Object
org.elasticsearch.index.query.QueryRewriteContext
org.elasticsearch.index.query.DataRewriteContext
Context object used to rewrite
QueryBuilder instances into simplified version on the datanode where the request is going to be
executed.
Note: the way search requests are executed and rewritten currently on each node is that it is done by shard. So, `DataRewriteContext`
will be used in `rewrite` per shard but before the query phase.-
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
ConstructorsConstructorDescriptionDataRewriteContext(XContentParserConfiguration parserConfiguration, Client client, LongSupplier nowInMillis) -
Method Summary
Modifier and TypeMethodDescriptionReturns an instance ofDataRewriteContextif available or null otherwiseMethods inherited from class org.elasticsearch.index.query.QueryRewriteContext
allowExpensiveQueries, convertToCoordinatorRewriteContext, convertToIndexMetadataContext, convertToInnerHitsRewriteContext, convertToSearchExecutionContext, executeAsyncActions, 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
-
DataRewriteContext
public DataRewriteContext(XContentParserConfiguration parserConfiguration, Client client, LongSupplier nowInMillis)
-
-
Method Details
-
convertToDataRewriteContext
Description copied from class:QueryRewriteContextReturns an instance ofDataRewriteContextif available or null otherwise- Overrides:
convertToDataRewriteContextin classQueryRewriteContext
-