Package org.apache.solr.handler.tagger
Class TaggerRequestHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.tagger.TaggerRequestHandler
-
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
public class TaggerRequestHandler extends RequestHandlerBase
Scans posted text, looking for matching strings in the Solr index. The public static final String members are request parameters. This handler is also called the "SolrTextTagger".- Since:
- 7.4.0
-
-
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 StringIGNORE_STOPWORDSRequest parameter.static StringMATCH_TEXTRequest parameter.static StringOVERLAPSRequest parameter.static StringSKIP_ALT_TOKENSRequest parameter.static StringTAGS_LIMITRequest parameter.static StringXML_OFFSET_ADJUSTRequest parameter.-
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, 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 TaggerRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Simple one or two line descriptionprotected OffsetCorrectorgetOffsetCorrector(org.apache.solr.common.params.SolrParams params, Callable<String> inputStringProvider)PermissionNameProvider.NamegetPermissionName(AuthorizationContext request)voidhandleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp)-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getApis, getCategory, 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
-
OVERLAPS
public static final String OVERLAPS
Request parameter.- See Also:
- Constant Field Values
-
TAGS_LIMIT
public static final String TAGS_LIMIT
Request parameter.- See Also:
- Constant Field Values
-
MATCH_TEXT
public static final String MATCH_TEXT
Request parameter.- See Also:
- Constant Field Values
-
SKIP_ALT_TOKENS
public static final String SKIP_ALT_TOKENS
Request parameter.- See Also:
- Constant Field Values
-
IGNORE_STOPWORDS
public static final String IGNORE_STOPWORDS
Request parameter.- See Also:
- Constant Field Values
-
XML_OFFSET_ADJUST
public static final String XML_OFFSET_ADJUST
Request parameter.- See Also:
- Constant Field Values
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
-
getOffsetCorrector
protected OffsetCorrector getOffsetCorrector(org.apache.solr.common.params.SolrParams params, Callable<String> inputStringProvider) throws Exception
- Throws:
Exception
-
-