Details
-
Bug
-
Resolution: Not a bug
-
Low
-
None
-
Severity 3 - Minor
-
56
-
1
-
Description
Issue Summary
This is reproducible on Data Center: no
Steps to Reproduce
- Hit the API below trying to fetch all Code Search results:
$ curl 'https://api.bitbucket.org/2.0/workspaces/workspace_slug_or_uuid/search/code?search_query='<example>'&pagelen=1001
Expected Results
All results above 1000 should be returned.
Actual Results
All results above 1000 are not returned.
Workaround
The current workaround is to add a filter for the repository/project inside the workspace, this way the result will return less than 1000 results. Or execute multiple API calls with less pagelen:
$ curl 'https://api.bitbucket.org/2.0/workspaces/workspace_slug_or_uuid/search/code?search_query='<example>'&pagelen=100&page=1 $ curl 'https://api.bitbucket.org/2.0/workspaces/workspace_slug_or_uuid/search/code?search_query='<example>'&pagelen=100&page=2 $ curl 'https://api.bitbucket.org/2.0/workspaces/workspace_slug_or_uuid/search/code?search_query='<example>'&pagelen=100&page=3