Elastic で次の疑似クエリを実行したいと考えています。
SELECT SomeTypeOfObjects WHERE distance to
PointOfInterests < 20km AND PointOfInterests.type = 'bar';
Elastic に次のデータがあります。
SomeTypeOfObjects (around 10.000.000 rows)
----------
id = x
geo_location = x,x
PointOfInterests( around 400.000 rows )
---------
id = x
geo_location = x,x
type=bar, hospital, etc
これは、2 つのクエリを実行したり、可能なすべての地理的位置をクエリに入力したりしなくても可能でしょうか?