# Possible issue at Bulk indexing

**URL:** <https://discuss.elastic.co/t/possible-issue-at-bulk-indexing/6525>\
**Category:** Elasticsearch\
**Created:** [January 27, 2012, 4:30pm UTC](https://discuss.elastic.co/t/possible-issue-at-bulk-indexing/6525 "2012-01-27T16:30:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [January 27, 2012, 4:30pm UTC](https://discuss.elastic.co/t/possible-issue-at-bulk-indexing/6525/1 "2012-01-27T16:30:29Z")

</div>

vineeth@vineeth-XPS-L501X:~/Documents$ cat sample.json  
{ "index" : { "\_index" : "test", "\_type" : "type1" } }  
{"XYZ" : "ABC" },

vineeth@vineeth-XPS-L501X:~/Documents$ curl -XPOST '  
[http://localhost:9200/test/\_search](http://localhost:9200/test/_search)' @sample.json  
{"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max\_score":1.0,"hits":[{"\_index":"test","\_type":"type1","\_id":"IUjJevlhQcGy6qz92ViW6g","\_version":1,"\_score":1.0,  
"\_source" : {"XYZ" : "ABC" },}]}}

The obtained JSON is not well formed as there is a extra comma.  
The same extra comma is there at sample.json too  
but then ES did not negative validated it.

Thanks  
Vineeth

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 27, 2012, 9:19pm UTC](https://discuss.elastic.co/t/possible-issue-at-bulk-indexing/6525/2 "2012-01-27T21:19:28Z")

</div>

You post the bulk request to the search API?

On Friday, January 27, 2012 at 6:30 PM, Vineeth Mohan wrote:

> vineeth@vineeth-XPS-L501X:~/Documents$ cat sample.json  
> { "index" : { "\_index" : "test", "\_type" : "type1" } }  
> {"XYZ" : "ABC" },
> 
> vineeth@vineeth-XPS-L501X:~/Documents$ curl -XPOST '[http://localhost:9200/test/\_search](http://localhost:9200/test/_search)' @sample.json  
> {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max\_score":1.0,"hits":[{"\_index":"test","\_type":"type1","\_id":"IUjJevlhQcGy6qz92ViW6g","\_version":1,"\_score":1.0, "\_source" : {"XYZ" : "ABC" },}]}}
> 
> The obtained JSON is not well formed as there is a extra comma.  
> The same extra comma is there at sample.json too  
> but then ES did not negative validated it.
> 
> Thanks  
> Vineeth

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan](https://avatars.discourse-cdn.com/v4/letter/v/bc79bd/32.png) [@vineeth\_mohan](https://discuss.elastic.co/u/vineeth_mohan)\
**Post date:** [January 27, 2012, 11:49pm UTC](https://discuss.elastic.co/t/possible-issue-at-bulk-indexing/6525/3 "2012-01-27T23:49:32Z")

</div>

Actually i did it to \_bulk itself  
But the issue remains.

Thanks  
VIneeth

On Sat, Jan 28, 2012 at 2:49 AM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> You post the bulk request to the search API?
> 
> On Friday, January 27, 2012 at 6:30 PM, Vineeth Mohan wrote:
> 
> vineeth@vineeth-XPS-L501X:~/Documents$ cat sample.json  
> { "index" : { "\_index" : "test", "\_type" : "type1" } }  
> {"XYZ" : "ABC" },
> 
> vineeth@vineeth-XPS-L501X:~/Documents$ curl -XPOST '  
> [http://localhost:9200/test/\_search](http://localhost:9200/test/_search)' @sample.json  
> {"took":1,"timed\_out":false,"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max\_score":1.0,"hits":[{"\_index":"test","\_type":"type1","\_id":"IUjJevlhQcGy6qz92ViW6g","\_version":1,"\_score":1.0,  
> "\_source" : {"XYZ" : "ABC" },}]}}
> 
> The obtained JSON is not well formed as there is a extra comma.  
> The same extra comma is there at sample.json too  
> but then ES did not negative validated it.
> 
> Thanks  
> Vineeth

---

<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 6, 2017, 3:41am UTC](https://discuss.elastic.co/t/possible-issue-at-bulk-indexing/6525/4 "2017-07-06T03:41:11Z")

</div>


