def test_marqo_to_vespa_conversion_combined_string_array_fields(self):
        """For index created by Marqo prior to 2.16, string array fields are combined to one"""
        marqo_doc = {
            '_id': '123',
            'int_field1': 1,
            'int_map1': {'a': 1, 'b': 2},
            'float_field1': 1.0,
            'float_map1': {'aa': 2.0, 'bb': 3.0},
            'bool_field1': True,
            'bool_field2': False,
            'tags': ['foo', 'bar'],
            'markets': ['fr', 'au'],
            'title': 'some product',
            'desc': 'some awesome product',
            'marqo__tensors': {'title': {'chunks': ['some product'], 'embeddings': [[1.0, 2.0]]}},
        }

        vespa_doc = self.vespa_index_prior_to_216.to_vespa_document(marqo_doc)

        self.assertEqual({
            'id': '123',
            'fields': {
                'marqo__bool_fields': {'bool_field1': 1, 'bool_field2': 0},
                'marqo__chunks_title': ['some product'],
                'marqo__embeddings_title': {'0': [1.0, 2.0]},
                'marqo__float_fields': {'float_field1': 1.0,
                                        'float_map1.aa': 2.0,
                                        'float_map1.bb': 3.0},
                'marqo__id': '123',
                'marqo__int_fields': {'int_field1': 1,
                                      'int_map1.a': 1,
                                      'int_map1.b': 2},
                'marqo__lexical_desc': 'some awesome product',
                'marqo__lexical_title': 'some product',
                'marqo__score_modifiers': {'float_field1': 1.0,
                                           'float_map1.aa': 2.0,
                                           'float_map1.bb': 3.0,
                                           'int_field1': 1,
                                           'int_map1.a': 1,
                                           'int_map1.b': 2},
                'marqo__short_string_fields': {'desc': 'some awesome product',
                                               'title': 'some product'},
                # string arrays are combined
                'marqo__string_array': ['tags::foo',
                                        'tags::bar',
                                        'markets::fr',
                                        'markets::au'],
                'marqo__vector_count': 1
            },
        }, vespa_doc)
For index created by Marqo prior to 2.16, string array fields are combined to one
tests/unit_tests/marqo/core/semi_structured_vespa_index/test_semi_structured_vespa_index.py