How do I search for streams after a certain date?
You can search for streams created after a certain date using the tmborn query arg:
root@c-csn1:~>curl -L "$SCSP_HOST/egan.2011_05?format=json&domain=test1.c-csn1.enfield.com&size=5&tmborn>=2017-01-16T19:24:20.476000Z&fields=tmborn,name&sort=tmborn:desc"
[
{"last_modified":"2017-01-16T19:24:50.328400Z", "name":"Egan.2011_0503.16-43-27.jpg"},
{"last_modified":"2017-01-16T19:24:49.900400Z", "name":"Egan.2011_0503.16-43-42.jpg"},
{"last_modified":"2017-01-16T19:24:49.632400Z", "name":"Egan.2011_0503.16-43-56.jpg"},
{"last_modified":"2017-01-16T19:24:49.412400Z", "name":"Egan.2011_0503.16-44-07.jpg"},
{"last_modified":"2017-01-16T19:24:48.992400Z", "name":"Egan.2011_0503.17-51-24.jpg"} #This one won't be included in the next search based on the search.
]
Changing the date slightly, you can see one less result.
root@c-csn1:~>curl -L "$SCSP_HOST/egan.2011_05?format=json&domain=test1.c-csn1.enfield.com&size=5&tmborn>=2017-01-16T19:24:49.000000Z&fields=tmborn,name&sort=tmborn:desc"
[
{"last_modified":"2017-01-16T19:24:50.328400Z", "name":"Egan.2011_0503.16-43-27.jpg"},
{"last_modified":"2017-01-16T19:24:49.900400Z", "name":"Egan.2011_0503.16-43-42.jpg"},
{"last_modified":"2017-01-16T19:24:49.632400Z", "name":"Egan.2011_0503.16-43-56.jpg"},
{"last_modified":"2017-01-16T19:24:49.412400Z", "name":"Egan.2011_0503.16-44-07.jpg"}
]
Where $SCSP_HOST is any Swarm node.
© DataCore Software Corporation. · https://www.datacore.com · All rights reserved.