Python Forum
bulk update in elasticsearch
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
bulk update in elasticsearch
#1
I am trying to update bulk document to elasticsearch

I am able to update this one by one document

following code works

  
elastic_output = Elasticsearch(output_master, http_auth=(elastic_user, elastic_password), port=9200)

 data_to_update = {
   "doc" : {
   "job": job_rec['job'],
   "site" : job_rec['site'],
   }
  }

elastic_output.update(index="my_index-2020",doc_type='_doc',id=data_to_update['doc']['job'],body=data_to_update)
how do I create bulk json and use bulk update?
Reply


Messages In This Thread
bulk update in elasticsearch - by pythonlearner1 - Jun-10-2020, 08:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [Python] Issue of Adding Single and Bulk Vouchers to UserMan Aymen 0 372 May-10-2025, 06:39 PM
Last Post: Aymen
  Bulk loading of data using python shivamsvmsri 2 2,363 Sep-28-2023, 09:04 AM
Last Post: shivamsvmsri
  Error while transferring data from sqlite to elasticsearch - please help! ps96068 1 3,859 Jun-12-2021, 09:24 AM
Last Post: ibreeden
  How can I get Python Bulk Email Verification Script With API? zainalee 1 3,227 Jun-06-2021, 09:19 AM
Last Post: snippsat
Question Python + Google Sheet | Best way to update specific cells in a single Update()? Vokofe 1 4,319 Dec-16-2020, 05:26 AM
Last Post: Vokofe
Video Python Bulk Email Verification Script With API Aj1128 0 3,269 Nov-28-2020, 11:38 AM
Last Post: Aj1128
  Bulk add column to dataframe sambanerjee 1 2,871 Sep-24-2020, 07:34 PM
Last Post: sambanerjee
  Unable post request to AWS elasticsearch service Rupini 0 2,565 May-18-2020, 08:27 AM
Last Post: Rupini
  Bulk Generating Cloze Deletions based on Tatoeba sentences and word frequency lists wizzie 10 7,579 Dec-23-2019, 12:16 PM
Last Post: wizzie
  Newbie question for bulk insert into SQL Server database zydjohn 6 14,289 Dec-14-2017, 11:04 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020