[MarkLogic Dev General] Counting results of cts:search()
Danny Sinang
d.sinang at gmail.com
Tue Jun 26 08:07:22 PDT 2012
Hi Geert,
I tried xdmp:estimate($searchResults) and I'm getting XDMP-UNSEARCHARBLE -
expression is unsearchable.
Any idea ?
Regards,
Danny
On Tue, Jun 26, 2012 at 10:56 AM, Geert Josten <geert.josten at dayon.nl>wrote:
> Hi Danny,
>
>
>
> You would have to specify fragmentation parents or roots in the admin
> interface. There is no fragmentation by default.
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* general-bounces at developer.marklogic.com [mailto:
> general-bounces at developer.marklogic.com] *Namens *Danny Sinang
> *Verzonden:* dinsdag 26 juni 2012 16:51
> *Aan:* MarkLogic Developer Discussion
> *Onderwerp:* Re: [MarkLogic Dev General] Counting results of cts:search()
>
>
>
> Hi Geert,
>
>
>
> Thanks. How do I know if I'm using fragmentation or not ?
>
>
>
> Regards,
> Danny
>
> On Tue, Jun 26, 2012 at 10:41 AM, Geert Josten <geert.josten at dayon.nl>
> wrote:
>
> Hi Danny,
>
>
>
> Try xdmp:estimate. For the record, it counts fragments. If you are not
> using fragmentation, and don’t search for elements other than roots of docs
> and fragments, the count should be accurate.
>
>
>
> Kind regards,
>
> Geert
>
>
>
> *Van:* general-bounces at developer.marklogic.com [mailto:
> general-bounces at developer.marklogic.com] *Namens *Danny Sinang
> *Verzonden:* dinsdag 26 juni 2012 16:19
> *Aan:* general
> *Onderwerp:* [MarkLogic Dev General] Counting results of cts:search()
>
>
>
> Is there a faster way of counting the results returned by cts:search()
> other than doing an fn:count() on it ?
>
>
>
> Regards,
> Danny
>
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://community.marklogic.com/mailman/listinfo/general
>
>
>
> _______________________________________________
> General mailing list
> General at developer.marklogic.com
> http://community.marklogic.com/mailman/listinfo/general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://community.marklogic.com/pipermail/general/attachments/20120626/4b2bc1ce/attachment.html
More information about the General
mailing list