-
Hi, would it be possible to make all attributes filterable just like you can with searchable attributes? Right now what happens if I update the filterable attributes with I'd like to do this instead of going through the documents in the database to find all distinct attributes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey, @eikooc, you're right. Meilisearch doesn't currently support this. In the meantime, the only trick I can give you is that the nested fields already support this feature. {
"filterable": {
"id": 38,
"price": 85,
"colors": ["red", "green"]
}
// You can put any non-filterable fields you want here
} Then you can make the Warning But take care. Making everything filterable, including the fields that should be searchable, is generally not a good idea. |
Beta Was this translation helpful? Give feedback.
Hey, @eikooc, you're right. Meilisearch doesn't currently support this.
In the meantime, the only trick I can give you is that the nested fields already support this feature.
If you put all your filterable fields in a sub-object like that:
Then you can make the
filterable
field, well, filterable:{ "filterableAttributes": ["filterable"] }
, and it should make all the fields inside it filterable.Warning
But take care. Making everything filterable, including the fields that should be searchable, is generally not a good idea.
You want to have as few…