org.apache.solr.handler.extraction
Class ExtractingDocumentLoader

java.lang.Object
  extended by org.apache.solr.handler.loader.ContentStreamLoader
      extended by org.apache.solr.handler.extraction.ExtractingDocumentLoader

public class ExtractingDocumentLoader
extends org.apache.solr.handler.loader.ContentStreamLoader

The class responsible for loading extracted content into Solr.


Field Summary
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 Summary
ExtractingDocumentLoader(org.apache.solr.request.SolrQueryRequest req, org.apache.solr.update.processor.UpdateRequestProcessor processor, org.apache.tika.config.TikaConfig config, SolrContentHandlerFactory factory)
           
 
Method Summary
 void load(org.apache.solr.request.SolrQueryRequest req, org.apache.solr.response.SolrQueryResponse rsp, org.apache.solr.common.util.ContentStream stream, org.apache.solr.update.processor.UpdateRequestProcessor processor)
           
 
Methods inherited from class org.apache.solr.handler.loader.ContentStreamLoader
getDefaultWT, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_FORMAT

public static final String TEXT_FORMAT
Extract Only supported format

See Also:
Constant Field Values

XML_FORMAT

public static final String XML_FORMAT
Extract Only supported format. Default

See Also:
Constant Field Values

autoDetectParser

protected org.apache.tika.parser.AutoDetectParser autoDetectParser

config

protected org.apache.tika.config.TikaConfig config

factory

protected SolrContentHandlerFactory factory
Constructor Detail

ExtractingDocumentLoader

public ExtractingDocumentLoader(org.apache.solr.request.SolrQueryRequest req,
                                org.apache.solr.update.processor.UpdateRequestProcessor processor,
                                org.apache.tika.config.TikaConfig config,
                                SolrContentHandlerFactory factory)
Method Detail

load

public void load(org.apache.solr.request.SolrQueryRequest req,
                 org.apache.solr.response.SolrQueryResponse rsp,
                 org.apache.solr.common.util.ContentStream stream,
                 org.apache.solr.update.processor.UpdateRequestProcessor processor)
          throws Exception
Specified by:
load in class org.apache.solr.handler.loader.ContentStreamLoader
Parameters:
req -
stream -
Throws:
IOException
Exception


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.