Hi all,
I'm trying to exclude a term from a proximity search and wondered if the thinking below will do the job.
First, a little background: we have some emails in our data, and one of the fields we're interested in is the recipient list. In there we typically have numerous addressees, separated by semi-colons: "james_smith@somewhere.com;james_richards@nowhere.com;susanh@blahblah.org"....
We're looking for all the "james" terms within (for instance) 20 characters of "somewhere". The trouble is, we want to make sure the proximity search doesn't look behind "james" and accidentally pull a user also with somewhere.com. To do this we need to exclude the semi-colon from the proximity search. I think this might do the job, but I'm not sure:
select * from mytable where '+james w/20 somewhere -\;'
Don't know if I need to escape the semi-colon, or if there's another way to go about this?
Thanks again.
I'm trying to exclude a term from a proximity search and wondered if the thinking below will do the job.
First, a little background: we have some emails in our data, and one of the fields we're interested in is the recipient list. In there we typically have numerous addressees, separated by semi-colons: "james_smith@somewhere.com;james_richards@nowhere.com;susanh@blahblah.org"....
We're looking for all the "james" terms within (for instance) 20 characters of "somewhere". The trouble is, we want to make sure the proximity search doesn't look behind "james" and accidentally pull a user also with somewhere.com. To do this we need to exclude the semi-colon from the proximity search. I think this might do the job, but I'm not sure:
select * from mytable where '+james w/20 somewhere -\;'
Don't know if I need to escape the semi-colon, or if there's another way to go about this?
Thanks again.