This is a proposed fix for Issue #74 in which the a breaking change in ES 7.0 modified the structure of the object containing the number of hits.
This change requests and stores the ES info object which is later used by the packaging.version() routine to make a choice on how to retrieve the number of hits from the ES query. This enables backwards compatibility with ES instances older than 7.0.
This is a proposed fix for Issue #74 in which the a breaking change in ES 7.0 modified the structure of the object containing the number of hits.
This change requests and stores the ES info object which is later used by the packaging.version() routine to make a choice on how to retrieve the number of hits from the ES query. This enables backwards compatibility with ES instances older than 7.0.