removed pinpoint fragmenter as it was screwing up highlighting

This commit is contained in:
Jonas Winkler 2020-11-04 17:26:26 +01:00
parent cfd55a4d6b
commit 2de4f27278

View File

@ -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(