public class BasicSearchProvider extends java.lang.Object implements SearchProvider
LATEST_VERSION| Constructor and Description |
|---|
BasicSearchProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<SearchResult> |
findPages(java.lang.String query,
Context wikiContext)
Search for pages matching a search query.
|
java.lang.String |
getProviderInfo() |
void |
initialize(Engine engine,
java.util.Properties props) |
void |
pageRemoved(Page page)
Delete a page from the search index.
|
QueryItem[] |
parseQuery(java.lang.String query)
Parses a query into something that we can use.
|
void |
reindexPage(Page page)
Adds a WikiPage for indexing queue.
|
public BasicSearchProvider()
public void initialize(Engine engine, java.util.Properties props) throws NoRequiredPropertyException, java.io.IOException
initialize in interface WikiProviderNoRequiredPropertyExceptionjava.io.IOExceptionpublic void pageRemoved(Page page)
pageRemoved in interface SearchProviderpage - Page to remove from search index.public void reindexPage(Page page)
reindexPage in interface SearchProviderpage - The WikiPage to be indexed.public QueryItem[] parseQuery(java.lang.String query)
query - A query string.public java.util.Collection<SearchResult> findPages(java.lang.String query, Context wikiContext)
findPages in interface SearchProviderquery - query to search forwikiContext - the context within which to run the searchpublic java.lang.String getProviderInfo()
getProviderInfo in interface WikiProviderCopyright (c) 2001-2022 The Apache Software Foundation. All rights reserved.