[Archivesspace_Users_Group] Repository Search API Behavior
Smith, Steelsen
steelsen.smith at yale.edu
Fri May 8 14:39:16 EDT 2015
Hi,
I'm presently working with the repository search endpoint (/repositories/:repo_id/search) and note in the documentation that it doesn't include a limiting parameter. Attempting to return all results yields a 500 error. Can anyone tell me if this is expected behavior?
Trying
http://devaspace.library.yale.edu:8089/repositories/20/search?q=MS 1981&filter_term[]={"level": "series"}
Gives back an error asking to specify set, page, or all ids:
{"error":{"page":["Parameter required but no value provided"],"id_set":["Parameter required but no value provided"],"all_ids":["Parameter required but no value provided"]}}
Specifying page works, but specifying all_ids=true:
http://devaspace.library.yale.edu:8089/repositories/20/search?q=MS 1981&filter_term[]={"level": "series"}&all_ids=true
Internal Server Error (500)
Request Method:
GET
Request URL:
http://devaspace.library.yale.edu:8089/repositories/20/search?q=MS%201981&filter_term[]={%22level%22:%20%22series%22}&all_ids=true<http://devaspace.library.yale.edu:8089/repositories/20/search?q=MS%201981&filter_term%5b%5d=%7b%22level%22:%20%22series%22%7d&all_ids=true>
(NoMethodError) undefined method `-' for nil:NilClass
___________________________
Steelsen Smith
Fulfillment Systems Specialist
Enterprise Systems Group
Yale Library IT
203.432.3333
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/attachments/20150508/99fafbe5/attachment.html>
More information about the Archivesspace_Users_Group
mailing list