def test_non_existing_array_field_returns_empty_value(self):
        """Test that searching a non-existing array field returns an empty array"""
        res = self.client.index(self.unstructured_text_index_name).search(
            "shirt",
            search_method="HYBRID",
            facets={
                "fields": {
                    "non_existing_field": {
                        "type": "array"
                    }
                }
            }
        )
        self.assertEqual(res["facets"]["non_existing_field"], {})
Test that searching a non-existing array field returns an empty array
tests/api_tests/v1/tests/api_tests/unstructured_index/test_facets.py