|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Query
Interface pour toutes les classes qui representent des requetes de recherche.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface fr.gouv.culture.sdx.utils.SdxObject |
---|
SdxObject.ConfigurationNode |
Field Summary | |
---|---|
static int |
defaultOperator
The default operator, currently set to OPERATOR_AND |
static int |
LUCENE_BOOLEAN_QUERY_MAX_CLAUSES
|
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 |
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 |
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(Filter 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. |
float |
getBoost()
Returns the boost on the query. |
org.apache.lucene.search.Query |
getCachedQuery()
|
org.apache.lucene.search.Query |
getLuceneQuery()
Returns the internal Lucene representation of the query. |
SearchLocations |
getSearchLocations()
|
Filter |
prepare()
Prepares a query for proper execution. |
void |
setBoost(float boost)
Change the boost on the query. |
void |
setBoost(java.lang.String boost)
Change the boost on the query. |
void |
setLuceneQuery(org.apache.lucene.search.Query query)
|
void |
setUp(SearchLocations sLocs,
org.apache.lucene.search.Query query)
|
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 |
Methods inherited from interface org.apache.excalibur.xml.sax.XMLizable |
---|
toSAX |
Field Detail |
---|
static final int OPERATOR_AND
static final int OPERATOR_OR
static final int OPERATOR_NOT
static final java.lang.String SEARCH_ENGINE
static final int defaultOperator
static final int LUCENE_BOOLEAN_QUERY_MAX_CLAUSES
Method Detail |
---|
Results execute() throws SDXException
SDXException
org.apache.lucene.search.Query getLuceneQuery()
void addBaseQuery(Results baseResults, int operator)
baseResults
- The results obtained from the base query.operator
- The operator linking the query with the base query.void addBaseQuery(Query query, int operator)
query
- The query objectoperator
- The operator linking the query with the base queryvoid addSortSpecification(SortSpecification ss)
ss
- The sort specification.void addFilter(Filter f)
f
- The filter.Filter prepare()
This method makes sure that all filters are correctly applied.
float getBoost()
This method returns the boost on the query.
void setBoost(float boost)
This method changes the boost on the query to make it more significant.
get
- the boost value by a float.void setBoost(java.lang.String boost)
This method changes the boost on the query to make it more significant. If the String is not a valid float, no changes occur.
get
- the boost value by a string.SearchLocations getSearchLocations()
void setUp(SearchLocations sLocs, org.apache.lucene.search.Query query) throws SDXException
SDXException
void setLuceneQuery(org.apache.lucene.search.Query query)
org.apache.lucene.search.Query getCachedQuery()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |