Ivan Saric created SOLR-18698:
---------------------------------

             Summary: CombinedQueryComponent adds sort_values twice per 
sub-query response
                 Key: SOLR-18698
                 URL: https://issues.apache.org/jira/browse/SOLR-18698
             Project: Solr
          Issue Type: Bug
            Reporter: Ivan Saric


{{CombinedQueryComponent.process}} calls {{doFieldSortValues(thisRb, ...)}} for 
each sub-query after {{super.process(thisRb)}} ({{QueryComponent.process}}) has 
already added {{sort_values}} to the same per-query response when {{fsv=true}}. 
The key is therefore added twice; the values are identical, so this is 
duplicated work and output rather than wrong results.

Found by the unique-key assertion of https://github.com/apache/solr/pull/5417 
(SIP-22, SOLR-18612): 
{{JsonQueryRequestIntegrationTest.testMultipleQueriesCanUseLocalParamsSyntax}} 
trips it when the assertion is on.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to