-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(search): restrict search field to names only #558
Conversation
NameCN就是中文名 |
咦,那有点奇怪,现在好多条目即使是用完整的中文全称都搜不到的样子 |
可能是权重有点问题 |
理论上来说nameCn就是主站显示的中文名 |
可以考虑降低别名的权重,提高原标题和中文标题的权重 |
summary 现在看起来还是有点喧宾夺主,我看之前貌似是拿掉了的,但是没有生效的样子? |
比如这个条目 https://bgm.tv/subject/264093 ,用日文全名搜索出来是第一个,但是中文全名就完全搜不到 |
前面定义的 |
internal/search/handle.go
Outdated
@@ -169,6 +168,9 @@ func (c *client) doSearch( | |||
} | |||
|
|||
raw, err := c.subjectIndex.SearchRaw(words, &meilisearch.SearchRequest{ | |||
AttributesToSearchOn: []string{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果这样的话就要改一下search able fields吧?没必要索引简洁了
这个选项改了之后我会重建的 |
这样一来tag还能搜索吗 |
应该不需要搜 tag?毕竟已经拿来 filter 了(而且其实现在 tag 里本身有效信息也比较少 |
server/internal/search/handle.go Line 63 in abb3ee4
|
这个应该是 filter 不是 search? |
确实 |
No description provided.