Skip to content

Conversation

@henningandersen
Copy link
Contributor

@henningandersen henningandersen commented Jun 19, 2019

This commit finalizes the work done to rename size to max_docs in
reindex and update/delete by query. size is no longer supported in URL
or outer level body for the 3 APIs (though size in update/delete-by-query
will and has always been interpreted as scroll_size, it is not to be relied
upon).

Continuation of #41894

Closes #24344

This commit finalizes the work done to rename `size` to `max_docs` in
reindex and update/delete by query. `size` is no longer supported in URL
or outer level body for the 3 APIs.

Continuation of elastic#41894

Closes elastic#24344
@henningandersen henningandersen added >enhancement v8.0.0 :Distributed Indexing/Reindex Issues relating to reindex that are not caused by issues further down labels Jun 19, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Update and delete by query calls from rest-high-level-client generate
size in the body (meaning scroll size). Given that size in body for
these two requests has always meant scroll-size, there is no reason to
tighten that in this PR, so removing those checks. Also, this ensures
that rest-high-level-client requests generated with 7.x codebase works
against 8.0.
Copy link
Contributor

@Tim-Brooks Tim-Brooks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@henningandersen henningandersen merged commit ac3e4a6 into elastic:master Jun 26, 2019
pgomulka added a commit to pgomulka/elasticsearch that referenced this pull request Feb 16, 2021
The commit elastic#43373 has removed outer level size field in version 7.
This commit allows for the use of the size field in server ES8 using
compatible REST API.

relates elastic#51816
pgomulka added a commit that referenced this pull request Feb 17, 2021
For re-index requests, the outer most "size" field was deprecated and
renamed to "max_docs" in 7.x (#43373). With this commit, the "size" field will
remain available (but still deprecated) through out 8.x when REST API
compatibility is requested.

relates #51816
pgomulka added a commit that referenced this pull request Mar 15, 2021
…9606)

A follow up after #69037 which added back size field for reindex api.
The original PR #43373 also removed the size field from update by query and delete by query APIs.
This commits allow to use size field with Compatible API for update_by_query and delete_by_query apis
jakelandis added a commit that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: #43373
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: elastic#43373
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: elastic#43373
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: elastic#43373
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: elastic#43373
jakelandis added a commit to jakelandis/elasticsearch that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: elastic#43373
elasticsearchmachine pushed a commit that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: #43373
elasticsearchmachine pushed a commit that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: #43373
elasticsearchmachine pushed a commit that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: #43373
elasticsearchmachine pushed a commit that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: #43373
elasticsearchmachine pushed a commit that referenced this pull request Nov 8, 2021
This commit fixes a documentation bug that lists 'max_docs'
nested under source it should live at the same level as source

related: #43373
PeteGillinElastic added a commit to elastic/elasticsearch-specification that referenced this pull request Oct 10, 2025
PeteGillinElastic added a commit to elastic/elasticsearch-specification that referenced this pull request Oct 13, 2025
github-actions bot pushed a commit to elastic/elasticsearch-specification that referenced this pull request Oct 13, 2025
This was removed from ES in 8.0.0 (see
elastic/elasticsearch#43373).

(cherry picked from commit 263280a)
PeteGillinElastic added a commit to elastic/elasticsearch-specification that referenced this pull request Oct 13, 2025
This was removed from ES in 8.0.0 (see
elastic/elasticsearch#43373).

(cherry picked from commit 263280a)
PeteGillinElastic added a commit to elastic/elasticsearch-specification that referenced this pull request Oct 13, 2025
This was removed from ES in 8.0.0 (see
elastic/elasticsearch#43373).

(cherry picked from commit 263280a)
pquentin added a commit to elastic/elasticsearch-specification that referenced this pull request Oct 15, 2025
This was removed from ES in 8.0.0 (see
elastic/elasticsearch#43373).

(cherry picked from commit 263280a)

Co-authored-by: Quentin Pradet <[email protected]>
pquentin pushed a commit to elastic/elasticsearch-specification that referenced this pull request Oct 15, 2025
This was removed from ES in 8.0.0 (see
elastic/elasticsearch#43373).

(cherry picked from commit 263280a)

Co-authored-by: Pete Gillin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>breaking :Distributed Indexing/Reindex Issues relating to reindex that are not caused by issues further down >enhancement v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename reindex and friend's size parameter to max_docs

5 participants