Hi Mani,
Did you try in this way,
for $item in cts:element-values(xs:QName("a"),"1",())
where cts:frequency($item) >1
return $item
On Wed, Apr 1, 2015 at 8:05 PM, <[email protected]> wrote:
> Hi,
>
>
>
> Is there any option (in any of these cts:element-values,
> cts:element-value-co-occurences) to return only the fragments whose
> frequency is greater than 1 .
>
>
>
> *For example* :suppose the below root fragments, in where element ‘a’ is
> indexed. I need only the result ‘vala’ using cts:element-values with
> cts:frequency .
>
>
>
> 1.<root>
>
> <a>vala</a>
>
> <b>valb</b>
>
> <c>valc</c>
>
> </root>
>
>
>
> 2. <root>
>
> <a> vala </a>
>
> <b> valb </b>
>
> <c> valc </c>
>
> </root>
>
>
>
> 2. <root>
>
> <a>values</a>
>
> <b> valb </b>
>
> <c> valc </c>
>
> </root>
>
>
>
> If it is not possible in any of these cts:element-values,
> cts:element-value-co-occurences,using which API I can achieve the above
> result?
>
>
>
>
>
> Thanks,
>
> Manimaran D S
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful. Where permitted by
> applicable law, this e-mail and other e-mail communications sent to and
> from Cognizant e-mail addresses may be monitored.
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general