def test_field_and_global_parameters_precedence(self):
        """Test that field-level parameters take precedence over global parameters"""
        facets = FacetsParameters(
            fields={
                "field1": FieldFacetsConfiguration(
                    type="string",
                    maxResults=10,
                    order="asc"
                )
            },
            maxResults=5,
            order="desc"
        )
        result = self.index._get_facets_term(facets)
        expected = 'all( all(group(marqo__short_string_fields{"field1"}) max(10) order(count()) each(output(count()))) )'
        self.assertEqual(result, expected)
Test that field-level parameters take precedence over global parameters
tests/unit_tests/marqo/core/unstructured_vespa_index/test_facets_term.py