Thanks Geert.
I am working with the one database that does work right now. Maybe we can determine why this one works and the top-songs database does not. If we figure it out I'll try to remember to post back in case others have the same issue.
Thanks again for the response.
Randy

On 4/2/2012 2:45 PM, Geert Josten wrote:

Hi Randy,

This is starting to call for a peak at your Admin screen.. :-/

There are lots of ways to get files excluded from search results. You’d normally just have to add something like a directory-query, collection-query, element-query, or anything alike for something not matching what you want, or not matching anything. But to my knowledge, such things are not the case with Corona. It doesn’t apply any additional queries by default (not even sure it has features to add any of such queries.)

Permissions could be involved as well, but not if you are running everything with admin.

A simple misconfiguration could be the cause too. It is easy to select the correct database in Query Console (even though I often make a mistake there first too).

The results you are getting at least indicate Corona is operating normally, but really doesn’t find any results. I’m really not sure why. L

Kind regards,

Geert

*Van:*[email protected] <mailto:[email protected]> [mailto:[email protected] <mailto:[email protected]>] *Namens *Randy Smith
*Verzonden:* maandag 2 april 2012 19:34
*Aan:* MarkLogic Developer Discussion
*Onderwerp:* Re: [MarkLogic Dev General] Another Corona Question

Geert,
Running under admin for everything I'm doing. The Corona app server is set to application-level with the admin user. I still get no results when doing something like this:

http://myhost:80xx/search?stringQuery=cat&outputFormat=xml <http://myhost:80xx/search?stringQuery=cat&outputFormat=xml>

When I do the above this is what I get back in the browser;

*<corona:response>
<corona:meta>
<corona:start>0</corona:start>
<corona:end>0</corona:end>
<corona:total>0</corona:total>*
*<corona:executionTime>0S</corona:executionTime>*
*</corona:meta>
<corona:results/>
</corona:response>*

Not sure what the problem is. We did get a results back from one other database we have that is on another server. We are looking into that. Just can't figure why it will not work with the Top Songs database we used in class and of course the real database I want to use Corona with. I generally load all my data with Information Studio by pointing to a file system that contains the data. The previous e-mail may indicate there is a permission problem but I get results back in other cases in Query Console.

Thanks much for the help.
Randy
On 4/2/2012 12:06 PM, Geert Josten wrote:

Hi Randy,

Can you tell us again with which user you are running Corona? Did you try setting the Corona App Server to application-level with the admin user? What are the results then?

Kind regards,

Geert

*Van:*[email protected] <mailto:[email protected]> [mailto:[email protected] <mailto:[email protected]>] *Namens *Randy Smith
*Verzonden:* maandag 2 april 2012 18:51
*Aan:* MarkLogic Developer Discussion
*Onderwerp:* Re: [MarkLogic Dev General] Another Corona Question

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]> [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]  <mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]  <mailto:[email protected]>
http://developer.marklogic.com/mailman/listinfo/general


_______________________________________________
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