elasticsearch 0.90.3 compatibility

note that this change is incompatible with 0.90.2 or other
earlier versions of elasticsearch