search match to index