SONAR-5007 RuleIndex#toDoc must be protected
SONAR-5007 introduce org.sonar.server.search.BaseDoc