Feature request: Support for filter queries as json #722
slatian
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment 2 replies
-
Hi @slatian , thanks for taking the time to leave your feedback. I understand that you'd like to remove the need to make sure everything is serialized correctly if possible. Would you mind telling us more about your use case? Would you rate the need for JSON support as critical, important, nice to have? Why?
The syntax in the other examples uses different strings, but I believe the example you shared is under "Combining arrays and strings". It's not clear to me either, I'll check with the engineering team and get back to you on this. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Both the facets endpoint and the filter attribute support filter strings (and filter strings in arrays).
While they are easy to use they have problem that one really has to watch out that everything is serialized correctly. The people working on Apache solr have figured this out quite some time ago and implemented their JSON API.
Meiliserch should have the capability to pass filters as JSON too.
So instead of passing the following example query:
or as array:
(Is the nested array containing only one string intentional here?)
One should be able to generate a filter like this:
Also note that there should be no magic behavior based on the content of the
field
andvalue
keys. This way one can focus on the application without worrying that some funny user/API supplied string screws up search queries.Beta Was this translation helpful? Give feedback.
All reactions