# How to use op\_type with Bulkprocessor

**URL:** <https://discuss.elastic.co/t/how-to-use-op-type-with-bulkprocessor/125683>\
**Category:** Elasticsearch\
**Created:** [March 27, 2018, 12:28am UTC](https://discuss.elastic.co/t/how-to-use-op-type-with-bulkprocessor/125683 "2018-03-27T00:28:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![majid\_zarrin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/majid_zarrin/32/29103_2.png) [@majid\_zarrin](https://discuss.elastic.co/u/majid_zarrin)\
**Post date:** [March 27, 2018, 12:28am UTC](https://discuss.elastic.co/t/how-to-use-op-type-with-bulkprocessor/125683/1 "2018-03-27T00:28:46Z")

</div>

Hi,  
I use Bulkprocessor to index and I need indexing if the document does not exist. ( op\_type = create )  
how could I use op\_type with Bulkprocessor?  
Thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 24, 2018, 12:29am UTC](https://discuss.elastic.co/t/how-to-use-op-type-with-bulkprocessor/125683/2 "2018-04-24T00:29:10Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
