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

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

public class SpellCheckMultiFieldQueryParser
extends CompassMultiFieldQueryParser

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.CompassMultiFieldQueryParser
mapping, searchEngineFactory, suggestedQuery
 
Fields inherited from class org.apache.lucene.queryParser.MultiFieldQueryParser
boosts, fields
 
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
SpellCheckMultiFieldQueryParser(String[] fields, Analyzer analyzer, 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.CompassMultiFieldQueryParser
getFieldQuery, getFuzzyQuery, getInternalFieldQuery, getPrefixQuery, getRangeQuery, getWildcardQuery, isSuggestedQuery, setAddAliasQueryWithDotPath, setAllowConstantScorePrefixQuery
 
Methods inherited from class org.apache.lucene.queryParser.MultiFieldQueryParser
getFieldQuery, parse, parse, parse
 
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, 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

SpellCheckMultiFieldQueryParser

public SpellCheckMultiFieldQueryParser(String[] fields,
                                       Analyzer analyzer,
                                       CompassMapping mapping,
                                       SearchEngineFactory searchEngineFactory,
                                       boolean forceAnalyzer)
Method Detail

getTerm

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

close

public void close()
Overrides:
close in class CompassMultiFieldQueryParser


Copyright (c) 2004-2008 The Compass Project.