| org.apache.lucene.queryParser.CompassQueryParser
All known Subclasses: org.compass.core.lucene.engine.spellcheck.queryparser.SpellCheckQueryParser,
CompassQueryParser | public class CompassQueryParser extends QueryParser (Code) | | Extends Lucene
org.apache.lucene.queryParser.QueryParser and overrides
CompassQueryParser.getRangeQuery(String,String,String,boolean) since lucene performs data parsing which is a performance killer. Anyhow, handling dates in Compass
is different and simpler than Lucene.
author: kimchy |
Method Summary | |
public void | close() | protected Query | getFieldQuery(String field, String queryText) | protected Query | getFuzzyQuery(String field, String termStr, float minSimilarity) | protected Query | getInternalFieldQuery(String field, String queryText) | protected Query | getPrefixQuery(String field, String termStr) | protected Query | getRangeQuery(String field, String part1, String part2, boolean inclusive) | protected Term | getTerm(String field, String text) | protected Query | getWildcardQuery(String field, String termStr) | public boolean | isSuggestedQuery() | public void | setAddAliasQueryWithDotPath(boolean addAliasQueryWithDotPath) | public void | setAllowConstantScorePrefixQuery(boolean allowConstantScorePrefixQuery) |
suggestedQuery | protected boolean suggestedQuery(Code) | | |
close | public void close()(Code) | | |
getFieldQuery | protected Query getFieldQuery(String field, String queryText) throws ParseException(Code) | | |
getFuzzyQuery | protected Query getFuzzyQuery(String field, String termStr, float minSimilarity) throws ParseException(Code) | | |
getInternalFieldQuery | protected Query getInternalFieldQuery(String field, String queryText) throws ParseException(Code) | | throws: ParseException - throw in overridden method to disallow |
getPrefixQuery | protected Query getPrefixQuery(String field, String termStr) throws ParseException(Code) | | |
getRangeQuery | protected Query getRangeQuery(String field, String part1, String part2, boolean inclusive) throws ParseException(Code) | | Override it so we won't use the date format to try and parse dates
|
getWildcardQuery | protected Query getWildcardQuery(String field, String termStr) throws ParseException(Code) | | |
isSuggestedQuery | public boolean isSuggestedQuery()(Code) | | |
setAddAliasQueryWithDotPath | public void setAddAliasQueryWithDotPath(boolean addAliasQueryWithDotPath)(Code) | | |
setAllowConstantScorePrefixQuery | public void setAllowConstantScorePrefixQuery(boolean allowConstantScorePrefixQuery)(Code) | | |
|
|