Why can't you shuffle in the app? Once you have the groups returned, _how_
you display them is up to you. And you can sort the groups based on fields.
Best
Erick
On Fri, Aug 2, 2013 at 7:15 PM, Bruno René Santos wrote:
> Hi Erick,
>
> Yes we have lots of documents with the same score. We turned
Hi Erick,
Yes we have lots of documents with the same score. We turned off IDF and on
some fields also the norms and frequencies. And so on a business point of
view we need to shuffle those results in order to give the opportunity to
any document with the highest score to be in first.
The problem
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. *:
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 th