Class BooleanQueryNodeBuilder
- java.lang.Object
-
- org.apache.lucene.queryparser.flexible.standard.builders.BooleanQueryNodeBuilder
-
- All Implemented Interfaces:
QueryBuilder
,StandardQueryBuilder
public class BooleanQueryNodeBuilder extends Object implements StandardQueryBuilder
Builds aBooleanQuery
object from aBooleanQueryNode
object. Every children in theBooleanQueryNode
object must be already tagged usingQueryTreeBuilder.QUERY_TREE_BUILDER_TAGID
with aQuery
object.
It takes in consideration if the children is aModifierQueryNode
to define theBooleanClause
.
-
-
Constructor Summary
Constructors Constructor Description BooleanQueryNodeBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanQuery
build(QueryNode queryNode)
Builds some kind of object from a query tree.
-
-
-
Method Detail
-
build
public BooleanQuery build(QueryNode queryNode) throws QueryNodeException
Description copied from interface:QueryBuilder
Builds some kind of object from a query tree.- Specified by:
build
in interfaceQueryBuilder
- Specified by:
build
in interfaceStandardQueryBuilder
- Parameters:
queryNode
- the query tree root node- Returns:
- some object generated from the query tree
- Throws:
QueryNodeException
-
-