If you want to sort by lang but not search by it, just add it as an attribute instead:
has lang Attributes are implicitly sortable, you don't need to add :sortable => true. Cheers -- Pat On 26/03/2009, at 2:16 AM, GoNZoYuMo wrote: > > Hi, > my app is localized and I'm trying to search for models which have a > 'lang' string field. > > Could someone tell me how can I search for a specific locale and/or > how to sort results by locales and specify which locale resulst I want > first ? > eg : looking for members and want to show french results first. > > I thought indexing the lang field and making it sortable but I don't > want it to be searchable since it has no sense. > > Thanks. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
