Filter on impossible to match values (null, empty) #539
Replies: 7 comments 20 replies
-
I think if it can mimic SQL like If you think about it as a UI, when people select "Is empty", there will be no input field also. I have another unrelated questions. Since we on the topic of filtering. I do have more filters in mind like:
All copied from Notion filter. I am not sure if you guys plan on that also? |
Beta Was this translation helpful? Give feedback.
-
This is purely personal taste, I like the idea of being able to do that as in SQL. These are super common filters for someone having already used a SQL database. What you are suggesting @irevoire, is to have @mech Do you need to have both I'm asking that because maybe having Having both brings more versatility but I wonder if it's not introducing some complexity. |
Beta Was this translation helpful? Give feedback.
-
The ability to compare two fields could be a nice addition? Various date and time filters would also be very nice, like being able to select users having birthday today, without having to explicit add a field containing only the day and month. |
Beta Was this translation helpful? Give feedback.
-
I think this is a very important feature, but using the I suggest simply introducing new operators
common query :
common query : |
Beta Was this translation helpful? Give feedback.
-
Hello everyone 👋 We've just released the first RC (release candidate) of Meilisearch containing this new feature! docker run -it --rm -p 7700:7700 -v $(pwd)/meili_data:/meili_data getmeili/meilisearch:v1.2.0-rc.0 You are welcome to leave your feedback in this discussion. If you encounter any bugs, please report them here. 🎉 Official and stable release containing this change will be available on June 5th, 2023 |
Beta Was this translation helpful? Give feedback.
-
Hey folks 👋 v1.2 has been released! 🐻❄️ We've introduced two new filters:
📚 https://www.meilisearch.com/docs/learn/advanced/filtering#is-null |
Beta Was this translation helpful? Give feedback.
-
I know this is a closed thread, forgive me if this is the wrong spot to ask. I did dig through documentation, github issues and Q&A and could not find exactly this issue being discussed--though it's entirely possible I missed something. If you'd prefer that I direct the question elsewhere or open a separate discussion, please let me know and I'll promptly update. For the sake of space efficiency, some documents in my index are intentionally missing fields for which there is no, and will never be a, value. Initializing all fields for every document (with null or empty) will consume a great deal of extra space, which I would prefer to avoid.
Every single one of these filter expressions will return the product with "id-02".
Is there at all a way to filter out documents that are simple "missing" the targeted field? Thanks for your help. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This discussion comes from this comment on the Meilisearch repository where a user would like to select the fields whose value is equal to
null
: meilisearch/meilisearch#2484 (comment).Currently, all these fields can't be matched by our filters.
@mech, since you're the first one asking for this feature, I would love to know how you would like to select these fields.
I was thinking of introducing a new keyword named
IS
that could be followed byEMPTY
orNULL
but if there is no other values it feels a little bit overkill 🤔Beta Was this translation helpful? Give feedback.
All reactions