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> I need it to extract only the numbers from some other string. The strings can be anything: only letters (so it should replace it with an empty string), letters + numbers. The numbers can be in one of those formats 17000 --> ok 17,000 --> should be replaced with 17000 17.000 --> should be replaced with 17000 17k --> should be replaced with 17000 how can i accomplish this? -- View this message in context: http://lucene.472066.n3.nabble.com/Regex-replacement-not-working-tp3120748p3120748.html Sent from the Solr - User mailing list archive at Nabble.com.