That works.  Thanks.

________________________________
From: Markus Jelsma <markus.jel...@openindex.io>
To: solr-user@lucene.apache.org
Cc: M Singh <mans6si...@yahoo.com>
Sent: Thu, July 14, 2011 4:37:57 PM
Subject: Re: How to use solr.PatternReplaceFilterFactory with ampersand in 
pattern

You're in XML so you must escape it properly with &amp; etc.
> 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