def __init__(self, host, port=9200, explore_metadata=True, debug=False, kwargs=None):
        """
        settings.explore_metadata == True - IF PROBING THE CLUSTER FOR METADATA IS ALLOWED
        settings.timeout == NUMBER OF SECONDS TO WAIT FOR RESPONSE, OR SECONDS TO WAIT FOR DOWNLOAD (PASSED TO requests)
        """
        if hasattr(self, "settings"):
            return

        self.settings = kwargs
        self.info = None
        self._metadata = Null
        self.index_last_updated = {}  # MAP FROM INDEX NAME TO TIME THE INDEX METADATA HAS CHANGED
        self.metadata_locker = Lock()
        self.metatdata_last_updated = Date.now()
        self.debug = debug
        self._version = None
        self.url = URL(host, port=port)
        self.lang = None
        if self.version.startswith("6."):
            from jx_elasticsearch.es52.expressions import ES52
            self.lang = ES52
        else:
            Log.error("Not a know version: {{version}}", version=self.version)
def __init__ ( self , host , port = 9200 , explore_metadata = True , debug = False , kwargs = None ) : if hasattr ( self , "settings" ) : return self . settings = kwargs self . info = None self . _metadata = Null self . index_last_updated = { } self . metadata_locker = Lock ( ) self . metatdata_last_updated = Date . now ( ) self . debug = debug self . _version = None self . url = URL ( host , port = port ) self . lang = None if self . version . startswith ( "6." ) : from jx_elasticsearch . es52 . expressions import ES52 self . lang = ES52 else : Log . error ( "Not a know version: {{version}}" , version = self . version )
settings.explore_metadata == True - IF PROBING THE CLUSTER FOR METADATA IS ALLOWED
        settings.timeout == NUMBER OF SECONDS TO WAIT FOR RESPONSE, OR SECONDS TO WAIT FOR DOWNLOAD (PASSED TO requests)