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 String
IGNORE_STOPWORDS
Request parameter.static String
MATCH_TEXT
Request parameter.static String
OVERLAPS
Request parameter.static String
SKIP_ALT_TOKENS
Request parameter.static String
TAGS_LIMIT
Request parameter.static String
XML_OFFSET_ADJUST
Request 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 String
getDescription()
Simple one or two line descriptionprotected OffsetCorrector
getOffsetCorrector(org.apache.solr.common.params.SolrParams params, Callable<String> inputStringProvider)
PermissionNameProvider.Name
getPermissionName(AuthorizationContext request)
void
handleRequestBody(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, isInternalShardRequest, normalizeReceivedException, processErrorMetricsOnException, 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
getJerseyResources, 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:SolrInfoBean
Simple one or two line description- Specified by:
getDescription
in interfaceSolrInfoBean
- Specified by:
getDescription
in classRequestHandlerBase
-
handleRequestBody
public void handleRequestBody(SolrQueryRequest req, SolrQueryResponse rsp) throws Exception
- Specified by:
handleRequestBody
in 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
-
-