set the indexId in search method
second commit:)