[ https://issues.apache.org/jira/browse/SOLR-12393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16952086#comment-16952086 ]
Munendra S N commented on SOLR-12393: ------------------------------------- [^SOLR-12393.patch] In the latest patch, I have changed the condition so that scores are populated when when sort = null or score desc (default). In both these cases, TopScoreDocCollector is used which always populates the scores. [~dsmiley] One more thing I observed is that, {{maxScore}} is always {{NaN}} when scores are requested. For populating {{maxScore}} in case of non-default score, we might need to use {{MaxScoreCollector}}. In Any case, this is not handled as part of the patch. I will create new issue for this > ExpandComponent only calculates the score of expanded docs when sorted by > score > ------------------------------------------------------------------------------- > > Key: SOLR-12393 > URL: https://issues.apache.org/jira/browse/SOLR-12393 > Project: Solr > Issue Type: Bug > Components: SearchComponents - other > Reporter: David Wayne Smiley > Priority: Major > Attachments: SOLR-12393.patch, SOLR-12393.patch, SOLR-12393.patch, > SOLR-12393.patch > > > If you use the ExpandComponent to show expanded docs and if you want the > score back (specified in "fl"), it will be NaN if the expanded docs are > sorted by anything other than the default score descending. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org