lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atita Arora <atitaar...@gmail.com>
Subject Re: Retrieving docs in the same order as provided in the query
Date Thu, 09 May 2019 13:35:15 GMT
Sure,
I can give this a shot! Hope it works out well for bigger resultsets too :)

Big Thanks, Erik :)



On Thu, May 9, 2019 at 3:20 PM Erik Hatcher <erik.hatcher@gmail.com> wrote:

> Atita -
>
> You mean something like q=id:(X Y Z) to be able to order them arbitrarily?
>
> Yes, you can use the constant score query syntax to set the score, e.g.:
>
>    q=id:Z^=3 OR id:Y^=2 OR id:X^=1
>
> Hope that helps.
>
>         Erik
>
>
> > On May 9, 2019, at 8:55 AM, Atita Arora <atitaarora@gmail.com> wrote:
> >
> > Hi,
> >
> > Is there someway way to retrieve the docs in the same order as queried in
> > the solr query?
> >
> > I am aware of leveraging bq for this and have even tried overriding
> custom
> > similarity to achieve this but I am looking for something simpler.
> >
> > Please enlighten me.
> >
> > Best Regards,
> > Atita
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message