uschindler commented on PR #16431:
URL: https://github.com/apache/lucene/pull/16431#issuecomment-5114153921

   Hi, there is one big problem, otherwise we would have enabled this for 
function queries already!:
   
   It won't work correctly if the function modifies the score in a way that it 
is not an increasing function, e.g, a function like `1/x` or `-x`. How can we 
differentiate between that? Or is it safe for this special case only (a pure 
DocValuesValueSource as function), and if you use another valuesource (e.g., 
from expressions) that does not implement the maxScore getter, it won't be 
optimized?


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to