Skip to content

Commit 4597a22

Browse files
Merge pull request #15473 from jmluy/patch-1
Update sample in sort for consistency
1 parent e83c728 commit 4597a22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/reference/search/request/sort.asciidoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Format in `lat,lon`.
238238
"sort" : [
239239
{
240240
"_geo_distance" : {
241-
"pin.location" : "-70,40",
241+
"pin.location" : "40,-70",
242242
"order" : "asc",
243243
"unit" : "km"
244244
}
@@ -301,7 +301,7 @@ Multiple geo points can be passed as an array containing any `geo_point` format,
301301
[source,js]
302302
--------------------------------------------------
303303
"pin.location" : [[-70, 40], [-71, 42]]
304-
"pin.location" : [{"lat": -70, "lon": 40}, {"lat": -71, "lon": 42}]
304+
"pin.location" : [{"lat": 40, "lon": -70}, {"lat": 42, "lon": -71}]
305305
--------------------------------------------------
306306

307307
and so forth.

0 commit comments

Comments
 (0)