Amir Pourmand
2025-09-17 03ccac2872822442b4e11457e1c3452167a3f639
refs
author Amir Pourmand <pourmand1376@gmail.com>
Wednesday, September 17, 2025 22:39 +0000
committer GitHub <noreply@github.com>
Wednesday, September 17, 2025 22:39 +0000
commit03ccac2872822442b4e11457e1c3452167a3f639
tree 5b1753655862dc140f2240747d37770d96027cc4 tree | zip | gz
parent 6add0c837e6368d8a198490de25527527513c110 view | diff
feat: Update FlexSearch and Add Support for All Languages (#2108)

* chore(deps): update flexsearch to version 0.8.205 and adjust search encoder.

* refactor(search): enhance search encoder and update search results type

- Improved the encoder function to filter out empty tokens.
- Updated the search results type from a specific FlexSearch type to a more generic 'any' type for flexibility.
- Removed redundant rtl property from the index configuration.

* refactor(search): remove rtl property from search index configuration

* refactor(search): improve encoder function formatting

- Updated the encoder function to use consistent arrow function syntax for better readability.

* refactor(search): update search results type to DefaultDocumentSearchResults

- Imported DefaultDocumentSearchResults from FlexSearch for improved type safety.
- Changed the type of searchResults from 'any' to DefaultDocumentSearchResults<Item> for better clarity and maintainability.
3 files modified
53 ■■■■ changed files
package-lock.json 35 ●●●● diff | view | raw | blame | history
package.json 2 ●●● diff | view | raw | blame | history
quartz/components/scripts/search.inline.ts 16 ●●●●● diff | view | raw | blame | history