【发布时间】:2021-11-03 14:50:08
【问题描述】:
我正在尝试使用 indexOperations 创建索引。我有以下代码:
val indexOperations = template.indexOps(SmartStoreNew::class.java)
indexOperations.create()
其中 SmarStoreNew 是 @Document 对象。 所以我的问题是如何使用这种构造指定索引名称?
【问题讨论】:
标签: kotlin elasticsearch indexing spring-data-elasticsearch