public interface SearchEngine
| Modifier and Type | Method and Description |
|---|---|
void |
index(IndexSource source)
The method indexes the IndexSource supplied to the IndexSource indicatd and store the indexed
information in the configured search engine.
|
SearchResult<ResultRow> |
search(List<String> sourceNames,
QueryExpression q)
Searches the index sources with the given QueryExpression and return the SearchResult from the
search operation.
|
void |
setIndexSourceConfig(IndexSourceConfig config)
Sets the controller class for the IndexSource so that the SearchEngine will be able to
access the index source information given name.
|
void |
setMetadata(SearchEngineMetadata metadata)
Sets the metadata information for this SearchEngine.
|
void |
setQueryConverter(QueryConverter qc)
Sets the QueryConverter that will be used by the SearchEngine in indexing and searching.
|
void index(IndexSource source) throws SearchEngineException
source - supplies the data that needs to be indexed into this SearchEngineSearchEngineException - will be thrown when error occurs in indexing operationSearchResult<ResultRow> search(List<String> sourceNames, QueryExpression q) throws SearchEngineException
sourceNames - the list of index source names that this search operation will be againstq - the QueryExpression that the search will useSearchEngineException - will be thrown when error occurs in indexing operationvoid setIndexSourceConfig(IndexSourceConfig config)
config - the IndexSurceConfig which could access the index source configuration information
in Content Servervoid setQueryConverter(QueryConverter qc)
qc - the QueryConverter instance that will be usedvoid setMetadata(SearchEngineMetadata metadata)
metadata - the SearchEngienMetadata instance for this SearchEngine