The basic design pattern for facets is to use value lexicons (for example, cts:element-values) with a cts:query option to constrain the lexicon search to fragments that match the cts:query. The cts:query to pass into the lexicon is typically the same cts:query used in a cts:search. Then you can use cts:frequency on each value returned from the lexicon call to get the number of values that match for your search. Value lexicons require a string range index on the element or attribute whose values you are returning. For some information about lexicons, see Chapter 21 of the Developer's Guide (http://developer.marklogic.com/pubs/3.2/books/dev_guide.pdf).
The lib-search project (http://developer.marklogic.com/code/) includes faceted navigation support. -Danny From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vikash Ranjan Sent: Thursday, July 31, 2008 12:13 AM To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] setting tree cache partitions? Any idea about doing facet searching in Mark Logic, what are the steps which need to follow for that ?
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
