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 MultiTerms Aggregation #663

Closed
wants to merge 4 commits into from
Closed

Conversation

mckirk
Copy link
Contributor

@mckirk mckirk commented Jan 29, 2024

Description

This change makes it possible to use the multi_terms bucket aggregation, using the syntax

aggs.MultiTerms(terms=[{"field": "tags"}, {"field": "author.row"}])

It is similar to PR#1543 from the elasticsearch-dsl-py repo.
I hope that is okay, since that project is also licensed under Apache 2.0.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link

codecov bot commented Jan 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.15%. Comparing base (d905bef) to head (22a970c).
Report is 64 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #663   +/-   ##
=======================================
  Coverage   72.14%   72.15%           
=======================================
  Files          89       89           
  Lines        7945     7947    +2     
=======================================
+ Hits         5732     5734    +2     
  Misses       2213     2213           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: mckirk <[email protected]>
Signed-off-by: mckirk <[email protected]>
@dblock
Copy link
Member

dblock commented Feb 1, 2024

How does one use it? Maybe add to guides/ ?

Copy link
Collaborator

@saimedhi saimedhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include documentation in the guides for usage instructions. Thank you.

@saimedhi
Copy link
Collaborator

Hello @mckirk, could you please implement the requested changes? Thank you!

@dblock
Copy link
Member

dblock commented Aug 15, 2024

Rebased in #797.

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

Successfully merging this pull request may close these issues.

3 participants