org.kitesdk.morphline.solrcell
Class TrimSolrContentHandlerFactory

java.lang.Object
  extended by org.apache.solr.handler.extraction.SolrContentHandlerFactory
      extended by org.kitesdk.morphline.solrcell.TrimSolrContentHandlerFactory

public class TrimSolrContentHandlerFactory
extends org.apache.solr.handler.extraction.SolrContentHandlerFactory

SolrContentHandler and associated factory that trims field values on output. This prevents exceptions on parsing integer fields inside Solr server.


Field Summary
 
Fields inherited from class org.apache.solr.handler.extraction.SolrContentHandlerFactory
dateFormats
 
Constructor Summary
TrimSolrContentHandlerFactory(Collection<String> dateFormats)
           
 
Method Summary
 org.apache.solr.handler.extraction.SolrContentHandler createSolrContentHandler(org.apache.tika.metadata.Metadata metadata, org.apache.solr.common.params.SolrParams params, org.apache.solr.schema.IndexSchema schema)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrimSolrContentHandlerFactory

public TrimSolrContentHandlerFactory(Collection<String> dateFormats)
Method Detail

createSolrContentHandler

public org.apache.solr.handler.extraction.SolrContentHandler createSolrContentHandler(org.apache.tika.metadata.Metadata metadata,
                                                                                      org.apache.solr.common.params.SolrParams params,
                                                                                      org.apache.solr.schema.IndexSchema schema)
Overrides:
createSolrContentHandler in class org.apache.solr.handler.extraction.SolrContentHandlerFactory


Copyright © 2013–2014. All rights reserved.