弹性搜索错误 "top is below bottom corner error"

Elasticsearch Error "top is below bottom corner error"

我在 Elasticsearch 中有以下错误

错误

{Type: illegal_argument_exception Reason: "top is below bottom corner: 41.27072281070173 vs. 69.22146114208326"}

我的密码是

var Buildingpoints= _elasticClient.Search<ElasticSearchModel>(
                     s => s.From(0).Size(600).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.X1, model.Points.Y1)
                    .BottomRight(model.Points.X2, model.Points.Y2)
                     )
                    .ValidationMethod(GeoValidationMethod.Strict)
                    .Type(GeoExecution.Indexed)
                    )
                    )


                        )
               ));

我是elasticsearch新手,帮我解决这个问题。 错误“{服务器错误:400类型:search_phase_execution_exception原因:"all shards failed"}”

Elasticsearch 只是告诉您不满足边界框角约束。底角需要 "below" 顶角。

正在替换

.TopLeft(model.Points.X1, model.Points.Y1)
.BottomRight(model.Points.X2, model.Points.Y2)

.TopLeft(model.Points.X2, model.Points.Y2)
.BottomRight(model.Points.X1, model.Points.Y1)

应该在这里完成工作。