Hi,
Is it possible to use metadata filtering to restrict the results to be within the radius of a geographical point (latitude and longitude)?
For instance, lets say that my index consists of a list of Hotels and I want to find the best match for my semantic vector BUT only within a certain radius of my city. Each hotell might have multiple locations.
Example data:
[{
"id": "1",
"metadata": {
"name": "A great Hotel",
"locations": [[-77.0364, 38.8951]]
},
"values": [-0.031287473, -0.024716083, -0.0017911823, ...]
}
{
"id": "2",
"metadata": {
"name": "Another Great Hotel",
"locations": [[-77.0364, 38.8951],[-77.0364, 38.8951],[-77.0364, 38.8951]]
},
"values": [-0.031287473, -0.024716083, -0.0017911823, ...]
}]
How I imagine a query could look like:
{
"vector": [0.0040269415, -0.028688831, 0.015932681, -0.02544977, ...],
"filter": {
"locations": {
"WithinGeoRange": {
latitude: -77.0364,
longitude: 38.8951,
radius: 20
}
}
}
}