Any ideas on this one?

On Wed, Mar 9, 2011 at 2:00 PM, Brian Lamb <brian.l...@journalexperts.com>wrote:

> Hi all,
>
> I know that I can add &sort=score desc to the url to sort in descending
> order. However, I would like to sort a MoreLikeThis response which returns
> records like this:
>
> <lst name="moreLikeThis">
>   <result name="3" numFound="113611" start="0" maxScore="0.4392774">
>   <result name="2" numFound="1111" start="0" maxScore="0.5392774">
> </lst>
>
> I don't want them grouped by result; I would just like have them all thrown
> together and then sorted according to score. I have an XSLT which does put
> them altogether and returns the following:
>
> <moreLikeThis>
>   <similar>
>     <score>x.xxxx</score>
>     <id>some_id</id>
>   </similar>
> </moreLikeThis>
>
> However it appears that it basically applies the stylesheet to result
> name="3" then result name="2".
>
> How can I make it so that with my XSLT, the results appear sorted by
> <score>?
>

Reply via email to