# NEST : How to index raw JSON through Bulk API

**URL:** <https://discuss.elastic.co/t/nest-how-to-index-raw-json-through-bulk-api/47432>\
**Category:** Elasticsearch\
**Created:** [April 14, 2016, 7:35pm UTC](https://discuss.elastic.co/t/nest-how-to-index-raw-json-through-bulk-api/47432 "2016-04-14T19:35:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![avoxm](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@avoxm](https://discuss.elastic.co/u/avoxm)\
**Post date:** [April 14, 2016, 7:35pm UTC](https://discuss.elastic.co/t/nest-how-to-index-raw-json-through-bulk-api/47432/1 "2016-04-14T19:35:42Z")

</div>

Since IRawClient has been removed how we can index raw json documents through bulk API ?

---

<div class="post-metadata">

**Author:** ![avoxm](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@avoxm](https://discuss.elastic.co/u/avoxm)\
**Post date:** [April 15, 2016, 3:15am UTC](https://discuss.elastic.co/t/nest-how-to-index-raw-json-through-bulk-api/47432/2 "2016-04-15T03:15:32Z")

</div>

OK apparently it has been renamed to .LowLevel.

---

<div class="post-metadata">

**Author:** ![ASN](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/asn/32/10535_2.png) [@ASN](https://discuss.elastic.co/u/ASN)\
**Post date:** [May 4, 2016, 5:28am UTC](https://discuss.elastic.co/t/nest-how-to-index-raw-json-through-bulk-api/47432/3 "2016-05-04T05:28:44Z")

</div>

Before indexing do we have to change any settings??  
because when i tried  
` var response = client.LowLevel.IndicesCreatePost<FeedData>("feederapp", json);`  
it is throwing an error..

> Unsuccessful low level call on POST: /feederapp?pretty=true  
> Audit trail of this API call:
> 
> - BadResponse: Node: [http://localhost:9200/](http://localhost:9200/) Took: 00:00:00.4116440  
> ServerError: ServerError: 500Type: settings\_exception Reason: "Failed to load settings from "json file content"  
> "caused\_by" : {  
> "type" : "parse\_exception",  
> "reason" : "malformed, expected settings to start with 'object', instead was [START\_ARRAY]"  
> }  
> },  
> "status" : 500  
> }

TIA

---

<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:** [July 5, 2017, 10:54pm UTC](https://discuss.elastic.co/t/nest-how-to-index-raw-json-through-bulk-api/47432/4 "2017-07-05T22:54:08Z")

</div>


