<div dir="ltr">To do this you need to use the advanced query parameter which, unfortunately, is not well documented. There are a few email threads that describe using the advanced search though:<div><br></div><div><a href="http://lyralists.lyrasis.org/mailman/htdig/archivesspace_users_group/2015-June/001734.html">http://lyralists.lyrasis.org/mailman/htdig/archivesspace_users_group/2015-June/001734.html</a></div><div><div><br></div><div>I've formulated queries like you describe before (I'll have to dig through my notes to see if I can find it again); but the result set was consistently giving me back duplicate results for some unknown reason; so I stopped using it. </div></div><div><br></div><div>Ideally, we would be able to add a 'modified_since' parameter to each entity's endpoint to get the most recent set. The capability exists in the code, but hasn't been exposed to the REST end-point. I've submitted a ticket that will hopefully lead to this being resolved: <a href="https://archivesspace.atlassian.net/browse/ANW-962?filter=-2">https://archivesspace.atlassian.net/browse/ANW-962?filter=-2</a>.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 8, 2019 at 7:07 AM Steve Mattison <<a href="mailto:smattiso@nd.edu">smattiso@nd.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><a href="https://mail.google.com/mail/?view=cm&fs=1&tf=1&to=archivesspace_users_group@lyralists.lyrasis.org" style="font-family:Times;font-size:medium" target="_blank"></a><div>Community,</div><div><br></div><div>I'm new to using ArchivesSpace, and new to using the AS API.  I need to use the API to search within a given repository to find records that have been modified after a particular time (e.g. modified within the last 48 hours).  (We then want to export metadata related to those resources or archival_objects for a project we're working on.)</div><div><br></div><div>I have found the documentation for <a href="http://archivesspace.github.io/archivesspace/api/?shell#search-this-repository" target="_blank">search-this-repository</a>, but don't know how to formulate a query to find all resources and/or archival_objects where the system_mtime is after a particular time.  I would be fine with performing two searches, one for resources and one for archival_objects, if that is required.</div><div><br></div><div>Any help with the syntax for the query would be much appreciated.</div><div><br></div><div>Thanks for your help.</div><div><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div><b><font face="arial, sans-serif">Steve Mattison</font></b><div><i><font face="arial, sans-serif">Lead Software Engineer, Digital Library Technologies</font></i></div><div><i><font face="arial, sans-serif">Hesburgh Libraries</font></i></div><div><i><font face="arial, sans-serif"><br></font></i><div><div><b><font face="arial, sans-serif">University of Notre Dame</font></b></div><div><font face="arial, sans-serif">271 Hesburgh Library</font></div><div><font face="arial, sans-serif">Notre Dame, IN 46556-5629</font></div><div><font face="arial, sans-serif"><b>o:</b> 574-631-8559</font></div><div><font face="arial, sans-serif"><b>e: </b><a href="mailto:steve.mattison@nd.edu" style="color:rgb(17,85,204)" target="_blank">steve.mattison@nd.edu</a></font></div></div></div></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><img src="https://docs.google.com/uc?export=download&id=1eLUXKKJMijoIFzQtpJutmM1uLHON9ZDt&revid=0B-gl36FdlSuTV2ZPM1NBek5HamNiOWN1UllhT3d2VWtCU3hjPQ"></font></div></div></div></div></div></div></div></div></div></div></div>
_______________________________________________<br>
Archivesspace_Users_Group mailing list<br>
<a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org" target="_blank">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>
<a href="http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group" rel="noreferrer" target="_blank">http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group</a><br>
</blockquote></div>