unnecessary use of magic property in elasticsearch AR