How are results ordered in solr in a “match all docs” query

后端 未结 1 1619
余生分开走
余生分开走 2020-12-10 17:18

When I use a \"match all docs\" query, \'*:*\', asterisk colon asterisk, how are the results ordered?

I presume they get ordered by relevancy, but the

相关标签:
1条回答
  • 2020-12-10 17:29

    When two documents have the same score, Lucene sorts them by index order (the first which has been indexed first) so that running a query twice returns documents in the same order.

    Since MatchAllDocsQuery gives a constant score to all documents, it returns them in index order.

    0 讨论(0)
提交回复
热议问题