es_pandas icon indicating copy to clipboard operation
es_pandas copied to clipboard

_op_type='update' not working

Open imranmasood opened this issue 5 years ago • 2 comments

Running below command, does not update the records in elasticsearch.

ep.to_es(df.iloc[:1000, 1:], index, doc_type=doc_type, _op_type='update')

N/A% (0 of 1000) | | Elapsed Time: 0:00:00 ETA: --:--:-- 1000

imranmasood avatar Nov 08 '20 18:11 imranmasood

Have you run init_es_tmpl function the first time writing data to a index ?

fuyb1992 avatar Nov 09 '20 02:11 fuyb1992

@fuyb1992 Yes, I followed the example given here.

init template if you want

doc_type = 'demo' ep.init_es_tmpl(df, doc_type)

New template demo added

Still, the update operation does not work.

imranmasood avatar Nov 09 '20 05:11 imranmasood