Found the issue.I am using solr 5.4.0 version. in ExpandComponent - the TermFieldCollector is created with the TotalDefaultScores and TotalDefaultMaxScores were passed as false. This limits any field sorting (other than score) makes the score to be returned as NaN. By passing either or both of them as true, the score value is returned when the expand.sort is done on any other field.
On Wednesday, March 13, 2019, 11:09:21 AM EDT, Raveendra Yerraguntla <raveend...@yahoo.com> wrote: All, I am using the collapse plugin with the following query params text_field:( apple OR apples) ) ) Fq : {!collapse field=string_field sort='numeric_field asc , score desc ' nullPolicy=expand} Raw params : expand=true&expand.rows=600&expand.sort=numeric_field asc The above query results in score value of NaN in theexpandedResults. When the expand.sort=numeric_field asc is not usedexpanded results has score value populated. The value of the numeric filed is in the form ofd<yyyymmdd> form. The value of d is 1 to 5. Any insights about why the score field is returned asNaN Appreciate your help. ThanksRavi