diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-29 21:24:02 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-29 21:24:02 -0700 |
commit | 9f99cf6926b09f906b21d64b631e797fdbb51bac (patch) | |
tree | 112e206564b7cb836c638167b80bd1acfd367454 /fatcat_scholar/search.py | |
parent | 8c75ce9e78dfe4295188d8a57632d1630f987f8e (diff) | |
download | fatcat-scholar-9f99cf6926b09f906b21d64b631e797fdbb51bac.tar.gz fatcat-scholar-9f99cf6926b09f906b21d64b631e797fdbb51bac.zip |
make fmt
Diffstat (limited to 'fatcat_scholar/search.py')
-rw-r--r-- | fatcat_scholar/search.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fatcat_scholar/search.py b/fatcat_scholar/search.py index a2e19bc..0985081 100644 --- a/fatcat_scholar/search.py +++ b/fatcat_scholar/search.py @@ -207,7 +207,7 @@ def do_fulltext_search( number_of_fragments=2, fragment_size=300, # TODO: this will fix highlight encoding, but requires ES 7.x - #encoder="html", + # encoder="html", ) # sort order @@ -270,8 +270,8 @@ def do_fulltext_search( if type(h[key]) is str: h[key] = h[key].encode("utf8", "ignore").decode("utf8") # ensure collapse_key is a single value, not an array - if type(h['collapse_key']) == list: - h['collapse_key'] = h['collapse_key'][0] + if type(h["collapse_key"]) == list: + h["collapse_key"] = h["collapse_key"][0] count_found: int = int(resp.hits.total) count_returned = len(results) |