def test_multiple_fields_mixed_types(self):
        """Test multiple fields of different types"""
        facets = FacetsParameters(
            fields={
                "string_field": FieldFacetsConfiguration(type="string"),
                "array_field": FieldFacetsConfiguration(type="array"),
                "number_field": FieldFacetsConfiguration(
                    type="number",
                    ranges=[
                        {"from": 0, "to":10}
                    ]
                )
            },
            maxDepth=2,
            maxResults=5,
            order="desc"
        )
        result = self.index._get_facets_term(facets)
        expected = ('all( max(2) '
                   'all(group(marqo__short_string_fields{"string_field"}) max(5) order(-count()) each(output(count()))) '
                   'all(group(marqo__string_array_array_field) max(5) order(-count()) each(output(count()))) '
                   'all(group(predefined(marqo__int_fields{"number_field"}, bucket(0.0, 10.0))) max(5) order(-count()) '
                   'each(output(sum(marqo__int_fields{"number_field"}), avg(marqo__int_fields{"number_field"}), '
                   'min(marqo__int_fields{"number_field"}), max(marqo__int_fields{"number_field"}), count()))) '
                   'all(group(predefined(marqo__float_fields{"number_field"}, bucket(0.0, 10.0))) max(5) order(-count()) '
                   'each(output(sum(marqo__float_fields{"number_field"}), avg(marqo__float_fields{"number_field"}), '
                   'min(marqo__float_fields{"number_field"}), max(marqo__float_fields{"number_field"}), count()))) )')
        self.assertEqual(result, expected)
Test multiple fields of different types
tests/unit_tests/marqo/core/unstructured_vespa_index/test_facets_term.py