I am using MarkLogic 7. I have a an app server endpoint called Mysearch that is attached to a database called SuperDb. This SuperDb has a sub database called SubDb.
I have a user that has rights to read documents, execute xquery. When i log into the qconsole using this user i have no problem running a search query using the search:search library and i get a response of documents matching my search term.
However if i use a rest client and call the app server endpoint, this endpoint is running a module that internally is doing a search using search:search. Nothing is returned in the search results.
I have no idea why the same query is performing differently on the app server and qconsole. Any ideas?