RefEntryIndex

Name

RefEntryIndex -- index for searching RefEntry documents

Synopsis

 class RefEntryIndex {
RefEntryIndex();
boolean add(String key, RefEntry value);
HashSet match(String key);
}

Description

RefEntryIndex holds the index enabling full text searches. Its add method adds a RefEntry to the index for the word in key. Its match method retrieves a set of RefEntry objects for a key word.

Parameters

The RefEntryIndex constructor takes no parameters.

Methods

RefEntryIndex class "friendly" (package private) methods provide access to RefEntry documents used by the servlet when adding and searching.

add

Adds an existing RefEntry to the index for a particular string. The string is folded to lower case.

match

Returns a set of RefEntry documents matching a particular string. The string is folded to lower case.