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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -