How can I assign documents obtained by a QBE to a collection using REST API in MarkLogic Server? I currently use this QBE:
<q:qbe xmlns:q="http://marklogic.com/appservices/querybyexample">
<q:query><ALBUM>Pop</ALBUM></q:query>
<q:response><q:extract><TITLE></TITLE></q:extract></q:response>
</q:qbe>
If QBE cannot be used, what else can I use to search document by some criteria and update the collection metadata therein?