which allowed to do something like
(A OR B AND C OR D ...)
In our use-case, we realise that we need grouping i.e
(A OR B) AND (C OR D) AND (...)
In other words, we need the intersection of multiple contexts.
The attached patch allows to pass in a varargs of map, each one representing the each group. Looks a bit heavy IMHO.
This is an initial patch.
Exposing a filteredQuery will probably give the best flexibility to the end-users.