lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <erickerick...@gmail.com>
Subject Re: Random sort with groups
Date Fri, 02 Aug 2013 20:37:26 GMT
bq: We sort first by the score and then by a random field.

This is highly unlikely to produce anything useful. Your
secondary sort (random field) will only be used if your
primary sort (score) matches exactly, which is usually
quite rare. Unless you're somehow doing a constant-score
query (e.g. *:*)....

So either you have a very unusual corpus that is scoring
lots and lots of docs exactly the same or there's something
I'm not understanding.

Best
Erick


On Fri, Aug 2, 2013 at 12:13 PM, Bruno René Santos <brunorene@gmail.com>wrote:

> Hello,
>
> We are trying to make a random sort with a query where we are grouping
> results by a field. On one example we always have one of the results on the
> top of the query result. We sort first by the score and then by a random
> field.
>
> We think that is because this group has 214 items inside and the second
> group only has 6 items. That way the random sort on the first group would
> get the first group like 99% of times on the first place of the results.
>
> Can someone confirm this behaviour?
>
> Regards
>
> --
> Bruno René Santos
> Lisboa - Portugal
>

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