public class LinearQuery extends AbstractQuery
A linear query is made of subqueries linked together with boolean operators. No nesting of queries is allowed here.
SdxObject.ConfigurationNodebaseOperator, baseQuery, baseResults, cachedQuery, filter, luceneQuery, queryText, searchLocations, sortSpecification_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitializeddefaultOperator, LUCENE_BOOLEAN_QUERY_MAX_CLAUSES, OPERATOR_AND, OPERATOR_NOT, OPERATOR_OR, SEARCH_ENGINECLASS_NAME_SUFFIXDEFAULT_ENCODING| Constructor and Description |
|---|
LinearQuery()
Creates a query
A super.getLog() must be set and then this query must be setUp.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setUp(SearchLocations sLocs,
java.lang.String[] queryTerms,
java.lang.String[] fields,
int[] connectors,
int operator)
Constructs a linear query.
|
void |
toSAX(org.xml.sax.ContentHandler hdl)
Returns a SAX representation of this acceptRequest.
|
addAttributesLucene, addAttributesText, addBaseQuery, addBaseQuery, addFilter, addSortSpecification, execute, getBoost, getCachedQuery, getClassNameSuffix, getLuceneQuery, getOperator, getSearchLocations, initToSax, initVolatileObjectsToSax, prepare, setBoost, setBoost, setLuceneQuery, setSearchLocations, setUp, setUpconfigure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, verifyConfigurationResourcesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, setIdgetDescription, setDescriptiongetEncoding, setEncodinggetLocale, getXmlLang, setLocale, setXmlLangpublic LinearQuery()
A super.getLog() must be set and then this query must be setUp.
public void setUp(SearchLocations sLocs, java.lang.String[] queryTerms, java.lang.String[] fields, int[] connectors, int operator) throws SDXException
sLocs - The SearchLocations object (indices to be searched).queryTerms - The query terms.connectors - The operators.fields - The field names to search.operator - The operator for the query (ie AND or OR).SDXExceptionQueryParser.DEFAULT_OPERATOR,
QueryParser.OPERATOR_AND,
QueryParser.OPERATOR_ORpublic void toSAX(org.xml.sax.ContentHandler hdl)
throws org.xml.sax.SAXException
toSAX in interface org.apache.excalibur.xml.sax.XMLizabletoSAX in class AbstractQueryhdl - The ContentHandler to feed with events.org.xml.sax.SAXExceptionCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.