Python with elasticsearch

Hi,
How to use python with elasticsearch.
i've just understand this line of installation

 pip install elasticsearch

but how to write python scripts and connect them to elasticsearch

Have you looked at the documentation for the Python Elasticsearch client?

Yes After Installation there is example of usage ('helloworld in other terms') but where would i write that the environment i mean and how to be sure that is connected ?

I do not understand your question. The initial example assumes you are connecting using the defaults (localhost on port 9200). If this does not apply to your Elasticsearch instance, you can find examples of how to set host name etc further along in the docs.

should i just run jupter and type the code there ?

How do you usually develop, test and run python scripts?

i didn't it is the second time i would use it.
but i know jupyter

I have not used jupyter, so will not be able to help you with that.

Solved,
i used ElasticSearch with Anconda
just type this in Anconda command prompt

conda install -c conda-forge elasticsearch

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