The typeAndIndexes map can't be static!! It will work for several data context using different clients but it will contain mappings from different clusters which is not correct at all.
Logging error as per Kasper Sorensen PR comment.
Modify index for indexType name as per Kasper PR comment.
Reusing the ClusterState object as per Kasper PR comment.