Skip to content

Commit

Permalink
Fixed bug where scope:all was not being respected in FTS
Browse files Browse the repository at this point in the history
  • Loading branch information
jake authored and jake committed Jan 6, 2023
1 parent cf15c55 commit 68f55e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internetarchive/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,15 @@ def _full_text_search(self):
'scroll': 'true',
}

if 'scope' in self.params:
d['scope'] = self.params['scope']

if 'size' in self.params:
d['scroll'] = False
d['size'] = self.params['size']

while True:
r = self.session.post(self.fts_url,
params=self.params,
json=d,
auth=self.auth,
**self.request_kwargs)
Expand Down

0 comments on commit 68f55e2

Please sign in to comment.