Made repo clear contents also clear the search indices

An issue cropped up where during the refresh of a content view
we cleared the contents of an existing repo but the old search indices
were still preserved. This caused issues when filters were applied
to the repo but did not get reflected in the indices.


This PR basically clears the search indices before clearing the contents.