- refactored elasticsearch AR to make type and index available in instantiate(), issue #1313 fixes #2281