简体   繁体   中英

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. Is there any way to search after the specific ID or Timestamp?

I tried range query and it worked

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

Where I used dates in timestamp format.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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