I was expecting to be able to write a common search query that looks for one word but only when it is not near another word. In typical search grammar, it might look like this:
Christmas NOT WITHIN/3 father
In this case, I want to find "Christmas" but not when it is very close to the word "father".
I thought MarkLogic could do this, but I am not finding any examples of that ability.
Does anybody know if it IS supported somehow, and if not is there a way to "hack it" easily?
I support I could just do a preliminary search for "Christmas", and count the number of hits. then do a search for "Christmas" NEAR "father", and count those too, then ignore a document when the counts are the same - but I prefer not to take this long-winded approach if I can avoid it.
Thanks.