-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] - Elasticsearch v7 need to use track-total-hits
to return the correct total count
#85
Comments
Hi, can you please explain this issue in more detail? Are you aware that you can always edit the search query manually to include any options you like? |
I'm aware of custom search, but if the total number is more than 10,000, the statistics will always show up as 10,000 in the search results The default search query {
"query": {
"query_string": {
"query": "*"
}
},
"size": 10,
"from": 0,
"sort": []
} It needs to be added for V7 {
"query": {
"query_string": {
"query": "*"
}
},
"size": 10,
"from": 0,
"sort": [],
"track_total_hits": true
} |
|
@xiaobeicn it seems like i have to revert this, sorry. |
reference
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-your-data.html#track-total-hits
The text was updated successfully, but these errors were encountered: