code: public void writeString(String text,boolean flush)
  	{
  		try {
  
  			_writeString(text);
  			if(flush)
  				this._flushBuffer();
  		}
  		catch (IOException e){
  			throw new ElasticSearchException(e);
  		}
  
  	}
docs: /*
  ********************************************************
  /* Output method implementations, textual
  ********************************************************