Re: modulus function query does mod on floats

2022-08-30 Thread Dan Rosher
ts above. If you're willing to write up a patch/PR > too I'd be happy to review! > > Best, > > Jason > > On Thu, Aug 18, 2022 at 12:35 PM Dan Rosher wrote: > > > > Hi, > > > > I was surprised when using the mod function query, the modulus w

modulus function query does mod on floats

2022-08-18 Thread Dan Rosher
Hi, I was surprised when using the mod function query, the modulus was wrong on my largeish int. This was because the int was cast to float, meaning the modulus was wrong for any int above 2^24 Should the mod function change to int modulus instead of float and have another fmod function (like c/

custom PostFilter

2022-01-24 Thread Dan Rosher
Hi, We have a use case ( to calc commute time) to run an expensive filter that sends filtered docs (along with their lat/lon) to a partner SaaS to calc commute time. I was thinking of writing as a PostFilter, but need to first gather all the docs (and scores) in the DelegatingCollector.collector