changed search result to use a set anbd have match count in index documents instead