BUG count mismatch due to corrupt Elasticsearch index - SonarQube Index Clean up

Hi Ann ,
Please explain what OP means?

we are using sonarqube EE Version 9.9.
we performed below steps for index cleanup to fix mismatch in the bug count.

  • stop the server
  • delete $SONARQUBE-HOME/data/es7
  • start the server

but still the issue is not fixed. still the bug count also mismatching from time to time.
kindly suggest a way to fix this issue.

we found similar issue - link Issues only shown on overview tab and as a count on the code tab, but not on issues tab - #2 by ganncamp

if we upgrade to latest version will it fix this mismatch in bug count.