geoDistanceFilter where radius comes from a document field

Hello,

I'm using the JAVA api, and I have a geofilter
"geoDistanceFilter("location").distance(radius,
DistanceUnit.KILOMETERS).point(lat, lon)", where radius is a simple
java double variable I can set. What I want is to use a filter where
your radius is filled in by a value comming from the document itself
instead of assigning it upfront. Something like:

geoDistanceFilter("location").distance(doc['radius_field'].doubleValue,
DistanceUnit.KILOMETERS).point(lat, lon).

Does anyone know if something like this is possible?

thanks,
Bert Gossey