Elasticsearch-dsl-py: Add support for the multi_terms aggregation

Created on 30 Jun 2021  路  10Comments  路  Source: elastic/elasticsearch-dsl-py

Good day!

How can i use multu-terms aggregation ?

I have got : elasticsearch_dsl.exceptions.UnknownDslObject: DSL classmulti_termsdoes not exist in agg.
Is there a method implemented?

Most helpful comment

No need to close this until it's implemented.

All 10 comments

This aggregation is new in Elasticsearch 7.12 and hasn't been implemented in Elasticsearch-DSL natively yet.

No need to close this until it's implemented.

same problem with combined_fields (new in elastic_search 7.13):

elasticsearch_dsl.exceptions.UnknownDslObject: DSL class `combined_fields` does not exist in query.

While waiting for it to be implemented, is there a workaround to tell DSL "don't bother if you don't understand it, just add the parameter in the elastic search request"

Any idea on timeline for the 'multi_terms' aggregation being natively supported in the elasticsearch dsl? Cheers!

I've just sent a pr for this issue, could you review it please? @sethmlarson

Also, should i create a new issue to implement "combined_fields" query?

Is there a workaround in the meantime?

I think there isn't. You can write it natively. @EvieGillie

could you please consider adding support to the "combined_fields" query? @Telomeraz

@Telomeraz should I create a new issue for combined_fields, as this one is closed?

@vipulg13 Yes, you can create a new one.

Was this page helpful?
0 / 5 - 0 ratings