public class IndicesQueryParser extends Object implements QueryParser
Constructor and Description |
---|
IndicesQueryParser(ClusterService clusterService,
IndexNameExpressionResolver indexNameExpressionResolver) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
matchesIndices(String currentIndex,
String... indices) |
String[] |
names()
The names this query parser is registered under.
|
org.apache.lucene.search.Query |
parse(QueryParseContext parseContext)
Parses the into a query from the current parser location.
|
public static final String NAME
@Inject public IndicesQueryParser(@Nullable ClusterService clusterService, IndexNameExpressionResolver indexNameExpressionResolver)
public String[] names()
QueryParser
names
in interface QueryParser
public org.apache.lucene.search.Query parse(QueryParseContext parseContext) throws IOException, QueryParsingException
QueryParser
Returns null if this query should be ignored in the context of the DSL.
parse
in interface QueryParser
IOException
QueryParsingException
Copyright © 2009–2017. All rights reserved.