def generate_index(self):
        # Reset the index as we are regenerating it from scratch
        self.document_index.drop_collection()
        # Add an index entry for each document
        for doc in self.get_queryset(self.document):
            self.add_to_index(doc)
Overrides Protocol method, called when the connection to the server
dataset/ETHPy150Open hmarr/mongosearch/mongosearch.py/SearchIndex.generate_index--crossover with--dataset/ETHPy150Open katharosada/botchallenge/client/botchallenge/client.py/RobotClientProtocol.connection_lost