Skip to content
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

Enhance syntax for nested mapping in destination fields #841

Conversation

martin-gaievski
Copy link
Member

@martin-gaievski martin-gaievski commented Jul 22, 2024

Description

This is continuation of enabling comma based syntax for nested fields in mapping definition for embedding processors. This PR is focused on adding new syntax for the destination field.

Example of the new format we going to support:

"a.b": "c.vector_field"

final ingest document will look like:

a : {
    b: some_text
    c : {
        vector_field: [float numbers]

with today's code ingest document will look like:

a : {
    b: some_text
    c.vector_field: [float numbers]
}

Previous PR for source part of the mapping: #811

Issues Resolved

#110

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has javadoc added
  • Commits are signed as per the DCO using --signoff

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.

@martin-gaievski martin-gaievski added Enhancements Increases software capabilities beyond original client specifications backport 2.x Label will add auto workflow to backport PR to 2.x branch labels Jul 22, 2024
@martin-gaievski martin-gaievski merged commit 770a8ca into opensearch-project:main Jul 22, 2024
35 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 22, 2024
* Enhance syntax for nested mapping in destination fields

Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit 770a8ca)
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 22, 2024
* Enhance syntax for nested mapping in destination fields

Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit 770a8ca)
martin-gaievski added a commit that referenced this pull request Jul 22, 2024
* Enhance syntax for nested mapping in destination fields

Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit 770a8ca)

Co-authored-by: Martin Gaievski <[email protected]>
martin-gaievski added a commit that referenced this pull request Aug 7, 2024
* Enhance syntax for nested mapping in destination fields

Signed-off-by: Martin Gaievski <[email protected]>
(cherry picked from commit 770a8ca)

Signed-off-by: Martin Gaievski <[email protected]>
Co-authored-by: Martin Gaievski <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Label will add auto workflow to backport PR to 2.x branch backport 2.16 Enhancements Increases software capabilities beyond original client specifications v2.16.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants