I am sorry, but I can't get what you mean. I tried the HTMLStripCharFilter and PatternReplaceCharFilter. It doesn't work. Could you give me an example? Thanks!
<fieldType name="text_html" class="solr.TextField" positionIncrementGap="100"> <analyzer> <charFilter class="solr.HTMLStripCharFilterFactory"/> <tokenizer class="solr.WhitespaceTokenizerFactory"/> </analyzer> </fieldType> I also tried: <charFilter class="solr.PatternReplaceCharFilterFactory" pattern="([^a-z])" replacement="" maxBlockChars="10000" blockDelimiters="|"/> -- View this message in context: http://lucene.472066.n3.nabble.com/How-to-avoid-the-unexpected-character-error-tp3824726p3831064.html Sent from the Solr - User mailing list archive at Nabble.com.