elasticsearch - Get the operation count added in Nest.BulkDescriptor according to type of bulk operations -
elasticsearch - Get the operation count added in Nest.BulkDescriptor according to type of bulk operations -
i require operation count within bulkdescriptor object created mass operation in nest. correctly no alternative same information.
e.g
bulkdescriptor bulkdescriptor = new bulkdescriptor(); bulkdescriptor.index<my_objects>(op => op.document(pobj).index(elasticsearchindexname).type("my_objects_document"));
after addding document indexed need count of indexed operation before phone call
nest.elasticclient elasclient = new nest.elasticclient(elasticconn); ibulkresponse ibulkresp = elasclient.bulk(bulkdescriptor);
thanks, amal
you can count of operations this:
var count = (bulkdescriptor ibulkrequest).operations.count;
elasticsearch nest
Comments
Post a Comment