Hi:

I am using the solr.PatternReplaceFilterFactory with pattern as follows to 
escape ampersand and $ signs:

        <filter class="solr.PatternReplaceFilterFactory" pattern="(&)"
            replacement="" />

I am getting error due to embedded ampersand

[Fatal Error] schema.xml:82:71: The entity name must immediately follow the '&' 
in the entity reference.
Exception in thread "main" org.xml.sax.SAXParseException: The entity name must 
immediately follow the '&' in the entity reference.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)


Is there anyway to make it work ?

Appreciate your help.  

Thanks.

Reply via email to