fix es highlight

dev_forum
p31729568 6 years ago
parent 90c4f9cce6
commit c1a485f33a

@ -20,7 +20,15 @@ module ElasticsearchAble
def highlight_options
{
fragment_size: EduSetting.get('es_highlight_fragment_size') || 30,
tag: '<span class="highlight">'
tag: '<span class="highlight">',
fields: {
challenge_names: { type: 'plain' },
challenge_tag_names: { type: 'plain' },
description: { type: 'plain' },
subject_stages: { type: 'plain' },
content: { type: 'plain' },
descendants_contents: { type: 'plain' },
}
}
end

Loading…
Cancel
Save