I use Bounding Box in elasticsearch but, I get points outside of box ,it never shows points inside this box. this my Code:
var response = _elasticClient.Search<ElasticSearchModel>(
s => s.From((model.CurrentPage-1)*model.PageSize)
.Size(model.PageSize)
.Query(query => query.Bool(b => b
.Filter(f=>f.QueryString(d => d.Query(model.Keyword)))))
.Query(query => query.Bool(b => b
.Filter(filter => filter
.GeoBoundingBox(g => g
.Boost(1.1)
.Name("Location")
.Field(p => p.Location)
.BoundingBox(c => c
.TopLeft(model.Points.X2, model.Points.Y2)
.BottomRight(model.Points.X1, model.Points.Y1)
)
.ValidationMethod(GeoValidationMethod.Strict)
.Type(GeoExecution.Indexed)
)
)
)
));