implementing common querysearchfield