You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @martijnvg can you explain how an aggregating percolator works? Does it retain running totals as you fire in documents in successive percolator get requests for aggregations like sum?
For example:
With an aggregating percolator I am expecting that I could filter a timestamp on a post by previous 2 days, then aggregate sum the likes on all posts, then filter again when sum_likes > 100.
So when first doc containing a post.likes=70 is queried against percolator, it has no match, then a subsequent post.likes=40 within the 2 day time range is tested against percolator and it matches. As new docs are tested against percolator and old posts are older than 2 days their post.likes are removed from the running sum_likes total?
@beichhor Aggregations (and facets) in percolate api operate on the matching queries for a single percolate request. This can be useful if your percolate queries have extra metadata and in the percolate api you can then get analytics for the matching queries based on aggregations on this metadata.
Does it retain running totals as you fire in documents in successive percolator get requests for aggregations like sum?
Add aggregation support in the percolate api, just like the facet support.
The text was updated successfully, but these errors were encountered: