From 3edde5586e7db6076c7a1f3b4db48c92aae49dcb Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 6 Aug 2020 12:15:36 -0700 Subject: query fewer fields; highlight all fulltext fields regardless of match --- fatcat_scholar/search.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index a7505b6..68df978 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -176,10 +176,7 @@ def do_fulltext_search( lenient=True, quote_field_suffix=".exact", fields=[ - "title^5", "biblio_all^3", - "abstracts.body^2", - "fulltext.body", "everything", ], ) @@ -208,6 +205,7 @@ def do_fulltext_search( "fulltext.body", "fulltext.acknowledgment", "fulltext.annex", + require_field_match=False, number_of_fragments=2, fragment_size=300, # TODO: this will fix highlight encoding, but requires ES 7.x -- cgit v1.2.3