Skip to content

Commit cc32835

Browse files
committed
Add Radius() to circle geo shape filter descriptor
1 parent a24abe9 commit cc32835

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Nest/DSL/Filter/GeoShapeCircleFilterDescriptor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,14 @@ public GeoShapeCircleFilterDescriptor Coordinates(IEnumerable<double> coordinate
5151
this.Self.Shape.Coordinates = coordinates;
5252
return this;
5353
}
54+
55+
public GeoShapeCircleFilterDescriptor Radius(string radius)
56+
{
57+
if (this.Self.Shape == null)
58+
this.Self.Shape = new CircleGeoShape();
59+
this.Self.Shape.Radius = radius;
60+
return this;
61+
}
5462
}
5563

5664
}

0 commit comments

Comments
 (0)