Skip to content

Commit

Permalink
fix: tune typesense to better index climb/area name with special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Jul 11, 2023
1 parent 71d14af commit 299ef70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/db/export/Typesense/TypesenseSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ export const climbSchema: CollectionCreateSchema = {
type: 'geopoint' as const,
index: true
}
]
],
token_separators: ['(', ')', '-', '.']
// TBD: need to have better tie-breakers (star/popularity ratings)
// default_sorting_field: 'climb_name'
}
Expand Down Expand Up @@ -132,5 +133,6 @@ export const areaSchema: CollectionCreateSchema = {
type: 'geopoint' as const,
index: true
}
]
],
token_separators: ['(', ')', '-', '.']
}

0 comments on commit 299ef70

Please sign in to comment.