org.apache.solr.morphlines.cell
Class TrimSolrContentHandlerFactory

java.lang.Object
  extended by org.apache.solr.handler.extraction.SolrContentHandlerFactory
      extended by org.apache.solr.morphlines.cell.TrimSolrContentHandlerFactory

public class TrimSolrContentHandlerFactory
extends 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
 SolrContentHandler createSolrContentHandler(org.apache.tika.metadata.Metadata metadata, SolrParams params, 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 SolrContentHandler createSolrContentHandler(org.apache.tika.metadata.Metadata metadata,
                                                   SolrParams params,
                                                   IndexSchema schema)
Overrides:
createSolrContentHandler in class SolrContentHandlerFactory


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