Guys, Any suggestion? Thanks! -Mihir On Thu, Apr 25, 2013 at 5:31 PM, Mihir Das <[email protected]> wrote:
> Hi Guys, > > I need some suggestion to tweak search:suggest for getting result-set from > two nodes. My sample query is mentioned below: > > xquery version "1.0-ml"; > import module namespace search = "http://marklogic.com/appservices/search" > at "/MarkLogic/appservices/search/search.xqy"; > > let $options := > <options xmlns="http://marklogic.com/appservices/search"> > <grammar> > <quotation>"</quotation> > <implicit> > <cts:or-query strength="10" xmlns:cts="http://marklogic.com/cts"/> > </implicit> > <joiner strength="50" apply="constraint">:</joiner> > </grammar> > > <constraint name="b-const"> > <range collation="http://marklogic.com/collation" > type="xs:string" facet="true"> > <element ns="" name="b"/> > </range> > </constraint> > <suggestion-source ref="b-const"> > <range collation="http://marklogic.com/collation" > type="xs:string" facet="true"> > <element ns="" name="b"/> > </range> > </suggestion-source> > > <constraint name="a-const"> > <range collation="http://marklogic.com/collation" > type="xs:string" facet="true"> > <element ns="" name="a"/> > </range> > </constraint> > <suggestion-source ref="a-const"> > <range collation="http://marklogic.com/collation" > type="xs:string" facet="true"> > <element ns="" name="a"/> > </range> > </suggestion-source> > </options> > return > search:suggest(("a-const:e","b-const:e"), $options,10) > > Output: no results > ML version: 4.2 > > Expected output: OR-ing of result set matching the value "e*" from node > "a" & "b" > > Thanks in advance! > > -Mihir >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
