Package org.apache.solr.handler.admin
Class LukeRequestHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.admin.LukeRequestHandler
-
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class LukeRequestHandler extends RequestHandlerBase
Exposes the internal lucene index. It's registered at /admin/luke by default.It is inspired by and modeled on Luke, the Lucene Index Browser that is currently a Lucene module: https://github.com/apache/lucene/tree/main/lucene/luke
- Since:
- solr 1.2
- See Also:
SegmentsInfoRequestHandler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetrics
-
Nested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.Name
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_COUNTstatic StringDOC_IDstatic StringIDstatic StringINCLUDE_INDEX_FIELD_FLAGSstatic StringNUMTERMS-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
appends, defaults, httpCaching, initArgs, invariants, metrics, solrMetricsContext
-
Fields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, values
-
Fields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE
-
-
Constructor Summary
Constructors Constructor Description LukeRequestHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SolrInfoBean.CategorygetCategory()Category of this componentStringgetDescription()Simple one or two line descriptionstatic SimpleOrderedMap<String>getFieldFlagsKey()static SimpleOrderedMap<Object>getIndexInfo(org.apache.lucene.index.DirectoryReader reader)PermissionNameProvider.NamegetPermissionName(AuthorizationContext request)voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getApis, getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, setPluginInfo
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.api.ApiSupport
registerV1, registerV2
-
Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
-
-
-
Field Detail
-
NUMTERMS
public static final String NUMTERMS
- See Also:
- Constant Field Values
-
INCLUDE_INDEX_FIELD_FLAGS
public static final String INCLUDE_INDEX_FIELD_FLAGS
- See Also:
- Constant Field Values
-
DOC_ID
public static final String DOC_ID
- See Also:
- Constant Field Values
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
DEFAULT_COUNT
public static final int DEFAULT_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
getFieldFlagsKey
public static SimpleOrderedMap<String> getFieldFlagsKey()
- Returns:
- a key to what each character means
-
getIndexInfo
public static SimpleOrderedMap<Object> getIndexInfo(org.apache.lucene.index.DirectoryReader reader) throws IOException
- Throws:
IOException
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
getCategory
public SolrInfoBean.Category getCategory()
Description copied from interface:SolrInfoBeanCategory of this component- Specified by:
getCategoryin interfaceSolrInfoBean- Overrides:
getCategoryin classRequestHandlerBase
-
-