Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update search limit to maximum to encompass <12k results without exce… #46

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

ceholden
Copy link
Collaborator

@ceholden ceholden commented Nov 21, 2024

What I am changing

This PR is motivated by this issue, #45

Specifically I am updating the OpenSearch limit to the maximum value (2000) to quickly mitigate an issue surfaced when ESA updated the maximum query offset we could apply. This fix relies on an assumption that there are less than 12,000 search results for a given day. This assumption matches what I've seen for queries over the last week where we're getting between ~10,000 and ~10,500 total results.

How I did it

  • Updated maxResults to the maximum allowed maxResults=2000
  • Updated tests to reflect the updated query

How you can test it

Unit tests have been updated,

cd lambdas/link_fetcher
make test

@ceholden ceholden marked this pull request as ready for review November 21, 2024 22:34
@ceholden ceholden merged commit 5d81de9 into main Nov 22, 2024
3 checks passed
@ceholden ceholden deleted the ceh-fix-esa-query-offset-change branch November 22, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants