[spring-data-elasticsearch] how to dynamically assign index by argument column value

Hello I'm trying to save transactional data of product on elasticsearch
and building spring boot as data-pipe line server .

there are lots of index with same column like CategoryA_Trasaction and CategoryB_Transaction....
which can be represented as Child class of Transaction class

in this case, Is there a way that using one document Class and repository class to Read and write multiple indexes?


I think it can be achieved by "Elasticsearch-high-level-client" but it will be deprecated soon,
so i want to find other way

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.