public interface Index
The GNU Lesser General Public License for details.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes resources related to the index
|
Key |
find(String query)
Find the set of references that satisfy the query.
|
Key |
getKey(String name)
An index must be able to create KeyLists for users in a similar way to
the Book that it is indexing.
|
SearchModifier |
getSearchModifier()
Get the current SearchModifier.
|
void |
setSearchModifier(SearchModifier modifier)
Set any modifier for the current and subsequent search.
|
Key find(String query) throws BookException
query
being searched
for is null then an empty Key MUST be returned. Users of this
index may use this functionality to get empty KeyLists which they then
use to aggregate other searches done on this index.query
- The text to search forBookException
Key getKey(String name) throws NoSuchKeyException
name
- The string to convert to a KeyNoSuchKeyException
- If the string can not be turned into a KeyKeyFactory.getKey(String)
void setSearchModifier(SearchModifier modifier)
modifier
- how to modify the search and its results.SearchModifier getSearchModifier()
void close()