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