org.compass.core.lucene.engine.spellcheck.queryparser
Class SpellCheckQueryParser

java.lang.Object
  extended by org.apache.lucene.queryParser.QueryParser
      extended by org.apache.lucene.queryParser.CompassQueryParser
          extended by org.compass.core.lucene.engine.spellcheck.queryparser.SpellCheckQueryParser
All Implemented Interfaces:
QueryParserConstants

public class SpellCheckQueryParser
extends CompassQueryParser

Author:
kimchy

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.CompassQueryParser
mapping, searchEngineFactory, suggestedQuery
 
Fields inherited from class org.apache.lucene.queryParser.QueryParser
AND_OPERATOR, jj_nt, OR_OPERATOR, token, token_source
 
Fields inherited from interface org.apache.lucene.queryParser.QueryParserConstants
_ESCAPED_CHAR, _NUM_CHAR, _QUOTED_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
SpellCheckQueryParser(String f, Analyzer a, CompassMapping mapping, SearchEngineFactory searchEngineFactory, boolean forceAnalyzer)
           
 
Method Summary
 void close()
           
protected  Term getTerm(String field, String text)
           
 
Methods inherited from class org.apache.lucene.queryParser.CompassQueryParser
getFieldQuery, getFuzzyQuery, getInternalFieldQuery, getPrefixQuery, getRangeQuery, getWildcardQuery, isSuggestedQuery, setAddAliasQueryWithDotPath, setAllowConstantScorePrefixQuery
 
Methods inherited from class org.apache.lucene.queryParser.QueryParser
addClause, addClause, Clause, Conjunction, disable_tracing, enable_tracing, escape, generateParseException, getAllowLeadingWildcard, getAnalyzer, getBooleanQuery, getBooleanQuery, getBooleanQuery, getBooleanQuery, getDateResolution, getDefaultOperator, getEnablePositionIncrements, getField, getFieldQuery, getFuzzyMinSim, getFuzzyPrefixLength, getLocale, getLowercaseExpandedTerms, getNextToken, getPhraseSlop, getRangeCollator, getToken, getUseOldRangeQuery, main, Modifiers, newBooleanClause, newBooleanQuery, newFuzzyQuery, newMatchAllDocsQuery, newMultiPhraseQuery, newPhraseQuery, newPrefixQuery, newRangeQuery, newTermQuery, newWildcardQuery, parse, Query, ReInit, ReInit, setAllowLeadingWildcard, setDateResolution, setDateResolution, setDefaultOperator, setEnablePositionIncrements, setFuzzyMinSim, setFuzzyPrefixLength, setLocale, setLowercaseExpandedTerms, setPhraseSlop, setRangeCollator, setUseOldRangeQuery, Term, TopLevelQuery
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpellCheckQueryParser

public SpellCheckQueryParser(String f,
                             Analyzer a,
                             CompassMapping mapping,
                             SearchEngineFactory searchEngineFactory,
                             boolean forceAnalyzer)
Method Detail

getTerm

protected Term getTerm(String field,
                       String text)
                throws ParseException
Overrides:
getTerm in class CompassQueryParser
Throws:
ParseException

close

public void close()
Overrides:
close in class CompassQueryParser


Copyright (c) 2004-2008 The Compass Project.