lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmet Arslan <iori...@yahoo.com>
Subject Re: Regex replacement not working!
Date Wed, 29 Jun 2011 10:20:17 GMT

> Hi, i have this bunch of lines in my
> schema.xml that should do a replacement
> but it doesn't work!
> 
>     <fieldType name="salary_max_text"
> class="solr.TextField"
> omitNorms="true">
>       <analyzer type="index">
>           <tokenizer
> class="solr.StandardTokenizerFactory"/>
>         <charFilter
> class="solr.PatternReplaceCharFilterFactory"
> pattern="([0-9]+k?[.,]?[0-9]*).*?([0-9]+k?[.,]?[0-9]*)"
> replacement="$2"/>
>       </analyzer>
>     </fieldType>
> 

<charFilter definitions should be above the tokenizer definition.
i.e., 
<analyzer
<charFilter
<tokenizer
<filter

Mime
View raw message