Skip to content

Introduce mapping transformer to allow transform mappings during index create/update or index template create/update#17635

Merged
saratvemulapalli merged 1 commit intoopensearch-project:mainfrom
bzhangam:introduceMappingTransformer
Apr 15, 2025
Merged

Introduce mapping transformer to allow transform mappings during index create/update or index template create/update#17635
saratvemulapalli merged 1 commit intoopensearch-project:mainfrom
bzhangam:introduceMappingTransformer

Conversation

@bzhangam
Copy link
Copy Markdown
Contributor

Description

In this PR we introduce the mapping transformer to the core to allow transforming the mapping during index create/update and index template create/update. We want to do this because we have a use case in neural search plugin where we want to auto generate the semantic fields(e.g. knn_vector or rank_feature) in the mappings based on the model id defined in the semantic field(A new field type introduced by neural search plugin). In this way we can simplify the neural search set up.

Potentially in future this feature can be leveraged by other plugins to auto transform the mapping based on the certain config defined by users.

Related Issues

Resolves #[17500] - Proposal to introduce the mapping transformer into core.

#[803] - Proposal to support semantic field in neural search.
#[1211] - HLD of the semantic field.

Check List

  • Functionality includes testing.
  • API changes companion pull request created, if applicable.
  • Public documentation issue/PR created, if applicable.

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.

@bzhangam bzhangam closed this Apr 14, 2025
@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Cluster Manager Project Board Apr 14, 2025
@bzhangam bzhangam reopened this Apr 14, 2025
@github-project-automation github-project-automation bot moved this from ✅ Done to 🏗 In progress in Cluster Manager Project Board Apr 14, 2025
@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for c88378f: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@github-actions
Copy link
Copy Markdown
Contributor

❌ Gradle check result for 70be6d0: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

Signed-off-by: Bo Zhang <bzhangam@amazon.com>
@bzhangam bzhangam force-pushed the introduceMappingTransformer branch from afcad68 to c57fbf4 Compare April 15, 2025 17:06
@github-actions
Copy link
Copy Markdown
Contributor

❕ Gradle check result for c57fbf4: UNSTABLE

Please review all flaky tests that succeeded after retry and create an issue if one does not already exist to track the flaky failure.

Copy link
Copy Markdown
Member

@saratvemulapalli saratvemulapalli left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of the feedback @bzhangam !

@github-project-automation github-project-automation bot moved this from 🏗 In progress to 👀 In review in Cluster Manager Project Board Apr 15, 2025
@saratvemulapalli saratvemulapalli merged commit aa0e724 into opensearch-project:main Apr 15, 2025
31 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Cluster Manager Project Board Apr 15, 2025
x-INFiN1TY-x pushed a commit to x-INFiN1TY-x/OpenSearch_Local that referenced this pull request Apr 24, 2025
Signed-off-by: Bo Zhang <bzhangam@amazon.com>
Signed-off-by: Tanishq Ranjan <tqranjan@amazon.com>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
Signed-off-by: Bo Zhang <bzhangam@amazon.com>
Signed-off-by: Harsh Kothari <techarsh@amazon.com>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
Signed-off-by: Bo Zhang <bzhangam@amazon.com>
Signed-off-by: Harsh Kothari <techarsh@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Cluster Manager enhancement Enhancement or improvement to existing feature or request Plugins

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

[RFC] Introduce Mapping Transformer

3 participants