Translog operations count equal to the number of documents being indexed


(Siddharth Gupta) #1

Hello,

I am indexing 5000 documents using 3 threads.

But when the indexing gets over and when I check the number of documents being indexed by using the _status it shows ::

"translog" : {
"operations" : 5000
},
"docs" : {
"num_docs" : 4964,
"max_doc" : 4971,
"deleted_docs" : 7
},

Why is operations 5000 ? shouldn't it be less than the number of documents ?
And why the num_docs field has documents less than 5000 ?

Can anybody please help me to resolve the above mentioned issue ?

Thanks & Regards
Siddharth Gupta.


(Mark Walkom) #2

Not with 2.0 no.

It looks like some docs were updated, rather than inserted, do you have duplicate data?


(Siddharth Gupta) #3

Thanks for your reply!

I am using 1.7.1 (elasticsearch)


(system) #4