We just updated to SonarQube 6.0. I'm not sure of the previous version (5.something). I have a java program that calls the web/api/issues/search and places the results in a csv file. After the upgrade, I started getting 500 errors when trying to access more than 10000 issues. Here is an example error message:
{"errors":[{"msg":"Fail to execute ES search request '{\"from\":10000,\"size\":500,\"query\":{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"severity\":[\"CRITICAL\",\"INFO\",\"MINOR\",\"MAJOR\",\"BLOCKER\"]}},{\"terms\":{\"project\":[\"AVdIH5nkfnxN3tHk_uuu\"]}},{\"terms\":{\"language\":[\"java\"]}},{\"terms\":{\"type\":[\"CODE_SMELL\"]}},{\"has_parent\":{\"query\":{\"bool\":{\"must\":{\"match_all\":{}},\"filter\":{\"bool\":{\"should\":{\"term\":{\"groups\":\"Anyone\"}}}}}},\"parent_type\":\"authorization\"}},{\"terms\":{\"status\":[\"OPEN\",\"CONFIRMED\",\"REOPENED\"]}}]}}}},\"sort\":[{\"severityValue\":{\"order\":\"asc\",\"missing\":\"_first\"}}]}' on indices '[issues]' on types '[issue]'"}]}
Is there any way to force the api to allow me to download more than 10,000 issues? I've tried reducing the result size by using more filters(language, severity, type, etc...), but I have some results that are still more than 10,000. This wasn't an issue on our previous version. As an example, I was able to pull down 34K of minor css issues via the api.