fixes #2186
Merge pull request #2189 from dotCMS/issue-2186-site-search-indexation-not-working-on-2.2.1

fixes #2186