sonic
sonic copied to clipboard
Possibility of facet values covering the whole result set
Firstly, thanks for sonic -- looks very promising! We are evaluating it for our project as a replacement for elasticsearch and wanted to discuss the feasibility of a feature here.
I know that with buckets, we can filter on the results, and from the current batch of results, the list of bucket values (for that batch only) can probably be generated on the querying application side (eg: by including bucket ID as part of the overall object ID, or by further processing the documents retrieved after the sonic results). But from sonic itself, is it possible to generate the list of all facet values covering the whole result set?
An example of what I am talking about (ignore the language here -- the facet drill down is on the left with the count for each value)
This is especially useful when there's a lot of possible values for a facet and it can't be pre-populated as a static list.
I have not looked closely at the sonic implementation so not sure how much of a challenge this would be to implement (or whether a feature like this is a good fit for sonic's design/goals). But if this is ok to do, I'm assuming we would have to come up with new search semantics for the sonic protocol.