Re: A rant and a question...
Re: A rant and a question...
- Subject: Re: A rant and a question...
- From: Brad Bumgarner <email@hidden>
- Date: Tue, 25 Jul 2006 11:06:02 -0600
On Jul 25, 2006, at 10:46 AM, Mike Blaguszewski wrote:
I don't know how you're doing it now, but how about thinking about
it in terms of where the split point between first and last names
is. Then generate queries with each split point and OR them all
together. Oh, and for every query also include a version with First
and Last reversed if you want to handle reverse-entered names. For
example:
(First = "" AND Last = "Betty Jo Bealoski") OR
(First = "Betty" AND Last = "Jo Bealoski") OR
(First = "Betty Jo" AND Last = "Bealoski") OR
(First = "Betty Jo Bealoski" Last = ") OR
(First = "Jo Bealoski" AND Last = "Betty") OR
...
<snip>
Oh, and an implementation note: create an NSArray of tokens right
away. If you try to run the algorithm using string indices you'll
go crazy.
Thanks for the approach, Mike. I should be able to write an algorthym
to do that. I haven't even made it to the token field portion yet.
However I do intend to send it an array of tokens. Once I GET the
array, the tokens should be easy. (I say that now. lol)
Brad Bumgarner, CTA
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden