org.crosswire.jsword.index.search
Interface Searcher

All Known Implementing Classes:
LuceneSearcher

public interface Searcher

The central interface to all searching.

Author:
Joe Walker
See Also:
The GNU Lesser General Public License for details.

Method Summary
 void init(Index index)
          Setup the index that this parser can use to do word level searches
 Key search(Query request)
          Take a search request and decipher it into a Passage.
 Key search(SearchRequest request)
          Take a search request and decipher it into a Passage.
 

Method Detail

init

void init(Index index)
Setup the index that this parser can use to do word level searches

Parameters:
index - The Index to query for words

search

Key search(SearchRequest request)
           throws BookException
Take a search request and decipher it into a Passage.

Parameters:
request - The request
Returns:
The matching verses
Throws:
BookException

search

Key search(Query request)
           throws BookException
Take a search request and decipher it into a Passage.

Parameters:
request - The request
Returns:
The matching verses
Throws:
BookException

Copyright ยจ 2003-2015