|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gouv.culture.sdx.utils.AbstractSdxObject fr.gouv.culture.sdx.search.lucene.query.AbstractQuery fr.gouv.culture.sdx.search.lucene.query.LinearQuery
public class LinearQuery
A linear query.
A linear query is made of subqueries linked together with boolean operators. No nesting of queries is allowed here.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
---|
SdxObject.ConfigurationNode |
Field Summary |
---|
Fields inherited from class fr.gouv.culture.sdx.search.lucene.query.AbstractQuery |
---|
baseOperator, baseQuery, baseResults, cachedQuery, filter, luceneQuery, queryText, searchLocations, sortSpecification |
Fields inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
---|
_configuration, _context, _description, _encoding, _id, _locale, _logger, _manager, _xmlizable_objects, _xmlLang, isToSaxInitialized |
Fields inherited from interface fr.gouv.culture.sdx.search.lucene.query.Query |
---|
defaultOperator, LUCENE_BOOLEAN_QUERY_MAX_CLAUSES, OPERATOR_AND, OPERATOR_NOT, OPERATOR_OR, SEARCH_ENGINE |
Fields inherited from interface fr.gouv.culture.sdx.search.Query |
---|
CLASS_NAME_SUFFIX |
Fields inherited from interface fr.gouv.culture.sdx.utils.Encodable |
---|
DEFAULT_ENCODING |
Constructor Summary | |
---|---|
LinearQuery()
Creates a query A super.getLog() must be set and then this query must be setUp. |
Method Summary | |
---|---|
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. |
Methods inherited from class fr.gouv.culture.sdx.search.lucene.query.AbstractQuery |
---|
addAttributesLucene, addAttributesText, addBaseQuery, addBaseQuery, addFilter, addSortSpecification, execute, getBoost, getCachedQuery, getClassNameSuffix, getLuceneQuery, getOperator, getSearchLocations, initToSax, initVolatileObjectsToSax, prepare, setBoost, setBoost, setLuceneQuery, setSearchLocations, setUp, setUp |
Methods inherited from class fr.gouv.culture.sdx.utils.AbstractSdxObject |
---|
configure, configureDescription, contextualize, enableLogging, getBaseAttributes, getConfiguration, getContext, getDescription, getEncoding, getId, getLocale, getLog, getServiceManager, getXmlLang, service, setDescription, setEncoding, setId, setLocale, setUpSdxObject, setUpSdxObject, setXmlLang, verifyConfigurationResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
---|
getLog |
Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
---|
enableLogging |
Methods inherited from interface org.apache.avalon.framework.context.Contextualizable |
---|
contextualize |
Methods inherited from interface org.apache.avalon.framework.service.Serviceable |
---|
service |
Methods inherited from interface org.apache.avalon.framework.configuration.Configurable |
---|
configure |
Methods inherited from interface fr.gouv.culture.sdx.utils.Identifiable |
---|
getId, setId |
Methods inherited from interface fr.gouv.culture.sdx.utils.Describable |
---|
getDescription, setDescription |
Methods inherited from interface fr.gouv.culture.sdx.utils.Encodable |
---|
getEncoding, setEncoding |
Methods inherited from interface fr.gouv.culture.sdx.utils.Localizable |
---|
getLocale, getXmlLang, setLocale, setXmlLang |
Constructor Detail |
---|
public LinearQuery()
A super.getLog() must be set and then this query must be setUp.
setUp(fr.gouv.culture.sdx.search.lucene.query.SearchLocations, java.lang.String[], java.lang.String[], int[], int)
Method Detail |
---|
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).
SDXException
QueryParser.DEFAULT_OPERATOR
,
QueryParser.OPERATOR_AND
,
QueryParser.OPERATOR_OR
public void toSAX(org.xml.sax.ContentHandler hdl) throws org.xml.sax.SAXException
toSAX
in interface org.apache.excalibur.xml.sax.XMLizable
toSAX
in class AbstractQuery
hdl
- The ContentHandler to feed with events.
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |