zacharymorn commented on pull request #418:
URL: https://github.com/apache/lucene/pull/418#issuecomment-967790816


   Hi @jpountz @jimczi, when I was doing some more deep dive to see how this PR 
can be improved further, I noticed a difference of field-weight parameter 
passed to create`MultiNormsLeafSimScorer` in `CombinedFieldQuery`:
   
   `CombinedFieldQuery#scorer`:
   
https://github.com/apache/lucene/blob/3b914a4d73eea8923f823cbdb869de39213411dd/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java#L420-L421
   
   `CombinedFieldQuery#explain`:
   
https://github.com/apache/lucene/blob/3b914a4d73eea8923f823cbdb869de39213411dd/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java#L387-L389
   
   
   For the `CombinedFieldQuery#scorer` one, `fields` may contain duplicated 
fields:
   
https://github.com/apache/lucene/blob/3b914a4d73eea8923f823cbdb869de39213411dd/lucene/sandbox/src/java/org/apache/lucene/sandbox/search/CombinedFieldQuery.java#L404-L414
   
   , whereas `fieldAndWeights.values()` should not contain duplicated fields. 
   
   I feel `CombinedFieldQuery#scorer` should be updated to use 
`fieldAndWeights.values()` as well? What do you think?


-- 
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...@lucene.apache.org

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



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

Reply via email to