org.erowid.sperosearch
Class SearchIndexReader
java.lang.Object
org.erowid.sperosearch.SearchIndexReader
- public class SearchIndexReader
- extends Object
Executes an actual search query over the generated search index. This class is constructed
with a URL pointing to the location of the search index (which could be a file:// link),
and then has queries called via search(String)
.
- Version:
- $Header: /cvsroot/sperowider/SPEROWIDER_MODULE/javasource/org/erowid/sperosearch/SearchIndexReader.java,v 1.11 2005/06/08 09:12:29 gurustu Exp $
- Author:
- Stu Statman
Constructor Summary |
SearchIndexReader(URL searchIndexDirectory)
Creates a new searcher for the Lucene searchbase located at the passed in URL. |
Method Summary |
SearchResults |
search(String term)
Executes a search on the Lucene search base, and returns a set of SearchResults
for that term. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchIndexReader
public SearchIndexReader(URL searchIndexDirectory)
- Creates a new searcher for the Lucene searchbase located at the passed in URL.
search
public SearchResults search(String term)
throws Exception
- Executes a search on the Lucene search base, and returns a set of SearchResults
for that term.
- Throws:
Exception