I just used Solr UI Analyzer for my test, or must i indexed it firstly? I used this XML code in my schema:
<fieldType name="direction1" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="<d1>.*</d1>" replacement=""/> <tokenizer class="solr.KeywordTokenizerFactory"/> </analyzer> </fieldType> This is my result: <http://lucene.472066.n3.nabble.com/file/n4179496/dir1.png> -- View this message in context: http://lucene.472066.n3.nabble.com/Tokenizer-or-Filter-tp4178346p4179496.html Sent from the Solr - User mailing list archive at Nabble.com.