-
-
Notifications
You must be signed in to change notification settings - Fork 604
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm very interested in your topic, but I haven't solved some problems. I write articles in Chinese, but when I use search, the search results are not as expected #127
Comments
I don't quite understand, what results are you expecting? Can you give an example? |
1 |
Please donwload the latest version from here: https://github.com/eddiesigner/liebling/releases/tag/v.0.6.4 I changed something that could help. |
1 |
The thing is Ghost doesn't offer (at the moment) a native search functionality so I had to use the Ghost API and this library Please enter your posts titles in the live demo and see if the search is working for you there. Currently I'm using this configuration: {
shouldSort: true,
threshold: 0,
location: 0,
distance: 100,
tokenize: true,
matchAllTokens: false,
maxPatternLength: 32,
minMatchCharLength: 1,
keys: ['title', 'custom_excerpt', 'html']
} Please play around with the options on that website and let me know if you get proper results. |
When I directly use fuse.js for testing, there is no problem, but I can only search English using what you build, I feel very strange |
Hi @eddiesigner As per your options I assume you just want to get results that can perfectly match the query. The problem is Chinese words are not separated by spaces, for example "测试中文搜索" is actually consisted of three meaningful words :"测试", "中文", "搜索" . If I query "中文" nothing will match. It's like query "rticle" for "article" will not work with current options neither. Maybe use the default options with match score included, then drop the results with score too high (high is worse match)? |
I updated the library, I hope that helps, please download the latest version from here: https://github.com/eddiesigner/liebling/releases/tag/v.0.6.5 |
Sorry, Chinese search failed |
Maybe you can use Algolia. |
I'm very interested in your topic, but I haven't solved some problems. I write articles in Chinese, but when I use search, the search results are not as expected
But when I switch between other topics, search works
Do you need to pay attention to the application of Chinese search?
Please help me.
The text was updated successfully, but these errors were encountered: