Use the pattern replace filter factory
<filter class="solr.PatternReplaceFilterFactory" pattern="([^a-z])" replacement=""/> This will do exactly what you asked for http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.PatternReplaceFilterFactory On Mon, Jul 22, 2013 at 12:22 PM, Scatman <alan.aron...@sfr.com> wrote: > Hi, > > I was looking for an issue, in order to put some regular expression in the > StopWord.xml, but it seems that we can only have words in the file. > I'm just wondering if there is a feature which will be done in this way or > if someone got a tip it will help me a lot :) > > Best, > Scatman. > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Regex-in-Stopword-xml-tp4079412.html > Sent from the Solr - User mailing list archive at Nabble.com. >