diff --git a/fixtures/cassettes/merger/position.json b/fixtures/cassettes/merger/position.json index 8dfe0121..dcdb7224 100644 --- a/fixtures/cassettes/merger/position.json +++ b/fixtures/cassettes/merger/position.json @@ -311,7 +311,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F1113551%2C%2Frepositories%2F2%2Farchival_objects%2F1113552%2C%2Frepositories%2F2%2Farchival_objects%2F1113553%2C%2Frepositories%2F2%2Farchival_objects%2F1113554%2C%2Frepositories%2F2%2Farchival_objects%2F1113555%2C%2Frepositories%2F2%2Farchival_objects%2F1113557%2C%2Frepositories%2F2%2Farchival_objects%2F1113558%2C%2Frepositories%2F2%2Farchival_objects%2F1113559%2C%2Frepositories%2F2%2Farchival_objects%2F1113560%2C%2Frepositories%2F2%2Farchival_objects%2F1113563%2C%2Frepositories%2F2%2Farchival_objects%2F1113564%2C%2Frepositories%2F2%2Farchival_objects%2F1113565%2C%2Frepositories%2F2%2Farchival_objects%2F1113567%2C%2Frepositories%2F2%2Farchival_objects%2F1113568%2C%2Frepositories%2F2%2Farchival_objects%2F1113569%2C%2Frepositories%2F2%2Farchival_objects%2F1113571%2C%2Frepositories%2F2%2Farchival_objects%2F1113573%2C%2Frepositories%2F2%2Farchival_objects%2F1113574%2C%2Frepositories%2F2%2Farchival_objects%2F1113575%2C%2Frepositories%2F2%2Farchival_objects%2F1113576%2C%2Frepositories%2F2%2Farchival_objects%2F1113579%2C%2Frepositories%2F2%2Farchival_objects%2F1113583%2C%2Frepositories%2F2%2Farchival_objects%2F1113584%2C%2Frepositories%2F2%2Farchival_objects%2F1113585%2C%2Frepositories%2F2%2Farchival_objects%2F1113586%2C%2Frepositories%2F2%2Farchival_objects%2F1113587%2C%2Frepositories%2F2%2Farchival_objects%2F1113588%2C%2Frepositories%2F2%2Farchival_objects%2F1113589%2C%2Frepositories%2F2%2Farchival_objects%2F1113590+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/1113551%22%20ancestors:%22/repositories/2/archival_objects/1113552%22%20ancestors:%22/repositories/2/archival_objects/1113553%22%20ancestors:%22/repositories/2/archival_objects/1113554%22%20ancestors:%22/repositories/2/archival_objects/1113555%22%20ancestors:%22/repositories/2/archival_objects/1113557%22%20ancestors:%22/repositories/2/archival_objects/1113558%22%20ancestors:%22/repositories/2/archival_objects/1113559%22%20ancestors:%22/repositories/2/archival_objects/1113560%22%20ancestors:%22/repositories/2/archival_objects/1113563%22%20ancestors:%22/repositories/2/archival_objects/1113564%22%20ancestors:%22/repositories/2/archival_objects/1113565%22%20ancestors:%22/repositories/2/archival_objects/1113567%22%20ancestors:%22/repositories/2/archival_objects/1113568%22%20ancestors:%22/repositories/2/archival_objects/1113569%22%20ancestors:%22/repositories/2/archival_objects/1113571%22%20ancestors:%22/repositories/2/archival_objects/1113573%22%20ancestors:%22/repositories/2/archival_objects/1113574%22%20ancestors:%22/repositories/2/archival_objects/1113575%22%20ancestors:%22/repositories/2/archival_objects/1113576%22%20ancestors:%22/repositories/2/archival_objects/1113579%22%20ancestors:%22/repositories/2/archival_objects/1113583%22%20ancestors:%22/repositories/2/archival_objects/1113584%22%20ancestors:%22/repositories/2/archival_objects/1113585%22%20ancestors:%22/repositories/2/archival_objects/1113586%22%20ancestors:%22/repositories/2/archival_objects/1113587%22%20ancestors:%22/repositories/2/archival_objects/1113588%22%20ancestors:%22/repositories/2/archival_objects/1113589%22%20ancestors:%22/repositories/2/archival_objects/1113590%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -479,7 +479,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F1176088%2C%2Frepositories%2F2%2Farchival_objects%2F1110687%2C%2Frepositories%2F2%2Farchival_objects%2F1110688+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/1176088%22%20ancestors:%22/repositories/2/archival_objects/1110687%22%20ancestors:%22/repositories/2/archival_objects/1110688%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -647,7 +647,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F1110141%2C%2Frepositories%2F2%2Farchival_objects%2F1110142%2C%2Frepositories%2F2%2Farchival_objects%2F1110143+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/1110141%22%20ancestors:%22/repositories/2/archival_objects/1110142%22%20ancestors:%22/repositories/2/archival_objects/1110143%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -945,7 +945,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F13829%2C%2Frepositories%2F2%2Farchival_objects%2F13830%2C%2Frepositories%2F2%2Farchival_objects%2F13831+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/13829%22%20ancestors:%22/repositories/2/archival_objects/13830%22%20ancestors:%22/repositories/2/archival_objects/13831%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -1113,7 +1113,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F11440%2C%2Frepositories%2F2%2Farchival_objects%2F12044%2C%2Frepositories%2F2%2Farchival_objects%2F12049%2C%2Frepositories%2F2%2Farchival_objects%2F12053%2C%2Frepositories%2F2%2Farchival_objects%2F12055%2C%2Frepositories%2F2%2Farchival_objects%2F12062%2C%2Frepositories%2F2%2Farchival_objects%2F12512%2C%2Frepositories%2F2%2Farchival_objects%2F12541%2C%2Frepositories%2F2%2Farchival_objects%2F12544%2C%2Frepositories%2F2%2Farchival_objects%2F12546%2C%2Frepositories%2F2%2Farchival_objects%2F12553%2C%2Frepositories%2F2%2Farchival_objects%2F12614%2C%2Frepositories%2F2%2Farchival_objects%2F12617%2C%2Frepositories%2F2%2Farchival_objects%2F12629%2C%2Frepositories%2F2%2Farchival_objects%2F12632%2C%2Frepositories%2F2%2Farchival_objects%2F12642%2C%2Frepositories%2F2%2Farchival_objects%2F12652%2C%2Frepositories%2F2%2Farchival_objects%2F12655%2C%2Frepositories%2F2%2Farchival_objects%2F12660%2C%2Frepositories%2F2%2Farchival_objects%2F12689%2C%2Frepositories%2F2%2Farchival_objects%2F12693%2C%2Frepositories%2F2%2Farchival_objects%2F12702%2C%2Frepositories%2F2%2Farchival_objects%2F12709%2C%2Frepositories%2F2%2Farchival_objects%2F12723%2C%2Frepositories%2F2%2Farchival_objects%2F12737%2C%2Frepositories%2F2%2Farchival_objects%2F12747%2C%2Frepositories%2F2%2Farchival_objects%2F12764%2C%2Frepositories%2F2%2Farchival_objects%2F12767%2C%2Frepositories%2F2%2Farchival_objects%2F12776%2C%2Frepositories%2F2%2Farchival_objects%2F12795%2C%2Frepositories%2F2%2Farchival_objects%2F12807%2C%2Frepositories%2F2%2Farchival_objects%2F12810%2C%2Frepositories%2F2%2Farchival_objects%2F12813%2C%2Frepositories%2F2%2Farchival_objects%2F12815%2C%2Frepositories%2F2%2Farchival_objects%2F12817%2C%2Frepositories%2F2%2Farchival_objects%2F12821%2C%2Frepositories%2F2%2Farchival_objects%2F12846%2C%2Frepositories%2F2%2Farchival_objects%2F12868%2C%2Frepositories%2F2%2Farchival_objects%2F12876%2C%2Frepositories%2F2%2Farchival_objects%2F12879%2C%2Frepositories%2F2%2Farchival_objects%2F12882%2C%2Frepositories%2F2%2Farchival_objects%2F12891%2C%2Frepositories%2F2%2Farchival_objects%2F12940%2C%2Frepositories%2F2%2Farchival_objects%2F12963%2C%2Frepositories%2F2%2Farchival_objects%2F12966%2C%2Frepositories%2F2%2Farchival_objects%2F12970%2C%2Frepositories%2F2%2Farchival_objects%2F12977%2C%2Frepositories%2F2%2Farchival_objects%2F12995%2C%2Frepositories%2F2%2Farchival_objects%2F13007%2C%2Frepositories%2F2%2Farchival_objects%2F13011%2C%2Frepositories%2F2%2Farchival_objects%2F13024%2C%2Frepositories%2F2%2Farchival_objects%2F13034%2C%2Frepositories%2F2%2Farchival_objects%2F13038%2C%2Frepositories%2F2%2Farchival_objects%2F13046%2C%2Frepositories%2F2%2Farchival_objects%2F13069%2C%2Frepositories%2F2%2Farchival_objects%2F13092%2C%2Frepositories%2F2%2Farchival_objects%2F13102%2C%2Frepositories%2F2%2Farchival_objects%2F13215%2C%2Frepositories%2F2%2Farchival_objects%2F13253%2C%2Frepositories%2F2%2Farchival_objects%2F13358%2C%2Frepositories%2F2%2Farchival_objects%2F13398%2C%2Frepositories%2F2%2Farchival_objects%2F13418%2C%2Frepositories%2F2%2Farchival_objects%2F13436%2C%2Frepositories%2F2%2Farchival_objects%2F13461%2C%2Frepositories%2F2%2Farchival_objects%2F13483%2C%2Frepositories%2F2%2Farchival_objects%2F13503%2C%2Frepositories%2F2%2Farchival_objects%2F13735%2C%2Frepositories%2F2%2Farchival_objects%2F13766%2C%2Frepositories%2F2%2Farchival_objects%2F13797%2C%2Frepositories%2F2%2Farchival_objects%2F13803+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/11440%22%20ancestors:%22/repositories/2/archival_objects/12044%22%20ancestors:%22/repositories/2/archival_objects/12049%22%20ancestors:%22/repositories/2/archival_objects/12053%22%20ancestors:%22/repositories/2/archival_objects/12055%22%20ancestors:%22/repositories/2/archival_objects/12062%22%20ancestors:%22/repositories/2/archival_objects/12512%22%20ancestors:%22/repositories/2/archival_objects/12541%22%20ancestors:%22/repositories/2/archival_objects/12544%22%20ancestors:%22/repositories/2/archival_objects/12546%22%20ancestors:%22/repositories/2/archival_objects/12553%22%20ancestors:%22/repositories/2/archival_objects/12614%22%20ancestors:%22/repositories/2/archival_objects/12617%22%20ancestors:%22/repositories/2/archival_objects/12629%22%20ancestors:%22/repositories/2/archival_objects/12632%22%20ancestors:%22/repositories/2/archival_objects/12642%22%20ancestors:%22/repositories/2/archival_objects/12652%22%20ancestors:%22/repositories/2/archival_objects/12655%22%20ancestors:%22/repositories/2/archival_objects/12660%22%20ancestors:%22/repositories/2/archival_objects/12689%22%20ancestors:%22/repositories/2/archival_objects/12693%22%20ancestors:%22/repositories/2/archival_objects/12702%22%20ancestors:%22/repositories/2/archival_objects/12709%22%20ancestors:%22/repositories/2/archival_objects/12723%22%20ancestors:%22/repositories/2/archival_objects/12737%22%20ancestors:%22/repositories/2/archival_objects/12747%22%20ancestors:%22/repositories/2/archival_objects/12764%22%20ancestors:%22/repositories/2/archival_objects/12767%22%20ancestors:%22/repositories/2/archival_objects/12776%22%20ancestors:%22/repositories/2/archival_objects/12795%22%20ancestors:%22/repositories/2/archival_objects/12807%22%20ancestors:%22/repositories/2/archival_objects/12810%22%20ancestors:%22/repositories/2/archival_objects/12813%22%20ancestors:%22/repositories/2/archival_objects/12815%22%20ancestors:%22/repositories/2/archival_objects/12817%22%20ancestors:%22/repositories/2/archival_objects/12821%22%20ancestors:%22/repositories/2/archival_objects/12846%22%20ancestors:%22/repositories/2/archival_objects/12868%22%20ancestors:%22/repositories/2/archival_objects/12876%22%20ancestors:%22/repositories/2/archival_objects/12879%22%20ancestors:%22/repositories/2/archival_objects/12882%22%20ancestors:%22/repositories/2/archival_objects/12891%22%20ancestors:%22/repositories/2/archival_objects/12940%22%20ancestors:%22/repositories/2/archival_objects/12963%22%20ancestors:%22/repositories/2/archival_objects/12966%22%20ancestors:%22/repositories/2/archival_objects/12970%22%20ancestors:%22/repositories/2/archival_objects/12977%22%20ancestors:%22/repositories/2/archival_objects/12995%22%20ancestors:%22/repositories/2/archival_objects/13007%22%20ancestors:%22/repositories/2/archival_objects/13011%22%20ancestors:%22/repositories/2/archival_objects/13024%22%20ancestors:%22/repositories/2/archival_objects/13034%22%20ancestors:%22/repositories/2/archival_objects/13038%22%20ancestors:%22/repositories/2/archival_objects/13046%22%20ancestors:%22/repositories/2/archival_objects/13069%22%20ancestors:%22/repositories/2/archival_objects/13092%22%20ancestors:%22/repositories/2/archival_objects/13102%22%20ancestors:%22/repositories/2/archival_objects/13215%22%20ancestors:%22/repositories/2/archival_objects/13253%22%20ancestors:%22/repositories/2/archival_objects/13358%22%20ancestors:%22/repositories/2/archival_objects/13398%22%20ancestors:%22/repositories/2/archival_objects/13418%22%20ancestors:%22/repositories/2/archival_objects/13436%22%20ancestors:%22/repositories/2/archival_objects/13461%22%20ancestors:%22/repositories/2/archival_objects/13483%22%20ancestors:%22/repositories/2/archival_objects/13503%22%20ancestors:%22/repositories/2/archival_objects/13735%22%20ancestors:%22/repositories/2/archival_objects/13766%22%20ancestors:%22/repositories/2/archival_objects/13797%22%20ancestors:%22/repositories/2/archival_objects/13803%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -1411,7 +1411,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F482030%2C%2Frepositories%2F2%2Farchival_objects%2F482031%2C%2Frepositories%2F2%2Farchival_objects%2F482032%2C%2Frepositories%2F2%2Farchival_objects%2F482033%2C%2Frepositories%2F2%2Farchival_objects%2F482034%2C%2Frepositories%2F2%2Farchival_objects%2F482035%2C%2Frepositories%2F2%2Farchival_objects%2F482036%2C%2Frepositories%2F2%2Farchival_objects%2F482037%2C%2Frepositories%2F2%2Farchival_objects%2F482038%2C%2Frepositories%2F2%2Farchival_objects%2F482039%2C%2Frepositories%2F2%2Farchival_objects%2F482040%2C%2Frepositories%2F2%2Farchival_objects%2F482041%2C%2Frepositories%2F2%2Farchival_objects%2F482042%2C%2Frepositories%2F2%2Farchival_objects%2F482043%2C%2Frepositories%2F2%2Farchival_objects%2F482044+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/482030%22%20ancestors:%22/repositories/2/archival_objects/482031%22%20ancestors:%22/repositories/2/archival_objects/482032%22%20ancestors:%22/repositories/2/archival_objects/482033%22%20ancestors:%22/repositories/2/archival_objects/482034%22%20ancestors:%22/repositories/2/archival_objects/482035%22%20ancestors:%22/repositories/2/archival_objects/482036%22%20ancestors:%22/repositories/2/archival_objects/482037%22%20ancestors:%22/repositories/2/archival_objects/482038%22%20ancestors:%22/repositories/2/archival_objects/482039%22%20ancestors:%22/repositories/2/archival_objects/482040%22%20ancestors:%22/repositories/2/archival_objects/482041%22%20ancestors:%22/repositories/2/archival_objects/482042%22%20ancestors:%22/repositories/2/archival_objects/482043%22%20ancestors:%22/repositories/2/archival_objects/482044%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -1579,7 +1579,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F482002%2C%2Frepositories%2F2%2Farchival_objects%2F482003%2C%2Frepositories%2F2%2Farchival_objects%2F1073831%2C%2Frepositories%2F2%2Farchival_objects%2F482004%2C%2Frepositories%2F2%2Farchival_objects%2F482005%2C%2Frepositories%2F2%2Farchival_objects%2F482006%2C%2Frepositories%2F2%2Farchival_objects%2F482007%2C%2Frepositories%2F2%2Farchival_objects%2F482008%2C%2Frepositories%2F2%2Farchival_objects%2F482009%2C%2Frepositories%2F2%2Farchival_objects%2F482010%2C%2Frepositories%2F2%2Farchival_objects%2F482011+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/482002%22%20ancestors:%22/repositories/2/archival_objects/482003%22%20ancestors:%22/repositories/2/archival_objects/1073831%22%20ancestors:%22/repositories/2/archival_objects/482004%22%20ancestors:%22/repositories/2/archival_objects/482005%22%20ancestors:%22/repositories/2/archival_objects/482006%22%20ancestors:%22/repositories/2/archival_objects/482007%22%20ancestors:%22/repositories/2/archival_objects/482008%22%20ancestors:%22/repositories/2/archival_objects/482009%22%20ancestors:%22/repositories/2/archival_objects/482010%22%20ancestors:%22/repositories/2/archival_objects/482011%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -1859,7 +1859,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F481541+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/481541%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -2157,7 +2157,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F487348%2C%2Frepositories%2F2%2Farchival_objects%2F487349%2C%2Frepositories%2F2%2Farchival_objects%2F487350%2C%2Frepositories%2F2%2Farchival_objects%2F487351%2C%2Frepositories%2F2%2Farchival_objects%2F487352%2C%2Frepositories%2F2%2Farchival_objects%2F487353%2C%2Frepositories%2F2%2Farchival_objects%2F487354%2C%2Frepositories%2F2%2Farchival_objects%2F487355%2C%2Frepositories%2F2%2Farchival_objects%2F487356%2C%2Frepositories%2F2%2Farchival_objects%2F487357%2C%2Frepositories%2F2%2Farchival_objects%2F487358%2C%2Frepositories%2F2%2Farchival_objects%2F487359%2C%2Frepositories%2F2%2Farchival_objects%2F487360%2C%2Frepositories%2F2%2Farchival_objects%2F487361%2C%2Frepositories%2F2%2Farchival_objects%2F487362%2C%2Frepositories%2F2%2Farchival_objects%2F487363%2C%2Frepositories%2F2%2Farchival_objects%2F487364%2C%2Frepositories%2F2%2Farchival_objects%2F487365%2C%2Frepositories%2F2%2Farchival_objects%2F487366%2C%2Frepositories%2F2%2Farchival_objects%2F487367%2C%2Frepositories%2F2%2Farchival_objects%2F487368+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/487348%22%20ancestors:%22/repositories/2/archival_objects/487349%22%20ancestors:%22/repositories/2/archival_objects/487350%22%20ancestors:%22/repositories/2/archival_objects/487351%22%20ancestors:%22/repositories/2/archival_objects/487352%22%20ancestors:%22/repositories/2/archival_objects/487353%22%20ancestors:%22/repositories/2/archival_objects/487354%22%20ancestors:%22/repositories/2/archival_objects/487355%22%20ancestors:%22/repositories/2/archival_objects/487356%22%20ancestors:%22/repositories/2/archival_objects/487357%22%20ancestors:%22/repositories/2/archival_objects/487358%22%20ancestors:%22/repositories/2/archival_objects/487359%22%20ancestors:%22/repositories/2/archival_objects/487360%22%20ancestors:%22/repositories/2/archival_objects/487361%22%20ancestors:%22/repositories/2/archival_objects/487362%22%20ancestors:%22/repositories/2/archival_objects/487363%22%20ancestors:%22/repositories/2/archival_objects/487364%22%20ancestors:%22/repositories/2/archival_objects/487365%22%20ancestors:%22/repositories/2/archival_objects/487366%22%20ancestors:%22/repositories/2/archival_objects/487367%22%20ancestors:%22/repositories/2/archival_objects/487368%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -2325,7 +2325,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F487169%2C%2Frepositories%2F2%2Farchival_objects%2F487201%2C%2Frepositories%2F2%2Farchival_objects%2F487204%2C%2Frepositories%2F2%2Farchival_objects%2F487270%2C%2Frepositories%2F2%2Farchival_objects%2F487275%2C%2Frepositories%2F2%2Farchival_objects%2F487278%2C%2Frepositories%2F2%2Farchival_objects%2F487280%2C%2Frepositories%2F2%2Farchival_objects%2F487282%2C%2Frepositories%2F2%2Farchival_objects%2F487285%2C%2Frepositories%2F2%2Farchival_objects%2F487287%2C%2Frepositories%2F2%2Farchival_objects%2F487289%2C%2Frepositories%2F2%2Farchival_objects%2F487291%2C%2Frepositories%2F2%2Farchival_objects%2F487293%2C%2Frepositories%2F2%2Farchival_objects%2F487304%2C%2Frepositories%2F2%2Farchival_objects%2F487307%2C%2Frepositories%2F2%2Farchival_objects%2F487311%2C%2Frepositories%2F2%2Farchival_objects%2F487316%2C%2Frepositories%2F2%2Farchival_objects%2F487319%2C%2Frepositories%2F2%2Farchival_objects%2F487322%2C%2Frepositories%2F2%2Farchival_objects%2F487324%2C%2Frepositories%2F2%2Farchival_objects%2F487334+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/487169%22%20ancestors:%22/repositories/2/archival_objects/487201%22%20ancestors:%22/repositories/2/archival_objects/487204%22%20ancestors:%22/repositories/2/archival_objects/487270%22%20ancestors:%22/repositories/2/archival_objects/487275%22%20ancestors:%22/repositories/2/archival_objects/487278%22%20ancestors:%22/repositories/2/archival_objects/487280%22%20ancestors:%22/repositories/2/archival_objects/487282%22%20ancestors:%22/repositories/2/archival_objects/487285%22%20ancestors:%22/repositories/2/archival_objects/487287%22%20ancestors:%22/repositories/2/archival_objects/487289%22%20ancestors:%22/repositories/2/archival_objects/487291%22%20ancestors:%22/repositories/2/archival_objects/487293%22%20ancestors:%22/repositories/2/archival_objects/487304%22%20ancestors:%22/repositories/2/archival_objects/487307%22%20ancestors:%22/repositories/2/archival_objects/487311%22%20ancestors:%22/repositories/2/archival_objects/487316%22%20ancestors:%22/repositories/2/archival_objects/487319%22%20ancestors:%22/repositories/2/archival_objects/487322%22%20ancestors:%22/repositories/2/archival_objects/487324%22%20ancestors:%22/repositories/2/archival_objects/487334%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -2493,7 +2493,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F484806%2C%2Frepositories%2F2%2Farchival_objects%2F486644%2C%2Frepositories%2F2%2Farchival_objects%2F486725+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/484806%22%20ancestors:%22/repositories/2/archival_objects/486644%22%20ancestors:%22/repositories/2/archival_objects/486725%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ @@ -2791,7 +2791,7 @@ { "request": { "method": "GET", - "uri": "https://as.rockarch.org/api/search?fields%5B%5D=uri&page=1&page_size=1&q=%7B%21terms+f%3Dancestors%7D%2Frepositories%2F2%2Farchival_objects%2F892774%2C%2Frepositories%2F2%2Farchival_objects%2F892775+AND+publish%3Atrue&type%5B%5D=archival_object", + "uri": "https://as.rockarch.org/api/search?q=ancestors:%22/repositories/2/archival_objects/892774%22%20ancestors:%22/repositories/2/archival_objects/892775%22&filter_query%5B%5D=publish:true&page=1&fields%5B%5D=uri&type%5B%5D=archival_object&page_size=1", "body": null, "headers": { "User-Agent": [ diff --git a/merger/helpers.py b/merger/helpers.py index 4413cf62..51b1c92d 100644 --- a/merger/helpers.py +++ b/merger/helpers.py @@ -143,8 +143,9 @@ def tree_node(self, resource_uri, node_uri): def objects_within(self, uri_list): """Gets the number of objects which have a URI in their ancestors array.""" count = 0 - for chunk in list_chunks(uri_list, 190): - search_uri = f"search?q={{!terms f=ancestors}}{','.join(chunk)} AND publish:true&page=1&fields[]=uri&type[]=archival_object&page_size=1" + for chunk in list_chunks(uri_list, 100): + ancestors_param = ' '.join([f'ancestors:"{c}"' for c in chunk]) + search_uri = f"search?q={ancestors_param}&filter_query[]=publish:true&page=1&fields[]=uri&type[]=archival_object&page_size=1" result = self.aspace.client.get(search_uri) try: data = result.json()