patch from master commit be7831680a

fix search index imports and make BlogIndex subclassable