Changing search to elasticsearch