Geo Shape Queries


We are trying to do a query based on finding points that lie within a circle, but it is not working
filters.Add(fq => fq.GeoShapeCircle(c => c.Name("circle_query").Boost(1.1).Field(p => p.Location).Coordinates(new GeoCoordinate(latitude, longitude)).Radius( "1000m").Relation(GeoShapeRelation.Intersects)));

However, a Distance query, such as the following works fine. Any one know why?
filters.Add(fq => fq.GeoDistance(c => c.Name("distance_query").Boost(1.1).Field(p => p.Location).Distance(1000, DistanceUnit.Meters).Location(new GeoLocation(latitude, longitude))));

Kind Regards

(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.