-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Deprecate rest_total_hits_as_int #79292
Comments
Pinging @elastic/es-search (Team:Search) |
If you plan to remove this parameter how does one get an accurate total hit count? |
@JacobBrandt we added the |
You mean the parameter that doesn't exist on Multi Search? My concern is that with Kibana removing the ability to do batch requests is Elasticsearch going to do the same thing with Multi Search at some point since Multi Search is going to lose the only parameter that allows one to get accurate hit counts. |
@JacobBrandt msearch supports
Does this address your question (I might not be fully understanding it)? |
Oh...that actually makes a lot of sense now that I see that. Thanks. |
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
We introduced the search parameter
rest_total_hits_as_int
in #35849 to provide a smooth upgrade path from the old syntax. Now that 8.0 is approaching, we should come up with a plan to deprecate this parameter.When we discussed as a team, we decided not to deprecate in 7.x and remove in 8.0. The parameter is still widely used and removing it in 8.0 would be too disruptive. So maybe we could deprecate in 8.x and give a long period before removing it.
Note there are many REST tests that still use
rest_total_hits_as_int
, so the deprecation may take some effort. Some other components like Watcher also still use the parameter (#38387).The text was updated successfully, but these errors were encountered: