Implementation of a common REST API to Elasticsearch and Apache Spark based Insight Engine