def test_partial_update_should_update_short_string_to_long_string(self):
        """Test that partial updates to short strings to long strings are successful."""

        id = self.doc2['_id']
        original_value = self.doc2["short_string_field"]
        res = tensor_search.search(self.config, self.index.name, text='*',
                                   filter=f'short_string_field:{original_value}')
        self.assertEqual(2, len(res['hits']))

        index = self.config.index_management.get_index(self.index.name)
        res = self.config.document.partial_update_documents([{'_id': id, 'short_string_field': 'verylongstring' * 10}],
                                                            index)
        self.assertFalse(res.errors, f"Expected no errors when updating document {id}")

        doc = tensor_search.get_document_by_id(self.config, self.index.name, id)
        self.assertEqual('verylongstring' * 10, doc['short_string_field'],
                         f"Expected short_string_field to be updated for document {id}")
        self._assert_fields_unchanged(doc, ['short_string_field'])

        res = tensor_search.search(self.config, self.index.name, text='*',
                                   filter=f'short_string_field:{original_value}')
        self.assertEqual(1, len(res['hits']))
Test that partial updates to short strings to long strings are successful.
tests/integ_tests/core/document/test_partial_update_semi_structured.py