Import data from elasticsearch

how can I import data from elasticsearch in python code which is used for k-means clustering?

you can use elasticsearch-dsl library of python to query data from elasticsearch node.
https://elasticsearch-dsl.readthedocs.io/en/latest/

when I use "from elasticsearch import Elasticsearch" it shows a error
"ImportError: No module named elasticsearch"

you need to pip install elasticsearch on the machine where you execute the code.

Thank you
It solved my problem.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.