fixed issue with elasticsearch >=1.2.0

do not use scripting as it is disabled by default and will cause edge
case queries to fail

fixes #4187