How should the C# code look like when I'm searching with coordinates?
I've tried to do it like a regular search but nothing seems to happen.
The regular search code is:
var searchResponse = lowlevelClient.Search<string>(new
{
from = 0,
size = 10,
query = new
{
match = new
{
fName = "name"
}
}
});
//THIS IS THE CODE I'VE TRIED TO SEARCH WITH:
var searchResponse = lowlevelClient.Search<string>(new
{
from = 0,
size = 10,
query = new
{
geo_bounding_box = new
{
location = new
{
top_left = new
{
lat = 45,
lon = -55.80
},
top_right = new
{
lat = 21,
lon = -21.10
}
}
}
}
});
What am I doing wrong?