Nest 1.2.1 地理过滤器描述符 - 如何选择运算符



我们正在从 Nest 1.0.0 迁移到 1.2.1,我在弄清楚如何使用不同的地理运算符时遇到了麻烦。

以前,我有这样一行代码:

f.GeoShape(fieldName, geo => geo.Coordinates(points).Type("polygon").Relation("intersects"));

其中 f 是空的过滤器描述符,点是

IEnumerable<IEnumerable<IEnumerable<double>>>

但是 Nest 1.2.1 中没有 GeoShape。我发现的最接近的东西是GeoShapePolygon,但它不接受运算符作为参数,我需要使用不同的运算符(以前使用"within","相交"和"不相交")。

如何在 Nest 1.2.1 中实现此功能?

在最新版本的NEST中修复了,1.3.1:https://github.com/elasticsearch/elasticsearch-net/issues/1090

最新更新