elasticsearch/elasticsearch — pull request #2315 by lindstromhenrik (2012-10-10 13:28:58+00:00)
Title: Verify that source object is ended properly and does not contain any tra...

...iling tokens (this might corrupt client result parsing).

Invalidate document when the source containins trailing tokens:

Example (indexing):

'{}}' => invalid sice it contains an extra '}' after the source object is exited.