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

[Feature Request] Rename fields as part of index alias #12255

Open
ev2900 opened this issue Feb 8, 2024 · 2 comments
Open

[Feature Request] Rename fields as part of index alias #12255

ev2900 opened this issue Feb 8, 2024 · 2 comments
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing

Comments

@ev2900
Copy link

ev2900 commented Feb 8, 2024

Is your feature request related to a problem? Please describe

I have multiple people searching the same OpenSearch index and different people want fields in the index to be named differently.

I want the ability to rename fields as part of an index alias.

Describe the solution you'd like

When I create an index alias I want the ability to rename a field.

Related component

Indexing

Describe alternatives you've considered

I have looked into using script_fields to rename fields during a search execution and using alias field type. Unfortunately neither of these solutions work for my use case.

Additional context

No response

@ev2900 ev2900 added enhancement Enhancement or improvement to existing feature or request untriaged labels Feb 8, 2024
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Feb 8, 2024
@andrross andrross changed the title [Feature Request] Rename feilds as part of index alias [Feature Request] Rename fields as part of index alias Feb 8, 2024
@andrross
Copy link
Member

andrross commented Feb 8, 2024

@ev2900 Have you looked into search pipelines? The rename field response processor may offer a solution to your problem.

@shwetathareja
Copy link
Member

@ev2900 there is a feature in OpenSearch to provide alias (another name) to existing field - https://opensearch.org/docs/2.11/field-types/supported-field-types/alias/ This should provide the rename support you are looking for.

PUT movies 
{
  "mappings" : {
    "properties" : {
      "year" : {
        "type" : "date"
      },
      "release_date" : {
        "type" : "alias",
        "path" : "year"
      }
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Enhancement or improvement to existing feature or request Indexing Indexing, Bulk Indexing and anything related to indexing
Projects
None yet
Development

No branches or pull requests

4 participants