com.raritantechnologies.rql
Class RQLQueryProcessorFilter
java.lang.Object
com.raritantechnologies.searchApp.QueryProcessorFilter
com.raritantechnologies.rql.RQLQueryProcessorFilter
- All Implemented Interfaces:
- IQueryProcessor
- public class RQLQueryProcessorFilter
- extends QueryProcessorFilter
Wraps an RQLParser that can do a query translation on one or more query fields.
XML Configuration Template:
<SourceType name="[ name of RQLQueryProcessorFilter source]"
type="QueryProcessorFilterSource"
sourceFactoryClass = "com.raritantechnologies.searchApp.QueryProcessorFilterFactory"
filterClass = "com.raritantechnologies.rql.RQLQueryProcessorFilter"
inputSource = "[ name of SearchSource that will execute the parsed query ]" >
<!-- Defines the set of input fields to parse -->
<QueryFields>
<Field ID="[ field ID ]" />
</QueryFields>
<RQLParser analyzerClass="[ Lucene analyzer class - StandardAnalyzer is default ]"
defaultField="[ default field for fielded searching ]"
suppressDefault="[true|false(default)]" >
<RQLFormatter class="[ class of com.raritantechnologies.rql.IRQLFormatter ]" >
</RQLFormatter>
</RQLParser>
</SourceType>
|
Method Summary |
IResultSet |
executeQuery(java.lang.Integer queryID,
ISearchFieldMap searchMap,
SourceLoginInfo[] sources,
OrderedMap inputParameters,
java.lang.Integer pageSize,
java.lang.Integer startRec)
Base implementation executes the query then starts filter chain. |
void |
initialize(org.w3c.dom.Element elem)
subclasses should override this to initialize themselves. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RQLQueryProcessorFilter
public RQLQueryProcessorFilter()
executeQuery
public IResultSet executeQuery(java.lang.Integer queryID,
ISearchFieldMap searchMap,
SourceLoginInfo[] sources,
OrderedMap inputParameters,
java.lang.Integer pageSize,
java.lang.Integer startRec)
throws QueryProcessorException
- Description copied from class:
QueryProcessorFilter
- Base implementation executes the query then starts filter chain.
- Specified by:
executeQuery in interface IQueryProcessor- Overrides:
executeQuery in class QueryProcessorFilter
- Throws:
QueryProcessorException
initialize
public void initialize(org.w3c.dom.Element elem)
- Description copied from class:
QueryProcessorFilter
- subclasses should override this to initialize themselves.
- Overrides:
initialize in class QueryProcessorFilter