Get non-selected facet values


We tried to create facets with multiple options:

=== Document Type ===
[ ] Word (42)
[x] PDF  (96)
[ ] Excel(11)
[ ] HTML (63)

Unfortunately if you select one facet, you do not get the counts for other facet values. Is it possible to get values and counts for not selected facets?


The API will not return the other values once you apply one of them as a filter, but you can cache them yourself in the UI. After the results reload, continue to display the original list of filters, with some of them selected and some not, accordingly. Once the user changes the main query, reset the cached list and start over.


I’m curious; this is a core feature of elasticsearch (facets + aggregations). Why is the API limited to not use this features?


Swiftype was originally built on an older version of Elastic. I believe there are efforts to upgrade it to a more current version but I have no specific information.