index trends to elasticsearch