|
|||||||||
| 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.xnode.search.XNodeFinder
public class XNodeFinder
Implements the Finder interface, providing a
Lucene-based search engine designed for an XNodeStore.
| Nested Class Summary | |
|---|---|
protected class |
XNodeFinder.CacheProcessor
Extends TimerTask, creating a low-priority process that sequentially flushes the XNodeStoreChangeCache of Collection change entries, deleting each cache entry as the search index is updated accordingly. |
| Field Summary | |
|---|---|
protected static boolean |
cacheActive
|
static long |
flush_period
The period in milliseconds between cache flush events. |
protected Timer |
m_flush_timer
|
protected org.apache.lucene.queryParser.QueryParser |
m_qp
|
protected Services |
srvs
|
protected XNodeStore |
xns
|
| Fields inherited from class org.ceryle.util.search.Finder |
|---|
m_indexer, mh, mw, progress |
| Constructor Summary | |
|---|---|
XNodeFinder(XNodeIndexer indexer,
MessageHandler msghandler,
MessageWriter msgwriter,
ProgressBar progressBar)
Constructor for an implementation of an XNodeFinder. |
|
| 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). |
void |
setChangeCacheFlushing(boolean active)
When true, sets up the timer to periodically flush the database change cache. |
| 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 |
|---|
public static long flush_period
protected org.apache.lucene.queryParser.QueryParser m_qp
protected static boolean cacheActive
protected Timer m_flush_timer
protected XNodeStore xns
protected Services srvs
| Constructor Detail |
|---|
public XNodeFinder(XNodeIndexer indexer,
MessageHandler msghandler,
MessageWriter msgwriter,
ProgressBar progressBar)
indexer - containing the search domains.msghandler - 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()
public void setChangeCacheFlushing(boolean active)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||