Skip to content

Conversation

@timoninmaxim
Copy link
Contributor

Ref #50885
Link to the discussion

Source Exists API currently uses GetRequest that contains unsupported fields like stored_fields, version and version_type. So restrict the API to use GetSourceRequest and deprecates previous version.

Copy link

@drsantos20 drsantos20 left a comment

Choose a reason for hiding this comment

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

Hi @timoninmaxim i would suggest you to break your pr in small commits to help others to review your change

Copy link
Member

@martijnvg martijnvg left a comment

Choose a reason for hiding this comment

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

Thanks @timoninmaxim! Besides a small comment, this change looks good to me.

boolean realtime = randomBoolean();
getRequest.realtime(realtime);
if (realtime == false) {
if (!realtime) {
Copy link
Member

Choose a reason for hiding this comment

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

In the es code base we prefer use == false instead of !. The reason is that this is more visible when reading the code. A ! can easily be missed or forgotten to be added.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for the clarification! fixed it.

@martijnvg
Copy link
Member

@elasticmachine test this please

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features (:Core/Features/Java High Level REST Client)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants