lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Walter Underwood <wun...@wunderwood.org>
Subject Re: How to index X™ as &#8482; (HTML decimal entity)
Date Wed, 20 Nov 2013 04:22:12 GMT
Why do you want to do this? You can always do this transformation on the presentation side.
Doing this on the search server could be a really bad idea.

wunder

On Nov 19, 2013, at 8:19 PM, "Jack Krupansky" <jack@basetechnology.com> wrote:

> You could use an update processor to map non-ASCII codes to SGML entities. You could
code it as a JavaScript script and use the stateless script update processor.
> 
> -- Jack Krupansky
> 
> -----Original Message----- From: Developer
> Sent: Tuesday, November 19, 2013 5:46 PM
> To: solr-user@lucene.apache.org
> Subject: How to index X™ as ™ (HTML decimal entity)
> 
> 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?
> 
> 
> 
> --
> View this message in context: http://lucene.472066.n3.nabble.com/How-to-index-X-as-8482-HTML-decimal-entity-tp4102002.html
> Sent from the Solr - User mailing list archive at Nabble.com. 

--
Walter Underwood
wunder@wunderwood.org




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message