elasticsearch/elasticsearch — pull request #8373 by zakmagnus (2014-11-06 20:08:30+00:00)
Title: Don't write bad search requests into exception messages

See issue 8370.

If a search requests's source doesn't parse, log the
source instead of putting it into an exception
message and propagating it. This prevents large
strings from being built up.

Ideally the source could be streamed to a log file
so that it never has to be rendered in-memory in
its entirety, but this is a good start.