From eec370ebc66ac1febb544e6eb9f5b73ed3d86fcc Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Fri, 23 Mar 2018 15:17:14 +0100 Subject: [PATCH 1/1] fix snippets in search (diacritics) --- src/search/index.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/search/index.py b/src/search/index.py index a1c2716a8..d3377b103 100644 --- a/src/search/index.py +++ b/src/search/index.py @@ -957,6 +957,8 @@ class Search(SolrIndex): text = snippets.get((int(position), int(length))) snip = self.index.highlight(text=text, field=field, q=query) + if not snip and field == 'text': + snip = self.index.highlight(text=text, field='text_nonstem', q=query) if snip not in snips: snips[idx] = snip if snip: -- 2.20.1