# geoDistanceFilter where radius comes from a document field

(bgossey) #1

Hello,

I'm using the JAVA api, and I have a geofilter
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: