def test_add_new_fields_with_update_documents_api(self):
        """Test that new fields can be added to a document using partial updates.
        
        This test verifies that a document can be initially created with minimal fields,
        then updated to add new fields of various types, and that these fields are
        correctly stored and retrievable.

        Note: this test only covers the fields that can be successfully added.
        """
        # First add a minimal document with just an ID
        initial_doc = [{
            '_id': 'minimal_doc',
            'tensor_field': 'initial content'  # Need at least one field for indexing
        }]
        
        # Add the minimal document
        add_docs_response = self.client.index(self.text_index_name).add_documents(
            documents=initial_doc,
            tensor_fields=['tensor_field']
        )
        self.assertFalse(add_docs_response["errors"])
        
        # Now update the document with new fields of various types. 
        # We won't be adding new lexical fields, as that is not supported. 
        update_doc = {
            '_id': 'minimal_doc',
            'new_int_field': 42,
            'new_float_field': 3.14159,
            'new_bool_field': True,
            'new_int_map': {
                'key1': 100,
                'key2': 200
            },
            'new_float_map': {
                'pi': 3.14,
                'e': 2.718
            }
        }
        update_docs_response = self.client.index(self.text_index_name).update_documents([update_doc])
        
        self.assertFalse(update_docs_response["errors"])
        
        # Get the document back and verify all fields exist with correct values
        get_docs_response = self.client.index(self.text_index_name).get_document(document_id='minimal_doc')
        
        # Verify original field
        self.assertEqual(get_docs_response['tensor_field'], 'initial content')
        
        # Check all fields in the update document
        self._verify_document_fields(update_doc, get_docs_response)
Test that new fields can be added to a document using partial updates.
        
        This test verifies that a document can be initially created with minimal fields,
        then updated to add new fields of various types, and that these fields are
        correctly stored and retrievable.

        Note: this test only covers the fields that can be successfully added.
        
tests/api_tests/v1/tests/api_tests/unstructured_index/test_update_documents_unstructured_index.py