|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Searchable
The interface declares methods which should be implemented by an object wishing to get indexed and being searchable.
Method Summary | |
---|---|
Indexer |
getIndexer()
Returns the Indexer |
Searcher |
getSearcher()
Returns the Searcher |
Hit[] |
next(int numberOfPatterns)
|
boolean |
search(String query,
Map searchParameters)
|
void |
setIndexer(Indexer indexer,
Map 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 |
Method Detail |
---|
void setIndexer(Indexer indexer, Map parameters) throws IndexException
indexer
- parameters
- - parameters required by the specific
implementation of provided indexer
IndexException
Indexer getIndexer()
void setSearcher(Searcher searcher) throws SearchException
searcher
-
SearchException
Searcher getSearcher()
boolean search(String query, Map searchParameters) throws SearchException
query
- searchParameters
- - parameters required for searching an
index (e.g. location of the index)
SearchException
Hit[] next(int numberOfPatterns) throws SearchException
numberOfPatterns
-
SearchException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |