Re: Sorting for MLT results

2016-05-21 Thread Zheng Lin Edwin Yeo
Thanks for your reply.

But it didn't work when I execute this query.
http://localhost:8983/solr/collection1/mlt?q=testing=creation_date
desc,id asc=10

This is my configuration for the handler.

  explicit 10
json true 
edismax id, score  content subject content 2 5 3 25 10 false details  

Regards,
Edwin


On 17 May 2016 at 22:35, Alessandro Benedetti <abenede...@apache.org> wrote:

> using the more like this query parser should solve your problem !
> Just use that query parser and than sort as usual.
>
> Cheers
>
> On Wed, May 11, 2016 at 4:53 AM, Zheng Lin Edwin Yeo <edwinye...@gmail.com
> >
> wrote:
>
> > Hi,
> >
> > Would like to check, is there a function to do the sorting for MLT
> results
> > in Solr? I understand that there is a sort function, but that only works
> > for the main query results. It does not do any sorting for the MLT
> results
> >
> > I'm using Solr 5.4.0.
> >
> > Regards,
> > Edwin
> >
>
>
>
> --
> --
>
> Benedetti Alessandro
> Visiting card : http://about.me/alessandro_benedetti
>
> "Tyger, tyger burning bright
> In the forests of the night,
> What immortal hand or eye
> Could frame thy fearful symmetry?"
>
> William Blake - Songs of Experience -1794 England
>


Re: Sorting for MLT results

2016-05-17 Thread Alessandro Benedetti
using the more like this query parser should solve your problem !
Just use that query parser and than sort as usual.

Cheers

On Wed, May 11, 2016 at 4:53 AM, Zheng Lin Edwin Yeo <edwinye...@gmail.com>
wrote:

> Hi,
>
> Would like to check, is there a function to do the sorting for MLT results
> in Solr? I understand that there is a sort function, but that only works
> for the main query results. It does not do any sorting for the MLT results
>
> I'm using Solr 5.4.0.
>
> Regards,
> Edwin
>



-- 
--

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England


Sorting for MLT results

2016-05-10 Thread Zheng Lin Edwin Yeo
Hi,

Would like to check, is there a function to do the sorting for MLT results
in Solr? I understand that there is a sort function, but that only works
for the main query results. It does not do any sorting for the MLT results

I'm using Solr 5.4.0.

Regards,
Edwin