Creation of the searching on selectedValues.