org.elasticsearch.index.query
Class IndexQueryParserService
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.query.IndexQueryParserService
- All Implemented Interfaces:
- IndexComponent
public class IndexQueryParserService
- extends AbstractIndexComponent
Constructor Summary |
IndexQueryParserService(Index index,
Settings indexSettings,
IndicesQueriesRegistry indicesQueriesRegistry,
ScriptService scriptService,
AnalysisService analysisService,
MapperService mapperService,
IndexCache indexCache,
IndexEngine indexEngine,
SimilarityService similarityService,
Map<String,QueryParserFactory> namedQueryParsers,
Map<String,FilterParserFactory> namedFilterParsers)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexQueryParserService
@Inject
public IndexQueryParserService(Index index,
@IndexSettings
Settings indexSettings,
IndicesQueriesRegistry indicesQueriesRegistry,
ScriptService scriptService,
AnalysisService analysisService,
MapperService mapperService,
IndexCache indexCache,
IndexEngine indexEngine,
@Nullable
SimilarityService similarityService,
@Nullable
Map<String,QueryParserFactory> namedQueryParsers,
@Nullable
Map<String,FilterParserFactory> namedFilterParsers)
close
public void close()
defaultField
public String defaultField()
queryStringLenient
public boolean queryStringLenient()
queryParser
public QueryParser queryParser(String name)
filterParser
public FilterParser filterParser(String name)
parse
public ParsedQuery parse(QueryBuilder queryBuilder)
throws ElasticSearchException
- Throws:
ElasticSearchException
parse
public ParsedQuery parse(byte[] source)
throws ElasticSearchException
- Throws:
ElasticSearchException
parse
public ParsedQuery parse(byte[] source,
int offset,
int length)
throws ElasticSearchException
- Throws:
ElasticSearchException
parse
public ParsedQuery parse(BytesReference source)
throws ElasticSearchException
- Throws:
ElasticSearchException
parse
public ParsedQuery parse(String source)
throws QueryParsingException
- Throws:
QueryParsingException
parse
public ParsedQuery parse(XContentParser parser)
parseInnerFilter
@Nullable
public org.apache.lucene.search.Filter parseInnerFilter(XContentParser parser)
throws IOException
- Throws:
IOException
parseInnerQuery
@Nullable
public org.apache.lucene.search.Query parseInnerQuery(XContentParser parser)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.