Filtering by distance vs. field value in Solr -
i have schema includes maximum radius result show - example, 50. able calculate distance , filter without problem, need filter field, changes document document. i've tried:
fq={!frange l=0 u=radius_field}geodist()
and
fq={!func}geodist():[0 radius_field]
to no effect. there way this? filter client-side, worst case, figure there's out there has had same use case.
not direct answer, create new function is_in_range(radius_field)
returns boolean result if geodist()
less radius_field
parameter? might circumvent issues finding trying filter range using parameter.
Comments
Post a Comment