lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Mannina <bmann...@free.fr>
Subject How to index text field with html entities ?
Date Fri, 29 Jul 2016 21:50:33 GMT
Dear Solr User,

Solr 5.0.1

I have several xml files that contains html entities in some fields.

I have a author field (english text) with this kind of text:

Brown &amp; Gammon

If I set my field like this:

<field name="au">Brown &amp; Gammon</field>

Solr generates error "Undeclared general entity"

if I add CDATA like this:

<field name="au"><![CDATA[Brown &amp; Gammon]]></field>

it seems that I can't search with the &

au:"brown & gammon"

Could you help me to find the right syntax ?

Thanks a lot,

Bruno




---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus
Avast.
https://www.avast.com/antivirus


Mime
View raw message