Skip to content

Commit d9a8900

Browse files
fix: decrease max allowed results to 2000
1 parent a89d3c3 commit d9a8900

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
3535
- Aria stacking uses aria frame id instead of frame number for stacking
3636
- asf_search uses `SearchAPISession` by default for search queries
3737
- bump asf-search to v9.0.4
38-
- increase search query limit to 3000, raise error if expected output is over that number
38+
- increase search query limit to 2000, raise error if expected output is over that number
3939

4040
------
4141
## [1.0.4](https://github.com/asfadmin/Discovery-SearchAPI-v3/compare/v1.0.3...v1.0.4)

src/SearchAPI/application/asf_opts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,11 @@ async def process_search_request(request: Request) -> SearchOptsModel:
180180
if query_opts.granule_list is None and query_opts.product_list is None and output != 'python':
181181
if query_opts.maxResults is None:
182182
maxResults = asf.search_count(opts=query_opts)
183-
if maxResults > 3000:
183+
if maxResults > 2000:
184184
raise ValueError(
185185
(
186-
'SearchAPI no longer supports unbounded searches with expected results over 3000, '
187-
'please use the asf-search python module for long-lived searches or set `maxResults` to 3000 or less.'
186+
'SearchAPI no longer supports unbounded searches with expected results over 2000, '
187+
'please use the asf-search python module for long-lived searches or set `maxResults` to 2000 or less.'
188188
'\nTo have SearchAPI automatically generate a python script for the equivalent search to your SearchAPI query '
189189
'set `output=python`'
190190
)

0 commit comments

Comments
 (0)