public class LinearComplexQueryBuilder extends ComplexQuery
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 |
|---|
LinearComplexQueryBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addQuery(Query q)
Adds a query linked to the previous one by an OR.
|
void |
addQuery(Query q,
int op)
Adds a query.
|
static void |
main(java.lang.String[] args)
Used for command line testing.
|
addComponent, getBoost, prepare, removeLastComponent, setBoost, setUp, size, toSAXaddAttributesLucene, addAttributesText, addBaseQuery, addBaseQuery, addFilter, addSortSpecification, execute, getCachedQuery, getClassNameSuffix, getLuceneQuery, getOperator, getSearchLocations, initToSax, initVolatileObjectsToSax, 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 void addQuery(Query q) throws SDXException
q - SDXExceptionpublic void addQuery(Query q, int op) throws SDXException
q - The query to addop - The operator linking this query to the previous oneSDXExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
args - A list of search criterais such as "or|A not|B and|C and|D or|E"java.lang.ExceptionCopyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.