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.
|
| 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,
UpdateRequestProcessor processor)
Loaders are responsible for closing the stream
|
getDefaultWT, initpublic 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, UpdateRequestProcessor processor) throws Exception
ContentStreamLoaderload in class ContentStreamLoaderreq - The input SolrQueryRequestrsp - The response, in case the Loader wishes to add anythingstream - The ContentStream to addprocessor - The UpdateRequestProcessor to useExceptionCopyright © 2000–2014 The Apache Software Foundation. All rights reserved.