> I'm trying to figure out the best way to cut out all zeros > of an input string like "01.10." or "022.300"... > Is there such a filter in Solr or anything similar that I > can adapt to do the task?
With solr.MappingCharFilterFactory[1] you can replace all zeros with "" before tokenizer. <charFilter class="solr.MappingCharFilterFactory" mapping="mapping.txt"/> SolrHome/conf/mapping.txt file will contain this line: "0" => "" So that "01.10." will become "1.1." and "022.300" will become "22.3" Is that you want? [1]http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.MappingCharFilterFactory