public interface SearchProvider extends WikiProvider
LATEST_VERSION
Modifier and Type | Method and Description |
---|---|
Collection<SearchResult> |
findPages(String query,
WikiContext wikiContext)
Search for pages matching a search query
|
void |
pageRemoved(WikiPage page)
Delete a page from the search index
|
void |
reindexPage(WikiPage page)
Adds a WikiPage for indexing queue.
|
getProviderInfo, initialize
void pageRemoved(WikiPage page)
page
- Page to remove from search indexvoid reindexPage(WikiPage page)
page
- The WikiPage to be indexed.Collection<SearchResult> findPages(String query, WikiContext wikiContext) throws ProviderException, IOException
query
- query to search forwikiContext
- the context within which to run the searchProviderException
- if the search provider failed.IOException
- if for some reason the query could not be executed.Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.