com.esri.gpt.catalog.lucene
Class StreamingQueryParser
java.lang.Object
org.apache.lucene.queryParser.QueryParser
org.apache.lucene.queryParser.MultiFieldQueryParser
com.esri.gpt.catalog.lucene.StreamingQueryParser
- All Implemented Interfaces:
- QueryParserConstants
Deprecated.
public abstract class StreamingQueryParser
- extends MultiFieldQueryParser
Streaming multi-field query parser.
Allows to preprocess given search term by one or more parser proxies. Parser
proxies are chained, i.e. outcome from the first serviceProxy is an income for
the next serviceProxy. Chains are created by concatenating serviceProxy names by pipe (|)
with the search term as the last element of the chain. Example:
Example above passes search term river to the parser serviceProxy called
stemer then outcome from stemer is passed further to
ontology serviceProxy.
Another example:
ontology|"colorado river"
This example shows that entire string colorado river is passed to the
ontology serviceProxy.
Proxy names are case-insensitive.
- See Also:
LuceneConfig.getParserProxies()
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 |
Methods inherited from class org.apache.lucene.queryParser.QueryParser |
addClause, Clause, Conjunction, disable_tracing, enable_tracing, escape, generateParseException, getAllowLeadingWildcard, getAnalyzer, getBooleanQuery, getBooleanQuery, getDateResolution, getDefaultOperator, getEnablePositionIncrements, getField, getFuzzyMinSim, getFuzzyPrefixLength, getLocale, getLowercaseExpandedTerms, getMultiTermRewriteMethod, getNextToken, getPhraseSlop, getRangeCollator, getToken, main, Modifiers, newBooleanClause, newBooleanQuery, newFuzzyQuery, newMatchAllDocsQuery, newMultiPhraseQuery, newPhraseQuery, newPrefixQuery, newRangeQuery, newTermQuery, newWildcardQuery, Query, ReInit, ReInit, setAllowLeadingWildcard, setDateResolution, setDateResolution, setDefaultOperator, setEnablePositionIncrements, setFuzzyMinSim, setFuzzyPrefixLength, setLocale, setLowercaseExpandedTerms, setMultiTermRewriteMethod, setPhraseSlop, setRangeCollator, Term, TopLevelQuery |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StreamingQueryParser
public StreamingQueryParser(String[] fields,
Analyzer analyzer,
Map boosts)
- Deprecated.
- Creates multi-field query parser with delegation.
- Parameters:
fields
- fieldsanalyzer
- analyzerboosts
- boosts
StreamingQueryParser
public StreamingQueryParser(String[] fields,
Analyzer analyzer)
- Deprecated.
- Creates multi-field query parser with delegation.
- Parameters:
fields
- fieldsanalyzer
- analyzer
parse
public Query parse(String query)
throws ParseException
- Deprecated.
- Overrides:
parse
in class QueryParser
- Throws:
ParseException
getParserProxies
protected abstract Map<String,IParserProxy> getParserProxies()
- Deprecated.
- Gets collection of parser proxies.
- Returns:
- collection of parser proxies or
null
if no proxies available
Copyright 2010 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.