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