Fixed search-index initialization