On Thu, Apr 2, 2015 at 6:23 PM, Adrien Grand <[email protected]> wrote: > On Fri, Apr 3, 2015 at 12:10 AM, Reitzel, Charles > <[email protected]> wrote: >> Unfortunately, since boost is used in hashCode() and equals() calculations, >> changing the boost will still make the queries "trappy". You will do all >> that work to make everything-but-boost immutable and still not fix the >> problem. > > This is why the query cache clones queries before putting them into > the cache and sets the boost to 1. The issue is that this clone method > is only shallow since its purpose is to change the boost. So it works > fine for the boost parameter but not for eg. boolean clauses. > > Again, I don't dismiss advantages of going fully immutable
I will. I do not think it is worth it. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
