Uses of Enum Class
org.apache.lucene.search.BooleanClause.Occur
Packages that use BooleanClause.Occur
Package
Description
Monitoring framework
Filters and Queries that add to core Lucene.
A simple query parser implemented with JavaCC.
Lucene Flexible Query Parser Implementation
Standard Lucene Query Node Builders.
A simple query parser for human-entered queries.
This package contains SrndQuery and its subclasses.
XML Parser factories for different Lucene Query/Filters.
Code to search indices.
Highlighting search terms.
Analyzer based autosuggest.
The UnifiedHighlighter -- a flexible highlighter that can get offsets from postings, term
vectors, or analysis.
Some utility classes.
-
Uses of BooleanClause.Occur in org.apache.lucene.monitor
Methods in org.apache.lucene.monitor with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionQueryAnalyzer.QueryBuilder.getSubVisitor
(BooleanClause.Occur occur, Query parent) -
Uses of BooleanClause.Occur in org.apache.lucene.queries
Fields in org.apache.lucene.queries declared as BooleanClause.OccurModifier and TypeFieldDescriptionprotected final BooleanClause.Occur
CommonTermsQuery.highFreqOccur
protected final BooleanClause.Occur
CommonTermsQuery.lowFreqOccur
Methods in org.apache.lucene.queries that return BooleanClause.OccurModifier and TypeMethodDescriptionCommonTermsQuery.getHighFreqOccur()
Gets theBooleanClause.Occur
used for high frequency terms.CommonTermsQuery.getLowFreqOccur()
Gets theBooleanClause.Occur
used for low frequency terms.Constructors in org.apache.lucene.queries with parameters of type BooleanClause.OccurModifierConstructorDescriptionCommonTermsQuery
(BooleanClause.Occur highFreqOccur, BooleanClause.Occur lowFreqOccur, float maxTermFrequency) Creates a newCommonTermsQuery
-
Uses of BooleanClause.Occur in org.apache.lucene.queryparser.classic
Methods in org.apache.lucene.queryparser.classic with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionprotected BooleanClause
QueryParserBase.newBooleanClause
(Query q, BooleanClause.Occur occur) Builds a new BooleanClause instancestatic Query
MultiFieldQueryParser.parse
(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) Parses a query, searching on the fields specified.static Query
MultiFieldQueryParser.parse
(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) Parses a query, searching on the fields specified. -
Uses of BooleanClause.Occur in org.apache.lucene.queryparser.flexible.standard
Methods in org.apache.lucene.queryparser.flexible.standard with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionstatic Query
QueryParserUtil.parse
(String[] queries, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) Parses a query, searching on the fields specified.static Query
QueryParserUtil.parse
(String query, String[] fields, BooleanClause.Occur[] flags, Analyzer analyzer) Parses a query, searching on the fields specified. -
Uses of BooleanClause.Occur in org.apache.lucene.queryparser.flexible.standard.builders
Methods in org.apache.lucene.queryparser.flexible.standard.builders that return BooleanClause.OccurModifier and TypeMethodDescriptionprivate static BooleanClause.Occur
BooleanQueryNodeBuilder.getModifierValue
(QueryNode node) -
Uses of BooleanClause.Occur in org.apache.lucene.queryparser.simple
Fields in org.apache.lucene.queryparser.simple declared as BooleanClause.OccurModifier and TypeFieldDescription(package private) BooleanClause.Occur
SimpleQueryParser.State.currentOperation
private BooleanClause.Occur
SimpleQueryParser.defaultOperator
(package private) BooleanClause.Occur
SimpleQueryParser.State.previousOperation
Methods in org.apache.lucene.queryparser.simple that return BooleanClause.OccurModifier and TypeMethodDescriptionSimpleQueryParser.getDefaultOperator()
Returns the implicit operator setting, which will be eitherSHOULD
orMUST
.Methods in org.apache.lucene.queryparser.simple with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionprivate static BooleanQuery
SimpleQueryParser.addClause
(BooleanQuery bq, Query query, BooleanClause.Occur occur) void
SimpleQueryParser.setDefaultOperator
(BooleanClause.Occur operator) Sets the implicit operator setting, which must be eitherSHOULD
orMUST
. -
Uses of BooleanClause.Occur in org.apache.lucene.queryparser.surround.query
Methods in org.apache.lucene.queryparser.surround.query with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionstatic void
SrndBooleanQuery.addQueriesToBoolean
(BooleanQuery.Builder bq, List<Query> queries, BooleanClause.Occur occur) static Query
SrndBooleanQuery.makeBooleanQuery
(List<Query> queries, BooleanClause.Occur occur) -
Uses of BooleanClause.Occur in org.apache.lucene.queryparser.xml.builders
Methods in org.apache.lucene.queryparser.xml.builders that return BooleanClause.OccurModifier and TypeMethodDescription(package private) static BooleanClause.Occur
BooleanQueryBuilder.getOccursValue
(Element clauseElem) -
Uses of BooleanClause.Occur in org.apache.lucene.search
Fields in org.apache.lucene.search declared as BooleanClause.OccurFields in org.apache.lucene.search with type parameters of type BooleanClause.OccurModifier and TypeFieldDescriptionprivate final Map<BooleanClause.Occur,
Collection<Query>> BooleanQuery.clauseSets
private final Map<BooleanClause.Occur,
Collection<ScorerSupplier>> Boolean2ScorerSupplier.subs
Methods in org.apache.lucene.search that return BooleanClause.OccurModifier and TypeMethodDescriptionBooleanClause.getOccur()
static BooleanClause.Occur
Returns the enum constant of this class with the specified name.static BooleanClause.Occur[]
BooleanClause.Occur.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.apache.lucene.search with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionBooleanQuery.Builder.add
(Query query, BooleanClause.Occur occur) Add a new clause to thisBooleanQuery.Builder
.(package private) Collection<Query>
BooleanQuery.getClauses
(BooleanClause.Occur occur) Return the collection of queries for the givenBooleanClause.Occur
.QueryVisitor.getSubVisitor
(BooleanClause.Occur occur, Query parent) Pulls a visitor instance for visiting child clauses of a queryprivate int
BooleanWeight.optCount
(LeafReaderContext context, BooleanClause.Occur occur) Return the number of matches of optional clauses, or -1 if unknown, or 0 if there are no optional clauses.Constructors in org.apache.lucene.search with parameters of type BooleanClause.OccurModifierConstructorDescriptionBooleanClause
(Query query, BooleanClause.Occur occur) Constructs a BooleanClause.Constructor parameters in org.apache.lucene.search with type arguments of type BooleanClause.OccurModifierConstructorDescription(package private)
Boolean2ScorerSupplier
(Weight weight, Map<BooleanClause.Occur, Collection<ScorerSupplier>> subs, ScoreMode scoreMode, int minShouldMatch) -
Uses of BooleanClause.Occur in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionQueryTermExtractor.BoostedTermExtractor.getSubVisitor
(BooleanClause.Occur occur, Query parent) -
Uses of BooleanClause.Occur in org.apache.lucene.search.suggest.analyzing
Methods in org.apache.lucene.search.suggest.analyzing with parameters of type BooleanClause.OccurModifier 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.Method parameters in org.apache.lucene.search.suggest.analyzing with type arguments of type BooleanClause.OccurModifier and TypeMethodDescriptionAnalyzingInfixSuggester.lookup
(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) Retrieve suggestions, specifying whether all terms must match (allTermsRequired
) and whether the hits should be highlighted (doHighlight
).BlendedInfixSuggester.lookup
(CharSequence key, Map<BytesRef, BooleanClause.Occur> contextInfo, int num, boolean allTermsRequired, boolean doHighlight) private BooleanQuery
AnalyzingInfixSuggester.toQuery
(Map<BytesRef, BooleanClause.Occur> contextInfo) -
Uses of BooleanClause.Occur in org.apache.lucene.search.uhighlight
Methods in org.apache.lucene.search.uhighlight with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionMultiTermHighlighting.AutomataCollector.getSubVisitor
(BooleanClause.Occur occur, Query parent) -
Uses of BooleanClause.Occur in org.apache.lucene.util
Methods in org.apache.lucene.util with parameters of type BooleanClause.OccurModifier and TypeMethodDescriptionprotected void
QueryBuilder.add
(BooleanQuery.Builder q, List<QueryBuilder.TermAndBoost> current, BooleanClause.Occur operator) protected Query
QueryBuilder.analyzeGraphBoolean
(String field, TokenStream source, BooleanClause.Occur operator) Creates a boolean query from a graph token stream.protected Query
QueryBuilder.analyzeMultiBoolean
(String field, TokenStream stream, BooleanClause.Occur operator) Creates complex boolean query from the cached tokenstream contentsQueryBuilder.createBooleanQuery
(String field, String queryText, BooleanClause.Occur operator) Creates a boolean query from the query text.protected Query
QueryBuilder.createFieldQuery
(Analyzer analyzer, BooleanClause.Occur operator, String field, String queryText, boolean quoted, int phraseSlop) Creates a query from the analysis chain.protected Query
QueryBuilder.createFieldQuery
(TokenStream source, BooleanClause.Occur operator, String field, boolean quoted, int phraseSlop) Creates a query from a token stream.RamUsageEstimator.RamUsageQueryVisitor.getSubVisitor
(BooleanClause.Occur occur, Query parent)