【发布时间】:2021-12-24 07:51:41
【问题描述】:
我有一个 java 代码,它使用 Spring-data-elasticsearch 连接到 Elasticsearch DB,并通过连接到存储库并执行 findAll() 方法来获取所有索引数据。从 ES 接收的数据正在由单独的应用程序处理。当新数据插入弹性搜索时,我有以下查询
1. How can I fetch only the newly inserted data Programatically ?
2. Apart from using the DSL queries, Is there a way to Asyncronously get the new records as and when new data is inserted into elasticsearch DB.
我不想再次执行 findAll() 方法。因为它返回整个数据(也包括之前处理的记录)。
非常感谢您对此的任何帮助。
【问题讨论】:
标签: elasticsearch kibana spring-data-elasticsearch