Class ExtractingRequestHandler
- java.lang.Object
-
- org.apache.solr.handler.RequestHandlerBase
-
- org.apache.solr.handler.ContentStreamHandlerBase
-
- org.apache.solr.handler.extraction.ExtractingRequestHandler
-
- All Implemented Interfaces:
AutoCloseable
,ApiSupport
,SolrInfoBean
,NestedRequestHandler
,SolrMetricProducer
,SolrRequestHandler
,PermissionNameProvider
,SolrCoreAware
public class ExtractingRequestHandler extends ContentStreamHandlerBase implements SolrCoreAware, PermissionNameProvider
Handler for rich documents like PDF or Word or any other file format that Tika handles that need the text to be extracted first from the document.
-
-
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 protected org.apache.tika.config.TikaConfig
config
static String
CONFIG_LOCATION
protected SolrContentHandlerFactory
factory
static String
PARSE_CONTEXT_CONFIG
protected ParseContextConfig
parseContextConfig
-
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 ExtractingRequestHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SolrContentHandlerFactory
createFactory()
String
getDescription()
PermissionNameProvider.Name
getPermissionName(AuthorizationContext request)
void
inform(SolrCore core)
protected ContentStreamLoader
newLoader(SolrQueryRequest req, UpdateRequestProcessor processor)
-
Methods inherited from class org.apache.solr.handler.ContentStreamHandlerBase
checkCircuitBreakers, handleRequestBody, init
-
Methods inherited from class org.apache.solr.handler.RequestHandlerBase
getApis, getCategory, getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, 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
-
PARSE_CONTEXT_CONFIG
public static final String PARSE_CONTEXT_CONFIG
- See Also:
- Constant Field Values
-
CONFIG_LOCATION
public static final String CONFIG_LOCATION
- See Also:
- Constant Field Values
-
config
protected org.apache.tika.config.TikaConfig config
-
parseContextConfig
protected ParseContextConfig parseContextConfig
-
factory
protected SolrContentHandlerFactory factory
-
-
Method Detail
-
getPermissionName
public PermissionNameProvider.Name getPermissionName(AuthorizationContext request)
- Specified by:
getPermissionName
in interfacePermissionNameProvider
-
inform
public void inform(SolrCore core)
- Specified by:
inform
in interfaceSolrCoreAware
-
createFactory
protected SolrContentHandlerFactory createFactory()
-
newLoader
protected ContentStreamLoader newLoader(SolrQueryRequest req, UpdateRequestProcessor processor)
- Specified by:
newLoader
in classContentStreamHandlerBase
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceSolrInfoBean
- Specified by:
getDescription
in classRequestHandlerBase
-
-