Hi, Thanks. I referred the mail you have mentioned. Creating range index for a particular element and using the same for facet result is one way.
But my scenario is different. From the search result, I have to get the original xml record and do some manipulation of some element and form new xml. With this new xml fields i have to form the facet result.Sine this fields are formed dynamically I am unable to create indexes for these fields. Note: The newly created XML is not stored in ML server Please help me out to solve this issue. Thanks in advance. Regards, Mano. ________________________________ From: Shannon <[email protected]> To: General Mark Logic Developer Discussion <[email protected]> Sent: Mon, 20 September, 2010 7:43:19 PM Subject: Re: [MarkLogic Dev General] Facet results Hi Mano, You might find Justin's response to a similar question from 8/24 useful: http://markmail.org/message/or6eqxbqlyvr4jd6 Best, Shannon On Sep 20, 2010, at 10:06 AM, mano m wrote: Hi, > >Please suggest your opinion for the following questions : > >1. How do we get facets from cts:search() results.I tried with using >cts:frequency() for the cts:word-query() results. > >2. Do we need to create indexes for all the facet elements? Or Is there any >way >to get the facet without creating indexes? > > >Regards, >Mano > > >_______________________________________________ >General mailing list >[email protected] >http://developer.marklogic.com/mailman/listinfo/general >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
