|
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 .
Please refer
https://docs.marklogic.com/search:search
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
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. ---------------------------------------------------------------------------------------------------------------------------------------------------- |
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
