Any analysis filtering affects the indexed value only, but the stored value would be unchanged from the original input value. An update processor lets you modify the original input value that will be stored.

-- Jack Krupansky

-----Original Message----- From: Uwe Reh
Sent: Wednesday, November 20, 2013 5:43 AM
To: solr-user@lucene.apache.org
Subject: Re: How to index X™ as ™ (HTML decimal entity)

What's about having a simple charfilter in the analyzer queue for
indexing *and* searching. e.g
<charFilter class="solr.PatternReplaceFilterFactory" pattern="™"
replacement="&#8482;" />
or
<charFilter class="solr.MappingCharFilterFactory"
mapping="mapping-specials.txt" />

Uwe

Am 19.11.2013 23:46, schrieb Developer:
I have a data coming in to SOLR as below.

<field name="displayName">X™ - Black</field>

I need to store the HTML Entity (decimal) equivalent value (i.e. &#8482;)
in SOLR rather than storing the original value.

Is there a way to do this?


Reply via email to