dev_cs
cxt 5 years ago
parent 9a61ad3e9d
commit 4e1bc05a28

@ -11,7 +11,7 @@ json.shixun_list do
highlights[:content]&.first&.sub!(reg, '') highlights[:content]&.first&.sub!(reg, '')
json.title highlights.delete(:name)&.join('...') || obj.searchable_title json.title highlights.delete(:name)&.join('...') || obj.searchable_title
json.description highlights[:description]&.join('...') || Util.extract_content(obj.description)[0..Searchable::MAXIMUM_LENGTH] json.description highlights[:description]&.join('...') || Util.extract_content(obj.description)[0..300]
json.content highlights json.content highlights
json.level level_to_s(obj.trainee) json.level level_to_s(obj.trainee)

Loading…
Cancel
Save