Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
elasticsearch
Commits
8c2589cc5760
Commit
ae7efa43
authored
Dec 12, 2018
by
Katia Saurfelt
Browse files
[es6] use elasticsearch default style for highlighting (<em> tag)
parent
dc55c1c1a225
Changes
1
Hide whitespace changes
Inline
Side-by-side
cubicweb_elasticsearch/views.py
View file @
8c2589cc
...
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment