Hi Manimaran,

You can use search:search api. In search:search's options  you can define constraint on element "a"  with facet "true"" option. In search result, you will get all unique values with  frequency .



Regards,
Asit Nautiyal


From: [email protected] [[email protected]] on behalf of [email protected] [[email protected]]
Sent: Wednesday, April 01, 2015 8:05 PM
To: [email protected]
Subject: [MarkLogic Dev General] how to get values whose frequency greater than 1

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.



::DISCLAIMER::
----------------------------------------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and other defects.

----------------------------------------------------------------------------------------------------------------------------------------------------

_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to