v1.4.0-rc.0
版本发布时间: 2023-08-28 22:39:35
meilisearch/meilisearch最新发布版本:v1.12.0-rc.6(2024-12-16 23:19:51)
⚠️ Since this is a release candidate (RC), we do NOT recommend using it in a production environment. Is something not working as expected? We welcome bug reports and feedback about new features.
Meilisearch v1.4 improves the search result relevancy by introducing three new settings: nonSeparatorTokens
, separatorTokens
and dictionary
.
New features and improvements 🔥
Customize text separators
Meilisearch word segmentation uses a list of characters to separate one word from another. The nonSeparatorTokens
and separatorTokens
index settings allow you to configure this to better fit your dataset.
Add a character to the separator-tokens
list to use it as a word separator:
curl \
-X PUT 'http://localhost:7700/indexes/articles/settings/separator-tokens' \
-H 'Content-Type: application/json' \
--data-binary '["§", "&sep"]'
Add a character to the non-separator-tokens
list when you don't want Meilisearch to use it to separate words:
curl \
-X PUT 'http://localhost:7700/indexes/articles/settings/non-separator-tokens' \
-H 'Content-Type: application/json' \
--data-binary '["@", "#", "&"]'
Done by @ManyTheFish in #3946
Load user-defined dictionaries
Meilisearch word segmentation also relies on language-based dictionaries to segment words. Use the dictionary
index setting to expand the default dictionaries and improve accuracy when working with datasets using domain-specific terms:
curl \
-X PUT 'http://localhost:7700/indexes/articles/settings/dictionary' \
-H 'Content-Type: application/json' \
--data-binary '["J. R. R.", "J.R.R."]'
This feature can be used together with the stopWords
and synonyms
index settings:
{
"dictionary": ["J. R. R.", "J.R.R."],
"synonyms": {
"J.R.R.": ["jrr", "J. R. R."],
"J. R. R.": ["jrr", "J.R.R."],
"jrr": ["J.R.R.", "J. R. R."],
}
}
Done by @ManyTheFish in #3946
Other improvements
Meilisearch better hides your data and no longer shows hidden document's fields in error messages. In case you are trying to sort by using a field that is not sortable but there are some of them that are not displayed either, you will see a message like the following:
Available sortable attributes are: price, stock, <..hidden-attributes>.
Done by @vivek-26 in #3945
Fixes 🐞
- Fix synonyms display (#3946) @ManyTheFish
Misc
- Upgrade Meilisearch dependencies (#3987) @ManyTheFish
- Upgrade CI dependencies (#3871, #3969 and #3968)
- Fix CI benchmarks (#3963) @irevoire
- Removed
borrow
call causing failed nightly tests (#3990) @JannisK89 - Expose Puffin server to profile the indexing process (#3913) @Kerollmops
- Update and fix the CI Test Suite (#3918) @Kerollmops
- Improve CI test suite for manual trigger events (#3989) @curquiza
- Update README.md (#3895 and #3932) @ferdi05 & @Strift
- Fix Homebrew CI (#4016) @Kerollmops
❤️ Thanks again to our external contributors:
- Meilisearch: @JannisK89, @vivek-26
1、 meilisearch-linux-aarch64 108.42MB
2、 meilisearch-linux-amd64 109.15MB
3、 meilisearch-macos-amd64 100.85MB
4、 meilisearch-macos-apple-silicon 100.53MB
5、 meilisearch-windows-amd64.exe 99.8MB