I would take that to support. The only workaround I can think of would be to use an element-value-query instead of a range-query. That won't be quite as efficient, of course.
-- Mike On 16 Jan 2013, at 12:28 , "Whitby, Rob, Springer Healthcare UK" <[email protected]> wrote: > Hi, > > I'm upgrading from MarkLogic 5 to 6 and have an issue with a search that uses > score-random. The aim is to get 5 random documents that match a query: > > for $doc in cts:search( > fn:collection(), > cts:element-range-query(xs:QName("ContentType"), "=", "Journal"), > ("unfiltered", "score-random") > )[1 to 5] > return fn:concat(xdmp:node-uri($doc), " = ", cts:score($doc)) > > In ML5 I get different results and scores each time as expected, but in ML6 > the same results are returned, all with score=0, because it seems range > queries no longer contribute to the score. > > Is there a way around this? > > Thanks, > Rob > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
