public class QueryRewriteContext
extends java.lang.Object
QueryBuilder
instances into simplified version.Modifier and Type | Field and Description |
---|---|
protected IndexSettings |
indexSettings |
protected IndicesQueriesRegistry |
indicesQueriesRegistry |
protected MapperService |
mapperService |
protected QueryParseContext |
parseContext |
protected org.apache.lucene.index.IndexReader |
reader |
protected ScriptService |
scriptService |
Constructor and Description |
---|
QueryRewriteContext(IndexSettings indexSettings,
MapperService mapperService,
ScriptService scriptService,
IndicesQueriesRegistry indicesQueriesRegistry,
org.apache.lucene.index.IndexReader reader) |
Modifier and Type | Method and Description |
---|---|
Client |
getClient()
Returns a clients to fetch resources from local or remove nodes.
|
org.apache.lucene.index.IndexReader |
getIndexReader()
Return the current
IndexReader , or null if we are on the coordinating node. |
IndexSettings |
getIndexSettings()
Returns the index settings for this context.
|
MapperService |
getMapperService()
Return the MapperService.
|
ScriptService |
getScriptService()
Returns a script service to fetch scripts.
|
QueryParseContext |
newParseContext()
Returns a new
QueryParseContext to parse template or wrapped queries. |
protected final MapperService mapperService
protected final ScriptService scriptService
protected final IndexSettings indexSettings
protected final IndicesQueriesRegistry indicesQueriesRegistry
protected final QueryParseContext parseContext
protected final org.apache.lucene.index.IndexReader reader
public QueryRewriteContext(IndexSettings indexSettings, MapperService mapperService, ScriptService scriptService, IndicesQueriesRegistry indicesQueriesRegistry, org.apache.lucene.index.IndexReader reader)
public final Client getClient()
public final IndexSettings getIndexSettings()
public final ScriptService getScriptService()
public final MapperService getMapperService()
public org.apache.lucene.index.IndexReader getIndexReader()
IndexReader
, or null
if we are on the coordinating node.public QueryParseContext newParseContext()
QueryParseContext
to parse template or wrapped queries.