You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by OSMAN Metin <Me...@canal-plus.com> on 2014/02/21 19:25:17 UTC
Best way to get results ordered
Hi all,
we are using SolR 4.4.0 and planning to migrate to 4.6.1 very soon.
We are looking for a way to get results ordered in a certain way.
For example, we are doing query by ids this way : q=id=A OR id =C OR id=B and we want the results to be sorted as A,C,B.
Is there a good way to do this with SolR or should we sort the items on the client application side ?
Regards,
Metin
RE: Best way to get results ordered
Posted by OSMAN Metin <Me...@canal-plus.com>.
Thank you Michael,
this applies from 5 to about 60 contents.
We have already tried with boosts, but the results were not sorted well every time.
Maybe our boost coefficients were not set properly, but I thought that there will be a "correct" way to do this.
Metin OSMAN
Canal+ || DTD - VOD
01 71 35 02 70
-----Message d'origine-----
De : Michael Della Bitta [mailto:michael.della.bitta@appinions.com]
Envoyé : vendredi 21 février 2014 19:28
À : solr-user@lucene.apache.org
Objet : Re: Best way to get results ordered
Hi Metin,
How many IDs are you supplying in a single query? You could probably accomplish this easily with boosts if it were few.
Michael Della Bitta
Applications Developer
o: +1 646 532 3062
appinions inc.
"The Science of Influence Marketing"
18 East 41st Street
New York, NY 10017
t: @appinions <https://twitter.com/Appinions> | g+:
plus.google.com/appinions<https://plus.google.com/u/0/b/112002776285509593336/112002776285509593336/posts>
w: appinions.com <http://www.appinions.com/>
On Fri, Feb 21, 2014 at 1:25 PM, OSMAN Metin <Me...@canal-plus.com>wrote:
> Hi all,
>
> we are using SolR 4.4.0 and planning to migrate to 4.6.1 very soon.
>
> We are looking for a way to get results ordered in a certain way.
>
> For example, we are doing query by ids this way : q=id=A OR id =C OR
> id=B and we want the results to be sorted as A,C,B.
>
> Is there a good way to do this with SolR or should we sort the items
> on the client application side ?
>
> Regards,
>
> Metin
>
>
Re: Best way to get results ordered
Posted by Michael Della Bitta <mi...@appinions.com>.
Hi Metin,
How many IDs are you supplying in a single query? You could probably
accomplish this easily with boosts if it were few.
Michael Della Bitta
Applications Developer
o: +1 646 532 3062
appinions inc.
"The Science of Influence Marketing"
18 East 41st Street
New York, NY 10017
t: @appinions <https://twitter.com/Appinions> | g+:
plus.google.com/appinions<https://plus.google.com/u/0/b/112002776285509593336/112002776285509593336/posts>
w: appinions.com <http://www.appinions.com/>
On Fri, Feb 21, 2014 at 1:25 PM, OSMAN Metin <Me...@canal-plus.com>wrote:
> Hi all,
>
> we are using SolR 4.4.0 and planning to migrate to 4.6.1 very soon.
>
> We are looking for a way to get results ordered in a certain way.
>
> For example, we are doing query by ids this way : q=id=A OR id =C OR id=B
> and we want the results to be sorted as A,C,B.
>
> Is there a good way to do this with SolR or should we sort the items on
> the client application side ?
>
> Regards,
>
> Metin
>
>