|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ecyrd.jspwiki.filters.BasicPageFilter
com.ecyrd.jspwiki.search.SearchManager
public class SearchManager
Manages searching the Wiki.
Field Summary | |
---|---|
protected WikiEngine |
m_engine
|
static String |
PROP_SEARCHPROVIDER
|
static String |
PROP_USE_LUCENE
|
Constructor Summary | |
---|---|
SearchManager(WikiEngine engine,
Properties properties)
|
Method Summary | |
---|---|
Collection |
findPages(String query)
Sends a search to the current search provider. |
SearchProvider |
getSearchEngine()
|
void |
initialize(WikiEngine engine,
Properties properties)
This particular method starts off indexing and all sorts of various activities, so you need to run this last, after things are done. |
void |
pageRemoved(WikiPage page)
Removes the page from the search cache (if any). |
void |
postSave(WikiContext wikiContext,
String content)
This method is called after the page has been successfully saved. |
void |
reindexPage(WikiPage page)
Forces the reindex of the given page. |
Methods inherited from class com.ecyrd.jspwiki.filters.BasicPageFilter |
---|
initialize, postTranslate, preSave, preTranslate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROP_USE_LUCENE
public static final String PROP_SEARCHPROVIDER
protected WikiEngine m_engine
Constructor Detail |
---|
public SearchManager(WikiEngine engine, Properties properties) throws WikiException
WikiException
Method Detail |
---|
public void initialize(WikiEngine engine, Properties properties) throws WikiException
engine
- properties
-
WikiException
public SearchProvider getSearchEngine()
public Collection findPages(String query) throws ProviderException, IOException
query
- The query. Null is safe, and is interpreted as an empty query.
ProviderException
IOException
public void pageRemoved(WikiPage page)
page
- The page to removepublic void postSave(WikiContext wikiContext, String content)
PageFilter
Since the result is discarded from this method, this is only useful for things like counters, etc.
postSave
in interface PageFilter
postSave
in class BasicPageFilter
public void reindexPage(WikiPage page)
page
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |