Hi guys,
today I was using the bulk API and the data was loading just fine into
Elasticsearch.
However, when querying Elasticsearch the resulting JSON (apparently ok) was
invalid, with an extra comma
"hits": [{
...
"_source":{...},
},
{
...
"_source":{...},
},
}]
After a long time, I found out that my data file for the bulk had a ',' at
the end of the data line as:
{"index":{"_index":"XXX","_id":222,"_type":"YYY"}}
{"id":222, "test": name},
I am not sure if that is the expected behavior, but it took me a long time
to find out :(
First, there was no error at bulk, second Elasticsearch is not raising any
error in query (although it returns a invalid json with the information).
Finally, Kibana was not showing any error when trying to use the index.
Thanks,
Pablo
--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/0d73335f-7c02-4367-bae3-a4077b12daec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.