switch to es from elasticsearch