search now takes null value to ignore argument