Hi Geert, Many thanks for your answer. The seconds options (cts:search usage) give quite good results.
Anyway, I'll be happy to have a comment on cts:frequency on words from field. Thanks Stéphane Le 8 mars 2012 à 15:31, Geert Josten a écrit : > Hi Stéphane, > > It would be great to be able to use cts:frequency on words from field or > word lexicons too. (Could anyone comment on why this is not possible?) > > But since that doesn't work (simply returns zero), you have either the > option to: > - tokenize the element values and store each token as a separate element > value, and use element range index to be able to use cts:frequency > - do a cts:search for each word, and approximate the frequency with a > doc/fragment count using xdmp:estimate > > Kind regards, > Geert > >> -----Oorspronkelijk bericht----- >> Van: [email protected] [mailto:general- >> [email protected]] Namens Stephane Toussaint >> Verzonden: donderdag 8 maart 2012 11:52 >> Aan: General MarkLogic Developer Discussion >> Onderwerp: [MarkLogic Dev General] Field lexicon and frequency >> >> Hi, >> >> I'm looking for a way to retrieve not only words from a lexicon (field > lexicon >> actually) but the number of occurrence as well. >> I know that this is something easy to do with cts:frequency but only for > element >> or attribute lexicon, not field. >> >> My use case is to create a field that store element that participate to > a >> wordcloud. And then return words and there occurrence to build a > wordcloud. >> That is for the big picture, maybe there's something better to do this. >> >> Thanks >> >> Stéphane >> >> >> _______________________________________________ >> General mailing list >> [email protected] >> http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
