aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/search.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-01-13 18:05:48 -0800
committerBryan Newbold <bnewbold@archive.org>2021-01-14 14:57:14 -0800
commit6b88ede6b74301afbd12ff616fe806d2c5e7784b (patch)
tree8484c77939fb04fbcfcb60b01b5befac1e8b606f /fatcat_scholar/search.py
parent6a26a977fa05e63437bc126a917f46495b5a620f (diff)
downloadfatcat-scholar-6b88ede6b74301afbd12ff616fe806d2c5e7784b.tar.gz
fatcat-scholar-6b88ede6b74301afbd12ff616fe806d2c5e7784b.zip
search: show fewer, shorter highlights. sort by score.
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 b57a16d..d3cca80 100644
--- a/fatcat_scholar/search.py
+++ b/fatcat_scholar/search.py
@@ -286,7 +286,8 @@ def do_fulltext_search(
highlight_query=highlight_query.to_dict(),
require_field_match=False,
number_of_fragments=2,
- fragment_size=300,
+ fragment_size=200,
+ order="score",
# TODO: this will fix highlight encoding, but requires ES 7.x
# encoder="html",
)