Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Opensearch 2.5 and Spring Boot java application
Describe the issue:
Hi,
I’ve been using spring-data-elasticsearch library and added index details into settings and mappings folder so it does create the index(if missing) when application is started. However if you run the application on different environments(dev/live) i noticed that package id( i added for dev will not be the same on live as it gets generated when you create the package on aws OpenSearch. Is there a solution for this so i can use the same package id on both enviroments(dev/live) or I specify in the synonyms_path only the mesh file name that i want to point to(similar to ElasticSearch)?
Thank you
Configuration:
current:
“analysis”: {
“filter”: {
“default_synonym_filter”: {
“type”: “synonym”,
“synonyms_path”: “analyzers/F62444268”,
“ignore_case”: “true”
}
}
ElasticSearch config:
“filter”: {
“synonym_filter”: {
“type”: “synonym”,
“synonyms_path”: “synonyms.txt”,
“ignore_case”: “true”
}
}
Relevant Logs or Screenshots: