I want to get content (could be a version older than the latest) from a cql search with a given date range.
For eg: currently what is listed in the doc is doing a search like this :
http://localhost:8090/rest/api/content/search?cql=( lastmodified > "2020/04/13 14:05" and lastModified < "2020/04/13 14:13")
But the problem with this query is that if there is an id, say 123456 with version 4 and version3.
The content 123456 has version 4 on 2020/04/13 14:20 (which is more recent than the date specified in the query above)
Content 123456 has version 3 within the date range specified as above in the query.
The above query does not return any results since the lastModified does not fall within this range.
How can I get version 3 with a query similar to above or if there is an alternative approach ?