From 2de4f2727819794087ebc5dca5a9b07621ed6986 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Wed, 4 Nov 2020 17:26:26 +0100 Subject: [PATCH] removed pinpoint fragmenter as it was screwing up highlighting --- src/documents/views.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index ce850f480..6818551f0 100755 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -190,7 +190,6 @@ class SearchView(APIView): result_page = searcher.search_page(query_parser, page) result_page.results.fragmenter = highlight.ContextFragmenter( surround=50) - result_page.results.fragmenter = highlight.PinpointFragmenter() result_page.results.formatter = index.JsonFormatter() return Response(