HorimotoYasuhiro
null+****@clear*****
Thu Dec 28 11:48:55 JST 2017
HorimotoYasuhiro 2017-12-28 11:48:55 +0900 (Thu, 28 Dec 2017) New Revision: 43530edd3fa0081d26b2a8ee38006e23b4dbc6f2 https://github.com/groonga/groonga/commit/43530edd3fa0081d26b2a8ee38006e23b4dbc6f2 Merged 0c25f8e: Merge pull request #796 from komainu8/release_7.1.0_update_exsamples Message: Fix bad examples Fix syntax error and invalid command error, invalid examples. Modified files: doc/source/example/reference/commands/logical_count/columns_name_flags.log doc/source/example/reference/commands/logical_count/columns_name_value.log doc/source/example/reference/commands/logical_range_filter/columns_name_flags.log doc/source/example/reference/commands/logical_range_filter/columns_name_value.log doc/source/example/reference/commands/logical_select/columns_name_flags.log doc/source/example/reference/commands/logical_select/columns_name_value.log doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_flags.log doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_value.log doc/source/example/reference/commands/plugin_register/query_expanders_tsv.log doc/source/example/reference/commands/plugin_unregister/query_expanders_tsv.log doc/source/example/reference/commands/register/query_expanders_tsv.log doc/source/example/reference/commands/ruby_load/load.log doc/source/example/reference/commands/select/columns_name_flags.log doc/source/example/reference/commands/select/columns_name_value.log doc/source/example/reference/commands/select/usage_dynamic_column.log doc/source/example/reference/commands/select/usage_window_function.log doc/source/example/reference/commands/suggest-completion.log doc/source/example/reference/commands/suggest-correction.log doc/source/example/reference/commands/suggest-learn-correction.log doc/source/example/reference/commands/suggest-mixed.log doc/source/example/reference/commands/suggest-suggestion.log doc/source/example/reference/commands/table_tokenize/simple_example.log doc/source/example/reference/functions/in_records/usage_search.log doc/source/example/reference/functions/math_abs/nearest_shops.log doc/source/example/reference/functions/vector_size/usage_only.log doc/source/example/reference/suggest/complete/registered-word-japanese.log doc/source/example/reference/suggest/complete/rk-search-nihon.log doc/source/example/reference/suggest/complete/rk-search-nippon.log doc/source/example/reference/suggest/complete/select.log doc/source/example/reference/suggest/correction/select.log doc/source/example/reference/suggest/suggest/select.log doc/source/example/reference/token_filters/example-table-create.log doc/source/example/reference/token_filters/stem.log doc/source/example/reference/token_filters/stop_word.log doc/source/example/tutorial/micro_blog_drilldown.log doc/source/example/tutorial/micro_blog_follower.log doc/source/example/tutorial/micro_blog_hash_tag.log doc/source/example/tutorial/micro_blog_keyword.log doc/source/example/tutorial/micro_blog_keyword_and_location.log doc/source/example/tutorial/micro_blog_last_modified.log doc/source/example/tutorial/micro_blog_posted_by.log doc/source/example/tutorial/micro_blog_score.log doc/source/example/tutorial/micro_blog_user.log Modified: doc/source/example/reference/commands/logical_count/columns_name_flags.log (+2 -31) =================================================================== --- doc/source/example/reference/commands/logical_count/columns_name_flags.log 2017-12-27 12:43:51 +0900 (eefc03de2) +++ doc/source/example/reference/commands/logical_count/columns_name_flags.log 2017-12-28 11:48:55 +0900 (87cfc220e) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/vector - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/vector.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] logical_count \ --logical_table Entries \ --shard_key created_at \ @@ -25,18 +10,4 @@ Execution example:: --columns[vector].type UInt32 \ --columns[vector].value 'vector_new(1, 2, 3)' \ --filter 'vector_size(vector) > 2' - # [ - # [ - # -63, - # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <vector_new|(|1, 2, 3)>: [expr][parse] unknown identifier: <vector_new>>(-63)", - # [ - # [ - # "#<Class:0x56294ceaaca0>.open", - # "lib/mrb/scripts/table_cursor.rb", - # 12 - # ] - # ] - # ] - # ] + # [[0, 1337566253.89858, 0.000355720520019531], 5] Modified: doc/source/example/reference/commands/logical_count/columns_name_value.log (+2 -31) =================================================================== --- doc/source/example/reference/commands/logical_count/columns_name_value.log 2017-12-27 12:43:51 +0900 (afee09665) +++ doc/source/example/reference/commands/logical_count/columns_name_value.log 2017-12-28 11:48:55 +0900 (df585afa9) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/string - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/string.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] logical_count \ --logical_table Entries \ --shard_key created_at \ @@ -24,18 +9,4 @@ Execution example:: --columns[content_length].type UInt32 \ --columns[content_length].value 'string_length(content)' \ --filter 'content_length >= 40' - # [ - # [ - # -63, - # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <string_length|(|content)>: [expr][parse] unknown identifier: <string_length>>(-63)", - # [ - # [ - # "#<Class:0x56294ceaaca0>.open", - # "lib/mrb/scripts/table_cursor.rb", - # 12 - # ] - # ] - # ] - # ] + # [[0, 1337566253.89858, 0.000355720520019531], 2] Modified: doc/source/example/reference/commands/logical_range_filter/columns_name_flags.log (+51 -22) =================================================================== --- doc/source/example/reference/commands/logical_range_filter/columns_name_flags.log 2017-12-27 12:43:51 +0900 (c5470326e) +++ doc/source/example/reference/commands/logical_range_filter/columns_name_flags.log 2017-12-28 11:48:55 +0900 (6e2d0617d) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/vector - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/vector.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] logical_range_filter \ --logical_table Entries \ --shard_key created_at \ @@ -27,15 +12,59 @@ Execution example:: --output_columns _id,vector # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <vector_new|(|1, 2, 3)>: [expr][parse] unknown identifier: <vector_new>>(-63)", + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "vector", + # "UInt32" + # ] + # ], + # [ + # 1, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 2, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 3, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 1, + # [ + # 1, + # 2, + # 3 + # ] + # ], # [ + # 2, # [ - # "#<Class:0x5638be2d9ca0>.open", - # "lib/mrb/scripts/table_cursor.rb", - # 12 + # 1, + # 2, + # 3 # ] # ] # ] Modified: doc/source/example/reference/commands/logical_range_filter/columns_name_value.log (+40 -22) =================================================================== --- doc/source/example/reference/commands/logical_range_filter/columns_name_value.log 2017-12-27 12:43:51 +0900 (220fc7c67) +++ doc/source/example/reference/commands/logical_range_filter/columns_name_value.log 2017-12-28 11:48:55 +0900 (4856e6e9f) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/string - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/string.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] logical_range_filter \ --logical_table Entries \ --shard_key created_at \ @@ -26,16 +11,49 @@ Execution example:: --output_columns _id,content,content_length # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <string_length|(|content)>: [expr][parse] unknown identifier: <string_length>>(-63)", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "#<Class:0x5638be2d9ca0>.open", - # "lib/mrb/scripts/table_cursor.rb", - # 12 + # "_id", + # "UInt32" + # ], + # [ + # "content", + # "Text" + # ], + # [ + # "content_length", + # "UInt32" # ] + # ], + # [ + # 1, + # "Welcome! This is my first post!", + # 31 + # ], + # [ + # 2, + # "I started to use Groonga. It's very fast!", + # 41 + # ], + # [ + # 3, + # "I also started to use Mroonga. It's also very fast! Really fast!", + # 64 + # ], + # [ + # 1, + # "I migrated all Senna system!", + # 28 + # ], + # [ + # 2, + # "I also migrated all Tritonn system!", + # 35 # ] # ] # ] Modified: doc/source/example/reference/commands/logical_select/columns_name_flags.log (+56 -22) =================================================================== --- doc/source/example/reference/commands/logical_select/columns_name_flags.log 2017-12-27 12:43:51 +0900 (fce4595b9) +++ doc/source/example/reference/commands/logical_select/columns_name_flags.log 2017-12-28 11:48:55 +0900 (d8f9eb9c0) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/vector - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/vector.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] logical_select \ --logical_table Entries \ --shard_key created_at \ @@ -27,15 +12,64 @@ Execution example:: --output_columns _id,vector # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <vector_new|(|1, 2, 3)>: [expr][parse] unknown identifier: <vector_new>>(-63)", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "#<Class:0x560098612ca0>.open", - # "lib/mrb/scripts/table_cursor.rb", - # 12 + # 5 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "vector", + # "UInt32" + # ] + # ], + # [ + # 1, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 2, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 3, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 1, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 2, + # [ + # 1, + # 2, + # 3 + # ] # ] # ] # ] Modified: doc/source/example/reference/commands/logical_select/columns_name_value.log (+45 -22) =================================================================== --- doc/source/example/reference/commands/logical_select/columns_name_value.log 2017-12-27 12:43:51 +0900 (ec9b47bc1) +++ doc/source/example/reference/commands/logical_select/columns_name_value.log 2017-12-28 11:48:55 +0900 (7556cf9b5) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/string - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/string.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] logical_select \ --logical_table Entries \ --shard_key created_at \ @@ -26,15 +11,53 @@ Execution example:: --output_columns _id,content,content_length # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <string_length|(|content)>: [expr][parse] unknown identifier: <string_length>>(-63)", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "#<Class:0x560098612ca0>.open", - # "lib/mrb/scripts/table_cursor.rb", - # 12 + # 5 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "content", + # "Text" + # ], + # [ + # "content_length", + # "UInt32" + # ] + # ], + # [ + # 1, + # "Welcome! This is my first post!", + # 31 + # ], + # [ + # 2, + # "I started to use Groonga. It's very fast!", + # 41 + # ], + # [ + # 3, + # "I also started to use Mroonga. It's also very fast! Really fast!", + # 64 + # ], + # [ + # 1, + # "I migrated all Senna system!", + # 28 + # ], + # [ + # 2, + # "I also migrated all Tritonn system!", + # 35 # ] # ] # ] Modified: doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_flags.log (+53 -7) =================================================================== --- doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_flags.log 2017-12-27 12:43:51 +0900 (ad06997a5) +++ doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_flags.log 2017-12-28 11:48:55 +0900 (2a46c0e29) @@ -13,16 +13,62 @@ Execution example:: --drilldowns[tag].output_columns _key,vector # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "syntax error: <Syntax error: <vector_new|(|\"a\", \"b\", \"c\")>: [expr][parse] unknown identifier: <vector_new>>(-63)", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "Groonga::Sharding::DynamicColumnExecuteContext.apply", - # "/home/horimoto/work/release/groonga/groonga.clean/plugins/sharding/dynamic_columns.rb", - # 110 + # 5 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ] + # ] + # ], + # { + # "tag": [ + # [ + # 3 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "vector", + # "ShortText" + # ] + # ], + # [ + # "Hello", + # [ + # "a", + # "b", + # "c" + # ] + # ], + # [ + # "Groonga", + # [ + # "a", + # "b", + # "c" + # ] + # ], + # [ + # "Senna", + # [ + # "a", + # "b", + # "c" + # ] + # ] # ] - # ] + # } # ] # ] Modified: doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_value.log (+1 -16) =================================================================== --- doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_value.log 2017-12-27 12:43:51 +0900 (435bd42d6) +++ doc/source/example/reference/commands/logical_select/drilldowns_label_columns_name_value.log 2017-12-28 11:48:55 +0900 (2ac5afda7) @@ -11,19 +11,4 @@ Execution example:: --drilldowns[tag].columns[tag_length].type UInt32 \ --drilldowns[tag].columns[tag_length].value 'string_length(_key)' \ --drilldowns[tag].output_columns _key,tag_length - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/string.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] Modified: doc/source/example/reference/commands/plugin_register/query_expanders_tsv.log (+1 -16) =================================================================== --- doc/source/example/reference/commands/plugin_register/query_expanders_tsv.log 2017-12-27 12:43:51 +0900 (abc541e14) +++ doc/source/example/reference/commands/plugin_register/query_expanders_tsv.log 2017-12-28 11:48:55 +0900 (6cb13f8ee) @@ -1,19 +1,4 @@ Execution example:: plugin_register query_expanders/tsv - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/query_expanders/tsv.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] Modified: doc/source/example/reference/commands/plugin_unregister/query_expanders_tsv.log (+1 -16) =================================================================== --- doc/source/example/reference/commands/plugin_unregister/query_expanders_tsv.log 2017-12-27 12:43:51 +0900 (099545729) +++ doc/source/example/reference/commands/plugin_unregister/query_expanders_tsv.log 2017-12-28 11:48:55 +0900 (41576036d) @@ -1,19 +1,4 @@ Execution example:: plugin_unregister query_expanders/tsv - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][unregister] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/query_expanders/tsv.so", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] Modified: doc/source/example/reference/commands/register/query_expanders_tsv.log (+1 -16) =================================================================== --- doc/source/example/reference/commands/register/query_expanders_tsv.log 2017-12-27 12:43:51 +0900 (27436d679) +++ doc/source/example/reference/commands/register/query_expanders_tsv.log 2017-12-28 11:48:55 +0900 (cb2f067d2) @@ -1,19 +1,4 @@ Execution example:: register query_expanders/tsv - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/query_expanders/tsv.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] Modified: doc/source/example/reference/commands/ruby_load/load.log (+2 -31) =================================================================== --- doc/source/example/reference/commands/ruby_load/load.log 2017-12-27 12:43:51 +0900 (0263b2572) +++ doc/source/example/reference/commands/ruby_load/load.log 2017-12-28 11:48:55 +0900 (bc55d009b) @@ -1,35 +1,6 @@ Execution example:: plugin_register ruby/load - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/ruby/load.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] ruby_load "expression.rb" - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: ruby_load", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] + # [[0, 1337566253.89858, 0.000355720520019531], {"value": null}] Modified: doc/source/example/reference/commands/select/columns_name_flags.log (+56 -22) =================================================================== --- doc/source/example/reference/commands/select/columns_name_flags.log 2017-12-27 12:43:51 +0900 (3de3dff93) +++ doc/source/example/reference/commands/select/columns_name_flags.log 2017-12-28 11:48:55 +0900 (14304bfcb) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/vector - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/vector.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] select Entries \ --columns[vector].stage initial \ --columns[vector].flags COLUMN_VECTOR \ @@ -25,15 +10,64 @@ Execution example:: --output_columns _id,vector # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "[select][column][initial][vector] failed to parse value: <vector_new(1, 2, 3)>: Syntax error: <vector_new|(|1, 2, 3)>: [expr][p", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "grn_select_apply_columns", - # "proc_select.c", - # 1360 + # 5 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "vector", + # "UInt32" + # ] + # ], + # [ + # 1, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 2, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 3, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 4, + # [ + # 1, + # 2, + # 3 + # ] + # ], + # [ + # 5, + # [ + # 1, + # 2, + # 3 + # ] # ] # ] # ] Modified: doc/source/example/reference/commands/select/columns_name_value.log (+45 -22) =================================================================== --- doc/source/example/reference/commands/select/columns_name_value.log 2017-12-27 12:43:51 +0900 (1abca5452) +++ doc/source/example/reference/commands/select/columns_name_value.log 2017-12-28 11:48:55 +0900 (4520426ed) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/string - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/string.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] select Entries \ --columns[content_length].stage initial \ --columns[content_length].type UInt32 \ @@ -24,15 +9,53 @@ Execution example:: --output_columns _id,content,content_length # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "[select][column][initial][content_length] failed to parse value: <string_length(content)>: Syntax error: <string_length|(|conte", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "grn_select_apply_columns", - # "proc_select.c", - # 1360 + # 5 + # ], + # [ + # [ + # "_id", + # "UInt32" + # ], + # [ + # "content", + # "Text" + # ], + # [ + # "content_length", + # "UInt32" + # ] + # ], + # [ + # 1, + # "Welcome! This is my first post!", + # 31 + # ], + # [ + # 2, + # "I started to use Groonga. It's very fast!", + # 41 + # ], + # [ + # 3, + # "I also started to use Mroonga. It's also very fast! Really fast!", + # 64 + # ], + # [ + # 4, + # "I migrated all Senna system!", + # 28 + # ], + # [ + # 5, + # "I also migrated all Tritonn system!", + # 35 # ] # ] # ] Modified: doc/source/example/reference/commands/select/usage_dynamic_column.log (+59 -22) =================================================================== --- doc/source/example/reference/commands/select/usage_dynamic_column.log 2017-12-27 12:43:51 +0900 (d8ef53f1c) +++ doc/source/example/reference/commands/select/usage_dynamic_column.log 2017-12-28 11:48:55 +0900 (1167cc108) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/number - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/number.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] select \ --table Entries \ --columns[n_likes_class].stage initial \ @@ -27,15 +12,67 @@ Execution example:: --output_columns n_likes,n_likes_class # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "[select][column][initial][n_likes_class] failed to parse value: <number_classify(n_likes, 10)>: Syntax error: <number_classify|", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "grn_select_apply_columns", - # "proc_select.c", - # 1360 + # 5 + # ], + # [ + # [ + # "n_likes", + # "UInt32" + # ], + # [ + # "n_likes_class", + # "UInt32" + # ] + # ], + # [ + # 5, + # 0 + # ], + # [ + # 10, + # 10 + # ], + # [ + # 15, + # 10 + # ], + # [ + # 3, + # 0 + # ], + # [ + # 3, + # 0 + # ] + # ], + # [ + # [ + # 2 + # ], + # [ + # [ + # "_key", + # "UInt32" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # 10, + # 2 + # ], + # [ + # 0, + # 3 # ] # ] # ] Modified: doc/source/example/reference/commands/select/usage_window_function.log (+1 -16) =================================================================== --- doc/source/example/reference/commands/select/usage_window_function.log 2017-12-27 12:43:51 +0900 (0f4175735) +++ doc/source/example/reference/commands/select/usage_window_function.log 2017-12-28 11:48:55 +0900 (3456284ba) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/number - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/number.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] select \ --table Entries \ --columns[n_likes_sum_per_tag].stage initial \ Modified: doc/source/example/reference/commands/suggest-completion.log (+21 -8) =================================================================== --- doc/source/example/reference/commands/suggest-completion.log 2017-12-27 12:43:51 +0900 (f60f847d5) +++ doc/source/example/reference/commands/suggest-completion.log 2017-12-28 11:48:55 +0900 (14bce1fd4) @@ -3,16 +3,29 @@ Execution example:: suggest --table item_query --column kana --types complete --frequency_threshold 1 --query en # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "complete": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "engine", + # 1 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/commands/suggest-correction.log (+17 -8) =================================================================== --- doc/source/example/reference/commands/suggest-correction.log 2017-12-27 12:43:51 +0900 (7853ffeb5) +++ doc/source/example/reference/commands/suggest-correction.log 2017-12-28 11:48:55 +0900 (99a537cbc) @@ -3,16 +3,25 @@ Execution example:: suggest --table item_query --column kana --types correct --frequency_threshold 1 --query saerch # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "correct": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 0 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/commands/suggest-learn-correction.log (+3 -135) =================================================================== --- doc/source/example/reference/commands/suggest-learn-correction.log 2017-12-27 12:43:51 +0900 (0d6974d3b) +++ doc/source/example/reference/commands/suggest-learn-correction.log 2017-12-28 11:48:55 +0900 (81e92a92d) @@ -1,5 +1,7 @@ Execution example:: + load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)' + [ {"sequence": "2", "time": 1312950803.86057, "item": "s"}, {"sequence": "2", "time": 1312950803.96857, "item": "sa"}, {"sequence": "2", "time": 1312950804.26057, "item": "sae"}, @@ -9,138 +11,4 @@ Execution example:: {"sequence": "2", "time": 1312950809.76057, "item": "serch"}, {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"} ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: {", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: ]", - # [ - # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 - # ] - # ] - # ] - # ] + # [[0, 1337566253.89858, 0.000355720520019531], 8] Modified: doc/source/example/reference/commands/suggest-mixed.log (+63 -8) =================================================================== --- doc/source/example/reference/commands/suggest-mixed.log 2017-12-27 12:43:51 +0900 (c5b6400d5) +++ doc/source/example/reference/commands/suggest-mixed.log 2017-12-28 11:48:55 +0900 (6be22e2ec) @@ -3,16 +3,71 @@ Execution example:: suggest --table item_query --column kana --types complete|correct|suggest --frequency_threshold 1 --query search # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "suggest": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "search engine", + # 1 + # ], + # [ + # "web search realtime", + # 1 + # ] + # ], + # "complete": [ + # [ + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "search engine", + # 2 + # ], + # [ + # "search", + # 1 + # ] + # ], + # "correct": [ + # [ + # 0 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/commands/suggest-suggestion.log (+25 -8) =================================================================== --- doc/source/example/reference/commands/suggest-suggestion.log 2017-12-27 12:43:51 +0900 (fcd453b9f) +++ doc/source/example/reference/commands/suggest-suggestion.log 2017-12-28 11:48:55 +0900 (14429e200) @@ -3,16 +3,33 @@ Execution example:: suggest --table item_query --column kana --types suggest --frequency_threshold 1 --query search # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "suggest": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "search engine", + # 1 + # ], + # [ + # "web search realtime", + # 1 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/commands/table_tokenize/simple_example.log (+2 -32) =================================================================== --- doc/source/example/reference/commands/table_tokenize/simple_example.log 2017-12-27 12:43:51 +0900 (0e8bad999) +++ doc/source/example/reference/commands/table_tokenize/simple_example.log 2017-12-28 11:48:55 +0900 (1287b00ab) @@ -1,39 +1,9 @@ Execution example:: plugin_register token_filters/stop_word - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/token_filters/stop_word.", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto --token_filters TokenFilterStopWord - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "[table][create][token-filter] nonexistent token filter: <TokenFilterStopWord>", - # [ - # [ - # "grn_proc_table_set_token_filters_put", - # "proc_table.c", - # 88 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] column_create Terms is_stop_word COLUMN_SCALAR Bool # [[0, 1337566253.89858, 0.000355720520019531], true] load --table Terms Modified: doc/source/example/reference/functions/in_records/usage_search.log (+30 -22) =================================================================== --- doc/source/example/reference/functions/in_records/usage_search.log 2017-12-27 12:43:51 +0900 (2c811594b) +++ doc/source/example/reference/functions/in_records/usage_search.log 2017-12-28 11:48:55 +0900 (8f0a75bcd) @@ -1,22 +1,7 @@ Execution example:: plugin_register functions/string - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/functions/string.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] select \ --table Memos \ --filter 'in_records(Conditions, \ @@ -27,15 +12,38 @@ Execution example:: --output_columns _key,user,tag # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <in_records(Conditions, user, \"@\", \"user_pattern\", ", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "user", + # "ShortText" + # ], + # [ + # "tag", + # "Tags" + # ] + # ], + # [ + # "Groonga is fast", + # "alice", + # "groonga" + # ], + # [ + # "Droonga is fast", + # "david", + # "droonga" # ] # ] # ] Modified: doc/source/example/reference/functions/math_abs/nearest_shops.log (+27 -6) =================================================================== --- doc/source/example/reference/functions/math_abs/nearest_shops.log 2017-12-27 12:43:51 +0900 (e7486fdb1) +++ doc/source/example/reference/functions/math_abs/nearest_shops.log 2017-12-28 11:48:55 +0900 (7d21df3ba) @@ -3,15 +3,36 @@ Execution example:: select Shops --filter true --output_columns '_key, from_office' --scorer 'from_office = math_abs(250 - from_station)' --sort_keys from_office # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "[select][scorer] failed to parse: Syntax error: <from_office = math_abs|(|250 - from_station)>: [expr][parse] unknown identifie", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "grn_select_apply_scorer", - # "proc_select.c", - # 1743 + # 3 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "from_office", + # "Int32" + # ] + # ], + # [ + # "Cake & Coffee Shop", + # 50 + # ], + # [ + # "Donut & Coffee Shop", + # 150 + # ], + # [ + # "Coffee Shop", + # 200 # ] # ] # ] Modified: doc/source/example/reference/functions/vector_size/usage_only.log (+33 -8) =================================================================== --- doc/source/example/reference/functions/vector_size/usage_only.log 2017-12-27 12:43:51 +0900 (e06b67226) +++ doc/source/example/reference/functions/vector_size/usage_only.log 2017-12-28 11:48:55 +0900 (9fc87a1cf) @@ -3,17 +3,42 @@ Execution example:: select Memos --output_columns 'tags, vector_size(tags)' --command_version 2 # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <tags, vector_size|(|tags)>", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 37 + # 3 + # ], + # [ + # [ + # "tags", + # "ShortText" + # ], + # [ + # "vector_size", + # null + # ] + # ], + # [ + # [ + # "Groonga" + # ], + # 1 + # ], + # [ + # [ + # "Groonga", + # "Ruby" + # ], + # 2 + # ], + # [ + # [], + # 0 # ] # ] - # ], - # [] + # ] # ] Modified: doc/source/example/reference/suggest/complete/registered-word-japanese.log (+58 -16) =================================================================== --- doc/source/example/reference/suggest/complete/registered-word-japanese.log 2017-12-27 12:43:51 +0900 (5746e400a) +++ doc/source/example/reference/suggest/complete/registered-word-japanese.log 2017-12-28 11:48:55 +0900 (019de5656) @@ -15,18 +15,39 @@ Execution example:: suggest --table item_query --column kana --types complete --frequency_threshold 1 --query nihon # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "complete": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 3 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "日本", + # 2 + # ], + # [ + # "日本人", + # 2 + # ], + # [ + # "日本語", + # 2 # ] # ] - # ] + # } # ] load --table item_query [ @@ -36,16 +57,37 @@ Execution example:: suggest --table item_query --column kana --types complete --frequency_threshold 1 --query nihon # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "complete": [ + # [ + # 3 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "日本人", + # 102 + # ], + # [ + # "日本", + # 2 + # ], # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # "日本語", + # 2 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/suggest/complete/rk-search-nihon.log (+21 -8) =================================================================== --- doc/source/example/reference/suggest/complete/rk-search-nihon.log 2017-12-27 12:43:51 +0900 (0b650cb2f) +++ doc/source/example/reference/suggest/complete/rk-search-nihon.log 2017-12-28 11:48:55 +0900 (98420790f) @@ -3,16 +3,29 @@ Execution example:: suggest --table item_query --column kana --types complete --frequency_threshold 1 --query nihon # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "complete": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "日本", + # 2 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/suggest/complete/rk-search-nippon.log (+21 -8) =================================================================== --- doc/source/example/reference/suggest/complete/rk-search-nippon.log 2017-12-27 12:43:51 +0900 (5c734b46d) +++ doc/source/example/reference/suggest/complete/rk-search-nippon.log 2017-12-28 11:48:55 +0900 (b3fc7c21a) @@ -3,16 +3,29 @@ Execution example:: suggest --table item_query --column kana --types complete --frequency_threshold 1 --query nippon # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "complete": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "日本", + # 2 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/suggest/complete/select.log (+21 -8) =================================================================== --- doc/source/example/reference/suggest/complete/select.log 2017-12-27 12:43:51 +0900 (f60f847d5) +++ doc/source/example/reference/suggest/complete/select.log 2017-12-28 11:48:55 +0900 (14bce1fd4) @@ -3,16 +3,29 @@ Execution example:: suggest --table item_query --column kana --types complete --frequency_threshold 1 --query en # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "complete": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "engine", + # 1 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/suggest/correction/select.log (+21 -8) =================================================================== --- doc/source/example/reference/suggest/correction/select.log 2017-12-27 12:43:51 +0900 (9368afb10) +++ doc/source/example/reference/suggest/correction/select.log 2017-12-28 11:48:55 +0900 (210992d25) @@ -3,16 +3,29 @@ Execution example:: suggest --table item_query --column kana --types correction --frequency_threshold 1 --query saerch # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "correct": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "search", + # 1 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/suggest/suggest/select.log (+25 -8) =================================================================== --- doc/source/example/reference/suggest/suggest/select.log 2017-12-27 12:43:51 +0900 (fcd453b9f) +++ doc/source/example/reference/suggest/suggest/select.log 2017-12-28 11:48:55 +0900 (14429e200) @@ -3,16 +3,33 @@ Execution example:: suggest --table item_query --column kana --types suggest --frequency_threshold 1 --query search # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "invalid command name: suggest", - # [ + # 0.000355720520019531 + # ], + # { + # "suggest": [ # [ - # "grn_ctx_qe_exec", - # "ctx.c", - # 1284 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "search engine", + # 1 + # ], + # [ + # "web search realtime", + # 1 # ] # ] - # ] + # } # ] Modified: doc/source/example/reference/token_filters/example-table-create.log (+2 -32) =================================================================== --- doc/source/example/reference/token_filters/example-table-create.log 2017-12-27 12:43:51 +0900 (8e1186cda) +++ doc/source/example/reference/token_filters/example-table-create.log 2017-12-28 11:48:55 +0900 (88ee9e914) @@ -1,39 +1,9 @@ Execution example:: plugin_register token_filters/stop_word - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/token_filters/stop_word.", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] table_create Terms TABLE_PAT_KEY ShortText \ --default_tokenizer TokenBigram \ --normalizer NormalizerAuto \ --token_filters TokenFilterStopWord - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "[table][create][token-filter] nonexistent token filter: <TokenFilterStopWord>", - # [ - # [ - # "grn_proc_table_set_token_filters_put", - # "proc_table.c", - # 88 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] Modified: doc/source/example/reference/token_filters/stem.log (+15 -33) =================================================================== --- doc/source/example/reference/token_filters/stem.log 2017-12-27 12:43:51 +0900 (88bbe648f) +++ doc/source/example/reference/token_filters/stem.log 2017-12-28 11:48:55 +0900 (928a8978c) @@ -1,22 +1,7 @@ Execution example:: plugin_register token_filters/stem - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/token_filters/stem.so>", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] table_create Memos TABLE_NO_KEY # [[0, 1337566253.89858, 0.000355720520019531], true] column_create Memos content COLUMN_SCALAR ShortText @@ -25,22 +10,7 @@ Execution example:: --default_tokenizer TokenBigram \ --normalizer NormalizerAuto \ --token_filters TokenFilterStem - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "[table][create][token-filter] nonexistent token filter: <TokenFilterStem>", - # [ - # [ - # "grn_proc_table_set_token_filters_put", - # "proc_table.c", - # 88 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content # [[0, 1337566253.89858, 0.000355720520019531], true] load --table Memos @@ -60,7 +30,7 @@ Execution example:: # [ # [ # [ - # 0 + # 3 # ], # [ # [ @@ -71,6 +41,18 @@ Execution example:: # "content", # "ShortText" # ] + # ], + # [ + # 1, + # "I develop Groonga" + # ], + # [ + # 2, + # "I'm developing Groonga" + # ], + # [ + # 3, + # "I developed Groonga" # ] # ] # ] Modified: doc/source/example/reference/token_filters/stop_word.log (+7 -33) =================================================================== --- doc/source/example/reference/token_filters/stop_word.log 2017-12-27 12:43:51 +0900 (c5a7c77f4) +++ doc/source/example/reference/token_filters/stop_word.log 2017-12-28 11:48:55 +0900 (e0f84939c) @@ -1,22 +1,7 @@ Execution example:: plugin_register token_filters/stop_word - # [ - # [ - # -3, - # 1337566253.89858, - # 0.000355720520019531, - # "[plugin][register] cannot find plugin file: </home/horimoto/work/release/groonga/groonga.clean/plugins/token_filters/stop_word.", - # [ - # [ - # "grn_plugin_set_name_resolve_error", - # "plugin.c", - # 790 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] table_create Memos TABLE_NO_KEY # [[0, 1337566253.89858, 0.000355720520019531], true] column_create Memos content COLUMN_SCALAR ShortText @@ -25,22 +10,7 @@ Execution example:: --default_tokenizer TokenBigram \ --normalizer NormalizerAuto \ --token_filters TokenFilterStopWord - # [ - # [ - # -22, - # 1337566253.89858, - # 0.000355720520019531, - # "[table][create][token-filter] nonexistent token filter: <TokenFilterStopWord>", - # [ - # [ - # "grn_proc_table_set_token_filters_put", - # "proc_table.c", - # 88 - # ] - # ] - # ], - # false - # ] + # [[0, 1337566253.89858, 0.000355720520019531], true] column_create Terms memos_content COLUMN_INDEX|WITH_POSITION Memos content # [[0, 1337566253.89858, 0.000355720520019531], true] column_create Terms is_stop_word COLUMN_SCALAR Bool @@ -67,7 +37,7 @@ Execution example:: # [ # [ # [ - # 1 + # 2 # ], # [ # [ @@ -80,6 +50,10 @@ Execution example:: # ] # ], # [ + # 1, + # "Hello" + # ], + # [ # 2, # "Hello and Good-bye" # ] Modified: doc/source/example/tutorial/micro_blog_drilldown.log (+77 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_drilldown.log 2017-12-27 12:43:51 +0900 (5e6ab590e) +++ doc/source/example/tutorial/micro_blog_drilldown.log 2017-12-28 11:48:55 +0900 (ecd2b06b8) @@ -3,15 +3,86 @@ Execution example:: select --table Comments --filter 'geo_in_circle(location,"146867000x-266280000",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <geo_in_circle(location|,|\"146867000x-266280000\",20000)>: [expr][parse] unknown identifier: <location>", + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 4 + # ], + # [ + # [ + # "posted_by.name", + # "ShortText" + # ], + # [ + # "comment", + # "ShortText" + # ] + # ], + # [ + # "Charlie", + # "I'm at the Museum of Modern Art in NY now!" + # ], + # [ + # "Bob", + # "I've just used 'Try-Groonga' now! #groonga" + # ], + # [ + # "Bob", + # "I'm come at city of New York for development camp! #groonga #travel" + # ], + # [ + # "Charlie", + # "@alice @bob I've tried to register!" + # ] + # ], # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "groonga", + # 2 + # ], + # [ + # "travel", + # 1 + # ] + # ], + # [ + # [ + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "charlie", + # 2 + # ], + # [ + # "bob", + # 2 # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_follower.log (+23 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_follower.log 2017-12-27 12:43:51 +0900 (0d17d5e79) +++ doc/source/example/tutorial/micro_blog_follower.log 2017-12-28 11:48:55 +0900 (05a4d2c57) @@ -3,15 +3,32 @@ Execution example:: select --table Users --query follower:@bob --output_columns _key,name # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <follower:@bob||>: column lookup failed", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "name", + # "ShortText" + # ] + # ], + # [ + # "alice", + # "Alice" + # ], + # [ + # "charlie", + # "Charlie" # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_hash_tag.log (+42 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_hash_tag.log 2017-12-27 12:43:51 +0900 (83f40c9cc) +++ doc/source/example/tutorial/micro_blog_hash_tag.log 2017-12-28 11:48:55 +0900 (5fc2cd3bc) @@ -3,15 +3,51 @@ Execution example:: select --table Comments --query hash_tags:@groonga --output_columns posted_by.name,comment --drilldown posted_by # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <hash_tags:@groonga||>: column lookup failed", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "posted_by.name", + # "ShortText" + # ], + # [ + # "comment", + # "ShortText" + # ] + # ], + # [ + # "Bob", + # "I've just used 'Try-Groonga' now! #groonga" + # ], + # [ + # "Bob", + # "I'm come at city of New York for development camp! #groonga #travel" + # ] + # ], + # [ + # [ + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "bob", + # 2 # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_keyword.log (+19 -11) =================================================================== --- doc/source/example/tutorial/micro_blog_keyword.log 2017-12-27 12:43:51 +0900 (9ec9a7093) +++ doc/source/example/tutorial/micro_blog_keyword.log 2017-12-28 11:48:55 +0900 (f67d76722) @@ -1,22 +1,30 @@ Execution example:: select --table Users --match_columns name,location_str,description --query "New York" --output_columns _key,name - # [[0, 1337566253.89858, 0.000355720520019531], true] - # [[0, 1337566253.89858, 0.000355720520019531], true] - # [[0, 1337566253.89858, 0.000355720520019531], true] - # [[0, 1337566253.89858, 0.000355720520019531], true] - # [[0, 1337566253.89858, 0.000355720520019531], true] # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <name|,|location_str,description>: [expr][parse] unknown identifier: <name>", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "name", + # "ShortText" + # ] + # ], + # [ + # "bob", + # "Bob" # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_keyword_and_location.log (+61 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_keyword_and_location.log 2017-12-27 12:43:51 +0900 (cf2a55b5e) +++ doc/source/example/tutorial/micro_blog_keyword_and_location.log 2017-12-28 11:48:55 +0900 (701865e6a) @@ -3,15 +3,70 @@ Execution example:: select --table Comments --query comment:@New --filter 'geo_in_circle(location,"146867000x-266280000",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <comment:@New||>: column lookup failed", + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 1 + # ], + # [ + # [ + # "posted_by.name", + # "ShortText" + # ], + # [ + # "comment", + # "ShortText" + # ] + # ], + # [ + # "Bob", + # "I'm come at city of New York for development camp! #groonga #travel" + # ] + # ], + # [ + # [ + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "groonga", + # 1 + # ], + # [ + # "travel", + # 1 + # ] + # ], # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "bob", + # 1 # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_last_modified.log (+86 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_last_modified.log 2017-12-27 12:43:51 +0900 (46d89eff1) +++ doc/source/example/tutorial/micro_blog_last_modified.log 2017-12-28 11:48:55 +0900 (5ab93ffd9) @@ -3,15 +3,95 @@ Execution example:: select Comments --filter 'last_modified<=1268802000' --output_columns posted_by.name,comment,last_modified --drilldown hash_tags,posted_by # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <last_modified|<|=1268802000>: [expr][parse] unknown identifier: <last_modified>", + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 5 + # ], + # [ + # [ + # "posted_by.name", + # "ShortText" + # ], + # [ + # "comment", + # "ShortText" + # ], + # [ + # "last_modified", + # "Time" + # ] + # ], + # [ + # "Alice", + # "I've created micro-blog!", + # 1268795100.0 + # ], + # [ + # "Bob", + # "First post. test,test...", + # 1268794800.0 + # ], + # [ + # "Alice", + # "@bob Welcome!!!", + # 1268795100.0 + # ], + # [ + # "Bob", + # "@alice Thanks!", + # 1268798400.0 + # ], + # [ + # "Bob", + # "I've just used 'Try-Groonga' now! #groonga", + # 1268802000.0 + # ] + # ], # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 1 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "groonga", + # 1 + # ] + # ], + # [ + # [ + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "alice", + # 2 + # ], + # [ + # "bob", + # 3 # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_posted_by.log (+46 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_posted_by.log 2017-12-27 12:43:51 +0900 (1ff4e94fc) +++ doc/source/example/tutorial/micro_blog_posted_by.log 2017-12-28 11:48:55 +0900 (c80fa4e11) @@ -3,15 +3,55 @@ Execution example:: select --table Comments --query posted_by:bob --output_columns comment --drilldown hash_tags # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <posted_by:bob||>: column lookup failed", + # 0.000355720520019531 + # ], + # [ + # [ + # [ + # 4 + # ], + # [ + # [ + # "comment", + # "ShortText" + # ] + # ], + # [ + # "First post. test,test..." + # ], + # [ + # "@alice Thanks!" + # ], + # [ + # "I've just used 'Try-Groonga' now! #groonga" + # ], + # [ + # "I'm come at city of New York for development camp! #groonga #travel" + # ] + # ], # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "_nsubrecs", + # "Int32" + # ] + # ], + # [ + # "groonga", + # 2 + # ], + # [ + # "travel", + # 1 # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_score.log (+23 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_score.log 2017-12-27 12:43:51 +0900 (46ca26624) +++ doc/source/example/tutorial/micro_blog_score.log 2017-12-28 11:48:55 +0900 (b4686e5f1) @@ -3,15 +3,32 @@ Execution example:: select --table Comments --query comment:@Now --output_columns comment,_score # [ # [ - # -22, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <comment:@Now||>: column lookup failed", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "comment", + # "ShortText" + # ], + # [ + # "_score", + # "Int32" + # ] + # ], + # [ + # "I've just used 'Try-Groonga' now! #groonga", + # 1 + # ], + # [ + # "I'm at the Museum of Modern Art in NY now!", + # 1 # ] # ] # ] Modified: doc/source/example/tutorial/micro_blog_user.log (+23 -6) =================================================================== --- doc/source/example/tutorial/micro_blog_user.log 2017-12-27 12:43:51 +0900 (b6b350954) +++ doc/source/example/tutorial/micro_blog_user.log 2017-12-28 11:48:55 +0900 (559a20c9b) @@ -3,15 +3,32 @@ Execution example:: select --table Users --filter 'geo_in_circle(location,"146710080x-266315480",20000)' --output_columns _key,name # [ # [ - # -63, + # 0, # 1337566253.89858, - # 0.000355720520019531, - # "Syntax error: <geo_in_circle(location|,|\"146710080x-266315480\",20000)>: [expr][parse] unknown identifier: <location>", + # 0.000355720520019531 + # ], + # [ # [ # [ - # "yy_syntax_error", - # "grn_ecmascript.lemon", - # 41 + # 2 + # ], + # [ + # [ + # "_key", + # "ShortText" + # ], + # [ + # "name", + # "ShortText" + # ] + # ], + # [ + # "charlie", + # "Charlie" + # ], + # [ + # "bob", + # "Bob" # ] # ] # ]