public interface Searchable
| Modifier and Type | Method and Description |
|---|---|
Indexer |
getIndexer()
Returns the Indexer
|
Searcher |
getSearcher()
Returns the Searcher
|
Hit[] |
next(int numberOfPatterns) |
boolean |
search(String query,
Map<String,Object> searchParameters) |
void |
setIndexer(Indexer indexer,
Map<String,Object> parameters)
This method is used to specify the indexer which is used to index
documents
|
void |
setSearcher(Searcher searcher)
This method is used to specify the searcher which is used for
searchering the index
|
void setIndexer(Indexer indexer, Map<String,Object> parameters) throws IndexException
indexer - parameters - - parameters required by the specific
implementation of provided indexerIndexExceptionIndexer getIndexer()
void setSearcher(Searcher searcher) throws SearchException
searcher - SearchExceptionSearcher getSearcher()
boolean search(String query, Map<String,Object> searchParameters) throws SearchException
query - searchParameters - - parameters required for searching an
index (e.g. location of the index)SearchExceptionHit[] next(int numberOfPatterns) throws SearchException
numberOfPatterns - SearchExceptionCopyright © 2024 GATE. All rights reserved.