elasticsearch: requires Java 7

Closes #29910.