Sample code for writing file contents to ES index with ES Python API


(Paul Starrett) #1

I would like to use the ES Python API to write results of web scrape (text only) to an ES index as a document. I wonder if anyone knows of sample code they can point me to (or provide as reply to this post). All I really need is more specifics ton how o use the es.get() method to place the HTML into the es.get() call successfully. I have reviewed the ES Python API documentation but not finding what I need. Thank you!


(system) #2