Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aggregation support in the percolate api #4245

Closed
martijnvg opened this issue Nov 25, 2013 · 2 comments
Closed

Add aggregation support in the percolate api #4245

martijnvg opened this issue Nov 25, 2013 · 2 comments

Comments

@martijnvg
Copy link
Member

Add aggregation support in the percolate api, just like the facet support.

@benneic
Copy link

benneic commented Jan 14, 2014

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?

@martijnvg
Copy link
Member Author

@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?

No, it doesn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants