refactor: use geo for sort after backend change

Closes #210
This commit is contained in:
Jovan Krunić
2022-05-18 09:41:18 +02:00
parent b7ae2cf019
commit 9efc41a8f8
5 changed files with 201 additions and 81 deletions

View File

@@ -312,7 +312,7 @@ const sampleIndexResponse: SCIndexResponse = {
sortTypes: ['ducet'],
},
{
fieldName: 'geo.point.coordinates',
fieldName: 'geo',
onlyOnTypes: [
SCThingType.Building,
SCThingType.PointOfInterest,
@@ -321,7 +321,7 @@ const sampleIndexResponse: SCIndexResponse = {
sortTypes: ['distance'],
},
{
fieldName: 'geo.point.coordinates',
fieldName: 'geo',
onlyOnTypes: [
SCThingType.Building,
SCThingType.PointOfInterest,
@@ -330,7 +330,7 @@ const sampleIndexResponse: SCIndexResponse = {
sortTypes: ['distance'],
},
{
fieldName: 'inPlace.geo.point.coordinates',
fieldName: 'inPlace.geo',
onlyOnTypes: [
SCThingType.DateSeries,
SCThingType.Dish,