Package | Description |
---|---|
org.apache.lucene.queryParser |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryParser.standard |
Contains the implementation of the Lucene query parser using the flexible query parser frameworks
Lucene Flexible Query Parser Implementation
The old Lucene query parser used to have only one class that performed
all the parsing operations.
|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Method and Description |
---|---|
protected BooleanClause |
QueryParser.newBooleanClause(Query q,
BooleanClause.Occur occur)
Builds a new BooleanClause instance
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Parses a query, searching on the fields specified.
|
static Query |
MultiFieldQueryParser.parse(Version matchVersion,
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 |
MultiFieldQueryParserWrapper.parse(String[] queries,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Deprecated.
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.
|
static Query |
MultiFieldQueryParserWrapper.parse(String query,
String[] fields,
BooleanClause.Occur[] flags,
Analyzer analyzer)
Deprecated.
Parses a query, searching on the fields specified.
|
Modifier and Type | Method and Description |
---|---|
BooleanClause.Occur |
FilterClause.getOccur()
Returns this FilterClause's occur parameter
|
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 |
BooleanFilter.add(Filter filter,
BooleanClause.Occur occur) |
void |
BooleanQuery.add(Query query,
BooleanClause.Occur occur)
Adds a clause to a boolean query.
|
void |
BooleanClause.setOccur(BooleanClause.Occur occur) |
void |
Scorer.visitSubScorers(Query parent,
BooleanClause.Occur relationship,
Scorer.ScorerVisitor<Query,Query,Scorer> visitor)
Scorer subclasses should implement this method if the subclass
itself contains multiple scorers to support gathering details for
sub-scorers via Scorer.ScorerVisitor
Note: this method will throw UnsupportedOperationException if no
associated Weight instance is provided to
Scorer.Scorer(Weight)
|
Constructor and Description |
---|
BooleanClause(Query query,
BooleanClause.Occur occur)
Constructs a BooleanClause.
|
FilterClause(Filter filter,
BooleanClause.Occur occur)
Create a new FilterClause
|