Thanks a lot for your replies. I am able get that information using HTTP call.
On Mon, Jan 20, 2014 at 10:55 PM, Wayne Feick <[email protected]>wrote: > If you're using local-disk replication and calling xdmp:forest-status() > or xdmp:forest-counts() directly, you'll also want to make sure you're > querying the appropriate replica forest when a failover happens. > > xdmp:forest-status( > xdmp:forest-open-replica( > xdmp:database-forests( > $database-id))) > > For normal development APIs that make use of forest IDs (e.g. > xdmp:document-insert(), cts:search()), you specify the master forest IDs > and we'll map them under the covers as needed when failed over. > > For administrative functions (xdmp:forest-status(), xdmp:forest-counts(), > xdmp:forest-restart()) you specify the exact forest ID that you're > accessing. > > Wayne. > > > > On 01/20/2014 04:44 AM, Geert J. wrote: > > Hi Manoj, > > > > You could do xdmp:estimate(collection()) if you are only interested in > number of documents. If you want to know more, then I’m afraid you will > need to accumulate that yourself, by iterating through > xdmp:database-forests <http://docs.marklogic.com/xdmp:database-forests> > ().. > > > > Kind regards, > > Geert > > > > > > *Van:* [email protected] [mailto: > [email protected]] *Namens *manoj viswanadha > *Verzonden:* maandag 20 januari 2014 13:31 > *Aan:* MarkLogic Developer Discussion > *Onderwerp:* Re: [MarkLogic Dev General] Database status > > > > Hi Geert, > > > > Thanks for your quick reply. I have tried xdmp:forest-status but i could > not find the count of documents stored in a particular database. > > > > Is there any other function which gives that info. > > > > Thanks, > > Manoj. > > > > > > On Mon, Jan 20, 2014 at 5:23 PM, Geert J. <[email protected]> wrote: > > Hi Manoj, > > > > I think you are looking for xdmp:forest-status(), > http://docs.marklogic.com/xdmp:forest-status > > > > Kind regards, > > Geert > > > > *Van:* [email protected] [mailto: > [email protected]] *Namens *manoj viswanadha > *Verzonden:* maandag 20 januari 2014 12:10 > *Aan:* MarkLogic Developer Discussion > *Onderwerp:* [MarkLogic Dev General] Database status > > > > Hi Guys, > > > > Can anyone help me in getting the database status in marklogic. > > > > I can view the status from admin screen where i can see document size, no > of fragments and other properties. > > > > Is there any function in ML where i can get all the properties? > > > > Thanks, > > Manoj Viswanadha. > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > > > > _______________________________________________ > General mailing > [email protected]http://developer.marklogic.com/mailman/listinfo/general > > > -- > Wayne Feick > Principal Engineer > MarkLogic [email protected] > Phone: +1 650 655 2378www.marklogic.com > > This e-mail and any accompanying attachments are confidential. The > information is intended solely for the use of the individual to whom it is > addressed. Any review, disclosure, copying, distribution, or use of this > e-mail communication by others is strictly prohibited. If you are not the > intended recipient, please notify us immediately by returning this message to > the sender and delete all copies. Thank you for your cooperation. > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
