|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SearchEngine
SearchEngine is the Content Server abstraction of the search engine that would be used for indexing and searching of Content Server data. It supports operations of index and search
Method Summary | |
---|---|
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(java.util.List<java.lang.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. |
Method Detail |
---|
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(java.util.List<java.lang.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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.