diff --git a/src/index_schema.cc b/src/index_schema.cc index 4e0be011..d856bcbc 100644 --- a/src/index_schema.cc +++ b/src/index_schema.cc @@ -721,7 +721,7 @@ void IndexSchema::RespondWithInfo(ValkeyModuleCtx *ctx) const { ValkeyModule_ReplyWithArray(ctx, 0); ValkeyModule_ReplyWithSimpleString(ctx, "index_definition"); - ValkeyModule_ReplyWithArray(ctx, 6); + ValkeyModule_ReplyWithArray(ctx, 8); ValkeyModule_ReplyWithSimpleString(ctx, "key_type"); ValkeyModule_ReplyWithSimpleString(ctx, attribute_data_type_->ToString().c_str()); @@ -734,6 +734,8 @@ void IndexSchema::RespondWithInfo(ValkeyModuleCtx *ctx) const { // supported. ValkeyModule_ReplyWithSimpleString(ctx, "default_score"); ValkeyModule_ReplyWithCString(ctx, "1"); + ValkeyModule_ReplyWithSimpleString(ctx, "indexes_all"); + ValkeyModule_ReplyWithSimpleString(ctx, "false"); ValkeyModule_ReplyWithSimpleString(ctx, "attributes"); ValkeyModule_ReplyWithArray(ctx, VALKEYMODULE_POSTPONED_ARRAY_LEN); diff --git a/testing/ft_info_test.cc b/testing/ft_info_test.cc index 94706516..ceef5c6d 100644 --- a/testing/ft_info_test.cc +++ b/testing/ft_info_test.cc @@ -135,10 +135,11 @@ INSTANTIATE_TEST_SUITE_P( .expect_return_failure = false, .expected_output = "*34\r\n+index_name\r\n+test_name\r\n+index_" - "options\r\n*0\r\n+index_definition\r\n*6\r\n+key_" + "options\r\n*0\r\n+index_definition\r\n*8\r\n+key_" "type\r\n+HASH\r\n+prefixes\r\n*1\r\n+prefix_1\r\n+" - "default_score\r\n$1\r\n1\r\n+attributes\r\n*1\r\n*" - "24\r\n+" + "default_score\r\n$1\r\n1\r\n+indexes_all\r\n+" + "false\r\n+" + "attributes\r\n*1\r\n*24\r\n+" "identifier\r\n+test_identifier_1\r\n+" "attribute\r\n+test_attribute_1\r\n+" "type\r\n+VECTOR\r\n+" @@ -213,10 +214,11 @@ INSTANTIATE_TEST_SUITE_P( .expect_return_failure = false, .expected_output = "*34\r\n+index_name\r\n+test_name\r\n+index_" - "options\r\n*0\r\n+index_definition\r\n*6\r\n+key_" + "options\r\n*0\r\n+index_definition\r\n*8\r\n+key_" "type\r\n+HASH\r\n+prefixes\r\n*1\r\n+prefix_1\r\n+" - "default_score\r\n$1\r\n1\r\n+attributes\r\n*1\r\n*" - "20\r\n+" + "default_score\r\n$1\r\n1\r\n+indexes_all\r\n+" + "false\r\n+" + "attributes\r\n*1\r\n*20\r\n+" "identifier\r\n+test_identifier_1\r\n+" "attribute\r\n+test_attribute_1\r\n+" "type\r\n+VECTOR\r\n+" @@ -281,9 +283,11 @@ INSTANTIATE_TEST_SUITE_P( .expect_return_failure = false, .expected_output = "*34\r\n+index_name\r\n+test_name\r\n+index_" - "options\r\n*0\r\n+index_definition\r\n*6\r\n+key_" + "options\r\n*0\r\n+index_definition\r\n*8\r\n+key_" "type\r\n+HASH\r\n+prefixes\r\n*1\r\n+prefix_1\r\n+" - "default_score\r\n$1\r\n1\r\n+attributes\r\n*1\r\n*" + "default_score\r\n$1\r\n1\r\n+indexes_all\r\n+" + "false\r\n+" + "attributes\r\n*1\r\n*" "10\r\n+identifier\r\n+test_identifier_1\r\n+" "attribute\r\n+test_attribute_1\r\n+type\r\n+" "TAG\r\n+SEPARATOR\r\n+@\r\n+size\r\n$1\r\n0\r\n+" @@ -342,9 +346,11 @@ INSTANTIATE_TEST_SUITE_P( .expect_return_failure = false, .expected_output = "*34\r\n+index_name\r\n+test_name\r\n+index_" - "options\r\n*0\r\n+index_definition\r\n*6\r\n+key_" + "options\r\n*0\r\n+index_definition\r\n*8\r\n+key_" "type\r\n+HASH\r\n+prefixes\r\n*1\r\n+prefix_1\r\n+" - "default_score\r\n$1\r\n1\r\n+attributes\r\n*1\r\n*" + "default_score\r\n$1\r\n1\r\n+indexes_all\r\n+" + "false\r\n+" + "attributes\r\n*1\r\n*" "11\r\n+identifier\r\n+test_identifier_1\r\n+" "attribute\r\n+test_attribute_1\r\n+type\r\n+" "TAG\r\n+SEPARATOR\r\n+@\r\n+CASESENSITIVE\r\n+" @@ -401,9 +407,11 @@ INSTANTIATE_TEST_SUITE_P( .expect_return_failure = false, .expected_output = "*34\r\n+index_name\r\n+test_name\r\n+index_" - "options\r\n*0\r\n+index_definition\r\n*6\r\n+key_" + "options\r\n*0\r\n+index_definition\r\n*8\r\n+key_" "type\r\n+HASH\r\n+prefixes\r\n*1\r\n+prefix_1\r\n+" - "default_score\r\n$1\r\n1\r\n+attributes\r\n*1\r\n*" + "default_score\r\n$1\r\n1\r\n+indexes_all\r\n+" + "false\r\n+" + "attributes\r\n*1\r\n*" "8\r\n+identifier\r\n+test_identifier_1\r\n+" "attribute\r\n+test_attribute_1\r\n+type\r\n+" "NUMERIC\r\n+size\r\n$1\r\n0\r\n+num_docs\r\n:" @@ -506,4 +514,4 @@ INSTANTIATE_TEST_SUITE_P( } // namespace -} // namespace valkey_search \ No newline at end of file +} // namespace valkey_search