On 5/25/06, Gary Wilson <[EMAIL PROTECTED]> wrote:
> Yes, I would like to provide my users with a single search box where
> they could enter a first name, a last name, or a first name and last
> name.  So maybe...
>
> if one word entered:
>     search in last name OR first name
> elif two words entered:
>     search in (last name AND first name) OR (first name AND last name)
> elif more than two words entered:
>     ignore words in between first and last and treat as two words
> entered

That's precisely what I'd recommend -- and it's not very difficult to
implement, unless you want to let your users put phrases in double
quotes, which can be a pain to parse.

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to