def test_batch_update_document_requests(self):
        """Test the client_batch_size parameter for the update_documents method."""
        original_doc = [
            {
                "text_field": "text field",
                "text_field_filter": "text field filter",
                "text_field_lexical": "text field lexical",
                "text_field_tensor": "text field tensor",
                "int_field": 1,
                "int_field_filter": 2,
                "int_field_score_modifier": 3,
                "float_field": 1.1,
                "float_field_filter": 2.2,
                "bool_field_filter": True,
                "_id": f"{i}"
            } for i in range(100)
        ]
        self.client.index(self.update_doc_index_name).add_documents(documents=original_doc)
        self.assertEqual(100, self.client.index(self.update_doc_index_name).get_stats()["numberOfDocuments"])

        updated_doc = [{
            "_id": f"{i}",
            "text_field": f"updated text field {i}",
            "int_field_filter": int(i),
            "float_field_score_modifier": float(i),
        } for i in range(100)]

        r = self.client.index(self.update_doc_index_name).\
            update_documents(documents=updated_doc, client_batch_size=10)

        self.assertEqual(10, len(r)) # 10 batches
        self.assertTrue(all([len(batch["items"]) == 10 for batch in r]), True) # 10 items in each batch

        for i in range(100):
            document = self.client.index(self.update_doc_index_name).get_document(f"{i}")
            self.assertEqual(f"updated text field {i}", document["text_field"])
            self.assertEqual(int(i), document["int_field_filter"])
            self.assertEqual(float(i), document["float_field_score_modifier"])
Test the client_batch_size parameter for the update_documents method.
tests/api_tests/v1/tests/api_tests/structured_index/test_partial_update_document.py