简体   繁体   中英

Solr: Remove Double Quote Characters from a Field

Some of our documents have double quote characters in them and that can break some searches on those documents. How do I set up the PatternReplaceCharFilterFactory to remove double quote characters? I tried various escape characters but to no avail, eg:

<charFilter class="solr.PatternReplaceCharFilterFactory" pattern="[;:\\'\\"\\\\*/\\),\\(\\-]" replacement=" "/>

Does not appear to work as the core won't load with a schema parsing error.

显然,由于schema.xml是XML,因此我需要使用特殊的XML令牌&quot;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM