com.jurismarches.vradi.services.search
Class VradiQueryParser

java.lang.Object
  extended by 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: 1715 $ $Date: 2010-10-27 21:21:28 +0200 (mer., 27 oct. 2010) $
Author:
$Author: tchemit $

Field Summary
static java.lang.String DEFAULT_FIELD
           
 
Constructor Summary
VradiQueryParser()
           
 
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
 

Field Detail

DEFAULT_FIELD

public static final java.lang.String DEFAULT_FIELD
See Also:
Constant Field Values
Constructor Detail

VradiQueryParser

public VradiQueryParser()
Method Detail

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 expression
defaultField - the default search field
Returns:
a FilterList
Throws:
UnsupportedQueryException


Copyright © 2009-2010 JurisMarches. All Rights Reserved.