org.apache.solr.morphlines.cell

## Class TrimSolrContentHandlerFactory

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

    Constructors
    Constructor and Description
    `TrimSolrContentHandlerFactory(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

    - #### 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-2016 Apache Software Foundation. All Rights Reserved.