On Tue, Dec 2, 2008 at 1:10 PM, liquid_rails <[EMAIL PROTECTED]> wrote:
...
> Does anyone know how I can get ultrasphinx to IGNORE the case of the
> first letter of the headline when sorting the results?  I've thought
> of adding another column to my table, headline_downcase where the
> headline is downcased, and doing a sort on that, but that just eats up
> memory.  There's got to be a better way!
...

While it feels somehow wrong, I've actually ended up finding an
ancillary support column to be useful. In addition to easily effecting
case-insensitive sorting, it made it easier to deal with other sorting
considerations, such as occasions when I wanted to also ignore leading
articles (a, an, the) when sorting.

Of course, I'm mentioning this with no knowledge of your space
constraints. YMMV.

-John

-- 
John Parker
[EMAIL PROTECTED]

--~--~---------~--~----~------------~-------~--~----~
SD Ruby mailing list
[email protected]
http://groups.google.com/group/sdruby
-~----------~----~----~----~------~----~------~--~---

Reply via email to