opensearch-java icon indicating copy to clipboard operation
opensearch-java copied to clipboard

[FEATURE] Write a migration guide from HLRC

Open dblock opened this issue 1 year ago • 2 comments

Is your feature request related to a problem?

We have deprecated and plan to remove HLRC from OpenSearch 3.0 and opensearch-java.

What solution would you like?

A combination of a migration guide added to https://github.com/opensearch-project/opensearch-java/blob/main/USER_GUIDE.md#advanced-features and a blog post about it on for https://opensearch.org/blog/.

Do you have any additional context?

https://opensearch.org/docs/latest/clients/java-rest-high-level/

dblock avatar Jul 12 '24 18:07 dblock

Related to https://github.com/opensearch-project/opensearch-java/issues/262.

dblock avatar Jul 16 '24 16:07 dblock

one thing i noticed (putting it here for a future documentation):

the old client generates an _class field for every index generated by it. when you create an index using the old client and index documents there, then switch to the new client with the same class to deserialise the document it'll fail because it can't find the _class field on the class (it was never on the class to begin with).

note: this is when using spring-data-opensearch - there's of course a small risk that this was some spring voodoo which is client-specific, i didn't dig into this.

rursprung avatar Apr 01 '25 15:04 rursprung