07-30-2023, 02:51 PM
Is there any way to make spring-data-elasticsearch to work for multitenant application?
I've made it to work without multitenancy, but I don't know how can I have multiple indices or multiple nodes for each tenant? I want to know if there is any way to define different index name for each tenant or to add transient property in my entity class which is annotated properly with `@Document(...)`. When I tried to do that problem was that `@Transient` is also marked in `ElasticSearchRepository`.
Any idea?
I've made it to work without multitenancy, but I don't know how can I have multiple indices or multiple nodes for each tenant? I want to know if there is any way to define different index name for each tenant or to add transient property in my entity class which is annotated properly with `@Document(...)`. When I tried to do that problem was that `@Transient` is also marked in `ElasticSearchRepository`.
Any idea?