Have you tried: In your search-criteria:
<facet-def do-count="true"> <facet-def-id>kwd-facet-id</facet-def-id> </facet-def> In your lib-search-custom config element: <facets> <default-do-count>true</default-do-count> <search:value-facet id="kwd-facet-id"> <search:element id="kwd"> <search:namespace></search:namespace> <search:local-name>kwd</search:local-name> </search:element> </search:value-facet> </facets> This sort of thing is working for me. Frank On 6/16/08 8:00 PM, "Alan Darnell" <[EMAIL PROTECTED]> wrote: > Working my way through hooking up the Versi template modules with the > excellent lib-search modules and I'm running into a wall trying to > generate facet values. I have a range index on an element called > kwd. There is no namespace other than the default namespace > associated with that element So I try the following, and though I get > back search results, I don't get any facet values. I'm thinking I'm > missing something really basic but can't figure it out from the > documentation. Any help would be appreciated. > > Alan > > ---- > > import module namespace search="http://www.marklogic.com/ps/lib/lib-search > " at "modules/lib-search.xqy" > import module "http://www.marklogic.com/ps/lib/lib-search" at "modules/ > lib-search-custom.xqy" > > > search:search-summary( > <search:search-criteria> > <search:term> > <search:text> > water > </search:text> > </search:term> > <facet-defs> > <facet-def do-count="true"> > <value-facet> > <element> > <namespace></namespace> > <local-name>kwd</local-name> > </element> > <top>10</top> > </value-facet> > </facet-def> > </facet-defs> > </search:search-criteria> > ,1,10) > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general Frank Rubino Mark Logic Corp. 862-596-3248 [EMAIL PROTECTED] -- _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
