|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jurismarches.vradi.services.search.VradiQueryParser
public class VradiQueryParser
VradiQueryParser supports the analysis of textual queries.
Queries are analyzed by the lucene QueryParser, so they
must obey his syntax.
See at
queryparsersyntax.html for a complete documentation.
Analyzer used to parse queries is WhitespaceAnalyzer and the default
parser operator is QueryParser.Operator.AND.
| Field Summary | |
|---|---|
static String |
DEFAULT_FIELD
|
| Constructor Summary | |
|---|---|
VradiQueryParser()
|
|
| Method Summary | |
|---|---|
static void |
buildSearch(FilterList list,
org.sharengo.wikitty.search.Search search)
Appends Filters from the specified list
to the specified search. |
static FilterList |
parse(String expression)
Parses the specified expression and returns a FilterList. |
static FilterList |
parse(String expression,
String defaultField)
Parses the specified expression and returns a FilterList. |
static org.sharengo.wikitty.search.Search |
search(String expression)
Parses the specified expression and invokes
buildSearch(FilterList, Search) with a new Search instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_FIELD
| Constructor Detail |
|---|
public VradiQueryParser()
| Method Detail |
|---|
public static FilterList parse(String expression)
throws UnsupportedQueryException
expression and returns a FilterList.
expression - the expression
FilterList
UnsupportedQueryException
public static FilterList parse(String expression,
String defaultField)
throws UnsupportedQueryException
expression and returns a FilterList.
expression - the expressiondefaultField - the default search field
FilterList
UnsupportedQueryException
public static org.sharengo.wikitty.search.Search search(String expression)
throws UnsupportedQueryException
expression and invokes
buildSearch(FilterList, Search) with a new Search instance.
expression - the expression
Search
UnsupportedQueryException
public static void buildSearch(FilterList list,
org.sharengo.wikitty.search.Search search)
list
to the specified search.
list - the list of filterssearch - the search
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||