amotl
(Andreas Motl)
7 בדצמבר, 2020, 3:36pm
1
Hi there,
while working on investigating Database migration chokes on huge value of a "calendar-details" item in table "post_custom_fields" , we amended the topic title twice in order to better reflect the reason and outcome of our research into the respective details.
Now, when trying to find the topic back using the search feature at Search results for 'calendar-details' - Discourse Meta , we found that there is some truncation going on when displaying the topic title.
I haven’t seen this before so I wanted to share this with you.
Keep up the good work and with kind regards,
Andreas.
eviltrout
(Robin Ward)
7 בדצמבר, 2020, 7:22pm
2
On meta we have enabled the hidden site setting use pg headlines for excerpt which produces this result. It’s a performance optimization introduced in:
committed 06:56AM - 06 Aug 20 UTC
4 לייקים
tgxworld
(Alan Tan)
8 בדצמבר, 2020, 1:40am
5
SiteSetting.use_pg_headlines_for_excerpt will be true by default in the next release so I’ll have to fix this bug.
4 לייקים
tgxworld
(Alan Tan)
21 בדצמבר, 2020, 6:49am
7
I have a PR up to fix this:
master ← tgxworld:fix_topic_title_headline_truncated
merged 01:09AM - 22 Dec 20 UTC
Need to apply the `HighlightAll` option in order to avoid topic titles
from tru… ncated in headlines when displaying search results.
Thank you for reporting @amotl
3 לייקים
tgxworld
(Alan Tan)
8 ביוני, 2021, 1:41am
10
Yup I need to get to this for the next release.
לייק 1
sam
(Sam Saffron)
8 ביוני, 2021, 3:09am
11
Note we needed some bypasses here for Chinese locales (I think) it was injecting tons of spaces.
לייק 1