Hi @Gerardo_Zenobi, since the empty query string equally matches all documents, the assigned score is 1.0 for each document (you can check this under the _meta.score property of the resulting hits). Therefore the sorting is not deterministic.
I did notice the scores on my empty query results were all the same.
In my case, the value is 21. I believe that it is because I have 2 value boosts on two different fields set to 10 which would explain the 20 points. And would confirm boosts take place in empty query searches.
However, I have multiple searchable fields in my engine schema, does the document only get's a 1 on empty queries even though we might have multiple fields to search in ?
All hits in the resultset have a constant score of 1.0.
It is only when I pass an actual value in query that the generated query includes various boosts on the weighted fields and subfields, and the hits' scores differ.
Is your experience different from this? If so, let me know what version you are on.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.