Hi, Pablo.

I remember reading that Elasticsearch will happily store an invalid JSON 
string as your _source.

>From my usage of the Java API, I noticed that the Jackson library is used, 
but that only the stream parser is present. What this tells me is that ES 
is likely parsing your JSON token-by-token and has processed and indexed 
most of it. In other words, an error isn't an all-or-nothing situation. 
Since your syntax error happens at the very end of the document, 
Elasticsearch has indexed all of the document before it encounters the 
error.

My guess is that if the error was not at the very end of the document, then 
Elasticsearch would fail to process and index any information past the 
error, but would successfully process and index information (if any) before 
the error.

Brian

-- 
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/042fcbfd-9575-4543-b6b1-2328af05b1fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to