Package | Description |
---|---|
org.apache.lucene.queryparser.flexible.core |
Core classes of the flexible query parser framework.
|
org.apache.lucene.queryparser.flexible.core.builders |
Necessary classes to implement query builders.
|
org.apache.lucene.queryparser.flexible.core.processors |
Interfaces and implementations used by query node processors
|
org.apache.lucene.queryparser.flexible.precedence.processors |
Processors used by Precedence Query Parser
|
org.apache.lucene.queryparser.flexible.standard |
Implementation of the Lucene classic query parser using the flexible query parser frameworks
|
org.apache.lucene.queryparser.flexible.standard.builders |
Standard Lucene Query Node Builders.
|
org.apache.lucene.queryparser.flexible.standard.nodes |
Standard Lucene Query Nodes.
|
org.apache.lucene.queryparser.flexible.standard.parser |
Lucene Query Parser
|
org.apache.lucene.queryparser.flexible.standard.processors |
Lucene Query Node Processors.
|
Modifier and Type | Class and Description |
---|---|
class |
QueryNodeParseException
This should be thrown when an exception happens during the query parsing from
string to the query node tree.
|
Modifier and Type | Method and Description |
---|---|
Object |
QueryParserHelper.parse(String query,
String defaultField)
Parses a query string to an object, usually some query object.
In this method the three phases are executed: 1st - the query string is parsed using the text parser returned by QueryParserHelper.getSyntaxParser() , the result is a query
node tree 2nd - the query node tree is processed by the processor returned by QueryParserHelper.getQueryNodeProcessor() 3th - a object is built from the query node tree using the builder returned by QueryParserHelper.getQueryBuilder() |
Modifier and Type | Method and Description |
---|---|
Object |
QueryTreeBuilder.build(QueryNode queryNode)
Builds some kind of object from a query tree.
|
Object |
QueryBuilder.build(QueryNode queryNode)
Builds some kind of object from a query tree.
|
Modifier and Type | Method and Description |
---|---|
protected QueryNode |
RemoveDeletedQueryNodesProcessor.postProcessNode(QueryNode node) |
protected abstract QueryNode |
QueryNodeProcessorImpl.postProcessNode(QueryNode node)
This method is invoked for every node when walking up the tree.
|
protected QueryNode |
NoChildOptimizationQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
RemoveDeletedQueryNodesProcessor.preProcessNode(QueryNode node) |
protected abstract QueryNode |
QueryNodeProcessorImpl.preProcessNode(QueryNode node)
This method is invoked for every node when walking down the tree.
|
protected QueryNode |
NoChildOptimizationQueryNodeProcessor.preProcessNode(QueryNode node) |
QueryNode |
RemoveDeletedQueryNodesProcessor.process(QueryNode queryTree) |
QueryNode |
QueryNodeProcessorPipeline.process(QueryNode queryTree)
For reference about this method check:
QueryNodeProcessor.process(QueryNode) . |
QueryNode |
QueryNodeProcessorImpl.process(QueryNode queryTree) |
QueryNode |
QueryNodeProcessor.process(QueryNode queryTree)
Processes a query node tree.
|
protected void |
QueryNodeProcessorImpl.processChildren(QueryNode queryTree)
This method is called every time a child is processed.
|
protected List<QueryNode> |
RemoveDeletedQueryNodesProcessor.setChildrenOrder(List<QueryNode> children) |
protected abstract List<QueryNode> |
QueryNodeProcessorImpl.setChildrenOrder(List<QueryNode> children)
This method is invoked for every node that has at least on child.
|
protected List<QueryNode> |
NoChildOptimizationQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
Modifier and Type | Method and Description |
---|---|
protected QueryNode |
BooleanModifiersQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
BooleanModifiersQueryNodeProcessor.preProcessNode(QueryNode node) |
QueryNode |
BooleanModifiersQueryNodeProcessor.process(QueryNode queryTree) |
protected List<QueryNode> |
BooleanModifiersQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
Modifier and Type | Method and Description |
---|---|
static Query |
QueryParserUtil.parse(String[] queries,
String[] fields,
Analyzer analyzer)
Parses a query which searches on the fields specified.
|
static Query |
QueryParserUtil.parse(String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
Query |
StandardQueryParser.parse(String query,
String defaultField)
Overrides
QueryParserHelper.parse(String, String) so it casts the
return object to Query . |
static Query |
QueryParserUtil.parse(String query,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
Modifier and Type | Method and Description |
---|---|
WildcardQuery |
WildcardQueryNodeBuilder.build(QueryNode queryNode) |
TermRangeQuery |
TermRangeQueryNodeBuilder.build(QueryNode queryNode) |
Query |
StandardQueryTreeBuilder.build(QueryNode queryNode) |
Query |
StandardQueryBuilder.build(QueryNode queryNode) |
BooleanQuery |
StandardBooleanQueryNodeBuilder.build(QueryNode queryNode) |
Query |
SlopQueryNodeBuilder.build(QueryNode queryNode) |
RegexpQuery |
RegexpQueryNodeBuilder.build(QueryNode queryNode) |
PrefixQuery |
PrefixWildcardQueryNodeBuilder.build(QueryNode queryNode) |
Query |
PointRangeQueryNodeBuilder.build(QueryNode queryNode) |
Query |
PhraseQueryNodeBuilder.build(QueryNode queryNode) |
MultiPhraseQuery |
MultiPhraseQueryNodeBuilder.build(QueryNode queryNode) |
Query |
ModifierQueryNodeBuilder.build(QueryNode queryNode) |
MatchNoDocsQuery |
MatchNoDocsQueryNodeBuilder.build(QueryNode queryNode) |
MatchAllDocsQuery |
MatchAllDocsQueryNodeBuilder.build(QueryNode queryNode) |
LegacyNumericRangeQuery<? extends Number> |
LegacyNumericRangeQueryNodeBuilder.build(QueryNode queryNode)
Deprecated.
|
Query |
GroupQueryNodeBuilder.build(QueryNode queryNode) |
FuzzyQuery |
FuzzyQueryNodeBuilder.build(QueryNode queryNode) |
TermQuery |
FieldQueryNodeBuilder.build(QueryNode queryNode) |
TermQuery |
DummyQueryNodeBuilder.build(QueryNode queryNode)
Always return
null . |
Query |
BoostQueryNodeBuilder.build(QueryNode queryNode) |
BooleanQuery |
BooleanQueryNodeBuilder.build(QueryNode queryNode) |
BooleanQuery |
AnyQueryNodeBuilder.build(QueryNode queryNode) |
Modifier and Type | Method and Description |
---|---|
void |
LegacyNumericRangeQueryNode.setBounds(LegacyNumericQueryNode lower,
LegacyNumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
LegacyNumericConfig numericConfig)
Deprecated.
Sets the upper and lower bounds of this range query node and the
LegacyNumericConfig associated with these bounds. |
void |
PointRangeQueryNode.setBounds(PointQueryNode lower,
PointQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
PointsConfig pointsConfig)
Sets the upper and lower bounds of this range query node and the
PointsConfig associated with these bounds. |
Constructor and Description |
---|
LegacyNumericRangeQueryNode(LegacyNumericQueryNode lower,
LegacyNumericQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
LegacyNumericConfig numericConfig)
Deprecated.
Constructs a
LegacyNumericRangeQueryNode object using the given
LegacyNumericQueryNode as its bounds and LegacyNumericConfig . |
PointRangeQueryNode(PointQueryNode lower,
PointQueryNode upper,
boolean lowerInclusive,
boolean upperInclusive,
PointsConfig numericConfig)
Constructs a
PointRangeQueryNode object using the given
PointQueryNode as its bounds and PointsConfig . |
Modifier and Type | Class and Description |
---|---|
class |
ParseException
This exception is thrown when parse errors are encountered.
|
Modifier and Type | Method and Description |
---|---|
protected QueryNode |
WildcardQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
TermRangeQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
RemoveEmptyNonLeafQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
PointRangeQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
PointQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
PhraseSlopQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
OpenRangeQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
MultiFieldQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
MatchAllDocsQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
LowercaseExpandedTermsQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
LegacyNumericRangeQueryNodeProcessor.postProcessNode(QueryNode node)
Deprecated.
|
protected QueryNode |
LegacyNumericQueryNodeProcessor.postProcessNode(QueryNode node)
Deprecated.
|
protected QueryNode |
FuzzyQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
DefaultPhraseSlopQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
BoostQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
BooleanSingleChildOptimizationQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
BooleanQuery2ModifierNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
AnalyzerQueryNodeProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
AllowLeadingWildcardProcessor.postProcessNode(QueryNode node) |
protected QueryNode |
WildcardQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
TermRangeQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
RemoveEmptyNonLeafQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
PointRangeQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
PointQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
PhraseSlopQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
OpenRangeQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
MultiFieldQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
MatchAllDocsQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
LowercaseExpandedTermsQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
LegacyNumericRangeQueryNodeProcessor.preProcessNode(QueryNode node)
Deprecated.
|
protected QueryNode |
LegacyNumericQueryNodeProcessor.preProcessNode(QueryNode node)
Deprecated.
|
protected QueryNode |
FuzzyQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
DefaultPhraseSlopQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
BoostQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
BooleanSingleChildOptimizationQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
BooleanQuery2ModifierNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
AnalyzerQueryNodeProcessor.preProcessNode(QueryNode node) |
protected QueryNode |
AllowLeadingWildcardProcessor.preProcessNode(QueryNode node) |
QueryNode |
RemoveEmptyNonLeafQueryNodeProcessor.process(QueryNode queryTree) |
QueryNode |
LowercaseExpandedTermsQueryNodeProcessor.process(QueryNode queryTree) |
QueryNode |
DefaultPhraseSlopQueryNodeProcessor.process(QueryNode queryTree) |
QueryNode |
BooleanQuery2ModifierNodeProcessor.process(QueryNode queryTree) |
QueryNode |
AnalyzerQueryNodeProcessor.process(QueryNode queryTree) |
QueryNode |
AllowLeadingWildcardProcessor.process(QueryNode queryTree) |
protected void |
MultiFieldQueryNodeProcessor.processChildren(QueryNode queryTree) |
protected void |
DefaultPhraseSlopQueryNodeProcessor.processChildren(QueryNode queryTree) |
protected void |
BooleanQuery2ModifierNodeProcessor.processChildren(QueryNode queryTree) |
protected List<QueryNode> |
WildcardQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
TermRangeQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
RemoveEmptyNonLeafQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
PointRangeQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
PointQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
PhraseSlopQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
OpenRangeQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
MultiFieldQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
MatchAllDocsQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
LowercaseExpandedTermsQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
LegacyNumericRangeQueryNodeProcessor.setChildrenOrder(List<QueryNode> children)
Deprecated.
|
protected List<QueryNode> |
LegacyNumericQueryNodeProcessor.setChildrenOrder(List<QueryNode> children)
Deprecated.
|
protected List<QueryNode> |
FuzzyQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
DefaultPhraseSlopQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
BoostQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
BooleanSingleChildOptimizationQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
AnalyzerQueryNodeProcessor.setChildrenOrder(List<QueryNode> children) |
protected List<QueryNode> |
AllowLeadingWildcardProcessor.setChildrenOrder(List<QueryNode> children) |
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.