lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Ludwig <>
Subject Re: Customizing results
Date Wed, 10 Jun 2009 14:40:46 GMT
Manepalli, Kalyan schrieb:
> Hi,
> I am trying to customize the response that I receive from Solr. In the
> index I have multiple fields that contain the same data in different
> language.
> At the query time client specifies the language. Based on this param,
> I want to return the value, copied into a different field.
> Eg:
> <str name="location_da_dk">Lubang, Filippinerne</str>
> <str name="location_de_de">Lubang, Philippinen</str>
> <str name="location_en_us">Lubang, Philippines</str>
> <str name="location_es_es">Lubang, Filipinas</str>
> If the user specifies language as de_de, then I want to return the
> result as <str name="location">Lubang, Philippinen</str>

If you control how the client works, you could also consider using an
internationalization technology such as GNU Gettext for this purpose.
May or may not make sense in your particular situation.

Michael Ludwig

View raw message