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

   I think there's one problem, in your example with a "simple function" inline 
(lambda):
   
   ```java
   DoubleValuesSource valSource = DoubleValuesSource.fromField("val", v -> 
10000.0 / v, false);
   ```
   
   The `fromField` function requires `true` or `false`. If you now use `v -> 
sin(v)` as lambda, you need to pass somehow "undefined" here. So basically the 
thirs parameter needs to be a three-state! E.g., you need to be able to pass 
true/false or null.
   
   And on top: the version without the boolean by default assumes no direction 
and we undeprecate it.


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