meilisearch / meilisearch-python

Python wrapper for the Meilisearch API
https://www.meilisearch.com/
MIT License
452 stars 86 forks source link

Adds documentation and an integration test case for the `distinct` keyword in index `search` #1005

Closed aweidner closed 3 weeks ago

aweidner commented 3 weeks ago

Pull Request

Related issue

Fixes #989

What does this PR do?

This pull requests adds documentation for the distinct keyword in the code samples file. It also adds an integration test case that exercises the distinct functionality of search.

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.

PR checklist

Please check if your PR fulfills the following requirements:

Thank you so much for contributing to Meilisearch!

meili-bors[bot] commented 3 weeks ago

Build succeeded: