lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Wilson <wilson.eri...@gmail.com>
Subject PatternReplaceFilterFactory -- what does this regex do?
Date Fri, 22 Mar 2013 14:39:41 GMT
I'm using the Solr Suggester for autocompletion with WFSTLookup suggest
component, and a text file with phrases and weights. (
http://wiki.apache.org/solr/Suggester)

I found that the following filter made it impossible to match on
ampersands. So I removed it. But I'm sure it was there for a reason. What
was this suppose to do?

<filter class="solr.PatternReplaceFilterFactory" pattern=
"([^\p{L}\p{M}\p{N}\p{Cs}]*[\p{L}\p{M}\p{N}\p{Cs}\_]+:)|([^\p{L}\p{M}\p{N}\p{Cs}])+"
replacement=" " replace="all"/>

Thanks,

Eric Wilson

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message