Skip to content

Conversation

@javanna
Copy link
Member

@javanna javanna commented May 6, 2019

Relates to #34389

@javanna javanna added :Search/Search Search-related issues that do not fall into other categories >refactoring v8.0.0 v7.2.0 labels May 6, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

public SearchResponse() {
}

public SearchResponse(StreamInput in) throws IOException {
Copy link
Contributor

@mayya-sharipova mayya-sharipova May 7, 2019

Choose a reason for hiding this comment

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

Can we also remove an empty constructor and make all member variables final here?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes this is not so hard so I am making this change.

SearchTemplateResponse() {
}

SearchTemplateResponse(StreamInput in) throws IOException {
Copy link
Contributor

@mayya-sharipova mayya-sharipova May 7, 2019

Choose a reason for hiding this comment

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

I wonder if we can remove an empty constructor and make all member variables final here? We may need to change a little fromXContent and have another constructor.

Copy link
Member Author

Choose a reason for hiding this comment

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

this is possible yet it requires some work on how SearchTemplateResponse is used, as source and response are generally set after creation. I would prefer to keep this out of this PR.

Copy link
Contributor

@mayya-sharipova mayya-sharipova left a comment

Choose a reason for hiding this comment

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

Thanks @javanna! The PR looks good to me after we make changes SearchTemplateResponse.java and SearchResponse.java as outlined in the comments.

@javanna
Copy link
Member Author

javanna commented May 8, 2019

run elasticsearch-ci/bwc

@javanna
Copy link
Member Author

javanna commented May 8, 2019

run elasticsearch-ci/docbldesx

@javanna
Copy link
Member Author

javanna commented May 8, 2019

run elasticsearch-ci/1

@javanna javanna merged commit f2a558d into elastic:master May 9, 2019
javanna added a commit to javanna/elasticsearch that referenced this pull request May 22, 2019
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>refactoring :Search/Search Search-related issues that do not fall into other categories v7.3.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants