Elasticsearch version of the FTSlite example code