Thanks Jason.

Actually, by using 'sample' (or I guess truncate) seems to bring in the
effect of scoring associated with the cts:query.  This is what I was
trying to figure out ... Guess the documentation could be a bit more clear
;-)  But, in my case, since I was trying to limit the query to 1 result
anyway (by using limit=1), I can achieve the same result by doing sample=1.

Thanks.

Darin.

On 7/26/11 2:10 PM, "Jason Hunter" <[email protected]> wrote:

>> 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).
>
>My understanding is the scoring options are there so when you're
>truncating you can get values from the top N most relevant documents.
>There's no public way to request ordering by score, and I've never heard
>of an undocumented way.  Sounds like a good RFE.
>
>You can use cts:search() of course, calling document-uri() or base-uri()
>on the each result.  It'll work, with the cost of some disk access
>proportional to the number of result items examined.
>
>-jh-
>
>_______________________________________________
>General mailing list
>[email protected]
>http://developer.marklogic.com/mailman/listinfo/general

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to