搜索摘要中缺少重音字符

{“content”:“快速提问。\n\n我注意到一些奇怪的事情。\n\n当我搜索我从 2018 年导入的 phpBB 3.2 论坛时,结果摘要中没有重音字符,而完整消息中包含重音字符。\n最近的消息中没有出现这种情况,所以我认为这个奇怪的小错误是在导入过程中产生的。\n\n摘要:\n\n

\n\n完整消息:\n\n\n\n我想知道它是否真的来自导入脚本,以及这个错误是否仍然存在。有什么想法吗?”,“target_locale”:“zh_CN”}

重新烘焙帖子是否可以解决问题?2018年可能存在一个bug。

我通过 Discourse 界面重建了 HTML,但问题并未解决。不过问题并不严重,很多法国人甚至不关心重音符号,如果无法解决我也不介意。
我只是好奇问题出在哪里。

1 个赞

我刚在另一个未导入的法语论坛上试过这个,当时的话题确实不包含搜索摘要中的重音字符。

奇怪的是,当我查看德语论坛时,旧话题在搜索摘要中确实包含重音字符::thinking:

看看这个日志的最后一行

commit cee51672c96d29174196717b734c7f7ba0754172
Author: Daniel Hollas <danekhollas@gmail.com>
Date:   Tue Oct 23 03:10:33 2018 +0200

    FIX: Strip accents from search query

    4481836 introduced accent stipping in search_indexer,
    but we need to strip it from the query itself as well

    TODO in search with diacritics:
     - Still need to fix excerpts on search page
3 个赞

好的,如果问题已经解决,那么这个案例就可以关闭了(如果我说错了请纠正我)。旧的、缺少重音符号的摘录不是什么大问题。 :slight_smile:

感谢 @RGJ 的解释!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.