Skip to content
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

Reindex remove outer level size #43373

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
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