move search index init to ws init method