|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchEngineBackend
Search engine backend interface.
You must implement this interface to register a new backend implementation against the search service.
AbstractSearchEngineBackend
Method Summary | |
---|---|
void |
clear()
Clear all the indexes. |
void |
closeSession(java.lang.String sid)
Closes a search service session given its session id. |
SearchServiceSession |
createSession()
Opens a new session. |
void |
deleteAggregatedResources(java.lang.String key)
Deletes an index given an aggregated resources key This will remove all resources indexed with key as key used to identified the set ot resources. |
void |
deleteAtomicResource(java.lang.String key)
Deletes an atomic resource given its key. |
java.lang.String |
getConfigurationFileName()
Get configuration file name if any. |
java.lang.String |
getName()
Returns the plugin name. |
java.util.List<java.lang.String> |
getSupportedAnalyzersFor()
Returns the supported analyers. |
java.util.List<java.lang.String> |
getSupportedFieldTypes()
Returns the supported field types. |
void |
index(ResolvedResources resources)
Index a set of resources. |
void |
saveAllSessions()
Save all pending sessions. |
ResultSet |
searchQuery(ComposedNXQuery nxqlQuery,
int offset,
int range)
Searches results given an NXQL query. |
ResultSet |
searchQuery(NativeQuery nativeQuery,
int offset,
int range)
Searches results given a native query. |
ResultSet |
searchQuery(NativeQueryString queryString,
int offset,
int range)
Searches results given a backened specific native query string. |
void |
setConfigurationFileName(java.lang.String configurationFileName)
Set the configuration filr name for this backend. |
void |
setName(java.lang.String name)
Set the name of the plugin. |
Method Detail |
---|
java.lang.String getName()
void setName(java.lang.String name)
name
- : the name of the plugin.java.lang.String getConfigurationFileName()
Expected to be loadable in the classpath.
This aimed at being optional. See backend descriptor in core.
void setConfigurationFileName(java.lang.String configurationFileName)
This aimed at being optional. See backend descriptor in core.
configurationFileName
- : the name of the configuration file with
extension.void index(ResolvedResources resources) throws IndexingException
resources
- : ResolvedResources instance.
IndexingException
void deleteAggregatedResources(java.lang.String key) throws IndexingException
This will remove all resources indexed with key
as key used to identified the set ot resources. See
ResolvedResources.getId()
key
- : aggregated resources key.
IndexingException
void deleteAtomicResource(java.lang.String key) throws IndexingException
This will remove the resource identified by this resource key only.
key
- : atomic resource key
IndexingException
void clear() throws IndexingException
IndexingException
ResultSet searchQuery(ComposedNXQuery nxqlQuery, int offset, int range) throws SearchException
nxqlQuery
- : a native NXP queryoffset
- pagination startrange
- number of results.
SearchException
- if an error occured while performing the searchResultSet searchQuery(NativeQueryString queryString, int offset, int range) throws SearchException, QueryException
queryString
- : a backened specific native query string wrapperoffset
- pagination startrange
- pagination stop
SearchException
QueryException
ResultSet searchQuery(NativeQuery nativeQuery, int offset, int range) throws SearchException, QueryException
nativeQuery
- : a backened specific native query wrapper.offset
- pagination startrange
- pagination stop
SearchException
- if an error occured while performing the search
QueryException
- if the query is invalid or unsupportedjava.util.List<java.lang.String> getSupportedAnalyzersFor()
java.util.List<java.lang.String> getSupportedFieldTypes()
SearchServiceSession createSession()
void closeSession(java.lang.String sid)
void saveAllSessions() throws IndexingException
IndexingException
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |