Would you consider using the searches API instead?
This might give you some flexibility in what you can ask for, e.g. you can use searchPlaces function.
Would the search function be able to find unpublished documents? That is the second issue I have run into. Using the iterative process of finding documents to delete, none of the unpublished documents could be found.
I have 2 sub-spaces with documents that I need to delete. I want to delete all of the documents in the 1st sub-space. I want to delete only certain documents in the 2nd sub-space but I want to use the same osapi calls in each space. I will run the process against the 1st sub-space first since I don't have to worry about accidentally deleting documents so it will in essence be my test.
I created a process to delete the documents in the first sub-space and it was working fine until but it didn't find any of the unpublished documents. Then when I ran the same process against the 2nd sub-space, I had to read the first 4000 documents before I got to the ones I needed to delete and the process couldn't get to those last 2000 documents.
The last application I wrote, I used the Static Document Get then deleted the document. I duplicated the code and changed the document ID so it would run 2 deletes back to back in the app. I thought the static calls were not asynchronous but neither document got deleted. Are those static calls asynchronous?
So to just give you my questions:
1. Will the Search function, find unpublished documents?
2. Are the Static Gets asynchronous calls?