Added search.py that help upgrade index of elasticsearch