简体   繁体   English

搜索特定时间戳后添加的文档-> Elastic Search

[英]Search the documents that were added after specific timestamp-> Elastic Search

I want to search the documents that were added after a specific timestamp in Elastic Search, I have tried 'search_after' and 'from', but nothing seems to work.我想搜索在 Elastic Search 中特定时间戳之后添加的文档,我尝试了“search_after”和“from”,但似乎没有任何效果。 Is there any way to search after the specific ID or Timestamp?有什么方法可以搜索特定的 ID 或时间戳?

I tried range query and it worked我尝试了范围查询并且它有效

"query": { "range": 
        { "timestamp": { "gte": 1641203425, "lte": 1641280856 } } } 

Where I used dates in timestamp format.我使用时间戳格式的日期。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM