feat: improve search experience

This commit is contained in:
2024-09-09 19:23:21 +02:00
parent 3ac8c04765
commit bc0e219158
20 changed files with 230 additions and 158 deletions

View File

@@ -43,6 +43,27 @@ export const fieldmap: ElasticsearchFieldmap = {
},
ignore: ['price'],
},
suggestable: {
default: {
trigram: {
type: 'text',
analyzer: 'trigram',
},
reverse: {
type: 'text',
analyzer: 'reverse',
},
},
ignore: [],
},
completable: {
default: {
completion: {
type: 'search_as_you_type',
},
},
ignore: [],
},
};
export const filterableTagName = 'filterable';