Package | Description |
---|---|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryparser.flexible.standard |
Implementation of the Lucene classic query parser using the flexible query parser frameworks
|
org.apache.lucene.queryparser.simple |
A simple query parser for human-entered queries.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.suggest.analyzing |
Analyzer based autosuggest.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
protected BooleanClause.Occur |
CommonTermsQuery.highFreqOccur |
protected BooleanClause.Occur |
CommonTermsQuery.lowFreqOccur |
Modifier and Type | Method and Description |
---|---|
BooleanClause.Occur |
CommonTermsQuery.getHighFreqOccur()
Gets the
BooleanClause.Occur used for high frequency terms. |
BooleanClause.Occur |
CommonTermsQuery.getLowFreqOccur()
Gets the
BooleanClause.Occur used for low frequency terms. |
Constructor and Description |
---|
CommonTermsQuery(BooleanClause.Occur highFreqOccur,
BooleanClause.Occur lowFreqOccur,
float maxTermFrequency)
Creates a new
CommonTermsQuery |
Modifier and Type | Method and Description |
---|---|
protected BooleanClause |
QueryParserBase.newBooleanClause(Query q,
BooleanClause.Occur occur)
Builds a new BooleanClause instance
|
static Query |
MultiFieldQueryParser.parse(java.lang.String[] queries,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(java.lang.String query,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
Modifier and Type | Method and Description |
---|---|
static Query |
QueryParserUtil.parse(java.lang.String[] queries,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
static Query |
QueryParserUtil.parse(java.lang.String query,
java.lang.String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
Modifier and Type | Method and Description |
---|---|
BooleanClause.Occur |
SimpleQueryParser.getDefaultOperator()
Returns the implicit operator setting, which will be
either
SHOULD or MUST . |
Modifier and Type | Method and Description |
---|---|
void |
SimpleQueryParser.setDefaultOperator(BooleanClause.Occur operator)
Sets the implicit operator setting, which must be
either
SHOULD or MUST . |
Modifier and Type | Method and Description |
---|---|
BooleanClause.Occur |
BooleanClause.getOccur() |
static BooleanClause.Occur |
BooleanClause.Occur.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static BooleanClause.Occur[] |
BooleanClause.Occur.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
BooleanQuery.Builder |
BooleanQuery.Builder.add(Query query,
BooleanClause.Occur occur)
Add a new clause to this
BooleanQuery.Builder . |
Constructor and Description |
---|
BooleanClause(Query query,
BooleanClause.Occur occur)
Constructs a BooleanClause.
|
Modifier and Type | Method and Description |
---|---|
void |
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.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Lookup.LookupResult> |
AnalyzingInfixSuggester.lookup(java.lang.CharSequence key,
java.util.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 ). |
java.util.List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(java.lang.CharSequence key,
java.util.Map<BytesRef,BooleanClause.Occur> contextInfo,
int num,
boolean allTermsRequired,
boolean doHighlight) |
Modifier and Type | Method and Description |
---|---|
protected void |
QueryBuilder.add(BooleanQuery.Builder q,
java.util.List<Term> current,
BooleanClause.Occur operator) |
protected Query |
QueryBuilder.analyzeGraphBoolean(java.lang.String field,
TokenStream source,
BooleanClause.Occur operator)
Creates a boolean query from a graph token stream.
|
protected Query |
QueryBuilder.analyzeMultiBoolean(java.lang.String field,
TokenStream stream,
BooleanClause.Occur operator)
Creates complex boolean query from the cached tokenstream contents
|
Query |
QueryBuilder.createBooleanQuery(java.lang.String field,
java.lang.String queryText,
BooleanClause.Occur operator)
Creates a boolean query from the query text.
|
protected Query |
QueryBuilder.createFieldQuery(Analyzer analyzer,
BooleanClause.Occur operator,
java.lang.String field,
java.lang.String queryText,
boolean quoted,
int phraseSlop)
Creates a query from the analysis chain.
|
protected Query |
QueryBuilder.createFieldQuery(TokenStream source,
BooleanClause.Occur operator,
java.lang.String field,
boolean quoted,
int phraseSlop)
Creates a query from a token stream.
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.