Lines Matching refs:string
23 * @param string $name the name if this aggregation
24 * @param string $field the field on which to perform this aggregation
25 * @param array|string $origin the point from which distances will be calculated
27 public function __construct(string $name, string $field, $origin)
36 * @param string $field the name of the document field on which to perform this aggregation
40 public function setField(string $field): self
48 * @param array|string $origin valid formats are array("lat" => 52.3760, "lon" => 4.894), "52.3760, 4.894", and array(4.894, 52.3760)
89 * @param string $unit defaults to m
93 public function setUnit(string $unit): self
101 * @param string $distanceType see DISTANCE_TYPE_* constants for options. Defaults to arc.
105 public function setDistanceType(string $distanceType): self