Is there any way to set the limit to zero? #730
wolfogre
started this conversation in
Feedback & Feature Proposal
Replies: 1 comment 1 reply
-
Hi @wolfogre , thanks for the feedback! You didn't miss anything, the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Thanks for the amazing meilisearch project!
I encountered a problem while using it. I'm wondering if I missed anything.
I just want to get the total number of the search, no need to return any result to speed up. But zero limit will be reset to the default limit, and magic numbers like -1 are not allowed.
I encountered this issue in the Gitea project: go-gitea/gitea#29990, go-gitea/gitea@f886a75
Currently, I have to set it to 1, then clear the result before returning. It works, but I wonder if there's a better way to do it, since it seems Elasticsearch works well with zero limit.
Beta Was this translation helpful? Give feedback.
All reactions