Mano, I’m still not quite sure what you’re trying to accomplish. Can you please give a more concrete example of the input content, the transformation, and the facets you’d expect to build? In general, MarkLogic is able to do things, like facets, quickly over large data sets because of its indexes. You can think of XML stored in a database as an API to these indexes. Thus in order to take advantage of the MarkLogic indexes you’ll have to store the content you’d like to search or facet in a database. In your case that might mean processing your search results and putting some intermediate data into a temporary place in a database. Your application wouldn’t have to give your users access to this “intermediate” content, though. You could put the transformed search results into their own collection, for example, and exclude that collection from other application logic. With more details about your specific requirements others on the list or I might be able to provide better guidance.
Justin Justin Makeig Senior Product Manager MarkLogic Corporation Phone +1 650 655 2387 email [email protected]<mailto:[email protected]> web www.marklogic.com<http://www.marklogic.com/> This e-mail and any accompanying attachments are confidential. The information is intended solely for the use of the individual to whom it is addressed. Any review, disclosure, copying, distribution, or use of this e-mail communication by others is strictly prohibited. If you are not the intended recipient, please notify us immediately by returning this message to the sender and delete all copies. Thank you for your cooperation. On Sep 23, 2010, at 12:36 AM, mano m wrote: 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]<mailto:[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
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
