Re: Query & result caching with custom functions

2013-11-24 Thread Mathias Lux
Hi Joel, I just tested with custom equals and hashcode ... what I basically did is that I created a string object based on all the function values and used this for the equals (with an instanceof) and for the hash method. The result was quite the same as before, all treszults are cashed unless I

Re: Query & result caching with custom functions

2013-10-24 Thread Mathias Lux
That's a possibility, I'll try that and report on the effects. Thanks, Mathias Am 24.10.2013 16:52 schrieb "Joel Bernstein" : > Mathias, > > I'd have to do a close review of the function sort code to be sure, but I > suspect if you implement the equals() method on the ValueSource it should > sol

Re: Query & result caching with custom functions

2013-10-24 Thread Joel Bernstein
Mathias, I'd have to do a close review of the function sort code to be sure, but I suspect if you implement the equals() method on the ValueSource it should solve your caching issue. Also implement hashCode(). Joel On Thu, Oct 24, 2013 at 10:35 AM, Shawn Heisey wrote: > On 10/24/2013 5:35 AM,

Re: Query & result caching with custom functions

2013-10-24 Thread Shawn Heisey
On 10/24/2013 5:35 AM, Mathias Lux wrote: > I've written a custom function, which is able to provide a distance > based on some DocValues to re-sort result lists. This basically works > great, but we've got the problem that if I don't change the query, but > the function parameters, Solr delivers a