Skip to content

Commit

Permalink
fix(docs): add a note about lunr-folding
Browse files Browse the repository at this point in the history
Not to use it (even though I "maintain" it) because it is not good
  • Loading branch information
dhdaines authored and yeraydiazdiaz committed Jul 10, 2024
1 parent 98a2e56 commit f3a95f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ console.log(JSON.stringify(index.search("règlement de démolition")));
# [{"ref":"1314-2023-DEM","score":0.4072935059634513,"matchData":{"metadata":{"regl":{"titre":{}},"demolit":{"titre":{}}}}}]
```

There is also `lunr-folding` for JavaScript, but its folding is not
the same as `unidecode` and it may not be fully compatible with
language support, so it is recommended to use the above method.

## Notes on language support

- Using multiple languages means the terms will be stemmed once per language. This can yield unexpected results.
Expand Down

0 comments on commit f3a95f1

Please sign in to comment.