Quick fix for searchAndReturnAssociationKeys on ES 1.x
searchAndReturnAssociationKeys() support for pre and post 1.x versions