Thanks to you both for the replies. Always helpful.
I'm still relatively new to ES and haven't used facets or multi search API
yet but it seems now is my opportunity.
I guess I was thinking that Websockets might be an alternative to several
clients polling ES for the various count queries. Certain application
events already trigger re-indexing or deleting of documents and could just
as easily trigger the count queries.
On Sat, Apr 7, 2012 at 11:29 AM, Shay Banon email@example.com wrote:
You can have a single search request running several global scoped facet
filter to provide counts. Another option is multi search API. With both you
should use the search_type set to count. Websockets do not seem relevant
to this discussion (unless I am missing something).
On Fri, Apr 6, 2012 at 6:44 PM, Shane Witbeck firstname.lastname@example.org:
I'm in the process of putting together a web-based dashboard which polls
and does several count queries based on searches using several fields. Is
there a more efficient way to do this?
Specifically, is there a way to consolidate the calls to just one call?
I'm also interested if someone has done something similar using
websockets instead of polling?