facetDistribution being limited by distinctAttribute does not always make sense #741
chamby
started this conversation in
Feedback & Feature Proposal
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now
facetDistribution
is limited by the use ofdistinctAttribute
. The implementation makes sense but is not ideal from a user perspective.My use case matches Meilisearch's own example.
I only want to show distinct results based on a single graphic design but with many variants of color, material, and cut represented within that design. The faceted attributes will decide which result for each design is the most relevant. The following screenshot shows many color attributes in the result set.
If I narrow the search to precisely one distinct result the problem becomes more obvious. The
facetDistribution
is built from the distinct results ignoring that there are still many valid/possible results within the distinct design group. Other colors are still relevant for the color facet to report, but thedistinctAttribute
prevents this.Here are the results with the same search criteria when I disable the
distinctAttribute
. Now the facets show what I expect.Would it be possible for Meilisearch to return a
facetDistribution
that ignoresdistinctAttribute
? A user should be able to select purple and see the single result swap from red to purple as the relevancy changes.Beta Was this translation helpful? Give feedback.
All reactions