def get_settings(self, index):
        """Get settings for index.

        :param index: index name
        """
        settings = self.es.indices.get_settings(index=index)
        return next(iter(settings.values()))
def get_settings ( self , index ) : settings = self . es . indices . get_settings ( index = index ) return next ( iter ( settings . values ( ) ) )
Get settings for index.

        :param index: index name