elasticsearch: Fix mypy errors
Python elasticsearch module forbids use of positional arguments in its latest release (7.15.0) in favor of keyword arguments only.