I would like to search for content in ArcGIS Portal created within a specified date range.
On searching for a recent item, I can see that the field is formatted as a UNIX timestamp in milliseconds, so have just included a basic content search but it isn't working; the below code is what I am using after connecting already to Portal...
items = gis.content.search("created: '[1587285213000 TO 1587985213000]'")
for item in items:
print(f"Title: {item.title}, Created: {item.created}")
When running the script, I do not receive any error messages, but I also do not receive any items - the time frame is between now and all of last week; content has been created in our portal last week so I am trying to work out what the issue might be?
Thanks