diff --git a/src/collection.cpp b/src/collection.cpp index 212e1e70..0d47bece 100644 --- a/src/collection.cpp +++ b/src/collection.cpp @@ -144,6 +144,7 @@ nlohmann::json Collection::get_summary_json() const { json_response["name"] = name; json_response["num_documents"] = num_documents.load(); json_response["created_at"] = created_at.load(); + json_response["enable_nested_fields"] = enable_nested_fields; json_response["token_separators"] = nlohmann::json::array(); json_response["symbols_to_index"] = nlohmann::json::array(); diff --git a/test/collection_nested_fields_test.cpp b/test/collection_nested_fields_test.cpp index 0603f1c4..4d98cfc7 100644 --- a/test/collection_nested_fields_test.cpp +++ b/test/collection_nested_fields_test.cpp @@ -780,6 +780,9 @@ TEST_F(CollectionNestedFieldsTest, FieldsWithExplicitSchema) { ASSERT_TRUE(op.ok()); Collection* coll1 = op.get(); + nlohmann::json coll_summary = coll1->get_summary_json(); + ASSERT_EQ(1, coll_summary.count("enable_nested_fields")); + auto doc = R"({ "company_names": ["Quick brown fox jumped.", "The red fox was not fast."], "details": {