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 voidSrndBooleanQuery.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_REWRITEA rewrite method that first translates each term intoBooleanClause.Occur.SHOULDclause 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.BuilderMultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.getTopLevelBuilder()protected BooleanQuery.BuilderMultiTermQuery.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 voidMultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel, Term term, int docFreq, float boost, TermStates states) protected voidMultiTermQuery.TopTermsScoringBooleanQueryRewrite.addClause(BooleanQuery.Builder topLevel, Term term, int docCount, float boost, TermStates states) protected QueryMultiTermQuery.TopTermsBoostOnlyBooleanQueryRewrite.build(BooleanQuery.Builder builder) protected QueryMultiTermQuery.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 voidSpellChecker.add(BooleanQuery.Builder q, String name, String value) Add a clause to a boolean query.private static voidSpellChecker.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 TypeMethodDescriptionvoidAnalyzingInfixSuggester.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 QueryAnalyzingInfixSuggester.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.BuilderQueryBuilder.newBooleanQuery()Builds a new BooleanQuery instance.Methods in org.apache.lucene.util with parameters of type BooleanQuery.BuilderModifier and TypeMethodDescriptionprotected voidQueryBuilder.add(String field, BooleanQuery.Builder q, List<QueryBuilder.TermAndBoost> current, BooleanClause.Occur operator)