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

Clarify documentation of scroll_id #29424

Merged
merged 2 commits into from
Apr 26, 2018
Merged

Conversation

SarenCurrie
Copy link
Contributor

The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.

The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.
@dnhatn dnhatn added >docs General docs changes :Search/Search Search-related issues that do not fall into other categories labels Apr 9, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search-aggs

@dnhatn
Copy link
Member

dnhatn commented Apr 9, 2018

test this please.

@colings86
Copy link
Contributor

I'm not sure if this change adds confusion in a different way now. It could now be read that the response may or may not return a scroll id field which I think is a bigger source of confusion than whether or not the scroll id might be the same as the previous one. We need to be clear that the scroll id is always returned in the response.

I'm not really sure about the advantage of the documentation stating that the scroll id may or may not change between responses since this doesn't change the fact that the user should always use the scroll id returned to them in the most recent response regardless of whether it changed.

@SarenCurrie
Copy link
Contributor Author

SarenCurrie commented Apr 9, 2018 via email

@colings86
Copy link
Contributor

colings86 commented Apr 9, 2018

Ok, I understand the motive for your change much better now. Maybe we can word it in a way that conveys both that the scroll id will be returned in every response and that the returned scroll id may not change between responses all the time?

Copy link
Contributor

@colings86 colings86 left a comment

Choose a reason for hiding this comment

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

@SarenCurrie sorry for the delay in getting back to this.
Thanks for updating the wording. I'll merge and back port this change shortly

@colings86 colings86 merged commit 0b4d2f5 into elastic:master Apr 26, 2018
colings86 pushed a commit that referenced this pull request Apr 26, 2018
* Clarify documentation of scroll_id

The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.

* Further clarify scroll ID return behaviour
colings86 pushed a commit that referenced this pull request Apr 26, 2018
* Clarify documentation of scroll_id

The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.

* Further clarify scroll ID return behaviour
colings86 pushed a commit that referenced this pull request Apr 26, 2018
* Clarify documentation of scroll_id

The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.

* Further clarify scroll ID return behaviour
colings86 pushed a commit that referenced this pull request Apr 26, 2018
* Clarify documentation of scroll_id

The Scroll API may return the same scroll ID for multiple requests due to server side state. This is not clear from the current documentation.

* Further clarify scroll ID return behaviour
@colings86
Copy link
Contributor

merged to master and backported to 6.x (6.4), 6.3, 6.2, and 5.6

@colings86
Copy link
Contributor

Thanks for the contribution @SarenCurrie

dnhatn added a commit that referenced this pull request Apr 27, 2018
* 6.x:
  Watcher: Ensure mail message ids are unique per watch action (#30112)
  SQL: Correct error message (#30138)
  SQL: Add BinaryMathProcessor to named writeables list (#30127)
  Tests: Use buildDir as base for generated-resources (#30191)
  Fix SliceBuilderTests#testRandom failures
  Fix edge cases in CompositeKeyExtractorTests (#30175)
  Document time unit limitations for date histograms (#30177)
  Remove licenses missed by the migration
  [DOCS] Updates docker installation package details (#30110)
  Fix TermsSetQueryBuilder.doEquals() method (#29629)
  [Monitoring] Remove unhelpful Monitoring tests (#30144)
  [Test] Fix RenameProcessorTests.testRenameExistingFieldNullValue() (#29655)
  [test] include oss tar in packaging tests (#30155)
  TEST: Update settings should go through cluster state (#29682)
  Add additional shards routing info in ShardSearchRequest (#29533)
  Reinstate missing documentation (#28781)
  Clarify documentation of scroll_id (#29424)
  Fixes Eclipse build for sql jdbc project (#30114)
  Watcher: Fold two smoke test projects into smoke-test-watcher (#30137)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes :Search/Search Search-related issues that do not fall into other categories v5.6.0 v6.2.0 v6.3.0 v6.4.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants