-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
We are having 2 issues with querying GeoshapePoint with ES 1.7.1, and Nest 1.7.0
Here our C# :
var result = client.Search<Polygon>(
s => s.Index(IndexNames.Ref)
.Query(q => q.Filtered(
f => f.Filter(g =>
g.GeoShapePoint("VertexValues",
d => d.Relation(GeoShapeRelation.Within).Coordinates(coordinates)
)
)
)
));
Here is the json generated :
{
"query": {
"filtered": {
"filter": {
"geo_shape": {
"VertexValues": {
"shape": {
"coordinates": [
48.864686,
2.351616
],
"Type": "point"
},
"relation": "within"
}
}
}
}
}
}
Problems are :
- "Type" should be in lower case
- "relation": "within" should be inside the "shape" brackets
Metadata
Metadata
Assignees
Labels
No labels