railo.runtime.search.lucene2.query
Class QueryParser

java.lang.Object
  extended by railo.runtime.search.lucene2.query.QueryParser

public final class QueryParser
extends Object

The simple query is the default query type and is appropriate for the vast majority of searches. When entering text on a search form, you perform a simple query by entering a word or comma-delimited strings, with optional wildcard characters. Verity treats each comma as a logical OR. If you omit the commas, Verity treats the expression as a phrase.


Constructor Summary
QueryParser()
           
 
Method Summary
 Literal[] getLiteralSearchedTerms()
           
 String[] getStringSearchedTerms()
           
 String parse(String criteria)
          parse given string query
 Op parseOp(String criteria)
           
 Literal register(Literal literal)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParser

public QueryParser()
Method Detail

parse

public String parse(String criteria)
parse given string query

Parameters:
criteria -
Returns:
matching Query

parseOp

public Op parseOp(String criteria)

register

public Literal register(Literal literal)

getLiteralSearchedTerms

public Literal[] getLiteralSearchedTerms()

getStringSearchedTerms

public String[] getStringSearchedTerms()


Copyright © 2012 Railo