如何仅在弹簧数据弹性搜索中使用别名
春季数据搜索版本为4.1.15。我将实体类定义为下面,并使用lasticsearchRepository进行crud和弹性搜索,以进行自定义查询。 @document(indexName =“ my_index”,createIndex = false)
现在我需要更新以使用别名。然后,当我们需要更新索引或reindex时,代码不会有任何更改,
但是我找不到任何示例仅在春季数据弹性搜索中使用别名。任何建议都得到高度赞赏。
Spring data search version is 4.1.15. I define entity class as below and use ElasticsearchRepository for CRUD and ElasticsearchOperations for customized query.
@Document(indexName = "my_index", createIndex = false)
Now I need to update to use alias only. Then there will be no change in the code when we need update index or reindex,
But I couldn't find any example to use alias only in spring data elastic search. Any suggestion is highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论