Skip to content

Commit 2592835

Browse files
navigation,demo: ignore diacritics when searching
1 parent 0d1be39 commit 2592835

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

packages/apis/navigation/domain/actor/search.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ export class SearchServiceImpl implements SearchService {
273273
threshold: 0.2,
274274
findAllMatches: true,
275275
ignoreLocation: true, // so that 'san francisco' can be searched for without quotes
276+
ignoreDiacritics: true,
276277
sortFn: sortSearchResults,
277278
keys: [
278279
{ name: 'label', weight: 3 },
@@ -293,6 +294,7 @@ export class SearchServiceImpl implements SearchService {
293294
threshold: 0.2,
294295
findAllMatches: true,
295296
ignoreLocation: true, // so that 'san francisco' can be searched for without quotes
297+
ignoreDiacritics: true,
296298
sortFn: sortSearchResults,
297299
keys: [
298300
{ name: 'label', weight: 3 },

packages/apps/demo/src/PoiSearchBar.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ export const PoiSearchBar = (props: SearchBarProps) => {
143143
threshold: 0.2,
144144
findAllMatches: true,
145145
ignoreLocation: true, // so that 'san francisco' can be searched for without quotes
146+
ignoreDiacritics: true,
146147
sortFn: sortSearchResults,
147148
keys: [
148149
{ name: 'properties.label', weight: 3 },

0 commit comments

Comments
 (0)