elastic / elasticsearch-dsl-py

High level Python client for Elasticsearch
http://elasticsearch-dsl.readthedocs.org
Apache License 2.0
3.84k stars 801 forks source link

Terms query errors when passing the boost parameter #1905

Closed Thijsvandepoll closed 2 months ago

Thijsvandepoll commented 2 months ago

When I upgraded to the latest version of the Elasticsearch-DSL library, I found a bug that you cannot pass the boost parameter anymore, because it tries to parse everything as a list. This is an example that fails:

query.Terms(title=["Something"], boost=2)

Hope the problem is clear.

miguelgrinberg commented 2 months ago

Thanks, yes, this has been reported already in https://github.com/elastic/elasticsearch-dsl-py/pull/1904. We will publish a fix soon.