Integrate Elasticsearch with machine learning

Hi, I'm looking at how to use data in elasticsearch for further analytics, not sure how rest people in the community approach this need...Initially I was thinking to pull the data from elasticsearch periodically to probably Hadoop system and do analytics from there, but not sure whether this approach is correct and good... , any suggestions are good to me.... thanks in advance!

How about Apache Spark integration?
https://www.elastic.co/guide/en/elasticsearch/hadoop/current/spark.html