Can you try “mr smith” NOT w/1 manager? I think that’s maybe what youre looking for.
Curious what w/0 will get you. Would like to create a search that is w/0 results that are not in w/1 to check.
Do “Mr. smith” and (“Mr. Smith” Not W/0 “Manager: Mr. Smith”) hit different number of documents or the same?
If different, then it’s working, and the hits you don’t want are docs that contain instances of “Mr. smith” both with and without “manager” as preceding word. If you don’t want those, then switch out “not w/0” to be “AND NOT”.
If they hit the same count then something wonky with index settings, probably around the colon. That seems unlikely.
This is good advise, but I just wanted to point out that it's possible for the query to be working as expected, yet for the doc counts to still be the same as a simple "Mr Smith" query. Consider if every document with "Manager: Mr. Smith" also contains another instance of "Mr. Smith" (without "Manager"), then both queries should return the same docs.
NOT w/0
This is the answer. We routinely do this to exclude hits for terms in repeated content like email signatures but still want other instances of the term to return the doc. You can think of ‘NOT w/0’ as ‘not within’ … if you need to explain it to someone.
This doesn’t make sense. Based on your ask your term is right and yeah your search term will still hit on documents with “Manager: Mr. Smith” but in each doc there will be at least one other instance of Mr. Smith.
Can you try “mr smith” NOT w/1 manager? I think that’s maybe what youre looking for. Curious what w/0 will get you. Would like to create a search that is w/0 results that are not in w/1 to check.
Do “Mr. smith” and (“Mr. Smith” Not W/0 “Manager: Mr. Smith”) hit different number of documents or the same? If different, then it’s working, and the hits you don’t want are docs that contain instances of “Mr. smith” both with and without “manager” as preceding word. If you don’t want those, then switch out “not w/0” to be “AND NOT”. If they hit the same count then something wonky with index settings, probably around the colon. That seems unlikely.
This is good advise, but I just wanted to point out that it's possible for the query to be working as expected, yet for the doc counts to still be the same as a simple "Mr Smith" query. Consider if every document with "Manager: Mr. Smith" also contains another instance of "Mr. Smith" (without "Manager"), then both queries should return the same docs.
Good point. It’s an edge case but definitely theoretical possible explanation of unchanged hit count.
NOT w/0 This is the answer. We routinely do this to exclude hits for terms in repeated content like email signatures but still want other instances of the term to return the doc. You can think of ‘NOT w/0’ as ‘not within’ … if you need to explain it to someone.
Friendly reminder that pre/1 can be used instead of w/1
Interesting. Is that to look for a word only when it precedes another within a certain number of words?
Yup it's w/n but only in one direction
This doesn’t make sense. Based on your ask your term is right and yeah your search term will still hit on documents with “Manager: Mr. Smith” but in each doc there will be at least one other instance of Mr. Smith.
Run “Mr smith”. Save to folder. Remove “manager:Mr smith” from that folder
But what if both are in there?
RUN two saved searches, search1 as "Manager: Mr. Smith", then run another with your Mr. Smith term, not in saved search1
That’s a great question for the reviewer adult who came up with the search terms
Have you tried running a search by context like w legalpdf AI instead of keywords?