I need to retrieve result of query and facet counts for all searchable document
fields. I can't get correct results in case when facets counts are calculated
for field that is in search query. Facet counts are calculated to match the
whole query, but for this field I need to get values, that are constrained by
all query params except of query on current field (so facet values must to be
constrained by all query values except of current field itself).
Variant with performing one full query plus as many queries, as is the count of
search fields, gives me what I need, but I think that there must be a better
way to solve this problem.
P.S. Sorry for my English.