-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
已删除的文章出现在搜索结果中 #3121
Comments
/kind bug @JohnNiang 需要确认一下,我这边也出现了搜索到以前的文章,而且刷新索引无效。但重新初始化之后,没有出现删除文章之后还会搜索到的情况。 |
我在本地测试了一下,删除文章会更新索引,且无法再搜索到删除的文章。 @zzudongxiang 建议删除文章后,查看一下日志是否存在异常。 |
刚试了一下,设置为私有的文章也会出现在搜索结果中,请帮忙一起看一下 |
搜了一下我本地的Log, 删除文章的时候不是DEBUG模式,没有看到相关的Log
结合上面这个问题, 是不是在搜索的时候少了一个筛选条件导致这个问题 |
Hi @zzudongxiang ,更新索引的时机是:
如果删除文章的时候出错了,可能会造成索引未正确更新,导致查询出已删除的数据。 |
/assign @JohnNiang |
/milestone 2.5.x |
该问题已经被修复,请看:#3438。 |
/milestone 2.6.x |
#### What type of PR is this? /kind bug /kind improvement /area core #### What this PR does / why we need it: This PR refactors post reconciler to reduce post updates and refines post events. Previously, we need 3 - 4 updates per reconciliation, but now we only need 1. And all events collected in reconciler will be fired after updating post. #### Which issue(s) this PR fixes: Fixes #3121 #### Special notes for your reviewer: 0. Install search plugin 1. Create a public post and publish it 2. Search posts 3. Try to make the post private 4. Search posts 5. Try to make the post public 6. Search posts 7. Try to delete the post 8. Search posts 9. Try to recover the post 10. Search posts #### Does this PR introduce a user-facing change? ```release-note 修复依然能搜索到已删除文章的问题 ```
是什么版本出现了此问题?
v2.1.0
使用的什么数据库?
H2
使用的哪种方式部署?
Docker
在线站点地址
No response
发生了什么?
在后台已删除一部分文章, 但安装搜索插件后搜索相关关键字依旧可以搜索出对应的文章结果, 点击后跳转显示404
相关日志输出
No response
附加信息
The text was updated successfully, but these errors were encountered: