meilisearch / meilisearch-python

Python wrapper for the Meilisearch API
https://meilisearch.com
MIT License
459 stars 85 forks source link

[v1.9] Accept `distinct` search parameter #989

Closed curquiza closed 2 months ago

curquiza commented 4 months ago

Following this central issue

This is related to a newly introduced feature in Meilisearch v1.9.0: use distinct search parameter.

Refer to docs for more information.

curquiza commented 2 months ago

Missing search_parameter_reference_distinct_1 in #1005

curquiza commented 2 months ago

@aweidner

Note that the issue mentions adding the code sample for distinct_attribute but it looks like this code sample is already in place according to the docs: https://www.meilisearch.com/docs/learn/relevancy/distinct_attribute#setting-a-distinct-attribute-during-configuration. Happy to amend this PR if that's not the case and I'm misreading this.

The missing code sample is used here: https://www.meilisearch.com/docs/reference/api/search#distinct-attributes-at-search-time

And of course thank you for your previous PR @aweidner 🙏 ❤️