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
#337)

Co-authored-by: viet nguyen <vietnguyen@noreply>
  • Loading branch information
vnugent and viet nguyen committed Jul 11, 2023
1 parent 71d14af commit 4ff66da
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 4ff66da

Please sign in to comment.