Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OS 2.18/OSX 14.6 M1
Spring-boot 3.3.3
spring-data-opensearch 1.5.3
Describe the issue:
I want to be able to pass the indexName in @Document annotation, but want the actual index to be created with a prefix. What’s the way to do this using spring-data-opensearch?
example:
@Document(indexName = “my-index”)
public class MyEntity {
private String prop;
}
normally this will create an index named my-index - but I want to scan the @Document annotations present in the applications, extract the indexName - and apply a common prefix say “.prefix_” to them all before they are created in Opensearch. So the resulting indexname in OS looks like ".prefix_my-index "
Is there a way to achieve this