Package org.apache.lucene.queryparser.flexible.standard.builders
package org.apache.lucene.queryparser.flexible.standard.builders
Standard Lucene Query Node Builders.
Standard Lucene Query Node Builders
The package org.apache.lucene.queryparser.flexible.standard.builders contains all the builders
needed to build a Lucene Query object from a query node tree. These builders expect the query
node tree was already processed by the StandardQueryNodeProcessorPipeline
.
StandardQueryTreeBuilder
is a
builder that already contains a defined map that maps each QueryNode object with its respective
builder.
-
ClassDescriptionBuilds a BooleanQuery of SHOULD clauses, possibly with some minimum number to match.Builds a
BooleanQuery
object from aBooleanQueryNode
object.This builder basically reads theQuery
object set on theBoostQueryNode
child usingQueryTreeBuilder.QUERY_TREE_BUILDER_TAGID
and applies the boost value defined in theBoostQueryNode
.This builder does nothing.Builds aTermQuery
object from aFieldQueryNode
object.Builds aFuzzyQuery
object from aFuzzyQueryNode
object.Builds no object, it only returns theQuery
object set on theGroupQueryNode
object using aQueryTreeBuilder.QUERY_TREE_BUILDER_TAGID
tag.Builds aQuery
from anIntervalQueryNode
.Builds aMatchAllDocsQuery
object from aMatchAllDocsQueryNode
object.Builds aMatchNoDocsQuery
object from aMatchNoDocsQueryNode
object.Builds aBooleanQuery
from aMinShouldMatchNode
.Builds no object, it only returns theQuery
object set on theModifierQueryNode
object using aQueryTreeBuilder.QUERY_TREE_BUILDER_TAGID
tag.Builds aMultiPhraseQuery
object from aMultiPhraseQueryNode
object.Builds aPhraseQuery
object from aTokenizedPhraseQueryNode
object.BuildsPointValues
range queries out ofPointRangeQueryNode
s.Builds aPrefixQuery
object from aPrefixWildcardQueryNode
object.Builds aRegexpQuery
object from aRegexpQueryNode
object.This builder basically reads theQuery
object set on theSlopQueryNode
child usingQueryTreeBuilder.QUERY_TREE_BUILDER_TAGID
and applies the slop value defined in theSlopQueryNode
.This query tree builder only defines the necessary map to build aQuery
tree object.Builder forSynonymQueryNode
.Builds aTermRangeQuery
object from aTermRangeQueryNode
object.Builds aWildcardQuery
object from aWildcardQueryNode
object.