You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by meghana <me...@amultek.com> on 2012/01/05 14:07:38 UTC

prevent PlainTextEntityProcessor to encode text

Hi all,

I am importing one field into solr using PlainTextEntityProcessor from a
text file , which have text in XML format. after importing it some of the
text get encoded (e.g. it convert quotation mark(") to &quot;)

Can i prevent it to not encode XML and keep it as it is. (like do not
convert quotation mark to &quot;)

Plz help me
Thanks 
Meghana

--
View this message in context: http://lucene.472066.n3.nabble.com/prevent-PlainTextEntityProcessor-to-encode-text-tp3634744p3634744.html
Sent from the Solr - User mailing list archive at Nabble.com.

Re: prevent PlainTextEntityProcessor to encode text

Posted by meghana <me...@amultek.com>.
Aslo i found that XPathEntityProcessor doesn't encode text. 

but if i try to import data using XpathEnityProcessor it does not import
data for my Mfld field (non-multivalued). 

below what i have tried. 
--------------------------------
  <entity name="x" onError="continue"  processor="XPathEntityProcessor"
forEach="/xa"  url="${SRC.FileName}" dataSource="FS">
                     <field column="Mfld" xpath="/xa" />
              </entity>


String will be like below
-------------------------------
<xa><xb impt="12">this is solr!!</xb><xb impt="18">Welcome</xb><xb
impt="35">Hello test</xb></xa>


it works well , if i provide path "xa/xb" , but don't work for "/xa"
Can anybody have any idea?

--
View this message in context: http://lucene.472066.n3.nabble.com/prevent-PlainTextEntityProcessor-to-encode-text-tp3634744p3637402.html
Sent from the Solr - User mailing list archive at Nabble.com.