lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aakash Sabharwal <>
Subject Reusing `geodist()` value in a function query
Date Fri, 15 Jul 2016 01:37:28 GMT

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),

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?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message