Skip to content

Conversation

@romseygeek
Copy link
Contributor

This commit makes AnalyzeResponse and its various helper classes implement
Writeable. The classes are also now immutable.

Relates to #34389

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@romseygeek
Copy link
Contributor Author

I started to look at AnalysisRequest as well, but that's going to be a bigger change, partially because it's used in the HLRC and so making things immutable will be a breaking change for clients.

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.

should we make the fields name and texts final ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

++

Copy link
Contributor

Choose a reason for hiding this comment

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

should we make name and tokens fields to be final?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

++

@romseygeek romseygeek force-pushed the analyze-writeable branch from 1aaa532 to 6e7c8e4 Compare May 8, 2019 07:27
@romseygeek
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/docbldesx
@elasticmachine run elasticsearch-ci/packaging-sample

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

@Deprecated
protected abstract Response newResponse();

protected Writeable.Reader<Response> getResponseReader() {
Copy link
Contributor

Choose a reason for hiding this comment

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

thanks for this @romseygeek!
I tried my hand at a follow-up to remove the adapter for this here #41985.

@romseygeek romseygeek merged commit f8e0f8a into elastic:master May 9, 2019
romseygeek added a commit that referenced this pull request May 9, 2019
This commit makes AnalyzeResponse and its various helper classes implement
Writeable. The classes are also now immutable.

Relates to #34389
gurkankaymak pushed a commit to gurkankaymak/elasticsearch that referenced this pull request May 27, 2019
This commit makes AnalyzeResponse and its various helper classes implement
Writeable. The classes are also now immutable.

Relates to elastic#34389
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