Re: FunctionValues vs DoubleValuesSource

2017-10-13 Thread Mike Sokolov
Oh thanks Alan that's a good suggestion, but I already wrote max and sum double values sources since it was easy enough. If you think that's a good approach I could post a patch. On October 13, 2017 3:57:30 AM EDT, Alan Woodward wrote: >Hi, > >Yes, moving stuff over to DoubleValuesSource is onl

Re: FunctionValues vs DoubleValuesSource

2017-10-13 Thread Alan Woodward
Hi, Yes, moving stuff over to DoubleValuesSource is only half done at the moment, unfortunately! Can you use the expressions module to do what you want? The SimpleBindings class allows you to map arbitrary DoubleValuesSource objects to specific names, and then you can combine them using javas

Re: FunctionValues vs DoubleValuesSource

2017-10-12 Thread Michael McCandless
Hi Mike, It looks like FunctionValues is a very old API used by many function queries, while DoubleValuesSource is relatively new (introduced in https://issues.apache.org/jira/browse/LUCENE-5325). This comment ( https://issues.apache.org/jira/browse/LUCENE-5325?focusedCommentId=15235324&page=com.

FunctionValues vs DoubleValuesSource

2017-10-10 Thread Sokolov, Michael
Hi, I'm trying to implement a complex set of values computed according to some externally-driven specification, so I am looking at these APIs. My question is whether there is any way to mix them. I have implemented some DoubleValuesSources and now I want combine them using sum, max, etc. I noti