Uses of Class
org.apache.lucene.search.BooleanQuery.Builder
Packages that use BooleanQuery.Builder
Package
Description
Monitoring framework
This package contains SrndQuery and its subclasses.
Code to search indices.
Suggest alternate spellings for words.
Analyzer based autosuggest.
Some utility classes.
-
Uses of BooleanQuery.Builder in org.apache.lucene.monitor
Fields in org.apache.lucene.monitor declared as BooleanQuery.BuilderModifier and TypeFieldDescription(package private) BooleanQuery.Builder[]
MultipassTermFilteredPresearcher.MultipassDocumentQueryBuilder.queries
-
Uses of BooleanQuery.Builder in org.apache.lucene.queryparser.surround.query
Methods in org.apache.lucene.queryparser.surround.query with parameters of type BooleanQuery.BuilderModifier and TypeMethodDescriptionstatic void
SrndBooleanQuery.addQueriesToBoolean
(BooleanQuery.Builder bq, List<Query> queries, BooleanClause.Occur occur) -
Uses of BooleanQuery.Builder in org.apache.lucene.search
Fields in org.apache.lucene.search with type parameters of type BooleanQuery.BuilderModifier and TypeFieldDescriptionstatic final ScoringRewrite<BooleanQuery.Builder>
ScoringRewrite.SCORING_BOOLEAN_REWRITE
A rewrite method that first translates each term intoBooleanClause.Occur.SHOULD
clause in a BooleanQuery, and keeps the scores as computed by the query.Methods in org.apache.lucene.search that return BooleanQuery.BuilderModifier and TypeMethodDescriptionBooleanQuery.Builder.add
(BooleanClause clause) Add a new clause to thisBooleanQuery.Builder
.BooleanQuery.Builder.add
(Query query, BooleanClause.Occur occur) Add a new clause to thisBooleanQuery.Builder
.protected BooleanQuery.Builder
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.getTopLevelBuilder()
protected BooleanQuery.Builder
MultiTermQuery.TopTermsScoringBooleanQueryRewrite.getTopLevelBuilder()
BooleanQuery.Builder.setMinimumNumberShouldMatch
(int min) Specifies a minimum number of the optional BooleanClauses which must be satisfied.Methods in org.apache.lucene.search with parameters of type BooleanQuery.BuilderModifier and TypeMethodDescriptionprotected void
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.addClause
(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermStates states) protected void
MultiTermQuery.TopTermsScoringBooleanQueryRewrite.addClause
(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected Query
MultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.build
(BooleanQuery.Builder builder) protected Query
MultiTermQuery.TopTermsScoringBooleanQueryRewrite.build
(BooleanQuery.Builder builder) -
Uses of BooleanQuery.Builder in org.apache.lucene.search.spell
Methods in org.apache.lucene.search.spell with parameters of type BooleanQuery.BuilderModifier and TypeMethodDescriptionprivate static void
SpellChecker.add
(BooleanQuery.Builder q, String name, String value) Add a clause to a boolean query.private static void
SpellChecker.add
(BooleanQuery.Builder q, String name, String value, float boost) Add a clause to a boolean query. -
Uses of BooleanQuery.Builder in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing with parameters of type BooleanQuery.BuilderModifier and TypeMethodDescriptionvoid
AnalyzingInfixSuggester.addContextToQuery
(BooleanQuery.Builder query, BytesRef context, BooleanClause.Occur clause) This method is handy as we do not need access to internal fields such as CONTEXTS_FIELD_NAME in order to build queries However, here may not be its best location.protected Query
AnalyzingInfixSuggester.finishQuery
(BooleanQuery.Builder in, boolean allTermsRequired) Subclass can override this to tweak the Query before searching. -
Uses of BooleanQuery.Builder in org.apache.lucene.util
Methods in org.apache.lucene.util that return BooleanQuery.BuilderModifier and TypeMethodDescriptionprotected BooleanQuery.Builder
QueryBuilder.newBooleanQuery()
Builds a new BooleanQuery instance.Methods in org.apache.lucene.util with parameters of type BooleanQuery.BuilderModifier and TypeMethodDescriptionprotected void
QueryBuilder.add
(String field, BooleanQuery.Builder q, List<QueryBuilder.TermAndBoost> current, BooleanClause.Occur operator)