Method Summary |
|
public synchronized Analyzer | getAnalyzer() Gibt den Analyzer zurück, der für die Suche genutzt werden soll. |
public synchronized int | getDocumentCount() Gets the total number of documents in the index. |
public synchronized String[] | getFieldValues(String field) Gets all distinct values a index has for a certain field. |
public static synchronized IndexSearcherManager | getInstance(String indexDir) Gibt den IndexWriterManager für das gegebene Index-Verzeichnis zurück.
Parameters: indexDir - Das Verzeichnis, in dem der Index steht. |
void | indexUpdateThreadRun() Die run()-Methode des Index-Update-Thread. |
public synchronized Hits | search(Query query) Sucht im Suchindex.
Hinweis: Suchen und Update-Checks laufen synchronisiert ab (also niemals
gleichzeitig).
Parameters: query - Die Suchanfrage. |