repair search lucene before installing

on the way to fixing search lucene migrations, see discussion in https://github.com/owncloud/core/issues/10205
The platforms don't seem to be used.