One way would be to try do it in SQL, although you probably would want
to create a validation on usernames to prevent any new users from
cheating.

has "RADIANS(latitude)",  :as => :latitude,  :type => :float

On Jun 10, 9:28 am, Matt <[email protected]> wrote:
> I have a search that returns items ordered by their name. However,
> some users cheat and put special characters or numbers in the front of
> their name to show up first. Does anyone have any suggestions on how
> to prevent this?
>
> Ideally I could use a regexp to strip out any of these characters from
> the front of a name, but I'm not sure how to implement this in my
> define_index block.
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to