Hi,
I have a field that is a text field eg: R500,000-550,000 Per Annum,
R350,000-550,000 Per Annum Cost To Company etc. 
I would like to facet on the salary range. 
I have created a new field type
<fieldType name="remuneration" class="solr.TextField" sortMissingLast="true"
omitNorms="true">
                        <analyzer>
                                <tokenizer 
class="solr.KeywordTokenizerFactory"/>
                                <filter class="solr.LowerCaseFilterFactory" />
                                <filter class="solr.TrimFilterFactory" />
                                <filter 
class="solr.PatternReplaceFilterFactory" pattern="([a-z])"
replacement="" replace="all"       />
                        </analyzer>
                </fieldType>
to remove all the letters. 

I have to two fields like this:
<field name="Remuneration" type="string" indexed="true" stored="true"/>
<field name="Remuneration_strip" type="remuneration" indexed="true"
stored="true"/>

And then the copy field:
<copyField source="Remuneration" dest="Remuneration_strip"/>

But my index still has all the text. Am I misunderstanding? Where have I
gone wrong? Any help would be greatly appreciated!
Kirsty

-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Help-with-PatternReplaceFilterFactory-tp847408p847408.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to