-
Notifications
You must be signed in to change notification settings - Fork 196
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
Add support for Flat Objects #735
Conversation
Signed-off-by: bfindlay <[email protected]>
Signed-off-by: bfindlay <[email protected]>
1b37dbb
to
82b5035
Compare
Signed-off-by: bfindlay <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it just works? Nice.
Yeah, was just a naming issue as OpenSearch is using FlatObject https://github.com/opensearch-project/OpenSearch/blob/60c46f3a6c33b1c1074f161b629927e5d60917c0/server/src/main/java/org/opensearch/index/mapper/FlatObjectFieldMapper.java#L184 |
...client/src/main/java/org/opensearch/client/opensearch/_types/mapping/FlatObjectProperty.java
Outdated
Show resolved
Hide resolved
...client/src/test/java/org/opensearch/client/opensearch/integTest/AbstractIndicesClientIT.java
Show resolved
Hide resolved
@Bfindlay Consider writing a complete working sample with the changes in https://github.com/opensearch-project/opensearch-java/tree/main/samples. |
Signed-off-by: bfindlay <[email protected]>
Signed-off-by: bfindlay <[email protected]>
Signed-off-by: bfindlay <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, will leave @reta for a CR who knows a lot more about flat objects than me ;)
...client/src/main/java/org/opensearch/client/opensearch/_types/mapping/FlatObjectProperty.java
Show resolved
Hide resolved
* add flat object support Signed-off-by: bfindlay <[email protected]> * add flat object support Signed-off-by: bfindlay <[email protected]> * update changelog Signed-off-by: bfindlay <[email protected]> * update flatobject and user guides Signed-off-by: bfindlay <[email protected]> * fix typo Signed-off-by: bfindlay <[email protected]> * remove unused comments Signed-off-by: bfindlay <[email protected]> --------- Signed-off-by: bfindlay <[email protected]> (cherry picked from commit a4dc4f0) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* add flat object support * add flat object support * update changelog * update flatobject and user guides * fix typo * remove unused comments --------- (cherry picked from commit a4dc4f0) Signed-off-by: bfindlay <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Description
Describe what this change achieves.
"Flattened" is the elasticsearch variant and not recognised in opensearch. This PR removes the use of "flattened" and adds the "FlatObject" property type.
This is only supported from OpenSearch version 2.7.0 onwards
https://opensearch.org/docs/latest/field-types/supported-field-types/flat-object/
Issues Resolved
#720
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.