Fixes #6401
Merge pull request #6425 from dotCMS/issue-6401-Index-not-updated

Fixes #6401