From b0e77aebf00ec93d0a8bc5e948cad014c32e74d1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 21 May 2020 19:49:37 -0700 Subject: fix abstracts; experiment with search stemming --- fatcat_scholar/search.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index 4d53667..aeb089d 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -131,10 +131,12 @@ def do_fulltext_search(query: FulltextQuery, deep_page_limit: int = 2000) -> Ful analyze_wildcard=True, allow_leading_wildcard=False, lenient=True, + quote_field_suffix=".exact", fields=[ "title^5", "biblio_all^3", - "abstracts_all^2", + "abstracts.body^2", + "fulltext.body", "everything", ], ) @@ -165,7 +167,7 @@ def do_fulltext_search(query: FulltextQuery, deep_page_limit: int = 2000) -> Ful negative_boost=0.5, ) search = search.highlight( - "abstracts_all", + "abstracts.body", "fulltext.body", "fulltext.annex", number_of_fragments=2, -- cgit v1.2.3