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 ofDataRewriteContext
if available or null otherwiseMethods inherited from class org.elasticsearch.index.query.QueryRewriteContext
allowExpensiveQueries, convertToCoordinatorRewriteContext, convertToIndexMetadataContext, convertToSearchExecutionContext, executeAsyncActions, fieldType, getFieldType, getFullyQualifiedIndex, getIndexAnalyzers, getIndexSettings, getMatchingFieldNames, getParserConfig, getValuesSourceRegistry, getWriteableRegistry, hasAsyncActions, indexMatches, nowInMillis, registerAsyncAction, setAllowUnmappedFields, setMapUnmappedFieldAsString
-
Constructor Details
-
DataRewriteContext
public DataRewriteContext(XContentParserConfiguration parserConfiguration, Client client, LongSupplier nowInMillis)
-
-
Method Details
-
convertToDataRewriteContext
Description copied from class:QueryRewriteContext
Returns an instance ofDataRewriteContext
if available or null otherwise- Overrides:
convertToDataRewriteContext
in classQueryRewriteContext
-