com.esri.gpt.control.rest
Class IndexStatsServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.esri.gpt.framework.context.BaseServlet
com.esri.gpt.control.rest.IndexStatsServlet
- All Implemented Interfaces:
- Serializable, Servlet, ServletConfig
public class IndexStatsServlet
- extends BaseServlet
Provides an HTTP REST for statistics associated with indexed documents.
Usage: http://host:port/context/rest/index/stats/fields
provides a summary listing of fields indexed and a count of documents indexed
Usage: http://host:port/context/rest/index/stats/fields?field=&maxRecords=&minFrequency=&maxFrequency=&f=
field - the target field name (required)
maxRecords - the maximum number of records to return (alias=max),
(optional, default=100, max=10000)
minFrequency - the mimimum term frequency to consider (optional, default=1)
maxFrequency - the maximum term frequency to consider (optional, default=none)
f - the response format, html or json (optional, default=html)
- See Also:
- Serialized Form
Methods inherited from class com.esri.gpt.framework.context.BaseServlet |
authenticate, doGet, doPost, getCredentials, getLogger, getParameterValue, getRealm, readInputCharacters, writeCharacterResponse, writeHtmlResponse, writeXmlResponse |
Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexStatsServlet
public IndexStatsServlet()
execute
protected void execute(HttpServletRequest request,
HttpServletResponse response,
RequestContext context)
throws Exception
- Processes the HTTP request.
- Specified by:
execute
in class BaseServlet
- Parameters:
request
- the HTTP request.response
- HTTP response.context
- request context
- Throws:
Exception
- if an exception occurs
Copyright 2011 Environmental Systems Research Institute.
All rights reserved.
Use is subject to
license terms.