Setting the locale through the Drupal Solr API?

Events happening in the community are now at Drupal community events on www.drupal.org.
bhp's picture

We have a website which is mostly English, but some of the fields in some of our content types are in another language. This other language has different rules for alphabetization, etc. We'd like to be able to sort searches on these fields using the appropriate locale.

You can do this in the Solr schema.xml file by adding the appropriate locale="..." attribute to the field definitions. I'm wondering whether there's a way to do this through the Drupal API, so that we don't need to modify the schema.xml file. Has anyone else looked into this idea?

Lucene, Nutch and Solr

Group organizers

Group categories

Projects

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week