Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr, mail # user - PatternReplaceFilterFactory group


Copy link to this message
-
RE: PatternReplaceFilterFactory group
Steven A Rowe 2012-02-16, 15:23
Hi O.,

PatternReplaceFilter(Factory) uses Matcher.replaceAll() or replaceFirst(), both of which take in a string that can include any or all groups using the syntax "$n", where n is the group number.  See the Matcher.appendReplacement() javadocs for an explanation of the functionality and syntax: <http://docs.oracle.com/javase/6/docs/api/java/util/regex/Matcher.html#appendReplacement%28java.lang.StringBuffer,%20java.lang.String%29>

Steve

> -----Original Message-----
> From: O. Klein [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 16, 2012 8:34 AM
> To: [EMAIL PROTECTED]
> Subject: PatternReplaceFilterFactory group
>
> PatternReplaceFilterFactory has no option to select the group to replace.
>
> Is there a reason for this, or could this be a nice feature?
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/PatternReplaceFilterFactory-group-
> tp3750201p3750201.html
> Sent from the Solr - User mailing list archive at Nabble.com.