Update search index when legacy-download-stats are set.

As part of the legacy statistics support, update the search index
every time the legacy-download-stats value is changed.