org.apache.solr.morphlines.cell

## Class StripNonCharSolrContentHandlerFactory

- java.lang.Object
- - org.apache.solr.handler.extraction.SolrContentHandlerFactory
  - - 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

    Constructors
    Constructor and Description
    `StripNonCharSolrContentHandlerFactory(Collection<String> dateFormats)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `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-2016 Apache Software Foundation. All Rights Reserved.