-
Notifications
You must be signed in to change notification settings - Fork 728
track_total_hits support? #666
Comments
Very Late But I Found one trick about this. Search search = new Search.Builder(query).addIndex("*").addCleanApiParameter("?rest_total_hits_as_int=true").build();
and when search execute
|
thanks, better if |
Oh!! Sorry.. I answered wrong answer...
It doen't work |
@panickery Hi, I tried this method, but I reported it wrong.The error message is as follows Result: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"[rest_total_hits_as_int] cannot be used if the tracking of total hits is not accurate, got 50000"}],"type":"illegal_argument_exception","reason":"[rest_total_hits_as_int] cannot be used if the tracking of total hits is not accurate, got 50000"},"status":400}, isSucceeded: false, response code: 400, error message: {"root_cause":[{"type":"illegal_argument_exception","reason":"[rest_total_hits_as_int] cannot be used if the tracking of total hits is not accurate, got 50000"}],"type":"illegal_argument_exception","reason":"[rest_total_hits_as_int] cannot be used if the tracking of total hits is not accurate, got 50000"} |
No description provided.
The text was updated successfully, but these errors were encountered: