FROM : Brad Bumgarner
DATE : Tue Jul 25 19:06:02 2006
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
DATE : Tue Jul 25 19:06:02 2006
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
| Related mails | Author | Date |
|---|---|---|
| Brad Bumgarner | Jul 25, 16:57 | |
| Shawn Erickson | Jul 25, 17:16 | |
| I. Savant | Jul 25, 17:16 | |
| I. Savant | Jul 25, 17:21 | |
| Brad Bumgarner | Jul 25, 17:46 | |
| Mike Blaguszewski | Jul 25, 18:46 | |
| I. Savant | Jul 25, 18:48 | |
| Brad Bumgarner | Jul 25, 19:06 | |
| Matt Neuburg | Jul 25, 19:34 | |
| Jerrod Fowkes | Jul 25, 20:14 | |
| Nicko van Someren | Jul 30, 13:54 |






Cocoa mail archive

