Package | Description |
---|---|
org.apache.lucene.queryparser.analyzing |
QueryParser that passes Fuzzy-, Prefix-, Range-, and WildcardQuerys through the given analyzer.
|
org.apache.lucene.queryparser.classic |
A simple query parser implemented with JavaCC.
|
org.apache.lucene.queryparser.complexPhrase |
QueryParser which permits complex phrase query syntax eg "(john jon jonathan~) peters*"
|
org.apache.lucene.queryparser.ext |
Extendable QueryParser provides a simple and flexible extension mechanism by overloading query field names.
|
Modifier and Type | Method and Description |
---|---|
protected String |
AnalyzingQueryParser.analyzeSingleChunk(String field,
String termStr,
String chunk)
Returns the analyzed form for the given chunk
If the analyzer produces more than one output token from the given chunk,
a ParseException is thrown.
|
protected Query |
AnalyzingQueryParser.getFuzzyQuery(String field,
String termStr,
float minSimilarity)
Called when parser parses an input term that has the fuzzy suffix (~) appended.
|
protected Query |
AnalyzingQueryParser.getPrefixQuery(String field,
String termStr)
Called when parser parses an input term
that uses prefix notation; that is, contains a single '*' wildcard
character as its last character.
|
protected Query |
AnalyzingQueryParser.getWildcardQuery(String field,
String termStr)
Called when parser parses an input term that contains one or more wildcard
characters (like
* ), but is not a prefix term (one that has
just a single * character at the end). |
Modifier and Type | Method and Description |
---|---|
ParseException |
QueryParser.generateParseException()
Generate ParseException.
|
Modifier and Type | Method and Description |
---|---|
Query |
QueryParser.Clause(String field) |
int |
QueryParser.Conjunction() |
protected Query |
QueryParserBase.getBooleanQuery(List<BooleanClause> clauses)
Factory method for generating query, given a set of clauses.
|
protected Query |
QueryParserBase.getBooleanQuery(List<BooleanClause> clauses,
boolean disableCoord)
Factory method for generating query, given a set of clauses.
|
protected Query |
QueryParserBase.getFieldQuery(String field,
String queryText,
boolean quoted) |
protected Query |
MultiFieldQueryParser.getFieldQuery(String field,
String queryText,
boolean quoted) |
protected Query |
QueryParserBase.getFieldQuery(String field,
String queryText,
int slop)
Base implementation delegates to
QueryParserBase.getFieldQuery(String,String,boolean) . |
protected Query |
MultiFieldQueryParser.getFieldQuery(String field,
String queryText,
int slop) |
protected Query |
QueryParserBase.getFuzzyQuery(String field,
String termStr,
float minSimilarity)
Factory method for generating a query (similar to
QueryParserBase.getWildcardQuery(java.lang.String, java.lang.String) ). |
protected Query |
MultiFieldQueryParser.getFuzzyQuery(String field,
String termStr,
float minSimilarity) |
protected Query |
QueryParserBase.getPrefixQuery(String field,
String termStr)
Factory method for generating a query (similar to
QueryParserBase.getWildcardQuery(java.lang.String, java.lang.String) ). |
protected Query |
MultiFieldQueryParser.getPrefixQuery(String field,
String termStr) |
protected Query |
QueryParserBase.getRangeQuery(String field,
String part1,
String part2,
boolean startInclusive,
boolean endInclusive) |
protected Query |
MultiFieldQueryParser.getRangeQuery(String field,
String part1,
String part2,
boolean startInclusive,
boolean endInclusive) |
protected Query |
QueryParserBase.getRegexpQuery(String field,
String termStr)
Factory method for generating a query.
|
protected Query |
MultiFieldQueryParser.getRegexpQuery(String field,
String termStr) |
protected Query |
QueryParserBase.getWildcardQuery(String field,
String termStr)
Factory method for generating a query.
|
protected Query |
MultiFieldQueryParser.getWildcardQuery(String field,
String termStr) |
int |
QueryParser.Modifiers() |
protected Query |
QueryParserBase.newFieldQuery(Analyzer analyzer,
String field,
String queryText,
boolean quoted) |
Query |
QueryParserBase.parse(String query)
Parses a query string, returning a
Query . |
static Query |
MultiFieldQueryParser.parse(String[] queries,
String[] fields,
Analyzer analyzer)
Parses a query which searches on the fields specified.
|
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.
|
Query |
QueryParser.Query(String field) |
Query |
QueryParser.Term(String field) |
abstract Query |
QueryParserBase.TopLevelQuery(String field) |
Query |
QueryParser.TopLevelQuery(String field) |
Modifier and Type | Method and Description |
---|---|
protected Query |
ComplexPhraseQueryParser.getFuzzyQuery(String field,
String termStr,
float minSimilarity) |
protected Query |
ComplexPhraseQueryParser.getRangeQuery(String field,
String part1,
String part2,
boolean startInclusive,
boolean endInclusive) |
protected Query |
ComplexPhraseQueryParser.getWildcardQuery(String field,
String termStr) |
Query |
ComplexPhraseQueryParser.parse(String query) |
Modifier and Type | Method and Description |
---|---|
protected Query |
ExtendableQueryParser.getFieldQuery(String field,
String queryText,
boolean quoted) |
abstract Query |
ParserExtension.parse(ExtensionQuery query)
Processes the given
ExtensionQuery and returns a corresponding
Query instance. |
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.