Describe the bug
The distinct search parameter or index setting are not applied on top of the final list of results, when using hybrid of federated search, possibly resulting in multiple documents with the same value for the distinct attribute being returned by the search.
To Reproduce
Steps to reproduce the behavior:
- Perform a hybrid search with a distinct attribute, such that there exist two documents that are respectively a hit for the full text search and for the semantic search, but not for the other, while sharing the same value in the
distinct field.
- Observe that both documents are part of the results.
Expected behavior
No two documents should have the same value in the distinct field in results.
Meilisearch version:
Reported in v1.13, but affects all versions of Meilisearch since v1.6 and up to v1.14 at the time of writing
Additional context
Internal report: https://github.com/meilisearch/meilisearch-support/issues/862