Try out the "map" option you can pass to the function.

On Nov 28, 2017 5:54 AM, "shabana khan" <[email protected]> wrote:

> Hi All,
>
> I am using *cts:value-co-occurrences()* for fetching pair of values for
> data set in my project.I have a query too for restricting resultant pair
> only from specific section.
> But the problem I am facing is that duplicate results are being returned
> for each occurrence of values.
> Basically, I am looking for a way by which each pair of value should occur
> only once in result. I looked at the available options and tried using 
> *"limit=N"
> *but that seems to have no effect on this.
> Filtering at later stage is not possible since it slows down the query if
> I go for selecting unique records based on some value.
>
> Is there some way to achieve it. If anyone has faced this problem please
> do share what you did exactly to get unique pair of values.
> Any heads-up will be appreciated.
>
> Thanks and Regards,
> Shabana Khan
> LinkedIn <https://in.linkedin.com/pub/shabana-khan/40/229/454>
>
>
>
>
> _______________________________________________
> 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

Reply via email to