org.apache.wiki.search
Class SearchManager.JSONSearch

java.lang.Object
  extended by 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.


Constructor Summary
SearchManager.JSONSearch()
           
 
Method Summary
 List findPages(String searchString, int maxLength)
          Performs a full search of pages.
 List getSuggestions(String wikiName, int maxLength)
          Provides a list of suggestions to use for a page name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchManager.JSONSearch

public SearchManager.JSONSearch()
Method Detail

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 name
maxLength - 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 string
maxLength - How many hits to return
Returns:
the pages found


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.