public class ExtractingDocumentLoader extends ContentStreamLoader
Modifier and Type | Field and Description |
---|---|
protected org.apache.tika.parser.AutoDetectParser |
autoDetectParser |
protected org.apache.tika.config.TikaConfig |
config |
protected SolrContentHandlerFactory |
factory |
static String |
TEXT_FORMAT
Extract Only supported format
|
static String |
XML_FORMAT
Extract Only supported format.
|
errHeader
Constructor and Description |
---|
ExtractingDocumentLoader(SolrQueryRequest req,
UpdateRequestProcessor processor,
org.apache.tika.config.TikaConfig config,
SolrContentHandlerFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
load(SolrQueryRequest req,
SolrQueryResponse rsp,
ContentStream stream)
Loaders are responsible for closing the stream
|
getErrHeader, setErrHeader
public static final String TEXT_FORMAT
public static final String XML_FORMAT
protected org.apache.tika.parser.AutoDetectParser autoDetectParser
protected org.apache.tika.config.TikaConfig config
protected SolrContentHandlerFactory factory
public ExtractingDocumentLoader(SolrQueryRequest req, UpdateRequestProcessor processor, org.apache.tika.config.TikaConfig config, SolrContentHandlerFactory factory)
public void load(SolrQueryRequest req, SolrQueryResponse rsp, ContentStream stream) throws IOException
ContentStreamLoader
load
in class ContentStreamLoader
req
- stream
- rsp
- The response, in case the Loader wishes to add anythingIOException