make search work for non-exact queries