org.apache.wiki.search
Class SearchManager.JSONSearch
java.lang.Object
org.apache.wiki.search.SearchManager.JSONSearch
- All Implemented Interfaces:
- RPCCallable
- Enclosing class:
- SearchManager
public class SearchManager.JSONSearch
- extends Object
- implements RPCCallable
Provides a JSON RPC API to the JSPWiki Search Engine.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SearchManager.JSONSearch
public SearchManager.JSONSearch()
getSuggestions
public List getSuggestions(String wikiName,
int maxLength)
- Provides a list of suggestions to use for a page name.
Currently the algorithm just looks into the value parameter,
and returns all page names from that.
- Parameters:
wikiName
- the page namemaxLength
- maximum number of suggestions
- Returns:
- the suggestions
findPages
public List findPages(String searchString,
int maxLength)
- Performs a full search of pages.
- Parameters:
searchString
- The query stringmaxLength
- How many hits to return
- Returns:
- the pages found
Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.