Skip to content

Commit 5e6a922

Browse files
TASK: Update documentation in geo sorting for Elasticsearch 6/7
1 parent 148bd44 commit 5e6a922

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -686,17 +686,18 @@ First of all you have to define a property in your NodeTypes.yaml for your node
686686
687687
Query your nodes in your Fusion:
688688
```
689-
geoSorting = Neos.Fusion:DataStructure {
690-
_geo_distance = Neos.Fusion:DataStructure {
691-
latlng = Neos.Fusion:DataStructure {
692-
lat = 51.512711
693-
lon = 7.453084
694-
}
695-
order = "plane"
696-
unit = "km"
697-
distance_type = "sloppy_arc"
689+
geoSorting = Neos.Fusion:DataStructure {
690+
_geo_distance {
691+
geopoint {
692+
lat = 51.512711
693+
lon = 7.453084
694+
}
695+
order = "asc"
696+
unit = "km"
697+
ignore_unmapped = true
698+
}
698699
}
699-
}
700+
700701
nodes = ${Search.query(site).nodeType('Vendor.Name:Retailer').sort(this.geoSorting)}
701702
```
702703

0 commit comments

Comments
 (0)