-
Notifications
You must be signed in to change notification settings - Fork 1.3k
How to use @CountQuery? #1915
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Here is my query @query("{"bool": {"must": [{"regexp": {"id": ".?0."}}, {"regexp": {"categoryname": ".?1."}}]}}") How do I get count from this query? |
I tried to get the size of the returning list but it's limited to 10 because of aggregation. I need the full count amount. |
@CountQuery("{"bool": {"must": [{"regexp": {"id": ".?0."}}, {"regexp": {"categoryname": ".?1."}}]}}")
Long getFeedbacks(String id, String categoryName); what aggregation? |
Well idk if it's aggregation or not but the result size is always 10. It's like it has a limiter for the count. Is there any way I can get the result size for the correct total amount instead of 10? |
I just ran a test in a local program and a I found an issue with the execution of |
How did you put the annotation? Because when I replace @query with @CountQuery there, I get an error saying "No column found for type GetFeedbacks". |
@CountQuery("{\"fuzzy\":{\"last-name\":\"?0\"}}")
long countByLastNameFuzzy(final String lastName); I just use |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
I couldn't find any examples online. How do I extract count from this? Can I make the return type as List in my repo and get count at the same time?
The text was updated successfully, but these errors were encountered: