org.apache.lucene.gdata.search.query
Class GDataQueryParser

java.lang.Object
  extended by org.apache.lucene.queryParser.QueryParser
      extended by org.apache.lucene.gdata.search.query.GDataQueryParser
All Implemented Interfaces:
QueryParserConstants

public class GDataQueryParser
extends QueryParser

Author:
Simon Willnauer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.lucene.queryParser.QueryParser
QueryParser.Operator
 
Field Summary
 
Fields inherited from class org.apache.lucene.queryParser.QueryParser
AND_OPERATOR, jj_nt, lookingAhead, OR_OPERATOR, token, token_source
 
Fields inherited from interface org.apache.lucene.queryParser.QueryParserConstants
_ESCAPED_CHAR, _NUM_CHAR, _TERM_CHAR, _TERM_START_CHAR, _WHITESPACE, AND, Boost, CARAT, COLON, DEFAULT, EOF, FUZZY_SLOP, LPAREN, MINUS, NOT, NUMBER, OR, PLUS, PREFIXTERM, QUOTED, RangeEx, RANGEEX_END, RANGEEX_GOOP, RANGEEX_QUOTED, RANGEEX_START, RANGEEX_TO, RangeIn, RANGEIN_END, RANGEIN_GOOP, RANGEIN_QUOTED, RANGEIN_START, RANGEIN_TO, RPAREN, STAR, TERM, tokenImage, WILDTERM
 
Constructor Summary
GDataQueryParser(IndexSchema schema)
          Creates a new QueryParser instance and sets the default operator to Operator#AND.
GDataQueryParser(String field, Analyzer analyzer)
          Creates a new QueryParser instance and sets the default operator to Operator#AND
 
Method Summary
 
Methods inherited from class org.apache.lucene.queryParser.QueryParser
addClause, Clause, Conjunction, disable_tracing, enable_tracing, escape, generateParseException, getAllowLeadingWildcard, getAnalyzer, getBooleanQuery, getBooleanQuery, getDateResolution, getDefaultOperator, getField, getFieldQuery, getFieldQuery, getFuzzyMinSim, getFuzzyPrefixLength, getFuzzyQuery, getLocale, getLowercaseExpandedTerms, getNextToken, getPhraseSlop, getPrefixQuery, getRangeQuery, getToken, getUseOldRangeQuery, getWildcardQuery, main, Modifiers, parse, Query, ReInit, ReInit, setAllowLeadingWildcard, setDateResolution, setDateResolution, setDefaultOperator, setFuzzyMinSim, setFuzzyPrefixLength, setLocale, setLowercaseExpandedTerms, setPhraseSlop, setUseOldRangeQuery, Term, TopLevelQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GDataQueryParser

public GDataQueryParser(String field,
                        Analyzer analyzer)
Creates a new QueryParser instance and sets the default operator to Operator#AND

Parameters:
field - - the parser field
analyzer - - the parser analyzer

GDataQueryParser

public GDataQueryParser(IndexSchema schema)
Creates a new QueryParser instance and sets the default operator to Operator#AND. The parser will use IndexSchema.getDefaultSearchField() as the field and IndexSchema.getSchemaAnalyzer() as the analyzer.

Parameters:
schema - - the schema to set the default fields


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.