public class SearchManager.JSONSearch extends Object implements WikiAjaxServlet
Modifier and Type | Field and Description |
---|---|
static String |
AJAX_ACTION_PAGES |
static String |
AJAX_ACTION_SUGGESTIONS |
static int |
DEFAULT_MAX_RESULTS |
int |
maxResults |
Constructor and Description |
---|
JSONSearch() |
Modifier and Type | Method and Description |
---|---|
List<Map<String,Object>> |
findPages(String searchString,
int maxLength,
WikiContext wikiContext)
Performs a full search of pages.
|
String |
getServletMapping() |
List<String> |
getSuggestions(String wikiName,
int maxLength)
Provides a list of suggestions to use for a page name.
|
void |
service(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
String actionName,
List<String> params) |
public static final String AJAX_ACTION_SUGGESTIONS
public static final String AJAX_ACTION_PAGES
public static final int DEFAULT_MAX_RESULTS
public int maxResults
public JSONSearch()
public String getServletMapping()
getServletMapping
in interface WikiAjaxServlet
public void service(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, String actionName, List<String> params) throws javax.servlet.ServletException, IOException
service
in interface WikiAjaxServlet
javax.servlet.ServletException
IOException
public List<String> getSuggestions(String wikiName, int maxLength)
wikiName
- the page namemaxLength
- maximum number of suggestionsCopyright © 2001-2019 The Apache Software Foundation. All rights reserved.