Yup. That should do it with fragments. -------- Clark D. Richey, Jr. Technical Director MarkLogic Corporation [email protected] @crichey Cell: +1 240 252 7507 www.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. On May 30, 2013, at 11:15 AM, Gary Larsen <[email protected]> wrote: > Thanks Clark, > > This is returning what appear to be reasonable numbers: > > xdmp:estimate(cts:search(fn:doc(), > cts:document-fragment-query(cts:element-query(xs:QName(‘table’),cts:and-query(()))), > "unfiltered")) > > Since I’m using fragments, without the cts:document-fragment-query() the > counts were small. > > Gary > > From: [email protected] > [mailto:[email protected]] On Behalf Of Clark Richey > Sent: Thursday, May 30, 2013 11:03 AM > To: MarkLogic Developer Discussion > Subject: Re: [MarkLogic Dev General] count of element > > What about something like: > > fn:count(cts:element-query(xs:QName("table"),cts:and-query(()))) > > -------- > Clark D. Richey, Jr. > Technical Director > MarkLogic Corporation > [email protected] > @crichey > Cell: +1 240 252 7507 > www.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. > > > On May 30, 2013, at 10:33 AM, Gary Larsen <[email protected]> wrote: > > > This is probably easy but haven’t figured it out yet. > > I’m looking for a query (preferably cts) to return how many times an element, > <table> for example, exists in the database. The elements would be located > in fragments. > > Thanks, > Gary > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
