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

Reply via email to