diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 12:15:36 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-08-06 12:15:36 -0700 |
commit | 3edde5586e7db6076c7a1f3b4db48c92aae49dcb (patch) | |
tree | 018e1f050e9ba82376b96d878bad98a67f852256 | |
parent | 425eab92b24b86ac5bf69b2c01fa65791ccbd40c (diff) | |
download | fatcat-scholar-3edde5586e7db6076c7a1f3b4db48c92aae49dcb.tar.gz fatcat-scholar-3edde5586e7db6076c7a1f3b4db48c92aae49dcb.zip |
query fewer fields; highlight all fulltext fields regardless of match
-rw-r--r-- | fatcat_scholar/search.py | 4 |
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 |