| org.jamwiki.SearchEngine
All known Subclasses: org.jamwiki.search.LuceneSearchEngine,
Method Summary | |
void | addToIndex(Topic topic, Collection links) Add a topic to the search index. | void | deleteFromIndex(Topic topic) Remove a topic from the search index. | Collection | findLinkedTo(String virtualWiki, String topicName) Find all documents that link to a specified topic.
Parameters: virtualWiki - The virtual wiki for the topic. Parameters: topicName - The name of the topic. | Collection | findResults(String virtualWiki, String text) Find all documents that contain a specific search term, ordered by relevance.
Parameters: virtualWiki - The virtual wiki for the topic. Parameters: text - The search term being searched for. | void | refreshIndex() Refresh the current search index by re-visiting all topic pages. |
addToIndex | void addToIndex(Topic topic, Collection links)(Code) | | Add a topic to the search index.
Parameters: topic - The Topic object that is to be added to the index. Parameters: links - A collection containing the topic names for all topics that linkto the current topic. |
deleteFromIndex | void deleteFromIndex(Topic topic)(Code) | | Remove a topic from the search index.
Parameters: topic - The topic object that is to be removed from the index. |
findLinkedTo | Collection findLinkedTo(String virtualWiki, String topicName)(Code) | | Find all documents that link to a specified topic.
Parameters: virtualWiki - The virtual wiki for the topic. Parameters: topicName - The name of the topic. A collection of SearchResultEntry objects for all documents thatlink to the topic. |
findResults | Collection findResults(String virtualWiki, String text)(Code) | | Find all documents that contain a specific search term, ordered by relevance.
Parameters: virtualWiki - The virtual wiki for the topic. Parameters: text - The search term being searched for. A collection of SearchResultEntry objects for all documents thatcontain the search term. |
refreshIndex | void refreshIndex() throws Exception(Code) | | Refresh the current search index by re-visiting all topic pages.
throws: Exception - Thrown if any error occurs while re-indexing the Wiki. |
|
|