From 52ae376441bf934ed5a6b6394c156aac0e7f892f Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 15:04:25 -0700 Subject: reduce title boost; use only base query for highlighting --- fatcat_scholar/search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index c9c264e..a2ecc02 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -179,7 +179,7 @@ def do_fulltext_search( lenient=True, quote_field_suffix=".exact", fields=[ - "title^5", + "title^4", "biblio_all^3", "everything", ], @@ -218,6 +218,7 @@ def do_fulltext_search( "fulltext.body", "fulltext.acknowledgment", "fulltext.annex", + highlight_query=basic_fulltext.to_dict(), require_field_match=False, number_of_fragments=2, fragment_size=300, -- cgit v1.2.3