renamed index and type params into searchindex and searchtype