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 |
FilterClause.getOccur()
Returns this FilterClause's occur parameter
|
Modifier and Type | Method and Description |
---|---|
void |
BooleanFilter.add(Filter filter,
BooleanClause.Occur occur)
Deprecated.
|
Constructor and Description |
---|
CommonTermsQuery(BooleanClause.Occur highFreqOccur,
BooleanClause.Occur lowFreqOccur,
float maxTermFrequency)
Creates a new
CommonTermsQuery |
CommonTermsQuery(BooleanClause.Occur highFreqOccur,
BooleanClause.Occur lowFreqOccur,
float maxTermFrequency,
boolean disableCoord)
Creates a new
CommonTermsQuery |
FilterClause(Filter filter,
BooleanClause.Occur occur)
Create a new FilterClause
|
Modifier and Type | Method and Description |
---|---|
protected BooleanClause |
QueryParserBase.newBooleanClause(Query q,
BooleanClause.Occur occur)
Builds a new BooleanClause instance
|
static 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.
|
Modifier and Type | Method and Description |
---|---|
static 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.
|
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(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 |
---|---|
void |
BooleanQuery.add(Query query,
BooleanClause.Occur occur)
Deprecated.
Boolean queries should be created once with
BooleanQuery.Builder
and then considered immutable. See BooleanQuery.Builder.add(org.apache.lucene.search.BooleanClause) . |
BooleanQuery.Builder |
BooleanQuery.Builder.add(Query query,
BooleanClause.Occur occur)
Add a clause to the
BooleanQuery . |
void |
BooleanClause.setOccur(BooleanClause.Occur occur)
Deprecated.
BooleanClause will be immutable in 6.0.
|
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 |
---|---|
List<Lookup.LookupResult> |
AnalyzingInfixSuggester.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 ). |
List<Lookup.LookupResult> |
BlendedInfixSuggester.lookup(CharSequence key,
Map<BytesRef,BooleanClause.Occur> contextInfo,
int num,
boolean allTermsRequired,
boolean doHighlight) |
Modifier and Type | Method and Description |
---|---|
Query |
QueryBuilder.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.
|
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.