Hi Brian,
You’d need to use a SpanNotQuery - something along these lines (schematically!):
SpanNotQuery(
SpanTermQuery(“privilege”),
SpanNearQuery(
SpanTermQuery(“privilege”),
SpanNearQuery(“received”, “this”, “email” … ),
4
I think you can come close with
NOT "received this e-mail in error privilege"~8
(or some other slop factor than 8)
This isn't quite what you're asking for as it would also exclude
docs with
"received privilege this e-mail error in"
in the field. Although i suppose
NOT "received this e-mail in e