Your schema stuff didn't come through, possibly your mail server is removing it.
But two things come to mind. First, Solr has a trimfilterfactory, see: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.TrimFilterFactory <http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.TrimFilterFactory>If that is too late in the chain, you could t think about the PatternReplaceCharFilterFactory, see: http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternReplaceCharFilterFactory <http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternReplaceCharFilterFactory> Best Erick On Fri, Apr 8, 2011 at 10:26 AM, alexei <achugu...@gmail.com> wrote: > Hello Everyone, > > I am getting my integer field data from xml. Some docs fail because of a > newline character at the end of the string. I am attempting to strip spaces > and new line characters as follows: > > > > > > > The above still results in a numberformatexception. > > Is this the right approach or is there another filter available which will > do what I want? Perhaps something that will strip everything but integers > from the data. > > Thank You, > Alexei > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Strip-spaces-and-new-line-characters-from-data-tp2795453p2795453.html > Sent from the Solr - User mailing list archive at Nabble.com. >