我有一段java代码,它使用Spring- data -elasticsearch连接到Elasticsearch DB,并通过连接到存储库并执行findAll()方法来获取所有索引数据。从ES接收的数据正在由单独的应用程序处理。当新数据被插入到elastic search中时,我有以下查询 1.How can I fetch only the newly inserted data Programatically ?
2.is inserted in
在我们当前的Spring-data-elasticsearch v.4.0.4应用程序中,我们在POJO上使用@Document,并且我们注意到,只要我们有一个空值字段,该字段在Elasticsearch中就不会有映射类型。因此,当我们在此字段上运行查询和排序时,将出现Elasticsearch错误No mapping found for [view_date] in order to sort o