org.apache.solr.morphlines.cell
Class StripNonCharSolrContentHandlerFactory

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

public class StripNonCharSolrContentHandlerFactory
extends SolrContentHandlerFactory

SolrContentHandler and associated factory that strips non-characters and trims 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
StripNonCharSolrContentHandlerFactory(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

StripNonCharSolrContentHandlerFactory

public StripNonCharSolrContentHandlerFactory(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.