Home > database >  Search the documents that were added after specific timestamp-> Elastic Search
Search the documents that were added after specific timestamp-> Elastic Search

Time:01-07

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?

CodePudding user response:

I tried range query and it worked

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

Where I used dates in timestamp format.

  •  Tags:  
  • Related