|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interface pour toutes les classes qui repr�sentent des requ�tes de recherche.
| Field Summary | |
static int |
defaultOperator
The default operator, currently set to OPERATOR_AND |
static int |
OPERATOR_AND
The "AND" operator |
static int |
OPERATOR_NOT
The "NOT" operator |
static int |
OPERATOR_OR
The "OR" operator |
static java.lang.String |
SEARCH_ENGINE
The search engine specification |
| Method Summary | |
void |
addBaseQuery(Query query,
int operator)
Adds a base query to the current query |
void |
addBaseQuery(Results baseResults,
int operator)
Adds a base query to the current query. |
void |
addFilter(AbstractFilter f)
Adds a filter for this query. |
void |
addSortSpecification(SortSpecification ss)
Adds a sort specification for this query. |
Results |
execute()
Executes a query and returns results. |
org.apache.lucene.search.Query |
getLuceneQuery()
Returns the internal Lucene representation of the query. |
SearchLocations |
getSearchLocations()
|
AbstractFilter |
prepare()
Prepares a query for proper execution. |
void |
setLuceneQuery(org.apache.lucene.search.Query query)
|
void |
setUp(SearchLocations sLocs,
org.apache.lucene.search.Query query)
|
void |
toSAX(org.xml.sax.ContentHandler hdl)
Formats a query in XML. |
| Methods inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
setEncoding |
| Methods inherited from interface org.apache.avalon.framework.logger.LogEnabled |
enableLogging |
| Field Detail |
public static final int OPERATOR_AND
public static final int OPERATOR_OR
public static final int OPERATOR_NOT
public static final java.lang.String SEARCH_ENGINE
public static final int defaultOperator
| Method Detail |
public void toSAX(org.xml.sax.ContentHandler hdl)
throws org.xml.sax.SAXException,
org.apache.cocoon.ProcessingException
toSAX in interface org.apache.cocoon.xml.XMLizablehdl - A content handler to receive XML data.
org.xml.sax.SAXException
org.apache.cocoon.ProcessingException
public Results execute()
throws SDXException
SDXExceptionpublic org.apache.lucene.search.Query getLuceneQuery()
public void addBaseQuery(Results baseResults,
int operator)
baseResults - The results obtained from the base query.operator - The operator linking the query with the base query.
public void addBaseQuery(Query query,
int operator)
query - The query objectoperator - The operator linking the query with the base querypublic void addSortSpecification(SortSpecification ss)
ss - The sort specification.public void addFilter(AbstractFilter f)
f - The filter.public AbstractFilter prepare()
This method makes sure that all filters are correctly applied.
public SearchLocations getSearchLocations()
public void setUp(SearchLocations sLocs,
org.apache.lucene.search.Query query)
throws SDXException
SDXExceptionpublic void setLuceneQuery(org.apache.lucene.search.Query query)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||