Deleting Elastic Search Records older than X number of Days

Requirements: We need to be able to delete all the records for a specific index, that match a given timestamp. How? We will use the Java ElasticSearch Client Lets do it: Add the proper mvn dependencies to your pom.xml <dependency> <groupId>org.elasticsearch</groupId> <artifactId>elasticsearch</artifactId> <version>7.1.1</version> </dependency> <dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-high-level-client</artifactId> <version>7.10.1</version> </dependency> We will write code in aContinueContinue reading “Deleting Elastic Search Records older than X number of Days”