elasticsearch/elasticsearch — pull request #4265 by EvanYellow (2013-11-27 10:40:44+00:00)
Title: fix: flush a new bulk request based on the wrong number of actions curre...

/**
* Sets when to flush a new bulk request based on the number of actions currently added. Defaults to
* 1000. Can be set to -1 to disable it.
*/

actually, it's 1001.