HTMLStripCharFilterFactory not working when using SolrJ java client

2009-11-10 Thread aseem cheema
Hey Guys, I have HTMLStripCharFilterFactory char filter declared in my schema.xml for fieldType text (code below). I am using this field type for body field of my schema. I am seeing different behavior when I use SolrJ to post a document (code below) and when I use the analysis.jsp. The text I am

Re: HTMLStripCharFilterFactory not working when using SolrJ java client

2009-11-10 Thread aseem cheema
I printed the UpdateRequest object (getXML) and the XML is: adddoc boost=1.0field name=urlhttp://haha.com/fieldfield name=bodylt;centergt;contentlt;/centergt;/field/doc/add I can see that the issue is because the HTML/XML are replaced by lt; gt; I understand that it is required to do so to keep

Re: HTMLStripCharFilterFactory not working when using SolrJ java client

2009-11-10 Thread aseem cheema
HTMLStripCharFilterFactory class has a constructor that accept escaptedTags. I believe this will solve my problem. But I am not sure how to pass this from schema.xml file. I have tried charFilter class=solr.HTMLStripCharFilterFactory escapedTags=lt;,gt;/ but that didn't work. Anybody? Thanks On