OpenSearch/docs/reference/migration
javanna 6c81a8daf3 Internal: count api to become a shortcut to the search api
The count api used to have its own execution path, although it would do the same (up to bugs!) of the search api. This commit makes it a shortcut to the search api with size set to 0. The change is made in a backwards compatible manner, by leaving all of the java api code around too, given that you may not want to get back a whole SearchResponse when asking only for number of hits matching a query, also cause migrating from countResponse.getCount() to searchResponse.getHits().totalHits() doesn't look great from a user perspective. We can always decide to drop more code around the count api if we want to break backwards compatibility on the java api, making it a shortcut on the rest layer only.

Closes #9117
Closes #11198
2015-05-26 19:12:11 +02:00
..
index.asciidoc More Like This: removal of the MLT API 2015-05-06 18:11:11 +02:00
migrate_1_0.asciidoc Docs: Fixed typos 2015-05-05 10:38:05 +02:00
migrate_1_4.asciidoc Query DSL: Remove filter parsers. 2015-05-07 20:14:34 +02:00
migrate_1_6.asciidoc parent/child: Deprecated the `top_children` in favour of the `has_child` query. 2015-05-07 09:27:54 +02:00
migrate_2_0.asciidoc Internal: count api to become a shortcut to the search api 2015-05-26 19:12:11 +02:00