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.
I'd add a note for the future to add any other fields here as well that would trigger ES update.