risdenk commented on PR #2221:
URL: https://github.com/apache/solr/pull/2221#issuecomment-1914730907

   > The other code path is actually already optimized for rows==0 and no scores
   
   Which code path are you talking about?
   
   > I think the solution is to not save the results into queryResultCache when 
rows==0; thus the window won't be applied either.
   
   Not sure I agree with that. We should be able to store the result in the 
queryResultCache so that we don't have to recompute for the same exact query a 
second time?
   
   > I also think a queryResultWindowSize of 1 (which is the default if it 
isn't specified in solrconfig and isn't documented AFAICT) 
   
   Its documented here 
https://solr.apache.org/guide/solr/latest/configuration-guide/caches-warming.html#queryresultwindowsize-element
   
   I know in our case we do set `queryResultWindowSize` in `solrconfig.xml`.
   
   Either way I'll look into QueryComponent some. @dsmiley as far as you are 
aware this change even though maybe not the best place to put it - doesn't have 
any negative side effects right?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to