diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 15:04:25 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 15:04:25 -0700 |
commit | 52ae376441bf934ed5a6b6394c156aac0e7f892f (patch) | |
tree | a9c20be806074e9db107fb3b2e2acbf6f665a801 /fatcat_scholar/search.py | |
parent | d78f32eb541445a15a24d117347bd4aeedbb670f (diff) | |
download | fatcat-scholar-52ae376441bf934ed5a6b6394c156aac0e7f892f.tar.gz fatcat-scholar-52ae376441bf934ed5a6b6394c156aac0e7f892f.zip |
reduce title boost; use only base query for highlighting
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r-- | fatcat_scholar/search.py | 3 |
1 files changed, 2 insertions, 1 deletions
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, |