code: def getIndexes(self) :
          
          url = "%s/index" % self.database.URL
          r = self.connection.session.get(url, params = {"collection": self.name})
          data = r.json()
          for ind in data["indexes"] :
              self.indexes[ind["type"]][ind["id"]] = Index(collection = self, infos = ind)
  
          return self.indexes
docs: Fills self.indexes with all the indexes associates with the collection and returns it