com.jurismarches.vradi.services.search
Class VradiQueryParser
java.lang.Object
com.jurismarches.vradi.services.search.VradiQueryParser
public class VradiQueryParser
- extends java.lang.Object
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.
- Since:
- 0.0.4
- Version:
- $Revision: 1115 $ $Date: 2010-06-22 09:39:27 +0200 (mar., 22 juin 2010) $
- Author:
- $Author: chatellier $
|
Method Summary |
static FilterList |
parse(java.lang.String expression)
Parses the specified expression and returns a FilterList. |
static FilterList |
parse(java.lang.String expression,
java.lang.String defaultField)
Parses the specified expression and returns a FilterList. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_FIELD
public static final java.lang.String DEFAULT_FIELD
- See Also:
- Constant Field Values
VradiQueryParser
public VradiQueryParser()
parse
public static FilterList parse(java.lang.String expression)
throws UnsupportedQueryException
- Parses the specified
expression and returns a FilterList.
- Parameters:
expression - the expression
- Returns:
- a
FilterList
- Throws:
UnsupportedQueryException
parse
public static FilterList parse(java.lang.String expression,
java.lang.String defaultField)
throws UnsupportedQueryException
- Parses the specified
expression and returns a FilterList.
- Parameters:
expression - the expressiondefaultField - the default search field
- Returns:
- a
FilterList
- Throws:
UnsupportedQueryException
Copyright © 2009-2010 JurisMarches. All Rights Reserved.