Thanks for the response Will,
In Query Console while logged in as admin, I tried this for a query for 'cat' that I know gives results:

/*for $x in cts:search(//top-song, "cat")
let $p := xdmp:document-get-permissions($x)
return $p*/

I got, "your query returned an empty sequence"

If the query is correct does this mean there are no permissions?

Note that when logged in as admin and I use something like this with "doc":

/*doc(songs/Kesha+Tik-Tok.xml)*/

in Query Console against the same database I get the document back.
Any help appreciated,
Thanks,
Randy


On 3/28/2012 4:24 PM, Will Thompson wrote:

Randy,

Have you compared the permissions of the files in the database that works to the one that doesn't? Make sure you are authenticated as admin, and use xdmp:document-get-permissions($uri). If the call returns empty, then there are no permissions, and only users with admin privileges will be able to see the files and get results.

-Will

*From:*[email protected] [mailto:[email protected]] *On Behalf Of *Randy Smith
*Sent:* Wednesday, March 28, 2012 9:05 AM
*To:* General MarkLogic Developer Discussion
*Subject:* [MarkLogic Dev General] Another Corona Question

All,
Still trying to get Corona working. In fact, we had a break through and it seems to be working to some degree. The problem is that we can point it to a database that has data (like the top-songs database we used in class) but an empty result set is returned when using something like...

*//search?stringQuery=cat?outputFormat=xml/*,

However, during our testing we did find one database where Corona returned results. We were surprised. Question, what are things to look for when one database will not return results and another will?
    - Is it permissions? We don't think this is a problem.
    - Is it related to namespaces?
    - Is it related to encoding?
    - Other?

Any help appreciated.
Randy


_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to