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


   > from the perf results so far, it seems using the most weighted field to 
decide on the leading impacts may not yield the best result
   > Are you trying to see if perf tests can be further improved if most 
weighted field only gets computed once?
   
   Yes. I liked this approach because it felt like it should work relatively 
well since the field with the highest weight should drive scores anyway, and 
deciding about which clause leads impacts up-front felt like it could simplify 
the logic a bit. But if it doesn't yield better results, let's fall back to the 
previous approach. Let's maybe just double check with a profiler that the 
reason why this approach performs worse is actually because we get worse score 
boundaries and not because of some avoidable slow code like iterating or lookip 
up the various hash maps?
   
   >  wasn't sure earlier as SynonymQuery and CombinedFieldsQuery sit in 
different modules / packages, so extracting common code out may potentially 
require a new public specialized API / class (in the core module ?). Let me 
give that a try and see how it looks!
   
   Maybe we could have a `SynonymImpactsSource` or something like that as a 
public `@lucene.internal` class in core that would provide this logic.


-- 
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