Add search to post model