Geert,

Thanks for the quick and thorough reply. I looked at the HTTP app I had
created and, sure enough, it was bound to a different database than I had
intended. I changed that, removed the reference to the forest in the xquery
code (since I only aimed it at a forest because I thought that that was how
to aim it at a database) and life is good.

Thanks, again.

Sol


From: Geert Josten <[email protected]>
Subject: Re: [MarkLogic Dev General] xdmp-document load doesn't see my
       forest
To: General MarkLogic Developer Discussion
       <[email protected]>
Message-ID:
       <b26c615f8546a84c81165a7bc8be61a01fddde3...@exmbxc01.ms-hosting.nl>
Content-Type: text/plain; charset="us-ascii"

Hi Sol,

Your app server is bound to a certain database. You need to make sure that
the forest you are targetting is part of the documents database that is
assigned to your app server. It sounds like your app server is using a
database of which your MyForest isn't part. If you haven't assigned your
forest to any database, you could assign it to the database that is assigned
to your app server. Alternatively, you could create a new database, add your
forest to that one, and tie that database as documents database to your app
server.

I tend to prefer to use separate databases for different app servers, unless
there is a good reason to share the data with other app servers. And you
might better not point to forests yourself. It makes things complicated if
you decide later on to have multiple forest to store the data of your
database. Just use a separate database, and let MarkLogic Server decide for
it self how to divide the content between the forests of that database..

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

Reply via email to