elasticsearch/elasticsearch — pull request #3250 by spinscale (2013-06-27 08:02:27+00:00)
Title: Dont execute suggest before parsing the full request

The current implementation of parsing suggestions executed inside of the
the pull parser - which resulted in being reliable of the order of the
elements in the request. This fix changes the behaviour to parse the
relevant parts of the request first and then execute all the suggestions
afterwards, so we can be sure that every information has been extracted
from the request before execution.

I did not create a test, as I believe this can only be tested against the REST interface (where we do not have any tests at the moment)

Closes #3247