dev_cs
cxt 5 years ago
parent 81b696e652
commit de4b57d077

@ -10,6 +10,8 @@ json.shixun_list do
# 附件的替换
atta_reg = /!\[]\(\/api\/attachments\/\d+\)/
highlights[:description]&.first&.sub!(reg, '')&.sub!(atta_reg, '')
Rails.logger.info("#########serach_description#{highlights[:description]}------------#{highlights[:description]&.first}")
highlights[:content]&.first&.sub!(reg, '')&.sub!(atta_reg, '')
json.title highlights.delete(:name)&.join('...') || obj.searchable_title

Loading…
Cancel
Save