Commit ae7efa43 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[es6] use elasticsearch default style for highlighting (<em> tag)

parent dc55c1c1a225
......@@ -77,9 +77,7 @@ class CWFacetedSearch(FacetedSearch):
Add custom highlighting
"""
search = search.highlight(*(f if '^' not in f else f.split('^', 1)[0] for f in self.fields))
return search.highlight_options(pre_tags="",
post_tags="",
fragment_size=150)
return search.highlight_options(fragment_size=150)
class ElasticSearchView(StartupView):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment