Maybe not expose query here, but just filter? A query implies some sort of scoring mechanism, which is not the case right now. We just collect the matching terms, and link them to related docs. If we somehow later on have some scoring mechanism (like score_mode in p/c) we can add it then. If there are queries which don't have a filter variant, users can always use the query filter as wrapper in the dsl.