Filter on field type #634
ahmednfwela
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
-
this is a continuation on #539 and meilisearch/meilisearch#3571
I suggest adding additional filters based on field types
IS STRING
,IS BOOLEAN
,IS NUMBER
,IS ARRAY
,IS OBJECT
(in addition toIS NULL
andIS EMPTY
)why this is useful:
a filter for
tags = 't1'
will return both documents, but developers might want to search for books that contain a single tag, so they can addtags = 't1' AND tags IS STRING
this query:
tags IS EMPTY
will match the 2 objects, but if users want to match only empty strings they can do:tags IS STRING AND tags IS EMPTY
Beta Was this translation helpful? Give feedback.
All reactions