|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--lempinen.neatseeker.core.NeatSeeker
The NeatSeeker search front-end class.
This class provides services for searching the NeatSeeker index. Actual search front-ends should extend (or with servlets, aggregate) this class.
Field Summary | |
protected Configuration |
conf
The Configuration object. |
protected Repository |
repository
The repository object. |
protected Statistics |
statistics
The Statistics object. |
protected Stemmer |
stemmer
The stemmer object. |
protected Weighter |
weighter
The Weighter object. |
Constructor Summary | |
NeatSeeker(Configuration c)
Creates a new NeatSeeker object with the given configuration. |
Method Summary | |
protected PointerList |
doSearch(java.lang.String[] keys,
int index)
Searches for an array of keywords. |
Target |
getTarget(long id)
Returns the Target from the Repository. |
static void |
main(java.lang.String[] args)
Main method. |
PointerList |
search(java.lang.String query)
Parses a search string into an array of search terms and runs the search. |
PointerList |
search(java.lang.String[] query)
Parses an array of search terms and runs the search. |
protected PointerList |
searchPhrase(java.lang.String phrase)
Performs a phrase search for two or more words. |
PointerList |
searchSimple(java.lang.String key)
Searches for a particular key string. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected Repository repository
protected Stemmer stemmer
protected Configuration conf
protected Statistics statistics
protected Weighter weighter
Constructor Detail |
public NeatSeeker(Configuration c) throws java.io.IOException
Method Detail |
public PointerList search(java.lang.String[] query)
Returns a PointerList that represents the search results.
public PointerList search(java.lang.String query) throws java.io.IOException
This form of search() is useful e.g. in a CGI/Servlet environment, where the query comes in the form of a single string.
Returns a PointerList that represents the search results.
protected PointerList doSearch(java.lang.String[] keys, int index)
public PointerList searchSimple(java.lang.String key)
protected PointerList searchPhrase(java.lang.String phrase)
public Target getTarget(long id) throws java.io.IOException, java.lang.ClassNotFoundException
public static void main(java.lang.String[] args) throws java.io.IOException, java.lang.ClassNotFoundException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |