|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ceryle.util.search.Finder
org.ceryle.util.search.FSFinder
public class FSFinder
Implements the Finder interface, providing a
Lucene-based search engine designed to index a file system. The specific
directory is set relative to a directory provided by a set property.
| Field Summary | |
|---|---|
protected org.apache.lucene.queryParser.QueryParser |
m_qp
|
| Fields inherited from class org.ceryle.util.search.Finder |
|---|
m_indexer, mh, mw, progress |
| Constructor Summary | |
|---|---|
FSFinder(FSIndexer indexer,
MessageHandler msghandler,
MessageWriter msgwriter,
ProgressBar progressbar)
Constructor for an implementation of an FSFinder. |
|
FSFinder(Indexer indexer,
MessageHandler msghandler,
MessageWriter msgwriter,
ProgressBar progressbar)
Constructor for an implementation of an FSFinder. |
|
| Method Summary | |
|---|---|
protected void |
clearIndexDirectory()
Clear the current index directory. |
org.apache.lucene.queryParser.QueryParser |
getQueryParser()
Returns the QueryParser used by this Finder. |
SearchHit[] |
search(String queryString)
Search the indexed directories for the provided search string, returning an array of SearchHit objects (empty, not null, if there is no match). |
| Methods inherited from class org.ceryle.util.search.Finder |
|---|
getIndexer, getProgressBar, hasProgressBar, setProgressBar |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.lucene.queryParser.QueryParser m_qp
| Constructor Detail |
|---|
public FSFinder(Indexer indexer,
MessageHandler msghandler,
MessageWriter msgwriter,
ProgressBar progressbar)
indexer - provides the search indexmsghandler - to process status and other messages.msgwriter - to receive status and other messages.progressbar - (optional) to track search status.
public FSFinder(FSIndexer indexer,
MessageHandler msghandler,
MessageWriter msgwriter,
ProgressBar progressbar)
indexer - provides the search indexmsghandler - to process status and other messages.msgwriter - to receive status and other messages.progressbar - (optional) to track search status.| Method Detail |
|---|
public SearchHit[] search(String queryString)
search in class FinderqueryString - the query string used for the search.
public final org.apache.lucene.queryParser.QueryParser getQueryParser()
protected void clearIndexDirectory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||