Populate search index in the install process

Fixes #6157