Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

update specific field in index in elastic using python

from elasticsearch import Elasticsearch
es = Elasticsearch("localhost:9200")
es.update(index='test',doc_type='test1',id='1',body={'doc':{'username':'Tom'},'doc_as_upsert':True})
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #update #specific #field #index #elastic #python
ADD COMMENT
Topic
Name
2+3 =