3 ms·
Can you explain how a positional query is a subset of boolean queries? Intuitively it feels like the reverse would be true.
by rchakra3 11y ago
Can you explain how a positional query is a subset of boolean queries?
Intuitively it feels like the reverse would be true.
- bergetp 11y agoYou're right, but the point here is that positional queries are boolean queries plus positions. For example, document that match 'a NEAR b' are a subset of documents matching 'a AND b'. So if 'a AND b' has no matches, there is no need to execute the more expensive 'a NEAR b'.