> 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