aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-06 15:04:25 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-06 15:04:25 -0700
commit52ae376441bf934ed5a6b6394c156aac0e7f892f (patch)
treea9c20be806074e9db107fb3b2e2acbf6f665a801 /fatcat_scholar/search.py
parentd78f32eb541445a15a24d117347bd4aeedbb670f (diff)
downloadfatcat-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.py3
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,