Maneki Neko wrote:
> I'm using the :order parameter to sort my search results on an
> attribute.  The default thinking_sphinx sort is separately sorting
> uppercase letters before the lowercase letters.  Is there anyway for
> me to tell it to sort case insensitive?

Unfortunately sphinx's sorting is byte based and can't do case
insensitive sorting.

I use a before_save callback on my model to save a upcase'd copy of my
string, then sort by that. I outlined a similar approach in this stack
overflow question:

http://stackoverflow.com/questions/1029204/accent-insensitive-ordering-in-sphinx

-- James Healy <jimmy-at-deefa-dot-com>  Mon, 17 Aug 2009 15:46:22 +1000

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to