Ok, a somewhat different question than the one I posed this morning.
Anyway, I'm performing a cts:uris query to retrieve values from the URI
lexicon. I would like the URIS that I retrieve from this lexicon to be ordered
by the score (score-simple) that was used in the cts:query component to filter
the cts:uri query. Reading the documentation, this sounds feasible (otherwise,
why would the documentation list all of the scoring/ordering options). But my
experience has been that this apparently doesn't work (or I'm simply not using
this correctly).
Below is the pertinent part of my query.
cts:uris((),("score-simple","descending","limit=1"),
So, I want the results ordered 'descending' by 'score-simple' and I only want
one. I assume "item-order", the default equates to order by 'score' …
Although, I've tried all of the options. There is no listed ordering option
specifically for score (perhaps this is an undocumented feature).
I need to know whether this is possible, and if so what I'm doing wrong. If it
should be possible, and I'm not doing anything wrong, then I would say this is
a bug.
Using cts:search (using the filtered query passed to cts:uris), I'm able to
verify what the correct order should be for the URIs returns from cts:uris.
Darin.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general