Re: Reusing `geodist()` value in a function query

2016-07-15 Thread Aakash Sabharwal
Hey! Any help on this would be appreciated. I tried tracing through the code and I couldn't find evidence of any level of geodist() caching. Aakash On Thu, Jul 14, 2016 at 7:33 PM Aakash Sabharwal wrote: > Alternatively if I do the following: > > *q={!boost b=max(sub(abs(sub($geodz,0.0)),1.6),

Re: Reusing `geodist()` value in a function query

2016-07-14 Thread Aakash Sabharwal
Alternatively if I do the following: *q={!boost b=max(sub(abs(sub($geodz,0.0)),1.6), pow(abs(sub($geodz,0.0)),1.2))}&geodz=geodist()* Does this lead to geodist() being recomputed or not? On Thu, Jul 14, 2016 at 6:37 PM Aakash Sabharwal wrote: > Hello, > > geodist calculations can be expens

Reusing `geodist()` value in a function query

2016-07-14 Thread Aakash Sabharwal
Hello, geodist calculations can be expensive so trying ways to optimize around it. Particularly trying to figure out if sub-function queries are cached while calculating an overall boost function for queries. For example if I query with the below: *q={!boost b=max(sub(abs(sub(geodist(),0.0)),1.