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 <aakashsabhar...@gmail.com>
wrote:

> 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.6),
> pow(abs(sub(geodist(),0.0)),1.2))}*
>
> Will geodist() be invoked twice or will it be re-used?
> I believe function queries do get converted to FunctionValues which is a
> ValueSource. Are those always cached as DocValues or is that only in case
> of field values?
>
> Aakash
>

Reply via email to