Skip to content
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

搜索“折半搜索”,列表第七个才是二分 #3098

Open
1 of 2 tasks
g-mph opened this issue Apr 7, 2021 · 3 comments
Open
1 of 2 tasks

搜索“折半搜索”,列表第七个才是二分 #3098

g-mph opened this issue Apr 7, 2021 · 3 comments
Labels

Comments

@g-mph
Copy link

g-mph commented Apr 7, 2021

  • 我已经读过了 F.A.Q.,进行了搜索,但没有得到答案
  • 我正在着手修复这个问题

我遇到了这样的问题(最好截图)

image

我确认这个问题可以这样复现

在搜索框里搜“折半搜索”即可复现

@g-mph g-mph added the Other Bug / 内容无关的 Bug 内容无关的 bug label Apr 7, 2021
@Ir1d
Copy link
Member

Ir1d commented Apr 7, 2021

可以复现,这个问题是因为 “折半搜索” 在 二分页面是正文,所以权重和其他页面是一致的。

是否要考虑加粗(并对粗体增加权重)或者放到某一级标题里呢,或者考虑加 tag 字段并对 tag 增加权重?

@Ir1d
Copy link
Member

Ir1d commented Apr 7, 2021

或许优先匹配 full match “折半搜索” 是一个 optimal 的解决方案,但查阅资料(比如 https://medium.com/swlh/favouring-full-matches-in-elasticsearch-f3169982091d) 感觉我们好像已经启用了? https://github.com/OI-wiki/elasticsearch-config/blob/master/api/main.js#L51

一时间不知道问题出在哪里

@ChungZH
Copy link
Member

ChungZH commented Aug 23, 2022

原来已经有这个 issue 了。
那我再补充一个例子:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants