Add the ability to retrieve the exhaustive list of filterable attributes matching the patterns #844
Replies: 2 comments 1 reply
-
Hey! Super interesting idea, but I feel this should be a separate route. Also it would be nice to be able to filter by features (e.g. "filterable.filter.comparable = true"), and to have a paginated list. We do have users with about 65k fields. Maybe even to be able to search them, so that a UI can put the beginning of a field and retrieve a list of auto completions |
Beta Was this translation helpful? Give feedback.
-
hey @ManyTheFish, @macraig, we're spawning a usage page about this, we'd need some API work.
https://www.notion.so/meilisearch/Get-field-metadata-usage-2164b06b651f80cfa255c08bf19c21e4 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
The new filterable attribute API now provides a way to specify patterns instead of listing all the attributes.

However, there is no way in Meilisearch to retrieve the exhaustive list of fields matching each pattern, and having an exhaustive list would ease the implementation of user facing UIs on the cloud, like filter dropdowns:
The only way to have an exhaustive list of fields is to recompute it on the front side
Potential Solution
A way solve this issue would be to add a new subfield in the /stats route linking the attributes with their features like:
these seems a bit big but we could reduce the size by only printing the "activated" features as below:
Beta Was this translation helpful? Give feedback.
All reactions