ArcGIS Server Geoportal extension
10

com.esri.gpt.catalog.lucene
Class StreamingQueryParser

java.lang.Object
  extended by org.apache.lucene.queryParser.QueryParser
      extended by org.apache.lucene.queryParser.MultiFieldQueryParser
          extended by 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:

  ontology|stemer|river

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()

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.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
StreamingQueryParser(String[] fields, Analyzer analyzer)
          Deprecated. Creates multi-field query parser with delegation.
StreamingQueryParser(String[] fields, Analyzer analyzer, Map boosts)
          Deprecated. Creates multi-field query parser with delegation.
 
Method Summary
protected abstract  Map<String,IParserProxy> getParserProxies()
          Deprecated. Gets collection of parser proxies.
 Query parse(String query)
          Deprecated.  
 
Methods inherited from class org.apache.lucene.queryParser.MultiFieldQueryParser
getFieldQuery, getFieldQuery, getFuzzyQuery, getPrefixQuery, getRangeQuery, getWildcardQuery, parse, parse, parse
 
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
 

Constructor Detail

StreamingQueryParser

public StreamingQueryParser(String[] fields,
                            Analyzer analyzer,
                            Map boosts)
Deprecated. 
Creates multi-field query parser with delegation.

Parameters:
fields - fields
analyzer - analyzer
boosts - boosts

StreamingQueryParser

public StreamingQueryParser(String[] fields,
                            Analyzer analyzer)
Deprecated. 
Creates multi-field query parser with delegation.

Parameters:
fields - fields
analyzer - analyzer
Method Detail

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

ArcGIS Server Geoportal extension
10

Copyright 2010 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.