mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
Sparse role queries are executed differently than other queries in order to account for the fact that most of the documents are filtered from search. However this special execution does not set the scorer for the query so any collector that needs to access the score of a document fails with an NPE. This change fixed this bug by setting the scorer before collecting any hits when intersecting the main query and the sparse role.