Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Fixed searchArchivableWorkflows rangeQuery.
Browse files Browse the repository at this point in the history
  • Loading branch information
kishorebanala committed Jul 14, 2018
1 parent 4b0e18d commit 3710e09
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ private SearchResult<String> search(String structuredQuery, int start, int size,
@Override
public List<String> searchArchivableWorkflows(String indexName, long archiveTtlDays) {
QueryBuilder q = QueryBuilders.boolQuery()
.must(QueryBuilders.rangeQuery("endTime").lt(LocalDate.now().minusDays(archiveTtlDays)))
.must(QueryBuilders.rangeQuery("endTime").lt(LocalDate.now().minusDays(archiveTtlDays).toString()))
.should(QueryBuilders.termQuery("status", "COMPLETED"))
.should(QueryBuilders.termQuery("status", "FAILED"))
.mustNot(QueryBuilders.existsQuery("archived"))
Expand Down

0 comments on commit 3710e09

Please sign in to comment.