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 Will Milspec <wi...@gmail.com> on 2014/05/30 22:44:53 UTC

localizing 'display names' for facet valus

Hi all,

What's the cleanest way to solve this problem:  localize the 'display
names' for facet values without storing the localized names in solr.

Example:
 -store 'country code' field in solr document
 -facet on country code
 -translate the country code based on the user's locale

For the facets, the English user would see:

   England   10
   France      20
   United States  5

and the French user would see:

   Angleterre    10
   France         20
   Etats Unis    5

Reading through Solr in Action, I don't see that solr has any 'native' tool
to 'decode facet names' I see that the 'key', will decode the facet name,
but not the actual value.

Additionally: we are interested in using AjaxSolr in the medium term
future. Between the library and/or javascript, does ajax-solr offer
additional techniques?

I wonder if anyone could recommend a clean solution.

thanks in advance,

will