|
|
|
@ -11,7 +11,7 @@ json.shixun_list do
|
|
|
|
|
highlights[:content]&.first&.sub!(reg, '')
|
|
|
|
|
|
|
|
|
|
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.level level_to_s(obj.trainee)
|
|
|
|
|