contact search logics in the model