summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-06 12:15:36 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-06 12:15:36 -0700
commit3edde5586e7db6076c7a1f3b4db48c92aae49dcb (patch)
tree018e1f050e9ba82376b96d878bad98a67f852256 /fatcat_scholar/search.py
parent425eab92b24b86ac5bf69b2c01fa65791ccbd40c (diff)
downloadfatcat-scholar-3edde5586e7db6076c7a1f3b4db48c92aae49dcb.tar.gz
fatcat-scholar-3edde5586e7db6076c7a1f3b4db48c92aae49dcb.zip
query fewer fields; highlight all fulltext fields regardless of match
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r--fatcat_scholar/search.py4
1 files changed, 1 insertions, 3 deletions
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