mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Search topic title headline being truncated.
Need to apply the `HighlightAll` option in order to avoid topic titles from truncated in headlines when displaying search results.
This commit is contained in:

committed by
Alan Guo Xiang Tan

parent
8336c2235e
commit
d10d296e92
@ -1279,7 +1279,7 @@ class Search
|
||||
#{ts_config},
|
||||
t1.fancy_title,
|
||||
PLAINTO_TSQUERY(#{ts_config}, '#{search_term}'),
|
||||
'StartSel=''<span class=\"#{HIGHLIGHT_CSS_CLASS}\">'', StopSel=''</span>'''
|
||||
'StartSel=''<span class=\"#{HIGHLIGHT_CSS_CLASS}\">'', StopSel=''</span>'', HighlightAll=true'
|
||||
) AS topic_title_headline",
|
||||
"TS_HEADLINE(
|
||||
#{ts_config},
|
||||
|
Reference in New Issue
Block a user