set up search on posts index page