rroonga 5.0.9-x86-mingw32 → 5.1.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -1
- data/ext/groonga/{rb-grn-conf.c → rb-grn-config.c} +18 -13
- data/ext/groonga/rb-grn-database.c +83 -0
- data/ext/groonga/rb-grn-fix-size-column.c +85 -0
- data/ext/groonga/rb-grn-index-column.c +82 -0
- data/ext/groonga/rb-grn-object.c +67 -1
- data/ext/groonga/rb-grn-table-key-support.c +87 -1
- data/ext/groonga/rb-grn-table.c +2 -2
- data/ext/groonga/rb-grn-variable-size-column.c +84 -1
- data/ext/groonga/rb-grn.h +5 -5
- data/ext/groonga/rb-groonga.c +27 -1
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/2.3/groonga.so +0 -0
- data/lib/groonga/context.rb +12 -3
- data/lib/groonga/expression-builder.rb +2 -1
- data/rroonga-build.rb +6 -6
- data/test/test-accessor.rb +30 -0
- data/test/{test-conf.rb → test-config.rb} +5 -5
- data/test/test-database.rb +41 -0
- data/test/test-fix-size-column.rb +84 -0
- data/test/test-index-column.rb +71 -1
- data/test/test-package-label.rb +20 -0
- data/test/test-table-key-support.rb +42 -0
- data/test/test-table.rb +13 -0
- data/test/test-variable-size-column.rb +71 -1
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-4.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +9 -9
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/file_reader.h +40 -0
- data/vendor/local/include/groonga/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/obj.h +7 -42
- data/vendor/local/include/groonga/groonga/portability.h +4 -4
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +70 -38
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +21 -0
- data/vendor/local/lib/groonga/scripts/ruby/id.rb +12 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +3 -1
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +6 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +7 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +4 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +122 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/pretty_print.txt +45 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/reindex.txt +142 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +10 -23
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/prefix_rk_search.txt +158 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_size.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +3 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations/geolocation_search.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations/prefix_rk_search.txt +76 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/suggest/completion.txt +2 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +37 -8
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +12 -6
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +72 -68
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +9 -8
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +187 -76
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +72 -68
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +58 -56
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +183 -0
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +41 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +28 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +57 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +105 -105
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +279 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +107 -107
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +49 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +35 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +43 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -17
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +434 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +15 -17
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +203 -0
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +7 -11
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +7 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +4 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +122 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/pretty_print.txt +45 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/reindex.txt +142 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +10 -23
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/prefix_rk_search.txt +158 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_size.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +3 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations/geolocation_search.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations/prefix_rk_search.txt +76 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/suggest/completion.txt +2 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +37 -8
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +14 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +71 -67
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +9 -8
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +188 -76
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +71 -67
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +58 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +12 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +183 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +28 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +41 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +33 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +57 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +105 -105
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +267 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +107 -107
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +35 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +43 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +13 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +422 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +11 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/groonga/html/admin/404.html +26 -2
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +272 -213
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +39 -5
- data/vendor/local/share/groonga/html/admin/scripts/oldieshim.572be7b4.js +2337 -0
- data/vendor/local/share/groonga/html/admin/scripts/scripts.a1c295fa.js +1749 -0
- data/vendor/local/share/groonga/html/admin/scripts/vendor.2c228d46.js +50748 -0
- data/vendor/local/share/groonga/html/admin/styles/main.d9de008c.css +12602 -0
- data/vendor/local/share/groonga/html/admin/styles/vendor.7f75f6e0.css +130 -0
- data/vendor/local/share/groonga/html/admin/views/columns/new.html +64 -1
- data/vendor/local/share/groonga/html/admin/views/columns/show.html +70 -1
- data/vendor/local/share/groonga/html/admin/views/tables/index.html +53 -1
- data/vendor/local/share/groonga/html/admin/views/tables/new.html +54 -2
- data/vendor/local/share/groonga/html/admin/views/tables/search.html +236 -1
- data/vendor/local/share/groonga/html/admin/views/tables/show.html +111 -1
- data/vendor/local/share/groonga/html/admin/views/top.html +20 -1
- data/vendor/local/share/license/groonga-admin/README.md +2 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +955 -3334
- data/vendor/local/share/man/man1/groonga.1 +937 -3373
- metadata +78 -57
- data/vendor/local/share/groonga/html/admin/images/yeoman.d2754b85.png +0 -0
- data/vendor/local/share/groonga/html/admin/scripts/oldieshim.a466b7b1.js +0 -1
- data/vendor/local/share/groonga/html/admin/scripts/scripts.87083bfd.js +0 -1
- data/vendor/local/share/groonga/html/admin/scripts/vendor.fa48c0ac.js +0 -13
- data/vendor/local/share/groonga/html/admin/styles/main.0390285b.css +0 -1
- data/vendor/local/share/groonga/html/admin/styles/vendor.f4ae649a.css +0 -10
@@ -1 +1,111 @@
|
|
1
|
-
<div class="container-fluid" ng-controller="TableShowController">
|
1
|
+
<div class="container-fluid" ng-controller="TableShowController">
|
2
|
+
<ol class="breadcrumb">
|
3
|
+
<li><a href="#/">Top</a></li>
|
4
|
+
<li><a href="#/tables/">Tables</a></li>
|
5
|
+
<li class="active"><a href="#/tables/{{table.name}}">{{table.name}}</a></li>
|
6
|
+
</ol>
|
7
|
+
|
8
|
+
<div class="sidebar">
|
9
|
+
<div class="panel panel-default">
|
10
|
+
<div class="panel-heading">
|
11
|
+
<h2 class="panel-title">Actions</h2>
|
12
|
+
</div>
|
13
|
+
<div class="panel-body">
|
14
|
+
<ul class="list-group">
|
15
|
+
<li class="list-group-item">
|
16
|
+
<a href="#/tables/{{table.name}}/search">
|
17
|
+
<span class="glyphicon glyphicon-search"></span>
|
18
|
+
Search
|
19
|
+
</a>
|
20
|
+
</li>
|
21
|
+
<li class="list-group-item">
|
22
|
+
<a href="#/tables/{{table.name}}/columns/_new/">
|
23
|
+
<span class="glyphicon glyphicon-plus"></span>
|
24
|
+
Add a column
|
25
|
+
</a>
|
26
|
+
</li>
|
27
|
+
<li class="list-group-item">
|
28
|
+
<button type="button" ng-click="remove()">
|
29
|
+
<span class="glyphicon glyphicon-remove"></span>
|
30
|
+
Remove
|
31
|
+
</button>
|
32
|
+
</li>
|
33
|
+
</ul>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div class="main-content">
|
39
|
+
<div class="alert alert-warning" ng-show="message.length > 0">
|
40
|
+
<p>{{message}}</p>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<h2>Table: {{table.name}}</h2>
|
44
|
+
<div class="table-properties">
|
45
|
+
<table>
|
46
|
+
<tr>
|
47
|
+
<th>ID</th>
|
48
|
+
<td>{{table.id}}</td>
|
49
|
+
</tr>
|
50
|
+
<tr>
|
51
|
+
<th>Type</th>
|
52
|
+
<td>{{table.type}}</td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<th>Key type</th>
|
56
|
+
<td>{{table.domain}}</td>
|
57
|
+
</tr>
|
58
|
+
<tr>
|
59
|
+
<th>Value type</th>
|
60
|
+
<td>{{table.range}}</td>
|
61
|
+
</tr>
|
62
|
+
<tr>
|
63
|
+
<th>Normalizer</th>
|
64
|
+
<td>{{table.normalizer}}</td>
|
65
|
+
</tr>
|
66
|
+
<tr>
|
67
|
+
<th>Tokenizer</th>
|
68
|
+
<td>{{table.tokenizer}}</td>
|
69
|
+
</tr>
|
70
|
+
<tr>
|
71
|
+
<th>Token filters</th>
|
72
|
+
<td>{{table.tokenFilters}}</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<th>path</th>
|
76
|
+
<td>{{table.path}}</td>
|
77
|
+
</tr>
|
78
|
+
</table>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<h2>Columns</h2>
|
82
|
+
<div class="table-columns">
|
83
|
+
<table>
|
84
|
+
<thead>
|
85
|
+
<tr>
|
86
|
+
<th>id</th>
|
87
|
+
<th>name</th>
|
88
|
+
<th>type</th>
|
89
|
+
<th>value type</th>
|
90
|
+
<th>sources</th>
|
91
|
+
<th>path</th>
|
92
|
+
</tr>
|
93
|
+
</thead>
|
94
|
+
<tbody>
|
95
|
+
<tr ng-repeat="column in table.columns track by $index">
|
96
|
+
<td>{{column.id}}</td>
|
97
|
+
<td>
|
98
|
+
<a href="#/tables/{{table.name}}/columns/{{column.name}}">
|
99
|
+
{{column.name}}
|
100
|
+
</a>
|
101
|
+
</td>
|
102
|
+
<td>{{column.type}}</td>
|
103
|
+
<td>{{column.range}}</td>
|
104
|
+
<td>{{column.sources}}</td>
|
105
|
+
<td>{{column.path}}</td>
|
106
|
+
</tr>
|
107
|
+
</tbody>
|
108
|
+
</table>
|
109
|
+
</div>
|
110
|
+
</div>
|
111
|
+
</div>
|
@@ -1 +1,20 @@
|
|
1
|
-
<div class="container-fluid" ng-controller="TopController">
|
1
|
+
<div class="container-fluid" ng-controller="TopController">
|
2
|
+
<ol class="breadcrumb">
|
3
|
+
<li class="active"><a href="#/">Top</a></li>
|
4
|
+
</ol>
|
5
|
+
|
6
|
+
<div class="content">
|
7
|
+
<h2><a href="#/tables/">Tables</a></h2>
|
8
|
+
<div class="list-group">
|
9
|
+
<div ng-repeat="table in tables track by $index"
|
10
|
+
class="list-group-item">
|
11
|
+
<a href="#/tables/{{table.name}}/search">
|
12
|
+
<span class="badge">
|
13
|
+
<span class="glyphicon glyphicon-search"></span>
|
14
|
+
</span>
|
15
|
+
</a>
|
16
|
+
<a href="#/tables/{{table.name}}">{{table.name}}</a>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</div>
|
@@ -71,9 +71,9 @@ on running Groonga Admin.
|
|
71
71
|
|
72
72
|
Run Groonga Admin:
|
73
73
|
|
74
|
-
% grunt
|
74
|
+
% grunt serve
|
75
75
|
|
76
76
|
If you want to use Groonga HTTP server run on `groonga.example.com`,
|
77
77
|
run Groonga Admin as by the following command line:
|
78
78
|
|
79
|
-
% GROONGA_HOST=groonga.example.com grunt
|
79
|
+
% GROONGA_HOST=groonga.example.com grunt serve
|
@@ -1,6 +1,6 @@
|
|
1
1
|
.\" Man page generated from reStructuredText.
|
2
2
|
.
|
3
|
-
.TH "GROONGA" "1" "2015 年
|
3
|
+
.TH "GROONGA" "1" "2015 年 12 月 28 日" "5.1.1" "Groonga"
|
4
4
|
.SH NAME
|
5
5
|
groonga \- Groonga documentation
|
6
6
|
.
|
@@ -97,7 +97,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
97
97
|
.INDENT 3.5
|
98
98
|
.INDENT 0.0
|
99
99
|
.IP \(bu 2
|
100
|
-
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.
|
100
|
+
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x86.exe\fP
|
101
101
|
.UNINDENT
|
102
102
|
.UNINDENT
|
103
103
|
.UNINDENT
|
@@ -109,7 +109,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
109
109
|
.INDENT 3.5
|
110
110
|
.INDENT 0.0
|
111
111
|
.IP \(bu 2
|
112
|
-
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.
|
112
|
+
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x64.exe\fP
|
113
113
|
.UNINDENT
|
114
114
|
.UNINDENT
|
115
115
|
.UNINDENT
|
@@ -124,7 +124,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
124
124
|
.INDENT 3.5
|
125
125
|
.INDENT 0.0
|
126
126
|
.IP \(bu 2
|
127
|
-
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.
|
127
|
+
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x86.zip\fP
|
128
128
|
.UNINDENT
|
129
129
|
.UNINDENT
|
130
130
|
.UNINDENT
|
@@ -136,7 +136,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
136
136
|
.INDENT 3.5
|
137
137
|
.INDENT 0.0
|
138
138
|
.IP \(bu 2
|
139
|
-
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.
|
139
|
+
\fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x64.zip\fP
|
140
140
|
.UNINDENT
|
141
141
|
.UNINDENT
|
142
142
|
.UNINDENT
|
@@ -163,7 +163,7 @@ zipアーカイブをpackages.groonga.orgからダウンロードしてくださ
|
|
163
163
|
.INDENT 3.5
|
164
164
|
.INDENT 0.0
|
165
165
|
.IP \(bu 2
|
166
|
-
\fI\%http://packages.groonga.org/source/groonga/groonga\-5.
|
166
|
+
\fI\%http://packages.groonga.org/source/groonga/groonga\-5.1.1.zip\fP
|
167
167
|
.UNINDENT
|
168
168
|
.UNINDENT
|
169
169
|
.UNINDENT
|
@@ -176,7 +176,7 @@ Groongaのソースフォルダへと移動します:
|
|
176
176
|
.sp
|
177
177
|
.nf
|
178
178
|
.ft C
|
179
|
-
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-5.
|
179
|
+
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-5.1.1
|
180
180
|
.ft P
|
181
181
|
.fi
|
182
182
|
.UNINDENT
|
@@ -188,7 +188,7 @@ Groongaのソースフォルダへと移動します:
|
|
188
188
|
.sp
|
189
189
|
.nf
|
190
190
|
.ft C
|
191
|
-
groonga\-5.
|
191
|
+
groonga\-5.1.1> cmake . \-G "Visual Studio 12 2013 Win64" \-DCMAKE_INSTALL_PREFIX=C:\eGroonga
|
192
192
|
.ft P
|
193
193
|
.fi
|
194
194
|
.UNINDENT
|
@@ -200,7 +200,7 @@ groonga\-5.0.9> cmake . \-G "Visual Studio 12 2013 Win64" \-DCMAKE_INSTALL_PREFI
|
|
200
200
|
.sp
|
201
201
|
.nf
|
202
202
|
.ft C
|
203
|
-
groonga\-5.
|
203
|
+
groonga\-5.1.1> cmake \-\-build . \-\-config Release
|
204
204
|
.ft P
|
205
205
|
.fi
|
206
206
|
.UNINDENT
|
@@ -212,7 +212,7 @@ groonga\-5.0.9> cmake \-\-build . \-\-config Release
|
|
212
212
|
.sp
|
213
213
|
.nf
|
214
214
|
.ft C
|
215
|
-
groonga\-5.
|
215
|
+
groonga\-5.1.1> cmake \-\-build . \-\-config Release \-\-target Install
|
216
216
|
.ft P
|
217
217
|
.fi
|
218
218
|
.UNINDENT
|
@@ -270,9 +270,9 @@ groonga\-5.0.9> cmake \-\-build . \-\-config Release \-\-target Install
|
|
270
270
|
.sp
|
271
271
|
.nf
|
272
272
|
.ft C
|
273
|
-
% curl \-O http://packages.groonga.org/source/groonga/groonga\-5.
|
274
|
-
% tar xvzf groonga\-5.
|
275
|
-
% cd groonga\-5.
|
273
|
+
% curl \-O http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
274
|
+
% tar xvzf groonga\-5.1.1.tar.gz
|
275
|
+
% cd groonga\-5.1.1
|
276
276
|
.ft P
|
277
277
|
.fi
|
278
278
|
.UNINDENT
|
@@ -549,9 +549,9 @@ Groongaをビルドするために必要なパッケージをインストール
|
|
549
549
|
.sp
|
550
550
|
.nf
|
551
551
|
.ft C
|
552
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-5.
|
553
|
-
% tar xvzf groonga\-5.
|
554
|
-
% cd groonga\-5.
|
552
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
553
|
+
% tar xvzf groonga\-5.1.1.tar.gz
|
554
|
+
% cd groonga\-5.1.1
|
555
555
|
.ft P
|
556
556
|
.fi
|
557
557
|
.UNINDENT
|
@@ -611,6 +611,8 @@ Ubuntu用のGroongaのAPTリポジトリーはLaunchpad上のPPA(Personal Pack
|
|
611
611
|
14.04 LTS Trusty Tahr
|
612
612
|
.IP \(bu 2
|
613
613
|
15.04 Vivid Vervet
|
614
|
+
.IP \(bu 2
|
615
|
+
15.10 Wily Werewolf
|
614
616
|
.UNINDENT
|
615
617
|
.UNINDENT
|
616
618
|
.UNINDENT
|
@@ -745,9 +747,9 @@ Groongaをビルドするために必要なパッケージをインストール
|
|
745
747
|
.sp
|
746
748
|
.nf
|
747
749
|
.ft C
|
748
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-5.
|
749
|
-
% tar xvzf groonga\-5.
|
750
|
-
% cd groonga\-5.
|
750
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
751
|
+
% tar xvzf groonga\-5.1.1.tar.gz
|
752
|
+
% cd groonga\-5.1.1
|
751
753
|
.ft P
|
752
754
|
.fi
|
753
755
|
.UNINDENT
|
@@ -1119,9 +1121,9 @@ Groongaをビルドするために必要なパッケージをインストール
|
|
1119
1121
|
.sp
|
1120
1122
|
.nf
|
1121
1123
|
.ft C
|
1122
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-5.
|
1123
|
-
% tar xvzf groonga\-5.
|
1124
|
-
% cd groonga\-5.
|
1124
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
1125
|
+
% tar xvzf groonga\-5.1.1.tar.gz
|
1126
|
+
% cd groonga\-5.1.1
|
1125
1127
|
.ft P
|
1126
1128
|
.fi
|
1127
1129
|
.UNINDENT
|
@@ -1305,9 +1307,9 @@ Groongaをビルドするために必要なパッケージをインストール
|
|
1305
1307
|
.sp
|
1306
1308
|
.nf
|
1307
1309
|
.ft C
|
1308
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-5.
|
1309
|
-
% tar xvzf groonga\-5.
|
1310
|
-
% cd groonga\-5.
|
1310
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
1311
|
+
% tar xvzf groonga\-5.1.1.tar.gz
|
1312
|
+
% cd groonga\-5.1.1
|
1311
1313
|
.ft P
|
1312
1314
|
.fi
|
1313
1315
|
.UNINDENT
|
@@ -1371,9 +1373,9 @@ Groongaをビルドするために必要なパッケージをインストール
|
|
1371
1373
|
.sp
|
1372
1374
|
.nf
|
1373
1375
|
.ft C
|
1374
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-5.
|
1375
|
-
% gtar xvzf groonga\-5.
|
1376
|
-
% cd groonga\-5.
|
1376
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
1377
|
+
% gtar xvzf groonga\-5.1.1.tar.gz
|
1378
|
+
% cd groonga\-5.1.1
|
1377
1379
|
.ft P
|
1378
1380
|
.fi
|
1379
1381
|
.UNINDENT
|
@@ -1494,9 +1496,9 @@ GroongaはGNUビルドシステムを使っています。以下は一番簡単
|
|
1494
1496
|
.sp
|
1495
1497
|
.nf
|
1496
1498
|
.ft C
|
1497
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-5.
|
1498
|
-
% tar xvzf groonga\-5.
|
1499
|
-
% cd groonga\-5.
|
1499
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
|
1500
|
+
% tar xvzf groonga\-5.1.1.tar.gz
|
1501
|
+
% cd groonga\-5.1.1
|
1500
1502
|
% ./configure
|
1501
1503
|
% make
|
1502
1504
|
% sudo make install
|
@@ -1756,7 +1758,15 @@ Groongaに関する話題を扱うメーリングリストがあります。
|
|
1756
1758
|
.UNINDENT
|
1757
1759
|
.SS チャットルーム
|
1758
1760
|
.sp
|
1759
|
-
|
1761
|
+
Groongaに関する話題を扱うチャットルームがあります。
|
1762
|
+
.INDENT 0.0
|
1763
|
+
.TP
|
1764
|
+
.B 英語
|
1765
|
+
\fI\%Gitterにあるgroonga/enチャットルーム\fP
|
1766
|
+
.TP
|
1767
|
+
.B 日本語
|
1768
|
+
\fI\%Gitterにあるgroonga/jaチャットルーム\fP
|
1769
|
+
.UNINDENT
|
1760
1770
|
.SS Twitter
|
1761
1771
|
.sp
|
1762
1772
|
\fI\%@groonga\fP がGroonga関連情報をツイートしています。
|
@@ -11265,7 +11275,59 @@ TODO
|
|
11265
11275
|
.SS 参考
|
11266
11276
|
.INDENT 0.0
|
11267
11277
|
.IP \(bu 2
|
11268
|
-
\fBreturn_code\fP
|
11278
|
+
\fBreturn_code\fP はリターンコードについて説明しています。
|
11279
|
+
.UNINDENT
|
11280
|
+
.SS プリティープリント
|
11281
|
+
.SS 概要
|
11282
|
+
.sp
|
11283
|
+
バージョン 5.1.0 で追加.
|
11284
|
+
|
11285
|
+
.sp
|
11286
|
+
Groongaでは \fBoutput_format\fP にJSONを選んだときはプリティープリント(読みやすく整形して出力)できます。
|
11287
|
+
.SS 使い方
|
11288
|
+
.sp
|
11289
|
+
\fBoutput_pretty\fP パラメーターに \fByes\fP を指定するだけです。:
|
11290
|
+
.INDENT 0.0
|
11291
|
+
.INDENT 3.5
|
11292
|
+
.sp
|
11293
|
+
.nf
|
11294
|
+
.ft C
|
11295
|
+
> status \-\-output_pretty yes
|
11296
|
+
[
|
11297
|
+
[
|
11298
|
+
0,
|
11299
|
+
1448344438.43783,
|
11300
|
+
5.29289245605469e\-05
|
11301
|
+
],
|
11302
|
+
{
|
11303
|
+
"alloc_count": 233,
|
11304
|
+
"starttime": 1448344437,
|
11305
|
+
"start_time": 1448344437,
|
11306
|
+
"uptime": 1,
|
11307
|
+
"version": "5.0.9\-135\-g0763d91",
|
11308
|
+
"n_queries": 0,
|
11309
|
+
"cache_hit_rate": 0.0,
|
11310
|
+
"command_version": 1,
|
11311
|
+
"default_command_version": 1,
|
11312
|
+
"max_command_version": 2
|
11313
|
+
}
|
11314
|
+
]
|
11315
|
+
.ft P
|
11316
|
+
.fi
|
11317
|
+
.UNINDENT
|
11318
|
+
.UNINDENT
|
11319
|
+
.sp
|
11320
|
+
以下は \fBoutput_pretty\fP パラメーターを指定しなかったときの結果です。:
|
11321
|
+
.INDENT 0.0
|
11322
|
+
.INDENT 3.5
|
11323
|
+
.sp
|
11324
|
+
.nf
|
11325
|
+
.ft C
|
11326
|
+
> status
|
11327
|
+
[[0,1448344438.43783,5.29289245605469e\-05],{"alloc_count":233,"starttime":1448344437,...}]
|
11328
|
+
.ft P
|
11329
|
+
.fi
|
11330
|
+
.UNINDENT
|
11269
11331
|
.UNINDENT
|
11270
11332
|
.SS リクエストID
|
11271
11333
|
.SS 概要
|
@@ -11273,23 +11335,18 @@ TODO
|
|
11273
11335
|
バージョン 4.0.9 で追加.
|
11274
11336
|
|
11275
11337
|
.sp
|
11276
|
-
|
11338
|
+
各リクエストにIDを割り当てることができます。
|
11277
11339
|
.sp
|
11278
|
-
|
11279
|
-
\fB/reference/commands/request_cancel\fP for details about canceling
|
11280
|
-
a request.
|
11340
|
+
リクエストをキャンセルするためにこのIDを使うことができます。リクエストをキャンセルする方法の詳細は \fB/reference/commands/request_cancel\fP を参照してください。
|
11281
11341
|
.sp
|
11282
|
-
|
11283
|
-
some running requests, you can\(aqt cancel the request.
|
11342
|
+
リクエストIDはユーザーが管理します。もし、実行中の複数のリクエストに同じIDを割り当てるとそのリクエストはキャンセルできません。
|
11284
11343
|
.sp
|
11285
|
-
|
11286
|
-
\fB2\fP , \fB\&...\fP\&.
|
11344
|
+
もっとも単純なIDの付け方は \fB1\fP, \fB2\fP, \fB\&..\fP というように数値をインクリメントしていく付け方です。
|
11287
11345
|
.sp
|
11288
|
-
|
11289
|
-
.SS
|
11346
|
+
リクエストIDは文字列です。リクエストIDの最長サイズは4096バイトです。
|
11347
|
+
.SS リクエストにIDを割り当てる方法
|
11290
11348
|
.sp
|
11291
|
-
|
11292
|
-
request by adding \fBrequest_id\fP parameter.
|
11349
|
+
すべてのコマンドは \fBrequest_id\fP パラメーターを受け付けます。 \fBrequest_id\fP パラメーターを追加することでリクエストにIDを割り当てることができます。
|
11293
11350
|
.sp
|
11294
11351
|
以下は \fBid\-1\fP というIDをリクエストに割り当てる例です:
|
11295
11352
|
.INDENT 0.0
|
@@ -14827,10 +14884,10 @@ input_typeに指定する形式で登録するレコードの値を表現した
|
|
14827
14884
|
input_typeがjsonである場合には、以下のいずれかの形式が使用できます。
|
14828
14885
|
.INDENT 0.0
|
14829
14886
|
.TP
|
14830
|
-
.B
|
14887
|
+
.B 形式1:
|
14831
14888
|
[[カラム名1, カラム名2,..], [カラム値1, カラム値2,..], [カラム値1, カラム値2,..],..]
|
14832
14889
|
.TP
|
14833
|
-
.B
|
14890
|
+
.B 形式2:
|
14834
14891
|
[{カラム名1: カラム値1, カラム名2: カラム値2}, {カラム名1: カラム値1, カラム名2: カラム値2},..]
|
14835
14892
|
.UNINDENT
|
14836
14893
|
.sp
|
@@ -14929,16 +14986,12 @@ load \-\-table Entry \-\-input_type json
|
|
14929
14986
|
バージョン 4.0.9 で追加.
|
14930
14987
|
|
14931
14988
|
.sp
|
14932
|
-
\fBlock_clear\fP
|
14933
|
-
recursively. The target object is one of database, table and column.
|
14989
|
+
\fBlock_clear\fP コマンドは対象オブジェクトのロックを再帰的に解除します。対象オブジェクトはデータベース、テーブル、カラムのどれかです。
|
14934
14990
|
.sp
|
14935
14991
|
\fB注釈:\fP
|
14936
14992
|
.INDENT 0.0
|
14937
14993
|
.INDENT 3.5
|
14938
|
-
|
14939
|
-
other process or thread is doing a write operation to the target
|
14940
|
-
object. If you do it, your database may be broken and/or your
|
14941
|
-
process may be crashed.
|
14994
|
+
これは危険なコマンドです。他のプロセスまたは他のスレッドが対象オブジェクトに書き込み処理を実行している間はこのコマンドを使ってはいけません。もし使ったなら、データベースは壊れるかもしれませんし、実行中のプロセスはクラッシュするかもしれません。
|
14942
14995
|
.UNINDENT
|
14943
14996
|
.UNINDENT
|
14944
14997
|
.SS 構文
|
@@ -14955,8 +15008,7 @@ lock_clear [target_name=null]
|
|
14955
15008
|
.UNINDENT
|
14956
15009
|
.UNINDENT
|
14957
15010
|
.sp
|
14958
|
-
|
14959
|
-
target object. It means that all locks in the database are cleared.
|
15011
|
+
\fBtarget_name\fP パラメーターを省略した場合は対象オブジェクトはデータベースになります。これはデータベース中のすべてのロックを解除するという意味です。
|
14960
15012
|
.SS 使い方
|
14961
15013
|
.sp
|
14962
15014
|
以下はデータベースの中のすべてのロックを解放する例です:
|
@@ -15018,10 +15070,12 @@ lock_clear Site.title
|
|
15018
15070
|
.sp
|
15019
15071
|
テーブル名またはカラム名を指定します。
|
15020
15072
|
.sp
|
15021
|
-
|
15073
|
+
指定しなかったら対象オブジェクトはデータベースになります。
|
15022
15074
|
.sp
|
15023
|
-
|
15075
|
+
デフォルト値はありません。これは対象オブジェクトはデータベースになるということです。
|
15024
15076
|
.SS 戻り値
|
15077
|
+
.sp
|
15078
|
+
\fBlock_clear\fP コマンドはロックを獲得できたかどうかを返します。:
|
15025
15079
|
.INDENT 0.0
|
15026
15080
|
.INDENT 3.5
|
15027
15081
|
.sp
|
@@ -18953,6 +19007,183 @@ register query_expanders/tsv
|
|
18953
19007
|
.IP \(bu 2
|
18954
19008
|
\fBplugin_unregister\fP
|
18955
19009
|
.UNINDENT
|
19010
|
+
.SS \fBreindex\fP
|
19011
|
+
.SS 概要
|
19012
|
+
.sp
|
19013
|
+
バージョン 5.1.0 で追加.
|
19014
|
+
|
19015
|
+
.sp
|
19016
|
+
\fBreindex\fP コマンドは1つ以上のインデックスカラムを作り直します。
|
19017
|
+
.sp
|
19018
|
+
対象オブジェクトにデータベースを指定するとすべてのインデックスカラムを作り直します。
|
19019
|
+
.sp
|
19020
|
+
対象オブジェクトにテーブルを指定すると、そのテーブル内のすべてのインデックスカラムを作り直します。
|
19021
|
+
.sp
|
19022
|
+
対象オブジェクトにデータカラムを指定すると、そのデータカラム用のすべてのインデックスカラムを作り直します。
|
19023
|
+
.sp
|
19024
|
+
対象オブジェクトにインデックスカラムを指定すると、そのインデックスカラムを作り直します。
|
19025
|
+
.sp
|
19026
|
+
このコマンドはインデックスカラムが壊れたときに便利です。対象オブジェクトはデータベース、テーブル、カラムのどれかです。
|
19027
|
+
.sp
|
19028
|
+
\fB注釈:\fP
|
19029
|
+
.INDENT 0.0
|
19030
|
+
.INDENT 3.5
|
19031
|
+
\fBreindex\fP コマンドを実行している間は対象インデックスカラムを使うことはできません。もし、複数のプロセスから同じデータベースを使っている場合、 \fBreindex\fP を実行したプロセス以外のすべてのプロセスはデータベースを開き直すべきです。データベースを開き直すには \fBdatabase_unmap\fP を使えます。
|
19032
|
+
.UNINDENT
|
19033
|
+
.UNINDENT
|
19034
|
+
.SS 構文
|
19035
|
+
.sp
|
19036
|
+
このコマンドの引数は1つで省略できます:
|
19037
|
+
.INDENT 0.0
|
19038
|
+
.INDENT 3.5
|
19039
|
+
.sp
|
19040
|
+
.nf
|
19041
|
+
.ft C
|
19042
|
+
reindex [target_name=null]
|
19043
|
+
.ft P
|
19044
|
+
.fi
|
19045
|
+
.UNINDENT
|
19046
|
+
.UNINDENT
|
19047
|
+
.sp
|
19048
|
+
\fBtarget_name\fP パラメーターを省略した場合は対象オブジェクトはデータベースになります。これは、データベース中のすべてのインデックスカラムを作りなおすという意味です。
|
19049
|
+
.SS 使い方
|
19050
|
+
.sp
|
19051
|
+
以下はデータベースの中のすべてのインデックスカラムを作り直す例です。
|
19052
|
+
.sp
|
19053
|
+
実行例:
|
19054
|
+
.INDENT 0.0
|
19055
|
+
.INDENT 3.5
|
19056
|
+
.sp
|
19057
|
+
.nf
|
19058
|
+
.ft C
|
19059
|
+
reindex
|
19060
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19061
|
+
.ft P
|
19062
|
+
.fi
|
19063
|
+
.UNINDENT
|
19064
|
+
.UNINDENT
|
19065
|
+
.sp
|
19066
|
+
以下は \fBLexicon\fP テーブルの中のすべてのインデックスカラム( \fBLexicon.entry_key\fP と \fBLexicon.entry_body\fP )を作り直す例です。
|
19067
|
+
.sp
|
19068
|
+
実行例:
|
19069
|
+
.INDENT 0.0
|
19070
|
+
.INDENT 3.5
|
19071
|
+
.sp
|
19072
|
+
.nf
|
19073
|
+
.ft C
|
19074
|
+
table_create Entry TABLE_HASH_KEY ShortText
|
19075
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19076
|
+
column_create Entry body COLUMN_SCALAR Text
|
19077
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19078
|
+
table_create Lexicon TABLE_PAT_KEY ShortText \e
|
19079
|
+
\-\-default_tokenizer TokenBigram \e
|
19080
|
+
\-\-normalizer NormalizerAuto
|
19081
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19082
|
+
column_create Lexicon entry_key COLUMN_INDEX|WITH_POSITION \e
|
19083
|
+
Entry _key
|
19084
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19085
|
+
column_create Lexicon entry_body COLUMN_INDEX|WITH_POSITION \e
|
19086
|
+
Entry body
|
19087
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19088
|
+
reindex Lexicon
|
19089
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19090
|
+
.ft P
|
19091
|
+
.fi
|
19092
|
+
.UNINDENT
|
19093
|
+
.UNINDENT
|
19094
|
+
.sp
|
19095
|
+
以下は \fBSite.title\fP データカラムのすべてのインデックスカラム( \fBBigramLexicon.site_title\fP と \fBRegexpLexicon.site_title\fP )を作り直す例です。
|
19096
|
+
.sp
|
19097
|
+
実行例:
|
19098
|
+
.INDENT 0.0
|
19099
|
+
.INDENT 3.5
|
19100
|
+
.sp
|
19101
|
+
.nf
|
19102
|
+
.ft C
|
19103
|
+
table_create Site TABLE_HASH_KEY ShortText
|
19104
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19105
|
+
column_create Site title COLUMN_SCALAR ShortText
|
19106
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19107
|
+
table_create BigramLexicon TABLE_PAT_KEY ShortText \e
|
19108
|
+
\-\-default_tokenizer TokenBigram \e
|
19109
|
+
\-\-normalizer NormalizerAuto
|
19110
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19111
|
+
column_create BigramLexicon site_title COLUMN_INDEX|WITH_POSITION \e
|
19112
|
+
Site title
|
19113
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19114
|
+
table_create RegexpLexicon TABLE_PAT_KEY ShortText \e
|
19115
|
+
\-\-default_tokenizer TokenRegexp \e
|
19116
|
+
\-\-normalizer NormalizerAuto
|
19117
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19118
|
+
column_create RegexpLexicon site_title COLUMN_INDEX|WITH_POSITION \e
|
19119
|
+
Site title
|
19120
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19121
|
+
reindex Site.title
|
19122
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19123
|
+
.ft P
|
19124
|
+
.fi
|
19125
|
+
.UNINDENT
|
19126
|
+
.UNINDENT
|
19127
|
+
.sp
|
19128
|
+
以下は1つのインデックスカラム( \fBTimestamp.index\fP )を作り直す例です。
|
19129
|
+
.sp
|
19130
|
+
実行例:
|
19131
|
+
.INDENT 0.0
|
19132
|
+
.INDENT 3.5
|
19133
|
+
.sp
|
19134
|
+
.nf
|
19135
|
+
.ft C
|
19136
|
+
table_create Logs TABLE_NO_KEY
|
19137
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19138
|
+
column_create Logs timestamp COLUMN_SCALAR Time
|
19139
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19140
|
+
table_create Timestamp TABLE_PAT_KEY Time
|
19141
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19142
|
+
column_create Timestamp logs_timestamp COLUMN_INDEX Logs timestamp
|
19143
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19144
|
+
reindex Timestamp.logs_timestamp
|
19145
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19146
|
+
.ft P
|
19147
|
+
.fi
|
19148
|
+
.UNINDENT
|
19149
|
+
.UNINDENT
|
19150
|
+
.SS 引数
|
19151
|
+
.sp
|
19152
|
+
このセクションではすべての引数について説明します。
|
19153
|
+
.SS \fBtarget_name\fP
|
19154
|
+
.sp
|
19155
|
+
テーブル名またはカラム名を指定します。
|
19156
|
+
.sp
|
19157
|
+
指定しなかったら対象オブジェクトはデータベースになります。
|
19158
|
+
.sp
|
19159
|
+
デフォルト値はありません。これは対象オブジェクトはデータベースになるということです。
|
19160
|
+
.SS 戻り値
|
19161
|
+
.sp
|
19162
|
+
\fBreindex\fP コマンドは作り直しが成功したかどうかを返します。:
|
19163
|
+
.INDENT 0.0
|
19164
|
+
.INDENT 3.5
|
19165
|
+
.sp
|
19166
|
+
.nf
|
19167
|
+
.ft C
|
19168
|
+
[HEADER, SUCCEEDED_OR_NOT]
|
19169
|
+
.ft P
|
19170
|
+
.fi
|
19171
|
+
.UNINDENT
|
19172
|
+
.UNINDENT
|
19173
|
+
.sp
|
19174
|
+
\fBHEADER\fP
|
19175
|
+
.INDENT 0.0
|
19176
|
+
.INDENT 3.5
|
19177
|
+
\fBHEADER\fP については \fB/reference/command/output_format\fP を参照してください。
|
19178
|
+
.UNINDENT
|
19179
|
+
.UNINDENT
|
19180
|
+
.sp
|
19181
|
+
\fBSUCCEEDED_OR_NOT\fP
|
19182
|
+
.INDENT 0.0
|
19183
|
+
.INDENT 3.5
|
19184
|
+
コマンドの実行が成功するとtrueを返します。失敗するとエラーとしてfalseを返します。
|
19185
|
+
.UNINDENT
|
19186
|
+
.UNINDENT
|
18956
19187
|
.SS \fBrequest_cancel\fP
|
18957
19188
|
.SS 概要
|
18958
19189
|
.sp
|
@@ -25675,10 +25906,10 @@ groonga\-suggest\-create\-dataset /tmp/db\-path query
|
|
25675
25906
|
.INDENT 3.5
|
25676
25907
|
.INDENT 0.0
|
25677
25908
|
.TP
|
25678
|
-
.B
|
25909
|
+
.B した
|
25679
25910
|
常に前方一致検索を実行します。
|
25680
25911
|
.TP
|
25681
|
-
.B
|
25912
|
+
.B していない
|
25682
25913
|
前方一致検索を実行しません。
|
25683
25914
|
.TP
|
25684
25915
|
.B \fBauto\fP
|
@@ -25700,10 +25931,10 @@ groonga\-suggest\-create\-dataset /tmp/db\-path query
|
|
25700
25931
|
.INDENT 3.5
|
25701
25932
|
.INDENT 0.0
|
25702
25933
|
.TP
|
25703
|
-
.B
|
25934
|
+
.B した
|
25704
25935
|
常に類似検索を実行します。
|
25705
25936
|
.TP
|
25706
|
-
.B
|
25937
|
+
.B していない
|
25707
25938
|
類似検索を実行しません。
|
25708
25939
|
.TP
|
25709
25940
|
.B \fBauto\fP
|
@@ -37924,7 +38155,7 @@ select Logs \-\-filter \(aqmessage @~ "er+or"\(aq
|
|
37924
38155
|
このセクションでは関数についての説明と組み込みの関数について説明します。
|
37925
38156
|
.sp
|
37926
38157
|
TODO: Add documentations about function.
|
37927
|
-
.SS
|
38158
|
+
.SS \fBbetween\fP
|
37928
38159
|
.SS 概要
|
37929
38160
|
.sp
|
37930
38161
|
\fBbetween\fP は、指定された値が指定された範囲にあるかをチェックするために使われます。これは \fB/reference/commands/select\fP の select\-filter オプションと組み合わせてよく使われます。
|
@@ -37944,15 +38175,21 @@ between(column_or_value, min, min_border, max, max_border)
|
|
37944
38175
|
.SS 使い方
|
37945
38176
|
.sp
|
37946
38177
|
使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。
|
38178
|
+
.sp
|
38179
|
+
実行例:
|
37947
38180
|
.INDENT 0.0
|
37948
38181
|
.INDENT 3.5
|
37949
38182
|
.sp
|
37950
38183
|
.nf
|
37951
38184
|
.ft C
|
37952
38185
|
table_create Users TABLE_HASH_KEY ShortText
|
38186
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
37953
38187
|
column_create Users age COLUMN_SCALAR Int32
|
38188
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
37954
38189
|
table_create Ages TABLE_HASH_KEY Int32
|
38190
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
37955
38191
|
column_create Ages user_age COLUMN_INDEX Users age
|
38192
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
37956
38193
|
load \-\-table Users
|
37957
38194
|
[
|
37958
38195
|
{"_key": "Alice", "age": 12},
|
@@ -37962,6 +38199,7 @@ load \-\-table Users
|
|
37962
38199
|
{"_key": "Eric", "age": 20}
|
37963
38200
|
{"_key": "Frank", "age": 21}
|
37964
38201
|
]
|
38202
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 6]
|
37965
38203
|
.ft P
|
37966
38204
|
.fi
|
37967
38205
|
.UNINDENT
|
@@ -38176,7 +38414,7 @@ edit_distance(title, "hoge")
|
|
38176
38414
|
.fi
|
38177
38415
|
.UNINDENT
|
38178
38416
|
.UNINDENT
|
38179
|
-
.SS
|
38417
|
+
.SS \fBgeo_distance\fP
|
38180
38418
|
.SS 概要
|
38181
38419
|
.sp
|
38182
38420
|
\fBgeo_distance\fP は二点間の距離を計算します。
|
@@ -38894,7 +39132,7 @@ true
|
|
38894
39132
|
脚注
|
38895
39133
|
.IP [1] 5
|
38896
39134
|
TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
|
38897
|
-
.SS
|
39135
|
+
.SS \fBhighlight_full\fP
|
38898
39136
|
.sp
|
38899
39137
|
\fBご用心:\fP
|
38900
39138
|
.INDENT 0.0
|
@@ -39065,7 +39303,7 @@ HTMLエスケープの有無を指定します。 \fBtrue\fP を指定すればH
|
|
39065
39303
|
.IP \(bu 2
|
39066
39304
|
\fB/reference/functions/highlight_html\fP
|
39067
39305
|
.UNINDENT
|
39068
|
-
.SS
|
39306
|
+
.SS \fBhighlight_html\fP
|
39069
39307
|
.sp
|
39070
39308
|
\fBご用心:\fP
|
39071
39309
|
.INDENT 0.0
|
@@ -39225,7 +39463,7 @@ HTMLでハイライトする対象のテキストです。
|
|
39225
39463
|
.IP \(bu 2
|
39226
39464
|
\fB/reference/functions/highlight_full\fP
|
39227
39465
|
.UNINDENT
|
39228
|
-
.SS
|
39466
|
+
.SS \fBhtml_untag\fP
|
39229
39467
|
.SS 概要
|
39230
39468
|
.sp
|
39231
39469
|
\fBhtml_untag\fP はHTMLタグをHTMLから除去したテキストを出力します。
|
@@ -39339,7 +39577,7 @@ select WebClips \-\-output_columns "html_untag(content)" \-\-command_version 2
|
|
39339
39577
|
.SS 戻り値
|
39340
39578
|
.sp
|
39341
39579
|
\fBhtml_untag\fP はHTMLテキストからHTMLタグを除去したタグなしのテキストを返します。
|
39342
|
-
.SS
|
39580
|
+
.SS \fBin_values\fP
|
39343
39581
|
.SS 概要
|
39344
39582
|
.sp
|
39345
39583
|
バージョン 4.0.7 で追加.
|
@@ -39510,7 +39748,354 @@ now()
|
|
39510
39748
|
.fi
|
39511
39749
|
.UNINDENT
|
39512
39750
|
.UNINDENT
|
39513
|
-
.SS
|
39751
|
+
.SS \fBprefix_rk_search()\fP
|
39752
|
+
.SS 概要
|
39753
|
+
.sp
|
39754
|
+
\fBprefix_rk_search()\fP は \fB/reference/operations/prefix_rk_search\fP を使ってレコードを選択します。
|
39755
|
+
.sp
|
39756
|
+
前方一致RK検索を使うには table\-pat\-key テーブルを作る必要があります。
|
39757
|
+
.sp
|
39758
|
+
シーケンシャルスキャンでは \fBprefix_rk_search()\fP を使うことはできません。これはセレクターのみのプロシージャです。
|
39759
|
+
.SS 構文
|
39760
|
+
.sp
|
39761
|
+
\fBprefix_rk_search()\fP には2つ引数があります。 \fBcolumn\fP と \fBquery\fP です。
|
39762
|
+
.INDENT 0.0
|
39763
|
+
.INDENT 3.5
|
39764
|
+
.sp
|
39765
|
+
.nf
|
39766
|
+
.ft C
|
39767
|
+
prefix_rk_search(column, query)
|
39768
|
+
.ft P
|
39769
|
+
.fi
|
39770
|
+
.UNINDENT
|
39771
|
+
.UNINDENT
|
39772
|
+
.sp
|
39773
|
+
今のところ、 \fBcolumn\fP は必ず \fB_key\fP にしなければいけません。
|
39774
|
+
.sp
|
39775
|
+
\fBquery\fP は文字列です。
|
39776
|
+
.SS 使い方
|
39777
|
+
.sp
|
39778
|
+
使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。
|
39779
|
+
.sp
|
39780
|
+
実行例:
|
39781
|
+
.INDENT 0.0
|
39782
|
+
.INDENT 3.5
|
39783
|
+
.sp
|
39784
|
+
.nf
|
39785
|
+
.ft C
|
39786
|
+
table_create Readings TABLE_PAT_KEY ShortText \-\-normalizer NormalizerAuto
|
39787
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
39788
|
+
load \-\-table Readings
|
39789
|
+
[
|
39790
|
+
{"_key": "ニホン"},
|
39791
|
+
{"_key": "ニッポン"},
|
39792
|
+
{"_key": "ローマジ"}
|
39793
|
+
]
|
39794
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
39795
|
+
.ft P
|
39796
|
+
.fi
|
39797
|
+
.UNINDENT
|
39798
|
+
.UNINDENT
|
39799
|
+
.sp
|
39800
|
+
以下は簡単な \fBprefix_rk_search()\fP 関数の使い方です。この使い方では \fBni\fP で \fBニホン\fP と \fBニッポン\fP を検索しています。
|
39801
|
+
.sp
|
39802
|
+
実行例:
|
39803
|
+
.INDENT 0.0
|
39804
|
+
.INDENT 3.5
|
39805
|
+
.sp
|
39806
|
+
.nf
|
39807
|
+
.ft C
|
39808
|
+
select Readings \-\-filter \(aqprefix_rk_search(_key, "ni")\(aq
|
39809
|
+
# [
|
39810
|
+
# [
|
39811
|
+
# 0,
|
39812
|
+
# 1337566253.89858,
|
39813
|
+
# 0.000355720520019531
|
39814
|
+
# ],
|
39815
|
+
# [
|
39816
|
+
# [
|
39817
|
+
# [
|
39818
|
+
# 2
|
39819
|
+
# ],
|
39820
|
+
# [
|
39821
|
+
# [
|
39822
|
+
# "_id",
|
39823
|
+
# "UInt32"
|
39824
|
+
# ],
|
39825
|
+
# [
|
39826
|
+
# "_key",
|
39827
|
+
# "ShortText"
|
39828
|
+
# ]
|
39829
|
+
# ],
|
39830
|
+
# [
|
39831
|
+
# 2,
|
39832
|
+
# "ニッポン"
|
39833
|
+
# ],
|
39834
|
+
# [
|
39835
|
+
# 1,
|
39836
|
+
# "ニホン"
|
39837
|
+
# ]
|
39838
|
+
# ]
|
39839
|
+
# ]
|
39840
|
+
# ]
|
39841
|
+
.ft P
|
39842
|
+
.fi
|
39843
|
+
.UNINDENT
|
39844
|
+
.UNINDENT
|
39845
|
+
.sp
|
39846
|
+
\fBsub_filter\fP と組み合わせることで \fB/reference/suggest/completion\fP のような機能を実現することができます。
|
39847
|
+
.sp
|
39848
|
+
レコードが補完候補となるテーブルを作成します。各レコードには0個以上の読みがあります。読みは \fBReadings\fP テーブルに格納します。 \fBReadings\fP テーブルに \fBItems.readings\fP 用のインデックスカラムを定義することを忘れないでください。このインデックスカラムは \fBsub_filter\fP で必要になります。
|
39849
|
+
.sp
|
39850
|
+
実行例:
|
39851
|
+
.INDENT 0.0
|
39852
|
+
.INDENT 3.5
|
39853
|
+
.sp
|
39854
|
+
.nf
|
39855
|
+
.ft C
|
39856
|
+
table_create Items TABLE_HASH_KEY ShortText
|
39857
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
39858
|
+
column_create Items readings COLUMN_VECTOR Readings
|
39859
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
39860
|
+
column_create Readings items_index COLUMN_INDEX Items readings
|
39861
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
39862
|
+
load \-\-table Items
|
39863
|
+
[
|
39864
|
+
{"_key": "日本", "readings": ["ニホン", "ニッポン"]},
|
39865
|
+
{"_key": "ローマ字", "readings": ["ローマジ"]},
|
39866
|
+
{"_key": "漢字", "readings": ["カンジ"]}
|
39867
|
+
]
|
39868
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
39869
|
+
.ft P
|
39870
|
+
.fi
|
39871
|
+
.UNINDENT
|
39872
|
+
.UNINDENT
|
39873
|
+
.sp
|
39874
|
+
\fBniho\fP で \fBItems\fP テーブルの中にある \fB日本\fP レコードを見つけることができます。なぜなら、 \fBniho\fP で前方一致RK検索をすると \fBニホン\fP という読みが見つかり、 \fBニホン\fP という読みは \fB日本\fP レコードの読みの1つだからです。
|
39875
|
+
.sp
|
39876
|
+
実行例:
|
39877
|
+
.INDENT 0.0
|
39878
|
+
.INDENT 3.5
|
39879
|
+
.sp
|
39880
|
+
.nf
|
39881
|
+
.ft C
|
39882
|
+
select Items \e
|
39883
|
+
\-\-filter \(aqsub_filter(readings, "prefix_rk_search(_key, \e\e"niho\e\e")")\(aq
|
39884
|
+
# [
|
39885
|
+
# [
|
39886
|
+
# 0,
|
39887
|
+
# 1337566253.89858,
|
39888
|
+
# 0.000355720520019531
|
39889
|
+
# ],
|
39890
|
+
# [
|
39891
|
+
# [
|
39892
|
+
# [
|
39893
|
+
# 1
|
39894
|
+
# ],
|
39895
|
+
# [
|
39896
|
+
# [
|
39897
|
+
# "_id",
|
39898
|
+
# "UInt32"
|
39899
|
+
# ],
|
39900
|
+
# [
|
39901
|
+
# "_key",
|
39902
|
+
# "ShortText"
|
39903
|
+
# ],
|
39904
|
+
# [
|
39905
|
+
# "readings",
|
39906
|
+
# "Readings"
|
39907
|
+
# ]
|
39908
|
+
# ],
|
39909
|
+
# [
|
39910
|
+
# 1,
|
39911
|
+
# "日本",
|
39912
|
+
# [
|
39913
|
+
# "ニホン",
|
39914
|
+
# "ニッポン"
|
39915
|
+
# ]
|
39916
|
+
# ]
|
39917
|
+
# ]
|
39918
|
+
# ]
|
39919
|
+
# ]
|
39920
|
+
.ft P
|
39921
|
+
.fi
|
39922
|
+
.UNINDENT
|
39923
|
+
.UNINDENT
|
39924
|
+
.sp
|
39925
|
+
読みがない補完候補をサポートするために script\-syntax\-prefix\-search\-operator も組み合わせる必要があります。
|
39926
|
+
.sp
|
39927
|
+
読みがない補完候補を1つ追加します。
|
39928
|
+
.sp
|
39929
|
+
実行例:
|
39930
|
+
.INDENT 0.0
|
39931
|
+
.INDENT 3.5
|
39932
|
+
.sp
|
39933
|
+
.nf
|
39934
|
+
.ft C
|
39935
|
+
load \-\-table Items
|
39936
|
+
[
|
39937
|
+
{"_key": "nihon", "readings": []}
|
39938
|
+
]
|
39939
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
39940
|
+
.ft P
|
39941
|
+
.fi
|
39942
|
+
.UNINDENT
|
39943
|
+
.UNINDENT
|
39944
|
+
.sp
|
39945
|
+
読みがない補完候補をサポートするために script\-syntax\-prefix\-search\-operator を組み合わせます。
|
39946
|
+
.sp
|
39947
|
+
実行例:
|
39948
|
+
.INDENT 0.0
|
39949
|
+
.INDENT 3.5
|
39950
|
+
.sp
|
39951
|
+
.nf
|
39952
|
+
.ft C
|
39953
|
+
select Items \e
|
39954
|
+
\-\-filter \(aqsub_filter(readings, "prefix_rk_search(_key, \e\e"niho\e\e")") || \e
|
39955
|
+
_key @^ "niho"\(aq
|
39956
|
+
# [
|
39957
|
+
# [
|
39958
|
+
# 0,
|
39959
|
+
# 1337566253.89858,
|
39960
|
+
# 0.000355720520019531
|
39961
|
+
# ],
|
39962
|
+
# [
|
39963
|
+
# [
|
39964
|
+
# [
|
39965
|
+
# 2
|
39966
|
+
# ],
|
39967
|
+
# [
|
39968
|
+
# [
|
39969
|
+
# "_id",
|
39970
|
+
# "UInt32"
|
39971
|
+
# ],
|
39972
|
+
# [
|
39973
|
+
# "_key",
|
39974
|
+
# "ShortText"
|
39975
|
+
# ],
|
39976
|
+
# [
|
39977
|
+
# "readings",
|
39978
|
+
# "Readings"
|
39979
|
+
# ]
|
39980
|
+
# ],
|
39981
|
+
# [
|
39982
|
+
# 1,
|
39983
|
+
# "日本",
|
39984
|
+
# [
|
39985
|
+
# "ニホン",
|
39986
|
+
# "ニッポン"
|
39987
|
+
# ]
|
39988
|
+
# ],
|
39989
|
+
# [
|
39990
|
+
# 4,
|
39991
|
+
# "nihon",
|
39992
|
+
# []
|
39993
|
+
# ]
|
39994
|
+
# ]
|
39995
|
+
# ]
|
39996
|
+
# ]
|
39997
|
+
.ft P
|
39998
|
+
.fi
|
39999
|
+
.UNINDENT
|
40000
|
+
.UNINDENT
|
40001
|
+
.sp
|
40002
|
+
多くの場合、補完時は大文字小文字を無視して検索したいものです。その場合は、 \fB\-\-normalizer NormalizerAuto\fP と \fBlabel\fP カラムを使います。
|
40003
|
+
.sp
|
40004
|
+
実行例:
|
40005
|
+
.INDENT 0.0
|
40006
|
+
.INDENT 3.5
|
40007
|
+
.sp
|
40008
|
+
.nf
|
40009
|
+
.ft C
|
40010
|
+
table_create LooseItems TABLE_HASH_KEY ShortText \-\-normalizer NormalizerAuto
|
40011
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
40012
|
+
column_create LooseItems label COLUMN_SCALAR ShortText
|
40013
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
40014
|
+
column_create LooseItems readings COLUMN_VECTOR Readings
|
40015
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
40016
|
+
column_create Readings loose_items_index COLUMN_INDEX LooseItems readings
|
40017
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
40018
|
+
load \-\-table LooseItems
|
40019
|
+
[
|
40020
|
+
{"_key": "日本", "label": "日本", "readings": ["ニホン", "ニッポン"]},
|
40021
|
+
{"_key": "ローマ字", "label": "ローマ字", "readings": ["ローマジ"]},
|
40022
|
+
{"_key": "漢字", "label": "漢字", "readings": ["カンジ"]},
|
40023
|
+
{"_key": "Nihon", "label": "日本", "readings": []}
|
40024
|
+
]
|
40025
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 4]
|
40026
|
+
.ft P
|
40027
|
+
.fi
|
40028
|
+
.UNINDENT
|
40029
|
+
.UNINDENT
|
40030
|
+
.sp
|
40031
|
+
表示するときは \fBLooseItems.label\fP を使います。
|
40032
|
+
.sp
|
40033
|
+
実行例:
|
40034
|
+
.INDENT 0.0
|
40035
|
+
.INDENT 3.5
|
40036
|
+
.sp
|
40037
|
+
.nf
|
40038
|
+
.ft C
|
40039
|
+
select LooseItems \e
|
40040
|
+
\-\-filter \(aqsub_filter(readings, "prefix_rk_search(_key, \e\e"nIhO\e\e")") || \e
|
40041
|
+
_key @^ "nIhO"\(aq \e
|
40042
|
+
\-\-output_columns \(aq_key,label\(aq
|
40043
|
+
# [
|
40044
|
+
# [
|
40045
|
+
# 0,
|
40046
|
+
# 1337566253.89858,
|
40047
|
+
# 0.000355720520019531
|
40048
|
+
# ],
|
40049
|
+
# [
|
40050
|
+
# [
|
40051
|
+
# [
|
40052
|
+
# 2
|
40053
|
+
# ],
|
40054
|
+
# [
|
40055
|
+
# [
|
40056
|
+
# "_key",
|
40057
|
+
# "ShortText"
|
40058
|
+
# ],
|
40059
|
+
# [
|
40060
|
+
# "label",
|
40061
|
+
# "ShortText"
|
40062
|
+
# ]
|
40063
|
+
# ],
|
40064
|
+
# [
|
40065
|
+
# "日本",
|
40066
|
+
# "日本"
|
40067
|
+
# ],
|
40068
|
+
# [
|
40069
|
+
# "nihon",
|
40070
|
+
# "日本"
|
40071
|
+
# ]
|
40072
|
+
# ]
|
40073
|
+
# ]
|
40074
|
+
# ]
|
40075
|
+
.ft P
|
40076
|
+
.fi
|
40077
|
+
.UNINDENT
|
40078
|
+
.UNINDENT
|
40079
|
+
.SS 引数
|
40080
|
+
.sp
|
40081
|
+
必須引数は二つあります。 \fBcolumn\fP と \fBquery\fP です。
|
40082
|
+
.SS \fBcolumn\fP
|
40083
|
+
.sp
|
40084
|
+
今のところ、常に \fB_key\fP を指定してください。
|
40085
|
+
.SS \fBquery\fP
|
40086
|
+
.sp
|
40087
|
+
クエリー文字列をローマ字、カタカナ、ひらがなのどれかで指定します。
|
40088
|
+
.SS 戻り値
|
40089
|
+
.sp
|
40090
|
+
\fBprefix_rk_search()\fP 関数はマッチしたレコードを返します。
|
40091
|
+
.SS 参考
|
40092
|
+
.INDENT 0.0
|
40093
|
+
.IP \(bu 2
|
40094
|
+
\fB/reference/operations/prefix_rk_search\fP
|
40095
|
+
.IP \(bu 2
|
40096
|
+
\fB/reference/functions/sub_filter\fP
|
40097
|
+
.UNINDENT
|
40098
|
+
.SS \fBquery\fP
|
39514
40099
|
.SS 概要
|
39515
40100
|
.sp
|
39516
40101
|
\fBquery\fP は、\fB/reference/commands/select\fP の \fB\-\-match_columns\fP と \fB\-\-query\fP 引数の機能を関数として提供します。\fB/reference/commands/select\fP の \fB\-\-filter\fP 引数で複数の \fBquery\fP 関数を指定することができます。
|
@@ -39860,7 +40445,7 @@ rand(10)
|
|
39860
40445
|
.fi
|
39861
40446
|
.UNINDENT
|
39862
40447
|
.UNINDENT
|
39863
|
-
.SS
|
40448
|
+
.SS \fBsnippet_html\fP
|
39864
40449
|
.sp
|
39865
40450
|
\fBご用心:\fP
|
39866
40451
|
.INDENT 0.0
|
@@ -40047,7 +40632,7 @@ select Documents \-\-output_columns \(aqsnippet_html("Groonga is very fast fullt
|
|
40047
40632
|
.IP \(bu 2
|
40048
40633
|
\fB/reference/commands/select\fP
|
40049
40634
|
.UNINDENT
|
40050
|
-
.SS
|
40635
|
+
.SS \fBsub_filter\fP
|
40051
40636
|
.SS 概要
|
40052
40637
|
.sp
|
40053
40638
|
\fBsub_filter\fP は \fBfilter_string\fP を \fBscope\fP のコンテキストで評価します。
|
@@ -40252,7 +40837,7 @@ sub_filterは以下の条件が満たされていることを要求します。
|
|
40252
40837
|
.IP \(bu 2
|
40253
40838
|
\fB/reference/grn_expr/script_syntax\fP
|
40254
40839
|
.UNINDENT
|
40255
|
-
.SS
|
40840
|
+
.SS \fBvector_size\fP
|
40256
40841
|
.SS 概要
|
40257
40842
|
.sp
|
40258
40843
|
バージョン 5.0.3 で追加.
|
@@ -40435,6 +41020,67 @@ Groongaは位置情報データのうち座標データのみサポートして
|
|
40435
41020
|
[画像]
|
40436
41021
|
.sp
|
40437
41022
|
執筆中。。。 ( \fI\%下書き\fP )
|
41023
|
+
.SS 前方一致RK検索
|
41024
|
+
.SS 概要
|
41025
|
+
.sp
|
41026
|
+
Groongaは前方一致RK検索をサポートしています。RKはローマ字(Romaji)と仮名(Kana、読み)を意味しています。前方一致RK検索はカタカナで登録されているテキストをローマ字、ひらがな、カタカナで指定したクエリーで検索します。ヒットしたテキストは検索したクエリーで始まっています。
|
41027
|
+
.sp
|
41028
|
+
前方一致RK検索は日本語テキストを補完するときに便利です。なぜなら、コンピューター上で日本語を入力するときはローマ字を使うことが多いからです。詳細は \fI\%Wikipediaの日本語入力システム\fP を参照してください。
|
41029
|
+
.sp
|
41030
|
+
ユーザーがローマ字で日本語テキストを検索することができると、ユーザーは自分でローマ字をひらがな、カタカナ、漢字に変換する必要がなくなります。たとえば、「日本」の読みとして「ニホン」を登録しておけば、「ni」でも「に」でも「二」でも「日本」を探すことができます。
|
41031
|
+
.sp
|
41032
|
+
この機能は便利です。なぜならユーザーの操作が減るからです。
|
41033
|
+
.sp
|
41034
|
+
この機能は \fB/reference/suggest/completion\fP でも使われています。
|
41035
|
+
.sp
|
41036
|
+
\fB/reference/functions/prefix_rk_search\fP を使えば、この機能を select\-filter で使うことができます。
|
41037
|
+
.SS 使い方
|
41038
|
+
.sp
|
41039
|
+
前方一致RK検索を使うには table\-pat\-key テーブルが必要です。
|
41040
|
+
.sp
|
41041
|
+
読みをカタカナで \fBTABLE_PAT_KEY\fP のキーとして登録する必要があります。
|
41042
|
+
.sp
|
41043
|
+
実行例:
|
41044
|
+
.INDENT 0.0
|
41045
|
+
.INDENT 3.5
|
41046
|
+
.sp
|
41047
|
+
.nf
|
41048
|
+
.ft C
|
41049
|
+
table_create Readings TABLE_PAT_KEY ShortText \-\-normalizer NormalizerAuto
|
41050
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41051
|
+
load \-\-table Readings
|
41052
|
+
[
|
41053
|
+
{"_key": "ニホン"},
|
41054
|
+
{"_key": "ニッポン"},
|
41055
|
+
{"_key": "ローマジ"}
|
41056
|
+
]
|
41057
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
41058
|
+
.ft P
|
41059
|
+
.fi
|
41060
|
+
.UNINDENT
|
41061
|
+
.UNINDENT
|
41062
|
+
.sp
|
41063
|
+
クエリーに \fBni\fP を指定して前方一致RK検索をすると、 \fBReadings\fP テーブルから \fBニホン\fP と \fBニッポン\fP を見つけることができます。
|
41064
|
+
.sp
|
41065
|
+
クエリーに \fBr\fP を指定して前方一致RK検索をすると、 \fBReadings\fP テーブルから \fBローマジ\fP を見つけることができます。
|
41066
|
+
.SS ローマ字から読みへの変換
|
41067
|
+
.sp
|
41068
|
+
前方一致RK検索はJIS X 4063:2000をベースにしています。
|
41069
|
+
.sp
|
41070
|
+
この使用はすでに廃止されています。JIS X 4063:2000については \fI\%Wikipediaのローマ字入力\fP を参照してください。
|
41071
|
+
.sp
|
41072
|
+
通常、期待した通りの変換結果を得ることができます。
|
41073
|
+
.SS 参考
|
41074
|
+
.INDENT 0.0
|
41075
|
+
.INDENT 3.5
|
41076
|
+
.INDENT 0.0
|
41077
|
+
.IP \(bu 2
|
41078
|
+
\fB/reference/suggest/completion\fP
|
41079
|
+
.IP \(bu 2
|
41080
|
+
\fB/reference/functions/prefix_rk_search\fP
|
41081
|
+
.UNINDENT
|
41082
|
+
.UNINDENT
|
41083
|
+
.UNINDENT
|
40438
41084
|
.SS サジェスト
|
40439
41085
|
.sp
|
40440
41086
|
Groongaにはサジェスト機能があります。このセクションではこの機能の使い方とどのように動作しているかを説明します。
|
@@ -40577,9 +41223,7 @@ _
|
|
40577
41223
|
.UNINDENT
|
40578
41224
|
.SS 前方一致RK検索
|
40579
41225
|
.sp
|
40580
|
-
RK
|
40581
|
-
.sp
|
40582
|
-
例えば、"日本"という語が登録されているとします。そして、その読みとして"ニホン"(カタカナにしないといけません)が登録されているとします。このとき、ユーザの入力が"ni"でも"二"でも"に"でも"日本"を見つけることができます。
|
41226
|
+
前方一致RK検索については \fB/reference/operations/prefix_rk_search\fP を見てください。
|
40583
41227
|
.sp
|
40584
41228
|
\fB/reference/executables/groonga\-suggest\-create\-dataset\fP 実行ファイルで \fBexample\fP という名前のデータセットを作ったとします。前方一致RK検索で使うために \fBitem_example\fP テーブルの \fB_key\fP と \fBkana\fP カラムに登録済みの単語と読みのペアを指定することで更新できます。
|
40585
41229
|
.SS 共起検索
|
@@ -41786,350 +42430,335 @@ _
|
|
41786
42430
|
.sp
|
41787
42431
|
TODO
|
41788
42432
|
.SS コマンド一覧
|
41789
|
-
.SS
|
41790
|
-
.SS 概要
|
41791
|
-
.sp
|
41792
|
-
\fB注釈:\fP
|
41793
|
-
.INDENT 0.0
|
41794
|
-
.INDENT 3.5
|
41795
|
-
このコマンドは実験的な機能です。
|
41796
|
-
.UNINDENT
|
41797
|
-
.UNINDENT
|
41798
|
-
.sp
|
41799
|
-
バージョン 5.0.0 で追加.
|
41800
|
-
|
41801
|
-
.sp
|
41802
|
-
\fBlogical_count\fP は別のテーブルに保存されているレコードであっても、マッチするレコードをカウントするためのコマンドです。テーブルの最大レコード数の \fB/limitations\fP を気にしなくてすむようになります。
|
42433
|
+
.SS Log
|
41803
42434
|
.sp
|
41804
|
-
|
41805
|
-
.
|
41806
|
-
.
|
41807
|
-
|
41808
|
-
.IP \(bu 2
|
41809
|
-
自分で個々のテーブルへ適切なデータをロードしないといけない
|
41810
|
-
.UNINDENT
|
41811
|
-
.SS 構文
|
42435
|
+
Groonga has two log files. They are process log and query
|
42436
|
+
log. Process log is for all of \fBexecutables/groonga\fP
|
42437
|
+
works. Query log is just for query processing.
|
42438
|
+
.SS Process log
|
41812
42439
|
.sp
|
41813
|
-
|
42440
|
+
Process log is enabled by default. Log path can be
|
42441
|
+
customized by \fB\-\-log\-path\fP option. Each log has its
|
42442
|
+
log level. If a log is smaller than groonga process\(aq log
|
42443
|
+
level, it\(aqs not logged. Log level can be customized by
|
42444
|
+
\fB\-l\fP or \fBcommands/log_level\fP\&.
|
42445
|
+
.SS フォーマット
|
41814
42446
|
.sp
|
41815
|
-
|
42447
|
+
Process log uses the following format:
|
41816
42448
|
.INDENT 0.0
|
41817
42449
|
.INDENT 3.5
|
41818
42450
|
.sp
|
41819
42451
|
.nf
|
41820
42452
|
.ft C
|
41821
|
-
|
41822
|
-
shard_key
|
41823
|
-
[min]
|
41824
|
-
[min_border]
|
41825
|
-
[max]
|
41826
|
-
[max_border]
|
41827
|
-
[filter]
|
42453
|
+
#{TIME_STAMP}|#{L}| #{MESSAGE}
|
41828
42454
|
.ft P
|
41829
42455
|
.fi
|
41830
42456
|
.UNINDENT
|
41831
42457
|
.UNINDENT
|
41832
|
-
.SS 使い方
|
41833
|
-
.sp
|
41834
|
-
\fBlogical_count\fP コマンドを使うには事前に \fBsharding\fP プラグインを登録します。
|
41835
|
-
.sp
|
41836
|
-
\fBlogical_count\fP コマンドは実験的なプラグインです。このコマンドは将来的に変更されるかもしれません。
|
41837
|
-
.sp
|
41838
|
-
この機能を使う簡単な例を示します。複数のテーブルに保存されている特定のログをカウントしてみましょう。
|
41839
|
-
.sp
|
41840
|
-
スキーマ定義とサンプルデータは以下の通りです。
|
41841
|
-
.sp
|
41842
|
-
実行例:
|
41843
42458
|
.INDENT 0.0
|
42459
|
+
.TP
|
42460
|
+
.B TIME_STAMP
|
42461
|
+
It\(aqs time stamp uses the following format:
|
42462
|
+
.INDENT 7.0
|
41844
42463
|
.INDENT 3.5
|
41845
42464
|
.sp
|
41846
42465
|
.nf
|
41847
42466
|
.ft C
|
41848
|
-
|
41849
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41850
|
-
column_create Logs_20150203 timestamp COLUMN_SCALAR Time
|
41851
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41852
|
-
column_create Logs_20150203 message COLUMN_SCALAR Text
|
41853
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41854
|
-
table_create Logs_20150204 TABLE_NO_KEY
|
41855
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41856
|
-
column_create Logs_20150204 timestamp COLUMN_SCALAR Time
|
41857
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41858
|
-
column_create Logs_20150204 message COLUMN_SCALAR Text
|
41859
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41860
|
-
table_create Logs_20150205 TABLE_NO_KEY
|
41861
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41862
|
-
column_create Logs_20150205 timestamp COLUMN_SCALAR Time
|
41863
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
41864
|
-
column_create Logs_20150205 message COLUMN_SCALAR Text
|
41865
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42467
|
+
YYYY\-MM\-DD hh:mm:ss.SSSSSS
|
41866
42468
|
.ft P
|
41867
42469
|
.fi
|
41868
42470
|
.UNINDENT
|
41869
42471
|
.UNINDENT
|
42472
|
+
.INDENT 7.0
|
42473
|
+
.TP
|
42474
|
+
.B YYYY
|
42475
|
+
Year with four digits.
|
42476
|
+
.TP
|
42477
|
+
.B MM
|
42478
|
+
Month with two digits.
|
42479
|
+
.TP
|
42480
|
+
.B DD
|
42481
|
+
Day with two digits.
|
42482
|
+
.TP
|
42483
|
+
.B hh
|
42484
|
+
Hour with two digits.
|
42485
|
+
.TP
|
42486
|
+
.B mm
|
42487
|
+
Minute with two digits.
|
42488
|
+
.TP
|
42489
|
+
.B ss
|
42490
|
+
Second with two digits.
|
42491
|
+
.TP
|
42492
|
+
.B SSSSSS
|
42493
|
+
Microsecond with six digits.
|
42494
|
+
.UNINDENT
|
41870
42495
|
.sp
|
41871
42496
|
実行例:
|
41872
|
-
.INDENT
|
42497
|
+
.INDENT 7.0
|
41873
42498
|
.INDENT 3.5
|
41874
42499
|
.sp
|
41875
42500
|
.nf
|
41876
42501
|
.ft C
|
41877
|
-
|
41878
|
-
[
|
41879
|
-
{"timestamp": "2015\-02\-03 23:59:58", "message": "Start"},
|
41880
|
-
{"timestamp": "2015\-02\-03 23:59:58", "message": "Shutdown"},
|
41881
|
-
{"timestamp": "2015\-02\-03 23:59:59", "message": "Start"},
|
41882
|
-
{"timestamp": "2015\-02\-03 23:59:59", "message": "Shutdown"}
|
41883
|
-
]
|
41884
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 4]
|
41885
|
-
load \-\-table Logs_20150204
|
41886
|
-
[
|
41887
|
-
{"timestamp": "2015\-02\-04 00:00:00", "message": "Start"},
|
41888
|
-
{"timestamp": "2015\-02\-04 00:00:00", "message": "Shutdown"},
|
41889
|
-
{"timestamp": "2015\-02\-04 00:00:01", "message": "Start"},
|
41890
|
-
{"timestamp": "2015\-02\-04 00:00:01", "message": "Shutdown"},
|
41891
|
-
{"timestamp": "2015\-02\-04 23:59:59", "message": "Start"},
|
41892
|
-
{"timestamp": "2015\-02\-04 23:59:59", "message": "Shutdown"}
|
41893
|
-
]
|
41894
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 6]
|
41895
|
-
load \-\-table Logs_20150205
|
41896
|
-
[
|
41897
|
-
{"timestamp": "2015\-02\-05 00:00:00", "message": "Start"},
|
41898
|
-
{"timestamp": "2015\-02\-05 00:00:00", "message": "Shutdown"},
|
41899
|
-
{"timestamp": "2015\-02\-05 00:00:01", "message": "Start"},
|
41900
|
-
{"timestamp": "2015\-02\-05 00:00:01", "message": "Shutdown"}
|
41901
|
-
]
|
41902
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 4]
|
42502
|
+
2011\-07\-05 06:25:18.345734
|
41903
42503
|
.ft P
|
41904
42504
|
.fi
|
41905
42505
|
.UNINDENT
|
41906
42506
|
.UNINDENT
|
41907
|
-
.
|
41908
|
-
|
41909
|
-
.
|
41910
|
-
.
|
41911
|
-
|
41912
|
-
.
|
41913
|
-
|
41914
|
-
|
41915
|
-
|
42507
|
+
.TP
|
42508
|
+
.B L
|
42509
|
+
Log level with a character. Here is a character and log
|
42510
|
+
level map.
|
42511
|
+
.INDENT 7.0
|
42512
|
+
.TP
|
42513
|
+
.B E
|
42514
|
+
Emergency
|
42515
|
+
.TP
|
42516
|
+
.B A
|
42517
|
+
Alert
|
42518
|
+
.TP
|
42519
|
+
.B C
|
42520
|
+
Critical
|
42521
|
+
.TP
|
42522
|
+
.B e
|
42523
|
+
Error
|
42524
|
+
.TP
|
42525
|
+
.B w
|
42526
|
+
Warning
|
42527
|
+
.TP
|
42528
|
+
.B n
|
42529
|
+
Notification
|
42530
|
+
.TP
|
42531
|
+
.B i
|
42532
|
+
Information
|
42533
|
+
.TP
|
42534
|
+
.B d
|
42535
|
+
Debug
|
42536
|
+
.TP
|
42537
|
+
.B \-
|
42538
|
+
Dump
|
41916
42539
|
.UNINDENT
|
41917
42540
|
.sp
|
41918
|
-
|
41919
|
-
.
|
41920
|
-
|
42541
|
+
実行例:
|
42542
|
+
.INDENT 7.0
|
42543
|
+
.INDENT 3.5
|
41921
42544
|
.sp
|
41922
|
-
|
42545
|
+
.nf
|
42546
|
+
.ft C
|
42547
|
+
E
|
42548
|
+
.ft P
|
42549
|
+
.fi
|
42550
|
+
.UNINDENT
|
42551
|
+
.UNINDENT
|
42552
|
+
.TP
|
42553
|
+
.B MESSAGE
|
42554
|
+
Details about the log with free format.
|
41923
42555
|
.sp
|
41924
42556
|
実行例:
|
41925
|
-
.INDENT
|
42557
|
+
.INDENT 7.0
|
41926
42558
|
.INDENT 3.5
|
41927
42559
|
.sp
|
41928
42560
|
.nf
|
41929
42561
|
.ft C
|
41930
|
-
|
41931
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
42562
|
+
log opened.
|
41932
42563
|
.ft P
|
41933
42564
|
.fi
|
41934
42565
|
.UNINDENT
|
41935
42566
|
.UNINDENT
|
42567
|
+
.UNINDENT
|
41936
42568
|
.sp
|
41937
|
-
|
41938
|
-
.sp
|
41939
|
-
\fB注釈:\fP
|
42569
|
+
実行例:
|
41940
42570
|
.INDENT 0.0
|
41941
42571
|
.INDENT 3.5
|
41942
|
-
|
42572
|
+
.sp
|
42573
|
+
.nf
|
42574
|
+
.ft C
|
42575
|
+
2011\-07\-05 08:35:09.276421|n| grn_init
|
42576
|
+
2011\-07\-05 08:35:09.276553|n| RLIMIT_NOFILE(4096,4096)
|
42577
|
+
.ft P
|
42578
|
+
.fi
|
41943
42579
|
.UNINDENT
|
41944
42580
|
.UNINDENT
|
41945
|
-
.SS
|
41946
|
-
.sp
|
41947
|
-
このセクションでは \fBlogical_count\fP の引数について説明します。
|
41948
|
-
.SS 必須引数
|
41949
|
-
.sp
|
41950
|
-
必須引数は二つあります。 \fBlogical_table\fP と \fBshard_key\fP です。
|
41951
|
-
.SS \fBlogical_table\fP
|
41952
|
-
.sp
|
41953
|
-
論理テーブル名を指定します。これは "_YYYYMMDD" をテーブル名から除いたものです。実際のテーブルが "Logs_20150203" や "Logs_20150203" といったものなら、論理テーブル名は "Logs" です。
|
41954
|
-
.SS \fBshard_key\fP
|
41955
|
-
.sp
|
41956
|
-
個々のテーブルで共通のキーとして扱うカラム名を指定します。
|
41957
|
-
.SS 省略可能引数
|
41958
|
-
.sp
|
41959
|
-
いくつか省略可能な引数があります。
|
41960
|
-
.SS \fBmin\fP
|
41961
|
-
.sp
|
41962
|
-
\fBshard_key\fP の最小値を指定します。
|
41963
|
-
.SS \fBmin_border\fP
|
41964
|
-
.sp
|
41965
|
-
最小値を境界値として含めるのか否かを指定します。 \fBinclude\fP もしくは \fBexclude\fP を指定します。
|
41966
|
-
.SS \fBmax\fP
|
41967
|
-
.sp
|
41968
|
-
\fBshard_key\fP の最大値を指定します。
|
41969
|
-
.SS \fBmax_border\fP
|
42581
|
+
.SS Query log
|
41970
42582
|
.sp
|
41971
|
-
|
41972
|
-
|
41973
|
-
.SS
|
42583
|
+
Query log is disabled by default. It can be enabled by
|
42584
|
+
\fB\-\-query\-log\-path\fP option.
|
42585
|
+
.SS フォーマット
|
41974
42586
|
.sp
|
41975
|
-
|
42587
|
+
Query log uses the following formats:
|
41976
42588
|
.INDENT 0.0
|
41977
42589
|
.INDENT 3.5
|
41978
42590
|
.sp
|
41979
42591
|
.nf
|
41980
42592
|
.ft C
|
41981
|
-
|
42593
|
+
#{TIME_STAMP}|#{MESSAGE}
|
42594
|
+
#{TIME_STAMP}|#{ID}|>#{QUERY}
|
42595
|
+
#{TIME_STAMP}|#{ID}|:#{ELAPSED_TIME} #{PROGRESS}
|
42596
|
+
#{TIME_STAMP}|#{ID}|<#{ELAPSED_TIME} #{RETURN_CODE}
|
41982
42597
|
.ft P
|
41983
42598
|
.fi
|
41984
42599
|
.UNINDENT
|
41985
42600
|
.UNINDENT
|
41986
|
-
.SS \fBlogical_parameters\fP
|
41987
|
-
.SS 概要
|
41988
|
-
.sp
|
41989
|
-
\fB注釈:\fP
|
41990
42601
|
.INDENT 0.0
|
42602
|
+
.TP
|
42603
|
+
.B TIME_STAMP
|
42604
|
+
It\(aqs time stamp uses the following format:
|
42605
|
+
.INDENT 7.0
|
41991
42606
|
.INDENT 3.5
|
41992
|
-
|
42607
|
+
.sp
|
42608
|
+
.nf
|
42609
|
+
.ft C
|
42610
|
+
YYYY\-MM\-DD hh:mm:ss.SSSSSS
|
42611
|
+
.ft P
|
42612
|
+
.fi
|
41993
42613
|
.UNINDENT
|
41994
42614
|
.UNINDENT
|
42615
|
+
.INDENT 7.0
|
42616
|
+
.TP
|
42617
|
+
.B YYYY
|
42618
|
+
Year with four digits.
|
42619
|
+
.TP
|
42620
|
+
.B MM
|
42621
|
+
Month with two digits.
|
42622
|
+
.TP
|
42623
|
+
.B DD
|
42624
|
+
Day with two digits.
|
42625
|
+
.TP
|
42626
|
+
.B hh
|
42627
|
+
Hour with two digits.
|
42628
|
+
.TP
|
42629
|
+
.B mm
|
42630
|
+
Minute with two digits.
|
42631
|
+
.TP
|
42632
|
+
.B ss
|
42633
|
+
Second with two digits.
|
42634
|
+
.TP
|
42635
|
+
.B SSSSSS
|
42636
|
+
Microsecond with six digits.
|
42637
|
+
.UNINDENT
|
41995
42638
|
.sp
|
41996
|
-
|
41997
|
-
|
41998
|
-
.sp
|
41999
|
-
\fBlogical_parameters\fP はテスト用のコマンドです。通常はこのコマンドを使う必要はありません。
|
42000
|
-
.sp
|
42001
|
-
\fBlogical_parameters\fP は次の2つの機能を提供します。
|
42002
|
-
.INDENT 0.0
|
42639
|
+
実行例:
|
42640
|
+
.INDENT 7.0
|
42003
42641
|
.INDENT 3.5
|
42004
|
-
.
|
42005
|
-
.
|
42006
|
-
|
42007
|
-
.
|
42008
|
-
|
42009
|
-
.
|
42642
|
+
.sp
|
42643
|
+
.nf
|
42644
|
+
.ft C
|
42645
|
+
2011\-07\-05 06:25:18.345734
|
42646
|
+
.ft P
|
42647
|
+
.fi
|
42010
42648
|
.UNINDENT
|
42011
42649
|
.UNINDENT
|
42650
|
+
.TP
|
42651
|
+
.B ID
|
42652
|
+
ID of a thread. Groonga process creates threads to process
|
42653
|
+
requests concurrently. Each thread outputs some logs for a
|
42654
|
+
request. This ID can be used to extract a log sequence by
|
42655
|
+
a thread.
|
42012
42656
|
.sp
|
42013
|
-
|
42014
|
-
.INDENT
|
42657
|
+
実行例:
|
42658
|
+
.INDENT 7.0
|
42015
42659
|
.INDENT 3.5
|
42016
|
-
.
|
42017
|
-
.
|
42018
|
-
|
42660
|
+
.sp
|
42661
|
+
.nf
|
42662
|
+
.ft C
|
42663
|
+
45ea3034
|
42664
|
+
.ft P
|
42665
|
+
.fi
|
42019
42666
|
.UNINDENT
|
42020
42667
|
.UNINDENT
|
42021
42668
|
.UNINDENT
|
42022
|
-
.sp
|
42023
|
-
\fB注釈:\fP
|
42024
42669
|
.INDENT 0.0
|
42025
|
-
.
|
42026
|
-
|
42670
|
+
.TP
|
42671
|
+
.B >
|
42672
|
+
A character that indicates query is started.
|
42027
42673
|
.UNINDENT
|
42674
|
+
.INDENT 0.0
|
42675
|
+
.TP
|
42676
|
+
.B :
|
42677
|
+
A character that indicates query is processing.
|
42028
42678
|
.UNINDENT
|
42029
|
-
.SS 構文
|
42030
|
-
.sp
|
42031
|
-
このコマンドの引数は1つで省略できます:
|
42032
42679
|
.INDENT 0.0
|
42680
|
+
.TP
|
42681
|
+
.B <
|
42682
|
+
A character that indicates query is finished.
|
42683
|
+
.TP
|
42684
|
+
.B MESSAGE
|
42685
|
+
Details about the log with free format.
|
42686
|
+
.sp
|
42687
|
+
実行例:
|
42688
|
+
.INDENT 7.0
|
42033
42689
|
.INDENT 3.5
|
42034
42690
|
.sp
|
42035
42691
|
.nf
|
42036
42692
|
.ft C
|
42037
|
-
|
42693
|
+
query log opened.
|
42038
42694
|
.ft P
|
42039
42695
|
.fi
|
42040
42696
|
.UNINDENT
|
42041
42697
|
.UNINDENT
|
42042
|
-
.
|
42043
|
-
.
|
42044
|
-
|
42698
|
+
.TP
|
42699
|
+
.B QUERY
|
42700
|
+
A query to be processed.
|
42045
42701
|
.sp
|
42046
42702
|
実行例:
|
42047
|
-
.INDENT
|
42703
|
+
.INDENT 7.0
|
42048
42704
|
.INDENT 3.5
|
42049
42705
|
.sp
|
42050
42706
|
.nf
|
42051
42707
|
.ft C
|
42052
|
-
|
42053
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42708
|
+
select users \-\-match_columns hobby \-\-query music
|
42054
42709
|
.ft P
|
42055
42710
|
.fi
|
42056
42711
|
.UNINDENT
|
42057
42712
|
.UNINDENT
|
42058
|
-
.
|
42059
|
-
|
42713
|
+
.TP
|
42714
|
+
.B ELAPSED_TIME
|
42715
|
+
Elapsed time in nanoseconds since query is started.
|
42060
42716
|
.sp
|
42061
42717
|
実行例:
|
42062
|
-
.INDENT
|
42718
|
+
.INDENT 7.0
|
42063
42719
|
.INDENT 3.5
|
42064
42720
|
.sp
|
42065
42721
|
.nf
|
42066
42722
|
.ft C
|
42067
|
-
|
42068
|
-
|
42723
|
+
000000000075770
|
42724
|
+
(It means 75,770 nanoseconds.)
|
42069
42725
|
.ft P
|
42070
42726
|
.fi
|
42071
42727
|
.UNINDENT
|
42072
42728
|
.UNINDENT
|
42073
|
-
.
|
42074
|
-
|
42729
|
+
.TP
|
42730
|
+
.B PROGRESS
|
42731
|
+
A processed work at the time.
|
42075
42732
|
.sp
|
42076
42733
|
実行例:
|
42077
|
-
.INDENT
|
42734
|
+
.INDENT 7.0
|
42078
42735
|
.INDENT 3.5
|
42079
42736
|
.sp
|
42080
42737
|
.nf
|
42081
42738
|
.ft C
|
42082
|
-
|
42083
|
-
|
42739
|
+
select(313401)
|
42740
|
+
(It means that \(aqselect\(aq is processed and 313,401 records are remained.)
|
42084
42741
|
.ft P
|
42085
42742
|
.fi
|
42086
42743
|
.UNINDENT
|
42087
42744
|
.UNINDENT
|
42088
|
-
.
|
42089
|
-
|
42090
|
-
.
|
42091
|
-
.sp
|
42092
|
-
このセクションでは引数について説明します。
|
42093
|
-
.SS 必須引数
|
42094
|
-
.sp
|
42095
|
-
必須の引数はありません。
|
42096
|
-
.SS 省略可能引数
|
42097
|
-
.sp
|
42098
|
-
省略可能な引数が1つあります。
|
42099
|
-
.SS \fBrange_index\fP
|
42100
|
-
.sp
|
42101
|
-
\fBlogical_range_filter\fP でどのように範囲インデックスを使うかをキーワードで指定します。
|
42102
|
-
.sp
|
42103
|
-
指定できるキーワードは以下の通りです。
|
42104
|
-
.INDENT 0.0
|
42105
|
-
.INDENT 3.5
|
42106
|
-
.INDENT 0.0
|
42107
|
-
.IP \(bu 2
|
42108
|
-
\fBauto\fP (デフォルト)
|
42109
|
-
.IP \(bu 2
|
42110
|
-
\fBalways\fP
|
42111
|
-
.IP \(bu 2
|
42112
|
-
\fBnever\fP
|
42113
|
-
.UNINDENT
|
42114
|
-
.UNINDENT
|
42115
|
-
.UNINDENT
|
42116
|
-
.sp
|
42117
|
-
\fBauto\fP を指定すると、効果がでそうなときだけ範囲インデックスを使います。これがデフォルトの値です。
|
42745
|
+
.TP
|
42746
|
+
.B RETURN_CODE
|
42747
|
+
A return code for the query.
|
42118
42748
|
.sp
|
42119
42749
|
実行例:
|
42120
|
-
.INDENT
|
42750
|
+
.INDENT 7.0
|
42121
42751
|
.INDENT 3.5
|
42122
42752
|
.sp
|
42123
42753
|
.nf
|
42124
42754
|
.ft C
|
42125
|
-
|
42126
|
-
|
42755
|
+
rc=0
|
42756
|
+
(It means return code is 0. 0 means GRN_SUCCESS.)
|
42127
42757
|
.ft P
|
42128
42758
|
.fi
|
42129
42759
|
.UNINDENT
|
42130
42760
|
.UNINDENT
|
42131
|
-
.
|
42132
|
-
\fBalways\fP を指定すると、常に範囲インデックスを使います。範囲インデックスが使われるケースをテストするときに便利です。
|
42761
|
+
.UNINDENT
|
42133
42762
|
.sp
|
42134
42763
|
実行例:
|
42135
42764
|
.INDENT 0.0
|
@@ -42137,3072 +42766,64 @@ logical_parameters \-\-range_index auto
|
|
42137
42766
|
.sp
|
42138
42767
|
.nf
|
42139
42768
|
.ft C
|
42140
|
-
|
42141
|
-
|
42769
|
+
2011\-07\-05 06:25:19.458756|45ea3034|>select Properties \-\-limit 0
|
42770
|
+
2011\-07\-05 06:25:19.458829|45ea3034|:000000000072779 select(19)
|
42771
|
+
2011\-07\-05 06:25:19.458856|45ea3034|:000000000099998 output(0)
|
42772
|
+
2011\-07\-05 06:25:19.458875|45ea3034|<000000000119062 rc=0
|
42773
|
+
2011\-07\-05 06:25:19.458986|45ea3034|>quit
|
42142
42774
|
.ft P
|
42143
42775
|
.fi
|
42144
42776
|
.UNINDENT
|
42145
42777
|
.UNINDENT
|
42778
|
+
.SS チューニング
|
42779
|
+
.SS 概要
|
42146
42780
|
.sp
|
42147
|
-
|
42781
|
+
大きなデータベースを扱うためのチューニングパラメーターがいくつかあります。
|
42782
|
+
.SS 引数
|
42148
42783
|
.sp
|
42149
|
-
|
42784
|
+
このセクションではチューニングパラメーターについて説明します。
|
42785
|
+
.SS 1プロセスで開ける最大ファイル数
|
42786
|
+
.sp
|
42787
|
+
このパラメーターは大きなデータベースを扱うためのパラメーターです。
|
42788
|
+
.sp
|
42789
|
+
Groongaは1つのテーブル・カラムごとに1つ以上のファイルを作ります。もし、データベース内にたくさんのテーブル・カラムがある場合は、Groongaプロセスはたくさんのファイルを開く必要があります。
|
42790
|
+
.sp
|
42791
|
+
システムでは1プロセスごとに開ける最大ファイル数を制限しています。そのため、この制限を緩和する必要があります。
|
42792
|
+
.sp
|
42793
|
+
Groongaがどのくらいファイルを開くのかを計算する式は次の通りです。:
|
42150
42794
|
.INDENT 0.0
|
42151
42795
|
.INDENT 3.5
|
42152
42796
|
.sp
|
42153
42797
|
.nf
|
42154
42798
|
.ft C
|
42155
|
-
|
42156
|
-
|
42799
|
+
3 (for DB) +
|
42800
|
+
N tables +
|
42801
|
+
N columns (except index clumns) +
|
42802
|
+
(N index columns * 2) +
|
42803
|
+
X (the number of plugins etc.)
|
42157
42804
|
.ft P
|
42158
42805
|
.fi
|
42159
42806
|
.UNINDENT
|
42160
42807
|
.UNINDENT
|
42161
|
-
.SS 戻り値
|
42162
42808
|
.sp
|
42163
|
-
|
42809
|
+
次のスキーマを例として考えます。:
|
42164
42810
|
.INDENT 0.0
|
42165
42811
|
.INDENT 3.5
|
42166
42812
|
.sp
|
42167
42813
|
.nf
|
42168
42814
|
.ft C
|
42169
|
-
|
42170
|
-
|
42171
|
-
|
42172
|
-
|
42815
|
+
table_create Entries TABLE_HASH_KEY ShortText
|
42816
|
+
column_create Entries content COLUMN_SCALAR Text
|
42817
|
+
column_create Entries n_likes COLUMN_SCALAR UInt32
|
42818
|
+
table_create Terms TABLE_PAT_KEY ShortText \-\-default_tokenizer TokenBigram \-\-normalizer NormalizerAuto
|
42819
|
+
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
42820
|
+
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
|
42173
42821
|
.ft P
|
42174
42822
|
.fi
|
42175
42823
|
.UNINDENT
|
42176
42824
|
.UNINDENT
|
42177
42825
|
.sp
|
42178
|
-
|
42179
|
-
.INDENT 0.0
|
42180
|
-
.INDENT 3.5
|
42181
|
-
.INDENT 0.0
|
42182
|
-
.IP \(bu 2
|
42183
|
-
\fB"auto"\fP
|
42184
|
-
.IP \(bu 2
|
42185
|
-
\fB"always"\fP
|
42186
|
-
.IP \(bu 2
|
42187
|
-
\fB"never"\fP
|
42188
|
-
.UNINDENT
|
42189
|
-
.UNINDENT
|
42190
|
-
.UNINDENT
|
42191
|
-
.sp
|
42192
|
-
\fBHEADER\fP については \fB/reference/command/output_format\fP を参照してください。
|
42193
|
-
.SS \fBlogical_range_filter\fP
|
42194
|
-
.SS 概要
|
42195
|
-
.sp
|
42196
|
-
\fB注釈:\fP
|
42197
|
-
.INDENT 0.0
|
42198
|
-
.INDENT 3.5
|
42199
|
-
このコマンドは実験的な機能です。
|
42200
|
-
.UNINDENT
|
42201
|
-
.UNINDENT
|
42202
|
-
.sp
|
42203
|
-
バージョン 5.0.0 で追加.
|
42204
|
-
|
42205
|
-
.sp
|
42206
|
-
TODO: Write summary
|
42207
|
-
.SS 構文
|
42208
|
-
.sp
|
42209
|
-
このコマンドにはたくさんの引数があります。
|
42210
|
-
.sp
|
42211
|
-
必須引数は2つあります。 \fBlogical_table\fP と \fBshard_key\fP です。
|
42212
|
-
.INDENT 0.0
|
42213
|
-
.INDENT 3.5
|
42214
|
-
.sp
|
42215
|
-
.nf
|
42216
|
-
.ft C
|
42217
|
-
logical_range_filter
|
42218
|
-
logical_table
|
42219
|
-
shard_key
|
42220
|
-
[min=null]
|
42221
|
-
[min_border=null]
|
42222
|
-
[max=null]
|
42223
|
-
[max_border=null]
|
42224
|
-
[order=ascending]
|
42225
|
-
[filter=null]
|
42226
|
-
[offset=0]
|
42227
|
-
[limit=10]
|
42228
|
-
[output_columns=_key,*]
|
42229
|
-
[use_range_index=null]
|
42230
|
-
.ft P
|
42231
|
-
.fi
|
42232
|
-
.UNINDENT
|
42233
|
-
.UNINDENT
|
42234
|
-
.sp
|
42235
|
-
いくつか名前付き引数としてしか使えない引数があります。これらの引数を「○番目の引数」として使うことはできません。必ず名前を指定する必要があります。
|
42236
|
-
.sp
|
42237
|
-
名前付き引数としてしか使えない引数は次の通りです。
|
42238
|
-
.INDENT 0.0
|
42239
|
-
.INDENT 3.5
|
42240
|
-
.INDENT 0.0
|
42241
|
-
.IP \(bu 2
|
42242
|
-
\fBcache=no\fP
|
42243
|
-
.UNINDENT
|
42244
|
-
.UNINDENT
|
42245
|
-
.UNINDENT
|
42246
|
-
.SS 使い方
|
42247
|
-
.sp
|
42248
|
-
\fBlogical_range_filter\fP コマンドを使うには事前に \fBsharding\fP プラグインを登録します。
|
42249
|
-
.sp
|
42250
|
-
TODO: Add examples
|
42251
|
-
.SS 引数
|
42252
|
-
.sp
|
42253
|
-
このセクションでは \fBlogical_range_filter\fP の引数について説明します。
|
42254
|
-
.SS 必須引数
|
42255
|
-
.sp
|
42256
|
-
必須引数は二つあります。 \fBlogical_table\fP と \fBshard_key\fP です。
|
42257
|
-
.SS \fBlogical_table\fP
|
42258
|
-
.sp
|
42259
|
-
論理テーブル名を指定します。これは "_YYYYMMDD" をテーブル名から除いたものです。実際のテーブルが "Logs_20150203" や "Logs_20150203" といったものなら、論理テーブル名は "Logs" です。
|
42260
|
-
.sp
|
42261
|
-
TODO: Add examples
|
42262
|
-
.SS \fBshard_key\fP
|
42263
|
-
.sp
|
42264
|
-
個々のテーブルで共通のキーとして扱うカラム名を指定します。
|
42265
|
-
.sp
|
42266
|
-
TODO: Add examples
|
42267
|
-
.SS 省略可能引数
|
42268
|
-
.sp
|
42269
|
-
いくつか省略可能な引数があります。
|
42270
|
-
.SS \fBmin\fP
|
42271
|
-
.sp
|
42272
|
-
\fBshard_key\fP の最小値を指定します。
|
42273
|
-
.sp
|
42274
|
-
TODO: Add examples
|
42275
|
-
.SS \fBmin_border\fP
|
42276
|
-
.sp
|
42277
|
-
最小値を境界値として含めるのか否かを指定します。 \fBinclude\fP もしくは \fBexclude\fP を指定します。
|
42278
|
-
.sp
|
42279
|
-
TODO: Add examples
|
42280
|
-
.SS \fBmax\fP
|
42281
|
-
.sp
|
42282
|
-
\fBshard_key\fP の最大値を指定します。
|
42283
|
-
.sp
|
42284
|
-
TODO: Add examples
|
42285
|
-
.SS \fBmax_border\fP
|
42286
|
-
.sp
|
42287
|
-
最大値を境界値として含めるのか否かを指定します。 \fBinclude\fP もしくは \fBexclude\fP を指定します。
|
42288
|
-
.sp
|
42289
|
-
TODO: Add examples
|
42290
|
-
.SS \fBorder\fP
|
42291
|
-
.sp
|
42292
|
-
TODO
|
42293
|
-
.SS \fBfilter\fP
|
42294
|
-
.sp
|
42295
|
-
TODO
|
42296
|
-
.SS \fBoffset\fP
|
42297
|
-
.sp
|
42298
|
-
TODO
|
42299
|
-
.SS \fBlimit\fP
|
42300
|
-
.sp
|
42301
|
-
TODO
|
42302
|
-
.SS \fBoutput_columns\fP
|
42303
|
-
.sp
|
42304
|
-
TODO
|
42305
|
-
.SS \fBuse_range_index\fP
|
42306
|
-
.sp
|
42307
|
-
range_indexを使うかどうかを指定します。ただし、この引数はテスト用なので、本番で使うべきではありません。
|
42308
|
-
.sp
|
42309
|
-
TODO: Add examples
|
42310
|
-
.SS キャッシュ関連の引数
|
42311
|
-
.SS \fBcache\fP
|
42312
|
-
.sp
|
42313
|
-
このクエリーの結果をキャッシュするかどうかを指定します。
|
42314
|
-
.sp
|
42315
|
-
このクエリーの結果がキャッシュしてあると、次に同じクエリーを実行するときはキャッシュを使って高速にレスポンスを返すことができます。
|
42316
|
-
.sp
|
42317
|
-
これは既存のキャッシュされた結果を使うかどうかを指定するものではありません。
|
42318
|
-
.sp
|
42319
|
-
指定可能な値は以下の通りです。
|
42320
|
-
.TS
|
42321
|
-
center;
|
42322
|
-
|l|l|.
|
42323
|
-
_
|
42324
|
-
T{
|
42325
|
-
Value
|
42326
|
-
T} T{
|
42327
|
-
説明
|
42328
|
-
T}
|
42329
|
-
_
|
42330
|
-
T{
|
42331
|
-
\fBno\fP
|
42332
|
-
T} T{
|
42333
|
-
このクエリーの出力をキャッシュしない。
|
42334
|
-
T}
|
42335
|
-
_
|
42336
|
-
T{
|
42337
|
-
\fByes\fP
|
42338
|
-
T} T{
|
42339
|
-
このクエリーの出力をキャッシュする。デフォルト値。
|
42340
|
-
T}
|
42341
|
-
_
|
42342
|
-
.TE
|
42343
|
-
.sp
|
42344
|
-
TODO: Add examples
|
42345
|
-
.sp
|
42346
|
-
デフォルト値は \fByes\fP です。
|
42347
|
-
.SS 戻り値
|
42348
|
-
.sp
|
42349
|
-
TODO
|
42350
|
-
.INDENT 0.0
|
42351
|
-
.INDENT 3.5
|
42352
|
-
.sp
|
42353
|
-
.nf
|
42354
|
-
.ft C
|
42355
|
-
[HEADER, LOGICAL_FILTERED]
|
42356
|
-
.ft P
|
42357
|
-
.fi
|
42358
|
-
.UNINDENT
|
42359
|
-
.UNINDENT
|
42360
|
-
.SS \fBlogical_select\fP
|
42361
|
-
.SS 概要
|
42362
|
-
.sp
|
42363
|
-
\fB注釈:\fP
|
42364
|
-
.INDENT 0.0
|
42365
|
-
.INDENT 3.5
|
42366
|
-
このコマンドは実験的な機能です。
|
42367
|
-
.UNINDENT
|
42368
|
-
.UNINDENT
|
42369
|
-
.sp
|
42370
|
-
バージョン 5.0.5 で追加.
|
42371
|
-
|
42372
|
-
.sp
|
42373
|
-
\fBlogical_select\fP は \fBselect\fP のシャーディングバージョンです。 \fBlogical_select\fP は複数のテーブルからレコードを検索し、マッチしたレコードを出力します。
|
42374
|
-
.sp
|
42375
|
-
\fBlogical_select\fP は \fBsharding\fP プラグインに含まれているので、 \fBsharding\fP プラグインを \fBplugin_register\fP する必要があります。
|
42376
|
-
.SS 構文
|
42377
|
-
.sp
|
42378
|
-
このコマンドにはたくさんの引数があります。
|
42379
|
-
.sp
|
42380
|
-
必須の引数は \fBlogical_table\fP と \fBshard_key\fP です。それ以外の引数は省略可能です:
|
42381
|
-
.INDENT 0.0
|
42382
|
-
.INDENT 3.5
|
42383
|
-
.sp
|
42384
|
-
.nf
|
42385
|
-
.ft C
|
42386
|
-
logical_select logical_table
|
42387
|
-
shard_key
|
42388
|
-
[min=null]
|
42389
|
-
[min_border="include"]
|
42390
|
-
[max=null]
|
42391
|
-
[max_border="include"]
|
42392
|
-
[filter=null]
|
42393
|
-
[sortby=null]
|
42394
|
-
[output_columns="_id, _key, *"]
|
42395
|
-
[offset=0]
|
42396
|
-
[limit=10]
|
42397
|
-
[drilldown=null]
|
42398
|
-
[drilldown_sortby=null]
|
42399
|
-
[drilldown_output_columns="_key, _nsubrecs"]
|
42400
|
-
[drilldown_offset=0]
|
42401
|
-
[drilldown_limit=10]
|
42402
|
-
[drilldown_calc_types=NONE]
|
42403
|
-
[drilldown_calc_target=null]
|
42404
|
-
.ft P
|
42405
|
-
.fi
|
42406
|
-
.UNINDENT
|
42407
|
-
.UNINDENT
|
42408
|
-
.sp
|
42409
|
-
\fBlogical_select\fP には高度なドリルダウン機能のために以下の名前付き引数があります。
|
42410
|
-
.INDENT 0.0
|
42411
|
-
.INDENT 3.5
|
42412
|
-
.INDENT 0.0
|
42413
|
-
.IP \(bu 2
|
42414
|
-
\fBdrilldown[${LABEL}].keys=null\fP
|
42415
|
-
.IP \(bu 2
|
42416
|
-
\fBdrilldown[${LABEL}].sortby=null\fP
|
42417
|
-
.IP \(bu 2
|
42418
|
-
\fBdrilldown[${LABEL}].output_columns="_key, _nsubrecs"\fP
|
42419
|
-
.IP \(bu 2
|
42420
|
-
\fBdrilldown[${LABEL}].offset=0\fP
|
42421
|
-
.IP \(bu 2
|
42422
|
-
\fBdrilldown[${LABEL}].limit=10\fP
|
42423
|
-
.IP \(bu 2
|
42424
|
-
\fBdrilldown[${LABEL}].calc_types=NONE\fP
|
42425
|
-
.IP \(bu 2
|
42426
|
-
\fBdrilldown[${LABEL}].calc_target=null\fP
|
42427
|
-
.UNINDENT
|
42428
|
-
.UNINDENT
|
42429
|
-
.UNINDENT
|
42430
|
-
.sp
|
42431
|
-
\fB${LABEL}\fP には1つ以上のアルファベット、数字、 \fB_\fP 、 \fB\&.\fP を使うことができます。たとえば、 \fBparent.sub1\fP は有効な \fB${LABEL}\fP です。
|
42432
|
-
.sp
|
42433
|
-
同じ \fB${LABEL}\fP も持つ引数は同じグループになります。
|
42434
|
-
.sp
|
42435
|
-
たとえば、以下の引数は1つのドリルダウンを指定しています。
|
42436
|
-
.INDENT 0.0
|
42437
|
-
.INDENT 3.5
|
42438
|
-
.INDENT 0.0
|
42439
|
-
.IP \(bu 2
|
42440
|
-
\fB\-\-drilldown[label].keys column\fP
|
42441
|
-
.IP \(bu 2
|
42442
|
-
\fB\-\-drilldown[label].sortby \-_nsubrecs\fP
|
42443
|
-
.UNINDENT
|
42444
|
-
.UNINDENT
|
42445
|
-
.UNINDENT
|
42446
|
-
.sp
|
42447
|
-
以下の引数は2つのドリルダウンを指定しています。
|
42448
|
-
.INDENT 0.0
|
42449
|
-
.INDENT 3.5
|
42450
|
-
.INDENT 0.0
|
42451
|
-
.IP \(bu 2
|
42452
|
-
\fB\-\-drilldown[label1].keys column1\fP
|
42453
|
-
.IP \(bu 2
|
42454
|
-
\fB\-\-drilldown[label1].sortby \-_nsubrecs\fP
|
42455
|
-
.IP \(bu 2
|
42456
|
-
\fB\-\-drilldown[label2].keys column2\fP
|
42457
|
-
.IP \(bu 2
|
42458
|
-
\fB\-\-drilldown[label2].sortby _key\fP
|
42459
|
-
.UNINDENT
|
42460
|
-
.UNINDENT
|
42461
|
-
.UNINDENT
|
42462
|
-
.SS \fBselect\fP との違い
|
42463
|
-
.sp
|
42464
|
-
\fBlogical_select\fP の多くの機能は \fBselect\fP の機能と対応しています。たとえば、引数名は同じですし、出力フォーマットも同じです。
|
42465
|
-
.sp
|
42466
|
-
しかし、いくつか \fBselect\fP と違うところもあります。
|
42467
|
-
.INDENT 0.0
|
42468
|
-
.INDENT 3.5
|
42469
|
-
.INDENT 0.0
|
42470
|
-
.IP \(bu 2
|
42471
|
-
\fBtable\fP 引数ではなく、 \fBlogical_table\fP と \fBshard_key\fP 引数が必須です。
|
42472
|
-
.IP \(bu 2
|
42473
|
-
複数のシャードを使った場合の \fBsortby\fP はサポートしていません。(1つのシャードのみを使った場合はサポートしています。)
|
42474
|
-
.IP \(bu 2
|
42475
|
-
複数のシャードを使った場合、 \fBdrilldown[${LABEL}].sortby\fP の中で \fB_value.${KEY_NAME}\fP を使えません。1つのシャードのみを使った場合は使えます。
|
42476
|
-
.IP \(bu 2
|
42477
|
-
\fBmatch_columns\fP と \fBquery\fP はまだサポートしていません。
|
42478
|
-
.IP \(bu 2
|
42479
|
-
\fBcache\fP はまだサポートしていません。
|
42480
|
-
.IP \(bu 2
|
42481
|
-
\fBmatch_escalation_threshold\fP はまだサポートしていません。
|
42482
|
-
.IP \(bu 2
|
42483
|
-
\fBquery_flags\fP はまだサポートしていません。
|
42484
|
-
.IP \(bu 2
|
42485
|
-
\fBquery_expander\fP はまだサポートしていません。
|
42486
|
-
.IP \(bu 2
|
42487
|
-
\fBadjuster\fP はまだサポートしていません。
|
42488
|
-
.UNINDENT
|
42489
|
-
.UNINDENT
|
42490
|
-
.UNINDENT
|
42491
|
-
.SS 使い方
|
42492
|
-
.sp
|
42493
|
-
例を使いながら \fBlogical_select\fP の使い方を学びましょう。このセクションではよく使われる使い方を紹介します。
|
42494
|
-
.sp
|
42495
|
-
\fBlogical_select\fP は \fBsharding\fP プラグインに含まれているので \fBsharding\fP プラグインを登録する必要があります。
|
42496
|
-
.sp
|
42497
|
-
実行例:
|
42498
|
-
.INDENT 0.0
|
42499
|
-
.INDENT 3.5
|
42500
|
-
.sp
|
42501
|
-
.nf
|
42502
|
-
.ft C
|
42503
|
-
plugin_register sharding
|
42504
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42505
|
-
.ft P
|
42506
|
-
.fi
|
42507
|
-
.UNINDENT
|
42508
|
-
.UNINDENT
|
42509
|
-
.sp
|
42510
|
-
使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。
|
42511
|
-
.sp
|
42512
|
-
実行例:
|
42513
|
-
.INDENT 0.0
|
42514
|
-
.INDENT 3.5
|
42515
|
-
.sp
|
42516
|
-
.nf
|
42517
|
-
.ft C
|
42518
|
-
table_create Entries_20150708 TABLE_HASH_KEY ShortText
|
42519
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42520
|
-
column_create Entries_20150708 created_at COLUMN_SCALAR Time
|
42521
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42522
|
-
column_create Entries_20150708 content COLUMN_SCALAR Text
|
42523
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42524
|
-
column_create Entries_20150708 n_likes COLUMN_SCALAR UInt32
|
42525
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42526
|
-
column_create Entries_20150708 tag COLUMN_SCALAR ShortText
|
42527
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42528
|
-
table_create Entries_20150709 TABLE_HASH_KEY ShortText
|
42529
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42530
|
-
column_create Entries_20150709 created_at COLUMN_SCALAR Time
|
42531
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42532
|
-
column_create Entries_20150709 content COLUMN_SCALAR Text
|
42533
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42534
|
-
column_create Entries_20150709 n_likes COLUMN_SCALAR UInt32
|
42535
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42536
|
-
column_create Entries_20150709 tag COLUMN_SCALAR ShortText
|
42537
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42538
|
-
table_create Terms TABLE_PAT_KEY ShortText \e
|
42539
|
-
\-\-default_tokenizer TokenBigram \e
|
42540
|
-
\-\-normalizer NormalizerAuto
|
42541
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42542
|
-
column_create Terms entries_key_index_20150708 \e
|
42543
|
-
COLUMN_INDEX|WITH_POSITION Entries_20150708 _key
|
42544
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42545
|
-
column_create Terms entries_content_index_20150708 \e
|
42546
|
-
COLUMN_INDEX|WITH_POSITION Entries_20150708 content
|
42547
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42548
|
-
column_create Terms entries_key_index_20150709 \e
|
42549
|
-
COLUMN_INDEX|WITH_POSITION Entries_20150709 _key
|
42550
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42551
|
-
column_create Terms entries_content_index_20150709 \e
|
42552
|
-
COLUMN_INDEX|WITH_POSITION Entries_20150709 content
|
42553
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
42554
|
-
load \-\-table Entries_20150708
|
42555
|
-
[
|
42556
|
-
{"_key": "The first post!",
|
42557
|
-
"created_at": "2015/07/08 00:00:00",
|
42558
|
-
"content": "Welcome! This is my first post!",
|
42559
|
-
"n_likes": 5,
|
42560
|
-
"tag": "Hello"},
|
42561
|
-
{"_key": "Groonga",
|
42562
|
-
"created_at": "2015/07/08 01:00:00",
|
42563
|
-
"content": "I started to use Groonga. It\(aqs very fast!",
|
42564
|
-
"n_likes": 10,
|
42565
|
-
"tag": "Groonga"},
|
42566
|
-
{"_key": "Mroonga",
|
42567
|
-
"created_at": "2015/07/08 02:00:00",
|
42568
|
-
"content": "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
42569
|
-
"n_likes": 15,
|
42570
|
-
"tag": "Groonga"}
|
42571
|
-
]
|
42572
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
42573
|
-
load \-\-table Entries_20150709
|
42574
|
-
[
|
42575
|
-
{"_key": "Good\-bye Senna",
|
42576
|
-
"created_at": "2015/07/09 00:00:00",
|
42577
|
-
"content": "I migrated all Senna system!",
|
42578
|
-
"n_likes": 3,
|
42579
|
-
"tag": "Senna"},
|
42580
|
-
{"_key": "Good\-bye Tritonn",
|
42581
|
-
"created_at": "2015/07/09 01:00:00",
|
42582
|
-
"content": "I also migrated all Tritonn system!",
|
42583
|
-
"n_likes": 3,
|
42584
|
-
"tag": "Senna"}
|
42585
|
-
]
|
42586
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
42587
|
-
.ft P
|
42588
|
-
.fi
|
42589
|
-
.UNINDENT
|
42590
|
-
.UNINDENT
|
42591
|
-
.sp
|
42592
|
-
ブログエントリー用に \fBEntries_20150708\fP と \fBEntries_20150709\fP の2つのテーブルがあります。
|
42593
|
-
.sp
|
42594
|
-
\fB注釈:\fP
|
42595
|
-
.INDENT 0.0
|
42596
|
-
.INDENT 3.5
|
42597
|
-
テーブル名には \fB${論理テーブル名}_${YYYYMMDD}\fP という命名規則を使う必要があります。この例では、 \fB論理テーブル名\fP は \fBEntries\fP で \fBYYYYMMDD\fP は \fB20150708\fP または \fB20150709\fP です。
|
42598
|
-
.UNINDENT
|
42599
|
-
.UNINDENT
|
42600
|
-
.sp
|
42601
|
-
各エントリはタイトルと作成日時と内容と「いいね!」数、タグを持っています。タイトルは \fBEntries_YYYYMMDD\fP のキーとします。作成日時は \fBEntries_YYYYMMDD.created_at\fP カラムの値とします。内容は \fBEntries_YYYYMMDD.content\fP カラムの値とします。「いいね!」数は \fBEntries_YYYYMMDD.n_likes\fP カラムの値とします。タグは \fBEntries_YYYYMMDD.tag\fP カラムの値とします。
|
42602
|
-
.sp
|
42603
|
-
\fBEntries_YYYYMMDD._key\fP カラムと \fBEntries_YYYYMMDD.content\fP カラムには \fBTokenBigram\fP トークナイザーを使ったインデックスを作成します。そのため、 \fBEntries_YYYYMMDD._key\fP と \fBEntries_YYYYMMDD.content\fP は両方とも全文検索できます。
|
42604
|
-
.sp
|
42605
|
-
これで例を示すためのスキーマとデータの準備ができました。
|
42606
|
-
.SS 簡単な使い方
|
42607
|
-
.sp
|
42608
|
-
TODO
|
42609
|
-
.SS 引数
|
42610
|
-
.sp
|
42611
|
-
このセクションでは \fBlogical_select\fP の引数について説明します。
|
42612
|
-
.SS 必須引数
|
42613
|
-
.sp
|
42614
|
-
必須引数は二つあります。 \fBlogical_table\fP と \fBshard_key\fP です。
|
42615
|
-
.SS \fBlogical_table\fP
|
42616
|
-
.sp
|
42617
|
-
論理テーブル名を指定します。これは \fB_YYYYMMDD\fP をテーブル名からのぞいたものです。実際のテーブルが \fBEntries_20150708\fP や \fBEntries_20150709\fP といったものなら、論理テーブル名は \fBEntries\fP です。
|
42618
|
-
.sp
|
42619
|
-
\fBlogical_table\fP と \fBshard_key\fP 引数を指定すると10レコード表示できます。これらの引数は必須の引数です。
|
42620
|
-
.sp
|
42621
|
-
実行例:
|
42622
|
-
.INDENT 0.0
|
42623
|
-
.INDENT 3.5
|
42624
|
-
.sp
|
42625
|
-
.nf
|
42626
|
-
.ft C
|
42627
|
-
logical_select \-\-logical_table Entries \-\-shard_key created_at
|
42628
|
-
# [
|
42629
|
-
# [
|
42630
|
-
# 0,
|
42631
|
-
# 1337566253.89858,
|
42632
|
-
# 0.000355720520019531
|
42633
|
-
# ],
|
42634
|
-
# [
|
42635
|
-
# [
|
42636
|
-
# [
|
42637
|
-
# 5
|
42638
|
-
# ],
|
42639
|
-
# [
|
42640
|
-
# [
|
42641
|
-
# "_id",
|
42642
|
-
# "UInt32"
|
42643
|
-
# ],
|
42644
|
-
# [
|
42645
|
-
# "_key",
|
42646
|
-
# "ShortText"
|
42647
|
-
# ],
|
42648
|
-
# [
|
42649
|
-
# "content",
|
42650
|
-
# "Text"
|
42651
|
-
# ],
|
42652
|
-
# [
|
42653
|
-
# "created_at",
|
42654
|
-
# "Time"
|
42655
|
-
# ],
|
42656
|
-
# [
|
42657
|
-
# "n_likes",
|
42658
|
-
# "UInt32"
|
42659
|
-
# ],
|
42660
|
-
# [
|
42661
|
-
# "tag",
|
42662
|
-
# "ShortText"
|
42663
|
-
# ]
|
42664
|
-
# ],
|
42665
|
-
# [
|
42666
|
-
# 1,
|
42667
|
-
# "The first post!",
|
42668
|
-
# "Welcome! This is my first post!",
|
42669
|
-
# 1436281200.0,
|
42670
|
-
# 5,
|
42671
|
-
# "Hello"
|
42672
|
-
# ],
|
42673
|
-
# [
|
42674
|
-
# 2,
|
42675
|
-
# "Groonga",
|
42676
|
-
# "I started to use Groonga. It\(aqs very fast!",
|
42677
|
-
# 1436284800.0,
|
42678
|
-
# 10,
|
42679
|
-
# "Groonga"
|
42680
|
-
# ],
|
42681
|
-
# [
|
42682
|
-
# 3,
|
42683
|
-
# "Mroonga",
|
42684
|
-
# "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
42685
|
-
# 1436288400.0,
|
42686
|
-
# 15,
|
42687
|
-
# "Groonga"
|
42688
|
-
# ],
|
42689
|
-
# [
|
42690
|
-
# 1,
|
42691
|
-
# "Good\-bye Senna",
|
42692
|
-
# "I migrated all Senna system!",
|
42693
|
-
# 1436367600.0,
|
42694
|
-
# 3,
|
42695
|
-
# "Senna"
|
42696
|
-
# ],
|
42697
|
-
# [
|
42698
|
-
# 2,
|
42699
|
-
# "Good\-bye Tritonn",
|
42700
|
-
# "I also migrated all Tritonn system!",
|
42701
|
-
# 1436371200.0,
|
42702
|
-
# 3,
|
42703
|
-
# "Senna"
|
42704
|
-
# ]
|
42705
|
-
# ]
|
42706
|
-
# ]
|
42707
|
-
# ]
|
42708
|
-
.ft P
|
42709
|
-
.fi
|
42710
|
-
.UNINDENT
|
42711
|
-
.UNINDENT
|
42712
|
-
.sp
|
42713
|
-
存在しないテーブルを指定するとエラーが返ります。
|
42714
|
-
.sp
|
42715
|
-
実行例:
|
42716
|
-
.INDENT 0.0
|
42717
|
-
.INDENT 3.5
|
42718
|
-
.sp
|
42719
|
-
.nf
|
42720
|
-
.ft C
|
42721
|
-
logical_select \-\-logical_table Nonexistent \-\-shard_key created_at
|
42722
|
-
# [
|
42723
|
-
# [
|
42724
|
-
# \-22,
|
42725
|
-
# 1337566253.89858,
|
42726
|
-
# 0.000355720520019531,
|
42727
|
-
# "[logical_select] no shard exists: logical_table: <Nonexistent>: shard_key: <created_at>",
|
42728
|
-
# [
|
42729
|
-
# [
|
42730
|
-
# "Groonga::Context.set_groonga_error",
|
42731
|
-
# "lib/mrb/scripts/context.rb",
|
42732
|
-
# 27
|
42733
|
-
# ]
|
42734
|
-
# ]
|
42735
|
-
# ]
|
42736
|
-
# ]
|
42737
|
-
.ft P
|
42738
|
-
.fi
|
42739
|
-
.UNINDENT
|
42740
|
-
.UNINDENT
|
42741
|
-
.SS \fBshard_key\fP
|
42742
|
-
.sp
|
42743
|
-
シャードキーとして使うカラム名を指定します。シャードキーは適切なシャードへレコードを分配するために使う値を保存しているカラムです。
|
42744
|
-
.sp
|
42745
|
-
今のところ、シャードキーは \fBTime\fP 型でなければいけません。
|
42746
|
-
.sp
|
42747
|
-
\fBshard_key\fP の指定方法は \fI\%logical_table\fP を見てください。
|
42748
|
-
.SS 省略可能引数
|
42749
|
-
.sp
|
42750
|
-
いくつか省略可能な引数があります。
|
42751
|
-
.SS \fBmin\fP
|
42752
|
-
.sp
|
42753
|
-
\fBshard_key\fP カラムの最小値を指定します。シャードにマッチするレコードがない場合は、そのシャードは検索対象外になります。
|
42754
|
-
.sp
|
42755
|
-
たとえば、 \fBmin\fP が \fB"2015/07/09 00:00:00"\fP なら、 \fBEntry_20150708\fP は検索対象外です。なぜなら、 \fBEntry_20150708\fP は \fB"2015/07/08"\fP のレコードしかないからです。
|
42756
|
-
.sp
|
42757
|
-
以下の例は \fBEntry_20150709\fP テーブルだけを使う例です。 \fBEntry_20150708\fP は使われません。
|
42758
|
-
.sp
|
42759
|
-
実行例:
|
42760
|
-
.INDENT 0.0
|
42761
|
-
.INDENT 3.5
|
42762
|
-
.sp
|
42763
|
-
.nf
|
42764
|
-
.ft C
|
42765
|
-
logical_select \e
|
42766
|
-
\-\-logical_table Entries \e
|
42767
|
-
\-\-shard_key created_at \e
|
42768
|
-
\-\-min "2015/07/09 00:00:00"
|
42769
|
-
# [
|
42770
|
-
# [
|
42771
|
-
# 0,
|
42772
|
-
# 1337566253.89858,
|
42773
|
-
# 0.000355720520019531
|
42774
|
-
# ],
|
42775
|
-
# [
|
42776
|
-
# [
|
42777
|
-
# [
|
42778
|
-
# 2
|
42779
|
-
# ],
|
42780
|
-
# [
|
42781
|
-
# [
|
42782
|
-
# "_id",
|
42783
|
-
# "UInt32"
|
42784
|
-
# ],
|
42785
|
-
# [
|
42786
|
-
# "_key",
|
42787
|
-
# "ShortText"
|
42788
|
-
# ],
|
42789
|
-
# [
|
42790
|
-
# "content",
|
42791
|
-
# "Text"
|
42792
|
-
# ],
|
42793
|
-
# [
|
42794
|
-
# "created_at",
|
42795
|
-
# "Time"
|
42796
|
-
# ],
|
42797
|
-
# [
|
42798
|
-
# "n_likes",
|
42799
|
-
# "UInt32"
|
42800
|
-
# ],
|
42801
|
-
# [
|
42802
|
-
# "tag",
|
42803
|
-
# "ShortText"
|
42804
|
-
# ]
|
42805
|
-
# ],
|
42806
|
-
# [
|
42807
|
-
# 1,
|
42808
|
-
# "Good\-bye Senna",
|
42809
|
-
# "I migrated all Senna system!",
|
42810
|
-
# 1436367600.0,
|
42811
|
-
# 3,
|
42812
|
-
# "Senna"
|
42813
|
-
# ],
|
42814
|
-
# [
|
42815
|
-
# 2,
|
42816
|
-
# "Good\-bye Tritonn",
|
42817
|
-
# "I also migrated all Tritonn system!",
|
42818
|
-
# 1436371200.0,
|
42819
|
-
# 3,
|
42820
|
-
# "Senna"
|
42821
|
-
# ]
|
42822
|
-
# ]
|
42823
|
-
# ]
|
42824
|
-
# ]
|
42825
|
-
.ft P
|
42826
|
-
.fi
|
42827
|
-
.UNINDENT
|
42828
|
-
.UNINDENT
|
42829
|
-
.SS \fBmin_border\fP
|
42830
|
-
.sp
|
42831
|
-
最小値を含めるかどうかを指定します。指定可能な値は次の通りです。
|
42832
|
-
.TS
|
42833
|
-
center;
|
42834
|
-
|l|l|.
|
42835
|
-
_
|
42836
|
-
T{
|
42837
|
-
Value
|
42838
|
-
T} T{
|
42839
|
-
説明
|
42840
|
-
T}
|
42841
|
-
_
|
42842
|
-
T{
|
42843
|
-
\fBinclude\fP
|
42844
|
-
T} T{
|
42845
|
-
\fBmin\fP の値を含みます。これがデフォルト値です。
|
42846
|
-
T}
|
42847
|
-
_
|
42848
|
-
T{
|
42849
|
-
\fBexclude\fP
|
42850
|
-
T} T{
|
42851
|
-
\fBmin\fP の値を含みません。
|
42852
|
-
T}
|
42853
|
-
_
|
42854
|
-
.TE
|
42855
|
-
.sp
|
42856
|
-
次の例は \fBexclude\fP の使用例です。結果には \fB"Good\-bye Senna"\fP レコードは含まれません。このレコードの \fBcreated_at\fP の値が \fB"2015/07/09 00:00:00"\fP だからです。
|
42857
|
-
.sp
|
42858
|
-
実行例:
|
42859
|
-
.INDENT 0.0
|
42860
|
-
.INDENT 3.5
|
42861
|
-
.sp
|
42862
|
-
.nf
|
42863
|
-
.ft C
|
42864
|
-
logical_select \e
|
42865
|
-
\-\-logical_table Entries \e
|
42866
|
-
\-\-shard_key created_at \e
|
42867
|
-
\-\-min "2015/07/09 00:00:00" \e
|
42868
|
-
\-\-min_border "exclude"
|
42869
|
-
# [
|
42870
|
-
# [
|
42871
|
-
# 0,
|
42872
|
-
# 1337566253.89858,
|
42873
|
-
# 0.000355720520019531
|
42874
|
-
# ],
|
42875
|
-
# [
|
42876
|
-
# [
|
42877
|
-
# [
|
42878
|
-
# 1
|
42879
|
-
# ],
|
42880
|
-
# [
|
42881
|
-
# [
|
42882
|
-
# "_id",
|
42883
|
-
# "UInt32"
|
42884
|
-
# ],
|
42885
|
-
# [
|
42886
|
-
# "_key",
|
42887
|
-
# "ShortText"
|
42888
|
-
# ],
|
42889
|
-
# [
|
42890
|
-
# "content",
|
42891
|
-
# "Text"
|
42892
|
-
# ],
|
42893
|
-
# [
|
42894
|
-
# "created_at",
|
42895
|
-
# "Time"
|
42896
|
-
# ],
|
42897
|
-
# [
|
42898
|
-
# "n_likes",
|
42899
|
-
# "UInt32"
|
42900
|
-
# ],
|
42901
|
-
# [
|
42902
|
-
# "tag",
|
42903
|
-
# "ShortText"
|
42904
|
-
# ]
|
42905
|
-
# ],
|
42906
|
-
# [
|
42907
|
-
# 2,
|
42908
|
-
# "Good\-bye Tritonn",
|
42909
|
-
# "I also migrated all Tritonn system!",
|
42910
|
-
# 1436371200.0,
|
42911
|
-
# 3,
|
42912
|
-
# "Senna"
|
42913
|
-
# ]
|
42914
|
-
# ]
|
42915
|
-
# ]
|
42916
|
-
# ]
|
42917
|
-
.ft P
|
42918
|
-
.fi
|
42919
|
-
.UNINDENT
|
42920
|
-
.UNINDENT
|
42921
|
-
.SS \fBmax\fP
|
42922
|
-
.sp
|
42923
|
-
\fBshard_key\fP カラムの最大値を指定します。シャードにマッチするレコードがない場合、そのシャードは検索対象外になります。
|
42924
|
-
.sp
|
42925
|
-
たとえば、 \fBmax\fP が \fB"2015/07/08 23:59:59"\fP なら \fBEntry_20150709\fP は検索対象外です。なぜなら \fBEntry_20150709\fP には \fB""2015/07/09"\fP のレコードしかないからです。
|
42926
|
-
.sp
|
42927
|
-
以下の例は \fBEntry_20150708\fP テーブルだけを使います。 \fBEntry_20150709\fP は使いません。
|
42928
|
-
.sp
|
42929
|
-
実行例:
|
42930
|
-
.INDENT 0.0
|
42931
|
-
.INDENT 3.5
|
42932
|
-
.sp
|
42933
|
-
.nf
|
42934
|
-
.ft C
|
42935
|
-
logical_select \e
|
42936
|
-
\-\-logical_table Entries \e
|
42937
|
-
\-\-shard_key created_at \e
|
42938
|
-
\-\-max "2015/07/08 23:59:59"
|
42939
|
-
# [
|
42940
|
-
# [
|
42941
|
-
# 0,
|
42942
|
-
# 1337566253.89858,
|
42943
|
-
# 0.000355720520019531
|
42944
|
-
# ],
|
42945
|
-
# [
|
42946
|
-
# [
|
42947
|
-
# [
|
42948
|
-
# 3
|
42949
|
-
# ],
|
42950
|
-
# [
|
42951
|
-
# [
|
42952
|
-
# "_id",
|
42953
|
-
# "UInt32"
|
42954
|
-
# ],
|
42955
|
-
# [
|
42956
|
-
# "_key",
|
42957
|
-
# "ShortText"
|
42958
|
-
# ],
|
42959
|
-
# [
|
42960
|
-
# "content",
|
42961
|
-
# "Text"
|
42962
|
-
# ],
|
42963
|
-
# [
|
42964
|
-
# "created_at",
|
42965
|
-
# "Time"
|
42966
|
-
# ],
|
42967
|
-
# [
|
42968
|
-
# "n_likes",
|
42969
|
-
# "UInt32"
|
42970
|
-
# ],
|
42971
|
-
# [
|
42972
|
-
# "tag",
|
42973
|
-
# "ShortText"
|
42974
|
-
# ]
|
42975
|
-
# ],
|
42976
|
-
# [
|
42977
|
-
# 1,
|
42978
|
-
# "The first post!",
|
42979
|
-
# "Welcome! This is my first post!",
|
42980
|
-
# 1436281200.0,
|
42981
|
-
# 5,
|
42982
|
-
# "Hello"
|
42983
|
-
# ],
|
42984
|
-
# [
|
42985
|
-
# 2,
|
42986
|
-
# "Groonga",
|
42987
|
-
# "I started to use Groonga. It\(aqs very fast!",
|
42988
|
-
# 1436284800.0,
|
42989
|
-
# 10,
|
42990
|
-
# "Groonga"
|
42991
|
-
# ],
|
42992
|
-
# [
|
42993
|
-
# 3,
|
42994
|
-
# "Mroonga",
|
42995
|
-
# "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
42996
|
-
# 1436288400.0,
|
42997
|
-
# 15,
|
42998
|
-
# "Groonga"
|
42999
|
-
# ]
|
43000
|
-
# ]
|
43001
|
-
# ]
|
43002
|
-
# ]
|
43003
|
-
.ft P
|
43004
|
-
.fi
|
43005
|
-
.UNINDENT
|
43006
|
-
.UNINDENT
|
43007
|
-
.SS \fBmax_border\fP
|
43008
|
-
.sp
|
43009
|
-
最大値を含めるかどうかを指定します。指定可能な値は次の通りです。
|
43010
|
-
.TS
|
43011
|
-
center;
|
43012
|
-
|l|l|.
|
43013
|
-
_
|
43014
|
-
T{
|
43015
|
-
Value
|
43016
|
-
T} T{
|
43017
|
-
説明
|
43018
|
-
T}
|
43019
|
-
_
|
43020
|
-
T{
|
43021
|
-
\fBinclude\fP
|
43022
|
-
T} T{
|
43023
|
-
\fBmax\fP の値を含みます。これがデフォルト値です。
|
43024
|
-
T}
|
43025
|
-
_
|
43026
|
-
T{
|
43027
|
-
\fBexclude\fP
|
43028
|
-
T} T{
|
43029
|
-
\fBmax\fP の値を含みません。
|
43030
|
-
T}
|
43031
|
-
_
|
43032
|
-
.TE
|
43033
|
-
.sp
|
43034
|
-
次の例は \fBexclude\fP の使用例です。結果には \fB"Good\-bye Senna"\fP レコードは含まれません。このレコードの \fBcreated_at\fP の値が \fB"2015/07/09 00:00:00"\fP だからです。
|
43035
|
-
.sp
|
43036
|
-
実行例:
|
43037
|
-
.INDENT 0.0
|
43038
|
-
.INDENT 3.5
|
43039
|
-
.sp
|
43040
|
-
.nf
|
43041
|
-
.ft C
|
43042
|
-
logical_select \e
|
43043
|
-
\-\-logical_table Entries \e
|
43044
|
-
\-\-shard_key created_at \e
|
43045
|
-
\-\-max "2015/07/09 00:00:00" \e
|
43046
|
-
\-\-max_border "exclude"
|
43047
|
-
# [
|
43048
|
-
# [
|
43049
|
-
# 0,
|
43050
|
-
# 1337566253.89858,
|
43051
|
-
# 0.000355720520019531
|
43052
|
-
# ],
|
43053
|
-
# [
|
43054
|
-
# [
|
43055
|
-
# [
|
43056
|
-
# 3
|
43057
|
-
# ],
|
43058
|
-
# [
|
43059
|
-
# [
|
43060
|
-
# "_id",
|
43061
|
-
# "UInt32"
|
43062
|
-
# ],
|
43063
|
-
# [
|
43064
|
-
# "_key",
|
43065
|
-
# "ShortText"
|
43066
|
-
# ],
|
43067
|
-
# [
|
43068
|
-
# "content",
|
43069
|
-
# "Text"
|
43070
|
-
# ],
|
43071
|
-
# [
|
43072
|
-
# "created_at",
|
43073
|
-
# "Time"
|
43074
|
-
# ],
|
43075
|
-
# [
|
43076
|
-
# "n_likes",
|
43077
|
-
# "UInt32"
|
43078
|
-
# ],
|
43079
|
-
# [
|
43080
|
-
# "tag",
|
43081
|
-
# "ShortText"
|
43082
|
-
# ]
|
43083
|
-
# ],
|
43084
|
-
# [
|
43085
|
-
# 1,
|
43086
|
-
# "The first post!",
|
43087
|
-
# "Welcome! This is my first post!",
|
43088
|
-
# 1436281200.0,
|
43089
|
-
# 5,
|
43090
|
-
# "Hello"
|
43091
|
-
# ],
|
43092
|
-
# [
|
43093
|
-
# 2,
|
43094
|
-
# "Groonga",
|
43095
|
-
# "I started to use Groonga. It\(aqs very fast!",
|
43096
|
-
# 1436284800.0,
|
43097
|
-
# 10,
|
43098
|
-
# "Groonga"
|
43099
|
-
# ],
|
43100
|
-
# [
|
43101
|
-
# 3,
|
43102
|
-
# "Mroonga",
|
43103
|
-
# "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
43104
|
-
# 1436288400.0,
|
43105
|
-
# 15,
|
43106
|
-
# "Groonga"
|
43107
|
-
# ]
|
43108
|
-
# ]
|
43109
|
-
# ]
|
43110
|
-
# ]
|
43111
|
-
.ft P
|
43112
|
-
.fi
|
43113
|
-
.UNINDENT
|
43114
|
-
.UNINDENT
|
43115
|
-
.SS 検索関係の引数
|
43116
|
-
.sp
|
43117
|
-
\fBlogical_select\fP は \fBselect\fP 互換の検索関連パラメーターをサポートしています。
|
43118
|
-
.sp
|
43119
|
-
\fBmatch_columns\fP と \fBquery\fP はまだサポートしていません。今のところ、 \fBfilter\fP だけサポートしています。
|
43120
|
-
.SS \fBmatch_columns\fP
|
43121
|
-
.sp
|
43122
|
-
未実装です。
|
43123
|
-
.SS \fBquery\fP
|
43124
|
-
.sp
|
43125
|
-
未実装です。
|
43126
|
-
.SS \fBfilter\fP
|
43127
|
-
.sp
|
43128
|
-
\fBselect\fP の select\-filter に対応しています。詳細は select\-filter を見てください。
|
43129
|
-
.sp
|
43130
|
-
以下は例です。
|
43131
|
-
.sp
|
43132
|
-
実行例:
|
43133
|
-
.INDENT 0.0
|
43134
|
-
.INDENT 3.5
|
43135
|
-
.sp
|
43136
|
-
.nf
|
43137
|
-
.ft C
|
43138
|
-
logical_select \e
|
43139
|
-
\-\-logical_table Entries \e
|
43140
|
-
\-\-shard_key created_at \e
|
43141
|
-
\-\-filter "n_likes <= 5"
|
43142
|
-
# [
|
43143
|
-
# [
|
43144
|
-
# 0,
|
43145
|
-
# 1337566253.89858,
|
43146
|
-
# 0.000355720520019531
|
43147
|
-
# ],
|
43148
|
-
# [
|
43149
|
-
# [
|
43150
|
-
# [
|
43151
|
-
# 3
|
43152
|
-
# ],
|
43153
|
-
# [
|
43154
|
-
# [
|
43155
|
-
# "_id",
|
43156
|
-
# "UInt32"
|
43157
|
-
# ],
|
43158
|
-
# [
|
43159
|
-
# "_key",
|
43160
|
-
# "ShortText"
|
43161
|
-
# ],
|
43162
|
-
# [
|
43163
|
-
# "content",
|
43164
|
-
# "Text"
|
43165
|
-
# ],
|
43166
|
-
# [
|
43167
|
-
# "created_at",
|
43168
|
-
# "Time"
|
43169
|
-
# ],
|
43170
|
-
# [
|
43171
|
-
# "n_likes",
|
43172
|
-
# "UInt32"
|
43173
|
-
# ],
|
43174
|
-
# [
|
43175
|
-
# "tag",
|
43176
|
-
# "ShortText"
|
43177
|
-
# ]
|
43178
|
-
# ],
|
43179
|
-
# [
|
43180
|
-
# 1,
|
43181
|
-
# "The first post!",
|
43182
|
-
# "Welcome! This is my first post!",
|
43183
|
-
# 1436281200.0,
|
43184
|
-
# 5,
|
43185
|
-
# "Hello"
|
43186
|
-
# ],
|
43187
|
-
# [
|
43188
|
-
# 1,
|
43189
|
-
# "Good\-bye Senna",
|
43190
|
-
# "I migrated all Senna system!",
|
43191
|
-
# 1436367600.0,
|
43192
|
-
# 3,
|
43193
|
-
# "Senna"
|
43194
|
-
# ],
|
43195
|
-
# [
|
43196
|
-
# 2,
|
43197
|
-
# "Good\-bye Tritonn",
|
43198
|
-
# "I also migrated all Tritonn system!",
|
43199
|
-
# 1436371200.0,
|
43200
|
-
# 3,
|
43201
|
-
# "Senna"
|
43202
|
-
# ]
|
43203
|
-
# ]
|
43204
|
-
# ]
|
43205
|
-
# ]
|
43206
|
-
.ft P
|
43207
|
-
.fi
|
43208
|
-
.UNINDENT
|
43209
|
-
.UNINDENT
|
43210
|
-
.SS 高度な検索のための引数
|
43211
|
-
.sp
|
43212
|
-
\fBlogical_select\fP は高度な検索パラメーターをまだ実装していません。
|
43213
|
-
.SS \fBmatch_escalation_threshold\fP
|
43214
|
-
.sp
|
43215
|
-
未実装です。
|
43216
|
-
.SS \fBquery_flags\fP
|
43217
|
-
.sp
|
43218
|
-
未実装です。
|
43219
|
-
.SS \fBquery_expander\fP
|
43220
|
-
.sp
|
43221
|
-
未実装です。
|
43222
|
-
.SS 出力関連の引数
|
43223
|
-
.SS \fBoutput_columns\fP
|
43224
|
-
.sp
|
43225
|
-
\fBselect\fP の select\-output\-columns に対応しています。詳細は select\-output\-columns を見てください。
|
43226
|
-
.sp
|
43227
|
-
以下は例です。
|
43228
|
-
.sp
|
43229
|
-
実行例:
|
43230
|
-
.INDENT 0.0
|
43231
|
-
.INDENT 3.5
|
43232
|
-
.sp
|
43233
|
-
.nf
|
43234
|
-
.ft C
|
43235
|
-
logical_select \e
|
43236
|
-
\-\-logical_table Entries \e
|
43237
|
-
\-\-shard_key created_at \e
|
43238
|
-
\-\-output_columns \(aq_key, *\(aq
|
43239
|
-
# [
|
43240
|
-
# [
|
43241
|
-
# 0,
|
43242
|
-
# 1337566253.89858,
|
43243
|
-
# 0.000355720520019531
|
43244
|
-
# ],
|
43245
|
-
# [
|
43246
|
-
# [
|
43247
|
-
# [
|
43248
|
-
# 5
|
43249
|
-
# ],
|
43250
|
-
# [
|
43251
|
-
# [
|
43252
|
-
# "_key",
|
43253
|
-
# "ShortText"
|
43254
|
-
# ],
|
43255
|
-
# [
|
43256
|
-
# "content",
|
43257
|
-
# "Text"
|
43258
|
-
# ],
|
43259
|
-
# [
|
43260
|
-
# "created_at",
|
43261
|
-
# "Time"
|
43262
|
-
# ],
|
43263
|
-
# [
|
43264
|
-
# "n_likes",
|
43265
|
-
# "UInt32"
|
43266
|
-
# ],
|
43267
|
-
# [
|
43268
|
-
# "tag",
|
43269
|
-
# "ShortText"
|
43270
|
-
# ]
|
43271
|
-
# ],
|
43272
|
-
# [
|
43273
|
-
# "The first post!",
|
43274
|
-
# "Welcome! This is my first post!",
|
43275
|
-
# 1436281200.0,
|
43276
|
-
# 5,
|
43277
|
-
# "Hello"
|
43278
|
-
# ],
|
43279
|
-
# [
|
43280
|
-
# "Groonga",
|
43281
|
-
# "I started to use Groonga. It\(aqs very fast!",
|
43282
|
-
# 1436284800.0,
|
43283
|
-
# 10,
|
43284
|
-
# "Groonga"
|
43285
|
-
# ],
|
43286
|
-
# [
|
43287
|
-
# "Mroonga",
|
43288
|
-
# "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
43289
|
-
# 1436288400.0,
|
43290
|
-
# 15,
|
43291
|
-
# "Groonga"
|
43292
|
-
# ],
|
43293
|
-
# [
|
43294
|
-
# "Good\-bye Senna",
|
43295
|
-
# "I migrated all Senna system!",
|
43296
|
-
# 1436367600.0,
|
43297
|
-
# 3,
|
43298
|
-
# "Senna"
|
43299
|
-
# ],
|
43300
|
-
# [
|
43301
|
-
# "Good\-bye Tritonn",
|
43302
|
-
# "I also migrated all Tritonn system!",
|
43303
|
-
# 1436371200.0,
|
43304
|
-
# 3,
|
43305
|
-
# "Senna"
|
43306
|
-
# ]
|
43307
|
-
# ]
|
43308
|
-
# ]
|
43309
|
-
# ]
|
43310
|
-
.ft P
|
43311
|
-
.fi
|
43312
|
-
.UNINDENT
|
43313
|
-
.UNINDENT
|
43314
|
-
.SS \fBsortby\fP
|
43315
|
-
.sp
|
43316
|
-
\fBselect\fP の select\-sortby に対応しています。詳細は select\-sortby を見てください。
|
43317
|
-
.sp
|
43318
|
-
\fBsortby\fP には制限があります。検索対象のシャードが1つの場合のみ動作します。もし、検索対象のシャードが複数ある場合、 \fBsortby\fP は正常な動作をしません。
|
43319
|
-
.sp
|
43320
|
-
以下は1つのシャードのみを使っている例です。
|
43321
|
-
.sp
|
43322
|
-
実行例:
|
43323
|
-
.INDENT 0.0
|
43324
|
-
.INDENT 3.5
|
43325
|
-
.sp
|
43326
|
-
.nf
|
43327
|
-
.ft C
|
43328
|
-
logical_select \e
|
43329
|
-
\-\-logical_table Entries \e
|
43330
|
-
\-\-shard_key created_at \e
|
43331
|
-
\-\-min "2015/07/08 00:00:00" \e
|
43332
|
-
\-\-min_border "include" \e
|
43333
|
-
\-\-max "2015/07/09 00:00:00" \e
|
43334
|
-
\-\-max_border "exclude" \e
|
43335
|
-
\-\-sortby _key
|
43336
|
-
# [
|
43337
|
-
# [
|
43338
|
-
# 0,
|
43339
|
-
# 1337566253.89858,
|
43340
|
-
# 0.000355720520019531
|
43341
|
-
# ],
|
43342
|
-
# [
|
43343
|
-
# [
|
43344
|
-
# [
|
43345
|
-
# 3
|
43346
|
-
# ],
|
43347
|
-
# [
|
43348
|
-
# [
|
43349
|
-
# "_id",
|
43350
|
-
# "UInt32"
|
43351
|
-
# ],
|
43352
|
-
# [
|
43353
|
-
# "_key",
|
43354
|
-
# "ShortText"
|
43355
|
-
# ],
|
43356
|
-
# [
|
43357
|
-
# "content",
|
43358
|
-
# "Text"
|
43359
|
-
# ],
|
43360
|
-
# [
|
43361
|
-
# "created_at",
|
43362
|
-
# "Time"
|
43363
|
-
# ],
|
43364
|
-
# [
|
43365
|
-
# "n_likes",
|
43366
|
-
# "UInt32"
|
43367
|
-
# ],
|
43368
|
-
# [
|
43369
|
-
# "tag",
|
43370
|
-
# "ShortText"
|
43371
|
-
# ]
|
43372
|
-
# ],
|
43373
|
-
# [
|
43374
|
-
# 2,
|
43375
|
-
# "Groonga",
|
43376
|
-
# "I started to use Groonga. It\(aqs very fast!",
|
43377
|
-
# 1436284800.0,
|
43378
|
-
# 10,
|
43379
|
-
# "Groonga"
|
43380
|
-
# ],
|
43381
|
-
# [
|
43382
|
-
# 3,
|
43383
|
-
# "Mroonga",
|
43384
|
-
# "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
43385
|
-
# 1436288400.0,
|
43386
|
-
# 15,
|
43387
|
-
# "Groonga"
|
43388
|
-
# ],
|
43389
|
-
# [
|
43390
|
-
# 1,
|
43391
|
-
# "The first post!",
|
43392
|
-
# "Welcome! This is my first post!",
|
43393
|
-
# 1436281200.0,
|
43394
|
-
# 5,
|
43395
|
-
# "Hello"
|
43396
|
-
# ]
|
43397
|
-
# ]
|
43398
|
-
# ]
|
43399
|
-
# ]
|
43400
|
-
.ft P
|
43401
|
-
.fi
|
43402
|
-
.UNINDENT
|
43403
|
-
.UNINDENT
|
43404
|
-
.SS \fBoffset\fP
|
43405
|
-
.sp
|
43406
|
-
\fBselect\fP の select\-offset に対応しています。詳細は select\-offset を見てください。
|
43407
|
-
.sp
|
43408
|
-
以下は例です。
|
43409
|
-
.sp
|
43410
|
-
実行例:
|
43411
|
-
.INDENT 0.0
|
43412
|
-
.INDENT 3.5
|
43413
|
-
.sp
|
43414
|
-
.nf
|
43415
|
-
.ft C
|
43416
|
-
logical_select \e
|
43417
|
-
\-\-logical_table Entries \e
|
43418
|
-
\-\-shard_key created_at \e
|
43419
|
-
\-\-offset 2
|
43420
|
-
# [
|
43421
|
-
# [
|
43422
|
-
# 0,
|
43423
|
-
# 1337566253.89858,
|
43424
|
-
# 0.000355720520019531
|
43425
|
-
# ],
|
43426
|
-
# [
|
43427
|
-
# [
|
43428
|
-
# [
|
43429
|
-
# 5
|
43430
|
-
# ],
|
43431
|
-
# [
|
43432
|
-
# [
|
43433
|
-
# "_id",
|
43434
|
-
# "UInt32"
|
43435
|
-
# ],
|
43436
|
-
# [
|
43437
|
-
# "_key",
|
43438
|
-
# "ShortText"
|
43439
|
-
# ],
|
43440
|
-
# [
|
43441
|
-
# "content",
|
43442
|
-
# "Text"
|
43443
|
-
# ],
|
43444
|
-
# [
|
43445
|
-
# "created_at",
|
43446
|
-
# "Time"
|
43447
|
-
# ],
|
43448
|
-
# [
|
43449
|
-
# "n_likes",
|
43450
|
-
# "UInt32"
|
43451
|
-
# ],
|
43452
|
-
# [
|
43453
|
-
# "tag",
|
43454
|
-
# "ShortText"
|
43455
|
-
# ]
|
43456
|
-
# ],
|
43457
|
-
# [
|
43458
|
-
# 3,
|
43459
|
-
# "Mroonga",
|
43460
|
-
# "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
|
43461
|
-
# 1436288400.0,
|
43462
|
-
# 15,
|
43463
|
-
# "Groonga"
|
43464
|
-
# ],
|
43465
|
-
# [
|
43466
|
-
# 1,
|
43467
|
-
# "Good\-bye Senna",
|
43468
|
-
# "I migrated all Senna system!",
|
43469
|
-
# 1436367600.0,
|
43470
|
-
# 3,
|
43471
|
-
# "Senna"
|
43472
|
-
# ],
|
43473
|
-
# [
|
43474
|
-
# 2,
|
43475
|
-
# "Good\-bye Tritonn",
|
43476
|
-
# "I also migrated all Tritonn system!",
|
43477
|
-
# 1436371200.0,
|
43478
|
-
# 3,
|
43479
|
-
# "Senna"
|
43480
|
-
# ]
|
43481
|
-
# ]
|
43482
|
-
# ]
|
43483
|
-
# ]
|
43484
|
-
.ft P
|
43485
|
-
.fi
|
43486
|
-
.UNINDENT
|
43487
|
-
.UNINDENT
|
43488
|
-
.SS \fBlimit\fP
|
43489
|
-
.sp
|
43490
|
-
\fBselect\fP の select\-limit に対応しています。詳細は select\-limit を見てください。
|
43491
|
-
.sp
|
43492
|
-
以下は例です。
|
43493
|
-
.sp
|
43494
|
-
実行例:
|
43495
|
-
.INDENT 0.0
|
43496
|
-
.INDENT 3.5
|
43497
|
-
.sp
|
43498
|
-
.nf
|
43499
|
-
.ft C
|
43500
|
-
logical_select \e
|
43501
|
-
\-\-logical_table Entries \e
|
43502
|
-
\-\-shard_key created_at \e
|
43503
|
-
\-\-limit 2
|
43504
|
-
# [
|
43505
|
-
# [
|
43506
|
-
# 0,
|
43507
|
-
# 1337566253.89858,
|
43508
|
-
# 0.000355720520019531
|
43509
|
-
# ],
|
43510
|
-
# [
|
43511
|
-
# [
|
43512
|
-
# [
|
43513
|
-
# 5
|
43514
|
-
# ],
|
43515
|
-
# [
|
43516
|
-
# [
|
43517
|
-
# "_id",
|
43518
|
-
# "UInt32"
|
43519
|
-
# ],
|
43520
|
-
# [
|
43521
|
-
# "_key",
|
43522
|
-
# "ShortText"
|
43523
|
-
# ],
|
43524
|
-
# [
|
43525
|
-
# "content",
|
43526
|
-
# "Text"
|
43527
|
-
# ],
|
43528
|
-
# [
|
43529
|
-
# "created_at",
|
43530
|
-
# "Time"
|
43531
|
-
# ],
|
43532
|
-
# [
|
43533
|
-
# "n_likes",
|
43534
|
-
# "UInt32"
|
43535
|
-
# ],
|
43536
|
-
# [
|
43537
|
-
# "tag",
|
43538
|
-
# "ShortText"
|
43539
|
-
# ]
|
43540
|
-
# ],
|
43541
|
-
# [
|
43542
|
-
# 1,
|
43543
|
-
# "The first post!",
|
43544
|
-
# "Welcome! This is my first post!",
|
43545
|
-
# 1436281200.0,
|
43546
|
-
# 5,
|
43547
|
-
# "Hello"
|
43548
|
-
# ],
|
43549
|
-
# [
|
43550
|
-
# 2,
|
43551
|
-
# "Groonga",
|
43552
|
-
# "I started to use Groonga. It\(aqs very fast!",
|
43553
|
-
# 1436284800.0,
|
43554
|
-
# 10,
|
43555
|
-
# "Groonga"
|
43556
|
-
# ]
|
43557
|
-
# ]
|
43558
|
-
# ]
|
43559
|
-
# ]
|
43560
|
-
.ft P
|
43561
|
-
.fi
|
43562
|
-
.UNINDENT
|
43563
|
-
.UNINDENT
|
43564
|
-
.SS \fBscorer\fP
|
43565
|
-
.sp
|
43566
|
-
未実装です。
|
43567
|
-
.SS ドリルダウン関連の引数
|
43568
|
-
.sp
|
43569
|
-
\fBselect\fP のすべてのドリルダウン関連パラメーターをサポートしています。詳細は select\-drilldown\-related\-parameters を見てください。
|
43570
|
-
.SS \fBdrilldown\fP
|
43571
|
-
.sp
|
43572
|
-
\fBselect\fP の select\-drilldown に対応しています。詳細は select\-drilldown を見てください。
|
43573
|
-
.sp
|
43574
|
-
以下は例です。
|
43575
|
-
.sp
|
43576
|
-
実行例:
|
43577
|
-
.INDENT 0.0
|
43578
|
-
.INDENT 3.5
|
43579
|
-
.sp
|
43580
|
-
.nf
|
43581
|
-
.ft C
|
43582
|
-
logical_select \e
|
43583
|
-
\-\-logical_table Entries \e
|
43584
|
-
\-\-shard_key created_at \e
|
43585
|
-
\-\-output_columns _key,tag \e
|
43586
|
-
\-\-drilldown tag
|
43587
|
-
# [
|
43588
|
-
# [
|
43589
|
-
# 0,
|
43590
|
-
# 1337566253.89858,
|
43591
|
-
# 0.000355720520019531
|
43592
|
-
# ],
|
43593
|
-
# [
|
43594
|
-
# [
|
43595
|
-
# [
|
43596
|
-
# 5
|
43597
|
-
# ],
|
43598
|
-
# [
|
43599
|
-
# [
|
43600
|
-
# "_key",
|
43601
|
-
# "ShortText"
|
43602
|
-
# ],
|
43603
|
-
# [
|
43604
|
-
# "tag",
|
43605
|
-
# "ShortText"
|
43606
|
-
# ]
|
43607
|
-
# ],
|
43608
|
-
# [
|
43609
|
-
# "The first post!",
|
43610
|
-
# "Hello"
|
43611
|
-
# ],
|
43612
|
-
# [
|
43613
|
-
# "Groonga",
|
43614
|
-
# "Groonga"
|
43615
|
-
# ],
|
43616
|
-
# [
|
43617
|
-
# "Mroonga",
|
43618
|
-
# "Groonga"
|
43619
|
-
# ],
|
43620
|
-
# [
|
43621
|
-
# "Good\-bye Senna",
|
43622
|
-
# "Senna"
|
43623
|
-
# ],
|
43624
|
-
# [
|
43625
|
-
# "Good\-bye Tritonn",
|
43626
|
-
# "Senna"
|
43627
|
-
# ]
|
43628
|
-
# ],
|
43629
|
-
# [
|
43630
|
-
# [
|
43631
|
-
# 3
|
43632
|
-
# ],
|
43633
|
-
# [
|
43634
|
-
# [
|
43635
|
-
# "_key",
|
43636
|
-
# "ShortText"
|
43637
|
-
# ],
|
43638
|
-
# [
|
43639
|
-
# "_nsubrecs",
|
43640
|
-
# "Int32"
|
43641
|
-
# ]
|
43642
|
-
# ],
|
43643
|
-
# [
|
43644
|
-
# "Hello",
|
43645
|
-
# 1
|
43646
|
-
# ],
|
43647
|
-
# [
|
43648
|
-
# "Groonga",
|
43649
|
-
# 2
|
43650
|
-
# ],
|
43651
|
-
# [
|
43652
|
-
# "Senna",
|
43653
|
-
# 2
|
43654
|
-
# ]
|
43655
|
-
# ]
|
43656
|
-
# ]
|
43657
|
-
# ]
|
43658
|
-
.ft P
|
43659
|
-
.fi
|
43660
|
-
.UNINDENT
|
43661
|
-
.UNINDENT
|
43662
|
-
.SS \fBdrilldown_sortby\fP
|
43663
|
-
.sp
|
43664
|
-
\fBselect\fP の select\-drilldown\-sortby に対応しています。詳細は select\-drilldown\-sortby を見てください。
|
43665
|
-
.sp
|
43666
|
-
以下は例です。
|
43667
|
-
.sp
|
43668
|
-
実行例:
|
43669
|
-
.INDENT 0.0
|
43670
|
-
.INDENT 3.5
|
43671
|
-
.sp
|
43672
|
-
.nf
|
43673
|
-
.ft C
|
43674
|
-
logical_select \e
|
43675
|
-
\-\-logical_table Entries \e
|
43676
|
-
\-\-shard_key created_at \e
|
43677
|
-
\-\-limit 0 \e
|
43678
|
-
\-\-output_columns _id \e
|
43679
|
-
\-\-drilldown tag \e
|
43680
|
-
\-\-drilldown_sortby \-_nsubrecs,_key
|
43681
|
-
# [
|
43682
|
-
# [
|
43683
|
-
# 0,
|
43684
|
-
# 1337566253.89858,
|
43685
|
-
# 0.000355720520019531
|
43686
|
-
# ],
|
43687
|
-
# [
|
43688
|
-
# [
|
43689
|
-
# [
|
43690
|
-
# 5
|
43691
|
-
# ],
|
43692
|
-
# [
|
43693
|
-
# [
|
43694
|
-
# "_id",
|
43695
|
-
# "UInt32"
|
43696
|
-
# ]
|
43697
|
-
# ]
|
43698
|
-
# ],
|
43699
|
-
# [
|
43700
|
-
# [
|
43701
|
-
# 3
|
43702
|
-
# ],
|
43703
|
-
# [
|
43704
|
-
# [
|
43705
|
-
# "_key",
|
43706
|
-
# "ShortText"
|
43707
|
-
# ],
|
43708
|
-
# [
|
43709
|
-
# "_nsubrecs",
|
43710
|
-
# "Int32"
|
43711
|
-
# ]
|
43712
|
-
# ],
|
43713
|
-
# [
|
43714
|
-
# "Groonga",
|
43715
|
-
# 2
|
43716
|
-
# ],
|
43717
|
-
# [
|
43718
|
-
# "Senna",
|
43719
|
-
# 2
|
43720
|
-
# ],
|
43721
|
-
# [
|
43722
|
-
# "Hello",
|
43723
|
-
# 1
|
43724
|
-
# ]
|
43725
|
-
# ]
|
43726
|
-
# ]
|
43727
|
-
# ]
|
43728
|
-
.ft P
|
43729
|
-
.fi
|
43730
|
-
.UNINDENT
|
43731
|
-
.UNINDENT
|
43732
|
-
.SS \fBdrilldown_output_columns\fP
|
43733
|
-
.sp
|
43734
|
-
\fBselect\fP の select\-drilldown\-output\-columns に対応しています。詳細は select\-drilldown\-output\-columns を見てください。
|
43735
|
-
.sp
|
43736
|
-
以下は例です。
|
43737
|
-
.sp
|
43738
|
-
実行例:
|
43739
|
-
.INDENT 0.0
|
43740
|
-
.INDENT 3.5
|
43741
|
-
.sp
|
43742
|
-
.nf
|
43743
|
-
.ft C
|
43744
|
-
logical_select \e
|
43745
|
-
\-\-logical_table Entries \e
|
43746
|
-
\-\-shard_key created_at \e
|
43747
|
-
\-\-limit 0 \e
|
43748
|
-
\-\-output_columns _id \e
|
43749
|
-
\-\-drilldown tag \e
|
43750
|
-
\-\-drilldown_output_columns _key
|
43751
|
-
# [
|
43752
|
-
# [
|
43753
|
-
# 0,
|
43754
|
-
# 1337566253.89858,
|
43755
|
-
# 0.000355720520019531
|
43756
|
-
# ],
|
43757
|
-
# [
|
43758
|
-
# [
|
43759
|
-
# [
|
43760
|
-
# 5
|
43761
|
-
# ],
|
43762
|
-
# [
|
43763
|
-
# [
|
43764
|
-
# "_id",
|
43765
|
-
# "UInt32"
|
43766
|
-
# ]
|
43767
|
-
# ]
|
43768
|
-
# ],
|
43769
|
-
# [
|
43770
|
-
# [
|
43771
|
-
# 3
|
43772
|
-
# ],
|
43773
|
-
# [
|
43774
|
-
# [
|
43775
|
-
# "_key",
|
43776
|
-
# "ShortText"
|
43777
|
-
# ]
|
43778
|
-
# ],
|
43779
|
-
# [
|
43780
|
-
# "Hello"
|
43781
|
-
# ],
|
43782
|
-
# [
|
43783
|
-
# "Groonga"
|
43784
|
-
# ],
|
43785
|
-
# [
|
43786
|
-
# "Senna"
|
43787
|
-
# ]
|
43788
|
-
# ]
|
43789
|
-
# ]
|
43790
|
-
# ]
|
43791
|
-
.ft P
|
43792
|
-
.fi
|
43793
|
-
.UNINDENT
|
43794
|
-
.UNINDENT
|
43795
|
-
.SS \fBdrilldown_offset\fP
|
43796
|
-
.sp
|
43797
|
-
\fBselect\fP の select\-drilldown\-offset に対応しています。詳細は select\-drilldown\-offset を見てください。
|
43798
|
-
.sp
|
43799
|
-
以下は例です。
|
43800
|
-
.sp
|
43801
|
-
実行例:
|
43802
|
-
.INDENT 0.0
|
43803
|
-
.INDENT 3.5
|
43804
|
-
.sp
|
43805
|
-
.nf
|
43806
|
-
.ft C
|
43807
|
-
logical_select \e
|
43808
|
-
\-\-logical_table Entries \e
|
43809
|
-
\-\-shard_key created_at \e
|
43810
|
-
\-\-limit 0 \e
|
43811
|
-
\-\-output_columns _id \e
|
43812
|
-
\-\-drilldown tag \e
|
43813
|
-
\-\-drilldown_offset 1
|
43814
|
-
# [
|
43815
|
-
# [
|
43816
|
-
# 0,
|
43817
|
-
# 1337566253.89858,
|
43818
|
-
# 0.000355720520019531
|
43819
|
-
# ],
|
43820
|
-
# [
|
43821
|
-
# [
|
43822
|
-
# [
|
43823
|
-
# 5
|
43824
|
-
# ],
|
43825
|
-
# [
|
43826
|
-
# [
|
43827
|
-
# "_id",
|
43828
|
-
# "UInt32"
|
43829
|
-
# ]
|
43830
|
-
# ]
|
43831
|
-
# ],
|
43832
|
-
# [
|
43833
|
-
# [
|
43834
|
-
# 3
|
43835
|
-
# ],
|
43836
|
-
# [
|
43837
|
-
# [
|
43838
|
-
# "_key",
|
43839
|
-
# "ShortText"
|
43840
|
-
# ],
|
43841
|
-
# [
|
43842
|
-
# "_nsubrecs",
|
43843
|
-
# "Int32"
|
43844
|
-
# ]
|
43845
|
-
# ],
|
43846
|
-
# [
|
43847
|
-
# "Groonga",
|
43848
|
-
# 2
|
43849
|
-
# ],
|
43850
|
-
# [
|
43851
|
-
# "Senna",
|
43852
|
-
# 2
|
43853
|
-
# ]
|
43854
|
-
# ]
|
43855
|
-
# ]
|
43856
|
-
# ]
|
43857
|
-
.ft P
|
43858
|
-
.fi
|
43859
|
-
.UNINDENT
|
43860
|
-
.UNINDENT
|
43861
|
-
.SS \fBdrilldown_limit\fP
|
43862
|
-
.sp
|
43863
|
-
\fBselect\fP の select\-drilldown\-limit に対応しています。詳細は select\-drilldown\-limit を見てください。
|
43864
|
-
.sp
|
43865
|
-
以下は例です。
|
43866
|
-
.sp
|
43867
|
-
実行例:
|
43868
|
-
.INDENT 0.0
|
43869
|
-
.INDENT 3.5
|
43870
|
-
.sp
|
43871
|
-
.nf
|
43872
|
-
.ft C
|
43873
|
-
logical_select \e
|
43874
|
-
\-\-logical_table Entries \e
|
43875
|
-
\-\-shard_key created_at \e
|
43876
|
-
\-\-limit 0 \e
|
43877
|
-
\-\-output_columns _id \e
|
43878
|
-
\-\-drilldown tag \e
|
43879
|
-
\-\-drilldown_limit 2
|
43880
|
-
# [
|
43881
|
-
# [
|
43882
|
-
# 0,
|
43883
|
-
# 1337566253.89858,
|
43884
|
-
# 0.000355720520019531
|
43885
|
-
# ],
|
43886
|
-
# [
|
43887
|
-
# [
|
43888
|
-
# [
|
43889
|
-
# 5
|
43890
|
-
# ],
|
43891
|
-
# [
|
43892
|
-
# [
|
43893
|
-
# "_id",
|
43894
|
-
# "UInt32"
|
43895
|
-
# ]
|
43896
|
-
# ]
|
43897
|
-
# ],
|
43898
|
-
# [
|
43899
|
-
# [
|
43900
|
-
# 3
|
43901
|
-
# ],
|
43902
|
-
# [
|
43903
|
-
# [
|
43904
|
-
# "_key",
|
43905
|
-
# "ShortText"
|
43906
|
-
# ],
|
43907
|
-
# [
|
43908
|
-
# "_nsubrecs",
|
43909
|
-
# "Int32"
|
43910
|
-
# ]
|
43911
|
-
# ],
|
43912
|
-
# [
|
43913
|
-
# "Hello",
|
43914
|
-
# 1
|
43915
|
-
# ],
|
43916
|
-
# [
|
43917
|
-
# "Groonga",
|
43918
|
-
# 2
|
43919
|
-
# ]
|
43920
|
-
# ]
|
43921
|
-
# ]
|
43922
|
-
# ]
|
43923
|
-
.ft P
|
43924
|
-
.fi
|
43925
|
-
.UNINDENT
|
43926
|
-
.UNINDENT
|
43927
|
-
.SS \fBdrilldown_calc_types\fP
|
43928
|
-
.sp
|
43929
|
-
\fBselect\fP の select\-drilldown\-calc\-types に対応しています。詳細は select\-drilldown\-calc\-types を見てください。
|
43930
|
-
.sp
|
43931
|
-
以下は例です。
|
43932
|
-
.sp
|
43933
|
-
実行例:
|
43934
|
-
.INDENT 0.0
|
43935
|
-
.INDENT 3.5
|
43936
|
-
.sp
|
43937
|
-
.nf
|
43938
|
-
.ft C
|
43939
|
-
logical_select \e
|
43940
|
-
\-\-logical_table Entries \e
|
43941
|
-
\-\-shard_key created_at \e
|
43942
|
-
\-\-limit \-1 \e
|
43943
|
-
\-\-output_columns tag,n_likes \e
|
43944
|
-
\-\-drilldown tag \e
|
43945
|
-
\-\-drilldown_calc_types MAX,MIN,SUM,AVG \e
|
43946
|
-
\-\-drilldown_calc_target n_likes \e
|
43947
|
-
\-\-drilldown_output_columns _key,_nsubrecs,_max,_min,_sum,_avg
|
43948
|
-
# [
|
43949
|
-
# [
|
43950
|
-
# 0,
|
43951
|
-
# 1337566253.89858,
|
43952
|
-
# 0.000355720520019531
|
43953
|
-
# ],
|
43954
|
-
# [
|
43955
|
-
# [
|
43956
|
-
# [
|
43957
|
-
# 5
|
43958
|
-
# ],
|
43959
|
-
# [
|
43960
|
-
# [
|
43961
|
-
# "tag",
|
43962
|
-
# "ShortText"
|
43963
|
-
# ],
|
43964
|
-
# [
|
43965
|
-
# "n_likes",
|
43966
|
-
# "UInt32"
|
43967
|
-
# ]
|
43968
|
-
# ],
|
43969
|
-
# [
|
43970
|
-
# "Hello",
|
43971
|
-
# 5
|
43972
|
-
# ],
|
43973
|
-
# [
|
43974
|
-
# "Groonga",
|
43975
|
-
# 10
|
43976
|
-
# ],
|
43977
|
-
# [
|
43978
|
-
# "Groonga",
|
43979
|
-
# 15
|
43980
|
-
# ],
|
43981
|
-
# [
|
43982
|
-
# "Senna",
|
43983
|
-
# 3
|
43984
|
-
# ],
|
43985
|
-
# [
|
43986
|
-
# "Senna",
|
43987
|
-
# 3
|
43988
|
-
# ]
|
43989
|
-
# ],
|
43990
|
-
# [
|
43991
|
-
# [
|
43992
|
-
# 3
|
43993
|
-
# ],
|
43994
|
-
# [
|
43995
|
-
# [
|
43996
|
-
# "_key",
|
43997
|
-
# "ShortText"
|
43998
|
-
# ],
|
43999
|
-
# [
|
44000
|
-
# "_nsubrecs",
|
44001
|
-
# "Int32"
|
44002
|
-
# ],
|
44003
|
-
# [
|
44004
|
-
# "_max",
|
44005
|
-
# "Int64"
|
44006
|
-
# ],
|
44007
|
-
# [
|
44008
|
-
# "_min",
|
44009
|
-
# "Int64"
|
44010
|
-
# ],
|
44011
|
-
# [
|
44012
|
-
# "_sum",
|
44013
|
-
# "Int64"
|
44014
|
-
# ],
|
44015
|
-
# [
|
44016
|
-
# "_avg",
|
44017
|
-
# "Float"
|
44018
|
-
# ]
|
44019
|
-
# ],
|
44020
|
-
# [
|
44021
|
-
# "Hello",
|
44022
|
-
# 1,
|
44023
|
-
# 5,
|
44024
|
-
# 5,
|
44025
|
-
# 5,
|
44026
|
-
# 5.0
|
44027
|
-
# ],
|
44028
|
-
# [
|
44029
|
-
# "Groonga",
|
44030
|
-
# 2,
|
44031
|
-
# 15,
|
44032
|
-
# 10,
|
44033
|
-
# 25,
|
44034
|
-
# 12.5
|
44035
|
-
# ],
|
44036
|
-
# [
|
44037
|
-
# "Senna",
|
44038
|
-
# 2,
|
44039
|
-
# 3,
|
44040
|
-
# 3,
|
44041
|
-
# 6,
|
44042
|
-
# 3.0
|
44043
|
-
# ]
|
44044
|
-
# ]
|
44045
|
-
# ]
|
44046
|
-
# ]
|
44047
|
-
.ft P
|
44048
|
-
.fi
|
44049
|
-
.UNINDENT
|
44050
|
-
.UNINDENT
|
44051
|
-
.SS \fBdrilldown_calc_target\fP
|
44052
|
-
.sp
|
44053
|
-
\fBselect\fP の select\-drilldown\-calc\-target に対応しています。詳細は select\-drilldown\-calc\-target を見てください。
|
44054
|
-
.sp
|
44055
|
-
具体例は select\-drilldown\-calc\-types を見てください。
|
44056
|
-
.SS 高度なドリルダウン関連のパラメーター
|
44057
|
-
.sp
|
44058
|
-
\fBselect\fP のすべての高度なドリルダウン関連のパラメーターをサポートしています。詳細は select\-advanced\-drilldown\-related\-parameters を見てください。
|
44059
|
-
.sp
|
44060
|
-
いくつか制限があります。
|
44061
|
-
.INDENT 0.0
|
44062
|
-
.INDENT 3.5
|
44063
|
-
.INDENT 0.0
|
44064
|
-
.IP \(bu 2
|
44065
|
-
複数のシャードを使った場合、 \fBdrilldown[${LABEL}].sortby\fP の中で \fB_value.${KEY_NAME}\fP を使えません。1つのシャードのみを使った場合は使えます。
|
44066
|
-
.UNINDENT
|
44067
|
-
.UNINDENT
|
44068
|
-
.UNINDENT
|
44069
|
-
.SS \fBdrilldown[${LABEL}].keys\fP
|
44070
|
-
.sp
|
44071
|
-
\fBselect\fP の select\-drilldown\-label\-keys に対応しています。詳細は select\-drilldown\-label\-keys を見てください。
|
44072
|
-
.sp
|
44073
|
-
以下は例です。
|
44074
|
-
.sp
|
44075
|
-
実行例:
|
44076
|
-
.INDENT 0.0
|
44077
|
-
.INDENT 3.5
|
44078
|
-
.sp
|
44079
|
-
.nf
|
44080
|
-
.ft C
|
44081
|
-
logical_select \e
|
44082
|
-
\-\-logical_table Entries \e
|
44083
|
-
\-\-shard_key created_at \e
|
44084
|
-
\-\-limit 0 \e
|
44085
|
-
\-\-output_columns _id \e
|
44086
|
-
\-\-drilldown[tag.n_likes].keys tag,n_likes \e
|
44087
|
-
\-\-drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
|
44088
|
-
# [
|
44089
|
-
# [
|
44090
|
-
# 0,
|
44091
|
-
# 1337566253.89858,
|
44092
|
-
# 0.000355720520019531
|
44093
|
-
# ],
|
44094
|
-
# [
|
44095
|
-
# [
|
44096
|
-
# [
|
44097
|
-
# 5
|
44098
|
-
# ],
|
44099
|
-
# [
|
44100
|
-
# [
|
44101
|
-
# "_id",
|
44102
|
-
# "UInt32"
|
44103
|
-
# ]
|
44104
|
-
# ]
|
44105
|
-
# ],
|
44106
|
-
# {
|
44107
|
-
# "tag.n_likes": [
|
44108
|
-
# [
|
44109
|
-
# 4
|
44110
|
-
# ],
|
44111
|
-
# [
|
44112
|
-
# [
|
44113
|
-
# "tag",
|
44114
|
-
# "ShortText"
|
44115
|
-
# ],
|
44116
|
-
# [
|
44117
|
-
# "n_likes",
|
44118
|
-
# "UInt32"
|
44119
|
-
# ],
|
44120
|
-
# [
|
44121
|
-
# "_nsubrecs",
|
44122
|
-
# "Int32"
|
44123
|
-
# ]
|
44124
|
-
# ],
|
44125
|
-
# [
|
44126
|
-
# "Hello",
|
44127
|
-
# 5,
|
44128
|
-
# 1
|
44129
|
-
# ],
|
44130
|
-
# [
|
44131
|
-
# "Groonga",
|
44132
|
-
# 10,
|
44133
|
-
# 1
|
44134
|
-
# ],
|
44135
|
-
# [
|
44136
|
-
# "Groonga",
|
44137
|
-
# 15,
|
44138
|
-
# 1
|
44139
|
-
# ],
|
44140
|
-
# [
|
44141
|
-
# "Senna",
|
44142
|
-
# 3,
|
44143
|
-
# 2
|
44144
|
-
# ]
|
44145
|
-
# ]
|
44146
|
-
# }
|
44147
|
-
# ]
|
44148
|
-
# ]
|
44149
|
-
.ft P
|
44150
|
-
.fi
|
44151
|
-
.UNINDENT
|
44152
|
-
.UNINDENT
|
44153
|
-
.SS \fBdrilldown[${LABEL}].output_columns\fP
|
44154
|
-
.sp
|
44155
|
-
\fBselect\fP の select\-drilldown\-label\-output\-columns に対応しています。詳細は select\-drilldown\-label\-output\-columns を見てください。
|
44156
|
-
.sp
|
44157
|
-
以下は例です。
|
44158
|
-
.sp
|
44159
|
-
実行例:
|
44160
|
-
.INDENT 0.0
|
44161
|
-
.INDENT 3.5
|
44162
|
-
.sp
|
44163
|
-
.nf
|
44164
|
-
.ft C
|
44165
|
-
logical_select \e
|
44166
|
-
\-\-logical_table Entries \e
|
44167
|
-
\-\-shard_key created_at \e
|
44168
|
-
\-\-limit 0 \e
|
44169
|
-
\-\-output_columns _id \e
|
44170
|
-
\-\-drilldown[tag].keys tag \e
|
44171
|
-
\-\-drilldown[tag].output_columns _key,_nsubrecs
|
44172
|
-
# [
|
44173
|
-
# [
|
44174
|
-
# 0,
|
44175
|
-
# 1337566253.89858,
|
44176
|
-
# 0.000355720520019531
|
44177
|
-
# ],
|
44178
|
-
# [
|
44179
|
-
# [
|
44180
|
-
# [
|
44181
|
-
# 5
|
44182
|
-
# ],
|
44183
|
-
# [
|
44184
|
-
# [
|
44185
|
-
# "_id",
|
44186
|
-
# "UInt32"
|
44187
|
-
# ]
|
44188
|
-
# ]
|
44189
|
-
# ],
|
44190
|
-
# {
|
44191
|
-
# "tag": [
|
44192
|
-
# [
|
44193
|
-
# 3
|
44194
|
-
# ],
|
44195
|
-
# [
|
44196
|
-
# [
|
44197
|
-
# "_key",
|
44198
|
-
# "ShortText"
|
44199
|
-
# ],
|
44200
|
-
# [
|
44201
|
-
# "_nsubrecs",
|
44202
|
-
# "Int32"
|
44203
|
-
# ]
|
44204
|
-
# ],
|
44205
|
-
# [
|
44206
|
-
# "Hello",
|
44207
|
-
# 1
|
44208
|
-
# ],
|
44209
|
-
# [
|
44210
|
-
# "Groonga",
|
44211
|
-
# 2
|
44212
|
-
# ],
|
44213
|
-
# [
|
44214
|
-
# "Senna",
|
44215
|
-
# 2
|
44216
|
-
# ]
|
44217
|
-
# ]
|
44218
|
-
# }
|
44219
|
-
# ]
|
44220
|
-
# ]
|
44221
|
-
.ft P
|
44222
|
-
.fi
|
44223
|
-
.UNINDENT
|
44224
|
-
.UNINDENT
|
44225
|
-
.SS \fBdrilldown[${LABEL}].sortby\fP
|
44226
|
-
.sp
|
44227
|
-
ラベルなしドリルダウンの \fI\%drilldown_sortby\fP に対応しています。
|
44228
|
-
.sp
|
44229
|
-
\fBdrilldown[${LABEL}].sortby\fP には制限があります。
|
44230
|
-
.sp
|
44231
|
-
複数のシャードを使った場合、 \fBdrilldown[${LABEL}].sortby\fP の中で \fB_value.${KEY_NAME}\fP を使えません。1つのシャードのみを使った場合は使えます。
|
44232
|
-
.sp
|
44233
|
-
以下は1つのシャードに対して \fB_value.${KEY_NAME}\fP を使う例です。
|
44234
|
-
.sp
|
44235
|
-
実行例:
|
44236
|
-
.INDENT 0.0
|
44237
|
-
.INDENT 3.5
|
44238
|
-
.sp
|
44239
|
-
.nf
|
44240
|
-
.ft C
|
44241
|
-
logical_select \e
|
44242
|
-
\-\-logical_table Entries \e
|
44243
|
-
\-\-shard_key created_at \e
|
44244
|
-
\-\-min "2015/07/08 00:00:00" \e
|
44245
|
-
\-\-min_border "include" \e
|
44246
|
-
\-\-max "2015/07/09 00:00:00" \e
|
44247
|
-
\-\-max_border "exclude" \e
|
44248
|
-
\-\-limit 0 \e
|
44249
|
-
\-\-output_columns _id \e
|
44250
|
-
\-\-drilldown[tag.n_likes].keys tag,n_likes \e
|
44251
|
-
\-\-drilldown[tag.n_likes].output_columns _nsubrecs,_value.n_likes,_value.tag \e
|
44252
|
-
\-\-drilldown[tag.n_likes].sortby \-_nsubrecs,_value.n_likes,_value.tag
|
44253
|
-
# [
|
44254
|
-
# [
|
44255
|
-
# 0,
|
44256
|
-
# 1337566253.89858,
|
44257
|
-
# 0.000355720520019531
|
44258
|
-
# ],
|
44259
|
-
# [
|
44260
|
-
# [
|
44261
|
-
# [
|
44262
|
-
# 3
|
44263
|
-
# ],
|
44264
|
-
# [
|
44265
|
-
# [
|
44266
|
-
# "_id",
|
44267
|
-
# "UInt32"
|
44268
|
-
# ]
|
44269
|
-
# ]
|
44270
|
-
# ],
|
44271
|
-
# {
|
44272
|
-
# "tag.n_likes": [
|
44273
|
-
# [
|
44274
|
-
# 3
|
44275
|
-
# ],
|
44276
|
-
# [
|
44277
|
-
# [
|
44278
|
-
# "_nsubrecs",
|
44279
|
-
# "Int32"
|
44280
|
-
# ],
|
44281
|
-
# [
|
44282
|
-
# "n_likes",
|
44283
|
-
# "UInt32"
|
44284
|
-
# ],
|
44285
|
-
# [
|
44286
|
-
# "tag",
|
44287
|
-
# "ShortText"
|
44288
|
-
# ]
|
44289
|
-
# ],
|
44290
|
-
# [
|
44291
|
-
# 1,
|
44292
|
-
# 5,
|
44293
|
-
# "Hello"
|
44294
|
-
# ],
|
44295
|
-
# [
|
44296
|
-
# 1,
|
44297
|
-
# 10,
|
44298
|
-
# "Groonga"
|
44299
|
-
# ],
|
44300
|
-
# [
|
44301
|
-
# 1,
|
44302
|
-
# 15,
|
44303
|
-
# "Groonga"
|
44304
|
-
# ]
|
44305
|
-
# ]
|
44306
|
-
# }
|
44307
|
-
# ]
|
44308
|
-
# ]
|
44309
|
-
.ft P
|
44310
|
-
.fi
|
44311
|
-
.UNINDENT
|
44312
|
-
.UNINDENT
|
44313
|
-
.SS \fBdrilldown[${LABEL}].offset\fP
|
44314
|
-
.sp
|
44315
|
-
ラベルなしドリルダウンの \fI\%drilldown_offset\fP に対応しています。
|
44316
|
-
.sp
|
44317
|
-
以下は例です。
|
44318
|
-
.sp
|
44319
|
-
実行例:
|
44320
|
-
.INDENT 0.0
|
44321
|
-
.INDENT 3.5
|
44322
|
-
.sp
|
44323
|
-
.nf
|
44324
|
-
.ft C
|
44325
|
-
logical_select \e
|
44326
|
-
\-\-logical_table Entries \e
|
44327
|
-
\-\-shard_key created_at \e
|
44328
|
-
\-\-limit 0 \e
|
44329
|
-
\-\-output_columns _id \e
|
44330
|
-
\-\-drilldown[tag.n_likes].keys tag \e
|
44331
|
-
\-\-drilldown[tag.n_likes].offset 1
|
44332
|
-
# [
|
44333
|
-
# [
|
44334
|
-
# 0,
|
44335
|
-
# 1337566253.89858,
|
44336
|
-
# 0.000355720520019531
|
44337
|
-
# ],
|
44338
|
-
# [
|
44339
|
-
# [
|
44340
|
-
# [
|
44341
|
-
# 5
|
44342
|
-
# ],
|
44343
|
-
# [
|
44344
|
-
# [
|
44345
|
-
# "_id",
|
44346
|
-
# "UInt32"
|
44347
|
-
# ]
|
44348
|
-
# ]
|
44349
|
-
# ],
|
44350
|
-
# {
|
44351
|
-
# "tag.n_likes": [
|
44352
|
-
# [
|
44353
|
-
# 3
|
44354
|
-
# ],
|
44355
|
-
# [
|
44356
|
-
# [
|
44357
|
-
# "_key",
|
44358
|
-
# "ShortText"
|
44359
|
-
# ],
|
44360
|
-
# [
|
44361
|
-
# "_nsubrecs",
|
44362
|
-
# "Int32"
|
44363
|
-
# ]
|
44364
|
-
# ],
|
44365
|
-
# [
|
44366
|
-
# "Groonga",
|
44367
|
-
# 2
|
44368
|
-
# ],
|
44369
|
-
# [
|
44370
|
-
# "Senna",
|
44371
|
-
# 2
|
44372
|
-
# ]
|
44373
|
-
# ]
|
44374
|
-
# }
|
44375
|
-
# ]
|
44376
|
-
# ]
|
44377
|
-
.ft P
|
44378
|
-
.fi
|
44379
|
-
.UNINDENT
|
44380
|
-
.UNINDENT
|
44381
|
-
.SS \fBdrilldown[${LABEL}].limit\fP
|
44382
|
-
.sp
|
44383
|
-
ラベルなしドリルダウンの \fI\%drilldown_limit\fP に対応しています。
|
44384
|
-
.sp
|
44385
|
-
以下は例です。
|
44386
|
-
.sp
|
44387
|
-
実行例:
|
44388
|
-
.INDENT 0.0
|
44389
|
-
.INDENT 3.5
|
44390
|
-
.sp
|
44391
|
-
.nf
|
44392
|
-
.ft C
|
44393
|
-
logical_select \e
|
44394
|
-
\-\-logical_table Entries \e
|
44395
|
-
\-\-shard_key created_at \e
|
44396
|
-
\-\-limit 0 \e
|
44397
|
-
\-\-output_columns _id \e
|
44398
|
-
\-\-drilldown[tag.n_likes].keys tag \e
|
44399
|
-
\-\-drilldown[tag.n_likes].limit 2
|
44400
|
-
# [
|
44401
|
-
# [
|
44402
|
-
# 0,
|
44403
|
-
# 1337566253.89858,
|
44404
|
-
# 0.000355720520019531
|
44405
|
-
# ],
|
44406
|
-
# [
|
44407
|
-
# [
|
44408
|
-
# [
|
44409
|
-
# 5
|
44410
|
-
# ],
|
44411
|
-
# [
|
44412
|
-
# [
|
44413
|
-
# "_id",
|
44414
|
-
# "UInt32"
|
44415
|
-
# ]
|
44416
|
-
# ]
|
44417
|
-
# ],
|
44418
|
-
# {
|
44419
|
-
# "tag.n_likes": [
|
44420
|
-
# [
|
44421
|
-
# 3
|
44422
|
-
# ],
|
44423
|
-
# [
|
44424
|
-
# [
|
44425
|
-
# "_key",
|
44426
|
-
# "ShortText"
|
44427
|
-
# ],
|
44428
|
-
# [
|
44429
|
-
# "_nsubrecs",
|
44430
|
-
# "Int32"
|
44431
|
-
# ]
|
44432
|
-
# ],
|
44433
|
-
# [
|
44434
|
-
# "Hello",
|
44435
|
-
# 1
|
44436
|
-
# ],
|
44437
|
-
# [
|
44438
|
-
# "Groonga",
|
44439
|
-
# 2
|
44440
|
-
# ]
|
44441
|
-
# ]
|
44442
|
-
# }
|
44443
|
-
# ]
|
44444
|
-
# ]
|
44445
|
-
.ft P
|
44446
|
-
.fi
|
44447
|
-
.UNINDENT
|
44448
|
-
.UNINDENT
|
44449
|
-
.SS \fBdrilldown[${LABEL}].calc_types\fP
|
44450
|
-
.sp
|
44451
|
-
ラベルなしドリルダウンの \fI\%drilldown_calc_types\fP に対応しています。
|
44452
|
-
.sp
|
44453
|
-
以下は例です。
|
44454
|
-
.sp
|
44455
|
-
実行例:
|
44456
|
-
.INDENT 0.0
|
44457
|
-
.INDENT 3.5
|
44458
|
-
.sp
|
44459
|
-
.nf
|
44460
|
-
.ft C
|
44461
|
-
logical_select \e
|
44462
|
-
\-\-logical_table Entries \e
|
44463
|
-
\-\-shard_key created_at \e
|
44464
|
-
\-\-limit 0 \e
|
44465
|
-
\-\-output_columns _id \e
|
44466
|
-
\-\-drilldown[tag].keys tag \e
|
44467
|
-
\-\-drilldown[tag].calc_types MAX,MIN,SUM,AVG \e
|
44468
|
-
\-\-drilldown[tag].calc_target n_likes \e
|
44469
|
-
\-\-drilldown[tag].output_columns _key,_nsubrecs,_max,_min,_sum,_avg
|
44470
|
-
# [
|
44471
|
-
# [
|
44472
|
-
# 0,
|
44473
|
-
# 1337566253.89858,
|
44474
|
-
# 0.000355720520019531
|
44475
|
-
# ],
|
44476
|
-
# [
|
44477
|
-
# [
|
44478
|
-
# [
|
44479
|
-
# 5
|
44480
|
-
# ],
|
44481
|
-
# [
|
44482
|
-
# [
|
44483
|
-
# "_id",
|
44484
|
-
# "UInt32"
|
44485
|
-
# ]
|
44486
|
-
# ]
|
44487
|
-
# ],
|
44488
|
-
# {
|
44489
|
-
# "tag": [
|
44490
|
-
# [
|
44491
|
-
# 3
|
44492
|
-
# ],
|
44493
|
-
# [
|
44494
|
-
# [
|
44495
|
-
# "_key",
|
44496
|
-
# "ShortText"
|
44497
|
-
# ],
|
44498
|
-
# [
|
44499
|
-
# "_nsubrecs",
|
44500
|
-
# "Int32"
|
44501
|
-
# ],
|
44502
|
-
# [
|
44503
|
-
# "_max",
|
44504
|
-
# "Int64"
|
44505
|
-
# ],
|
44506
|
-
# [
|
44507
|
-
# "_min",
|
44508
|
-
# "Int64"
|
44509
|
-
# ],
|
44510
|
-
# [
|
44511
|
-
# "_sum",
|
44512
|
-
# "Int64"
|
44513
|
-
# ],
|
44514
|
-
# [
|
44515
|
-
# "_avg",
|
44516
|
-
# "Float"
|
44517
|
-
# ]
|
44518
|
-
# ],
|
44519
|
-
# [
|
44520
|
-
# "Hello",
|
44521
|
-
# 1,
|
44522
|
-
# 5,
|
44523
|
-
# 5,
|
44524
|
-
# 5,
|
44525
|
-
# 5.0
|
44526
|
-
# ],
|
44527
|
-
# [
|
44528
|
-
# "Groonga",
|
44529
|
-
# 2,
|
44530
|
-
# 15,
|
44531
|
-
# 10,
|
44532
|
-
# 25,
|
44533
|
-
# 12.5
|
44534
|
-
# ],
|
44535
|
-
# [
|
44536
|
-
# "Senna",
|
44537
|
-
# 2,
|
44538
|
-
# 3,
|
44539
|
-
# 3,
|
44540
|
-
# 6,
|
44541
|
-
# 3.0
|
44542
|
-
# ]
|
44543
|
-
# ]
|
44544
|
-
# }
|
44545
|
-
# ]
|
44546
|
-
# ]
|
44547
|
-
.ft P
|
44548
|
-
.fi
|
44549
|
-
.UNINDENT
|
44550
|
-
.UNINDENT
|
44551
|
-
.SS \fBdrilldown[${LABEL}].calc_target\fP
|
44552
|
-
.sp
|
44553
|
-
ラベルなしドリルダウンの \fI\%drilldown_calc_target\fP に対応しています。
|
44554
|
-
.sp
|
44555
|
-
例は \fI\%drilldown[${LABEL}].calc_types\fP を参照してください。
|
44556
|
-
.SS 戻り値
|
44557
|
-
.sp
|
44558
|
-
\fBlogical_select\fP の戻り値のフォーマットは \fBselect\fP と同じです。詳細は select\-return\-value を見てください。
|
44559
|
-
.SS \fBlogical_shard_list\fP
|
44560
|
-
.SS 概要
|
44561
|
-
.sp
|
44562
|
-
\fB注釈:\fP
|
44563
|
-
.INDENT 0.0
|
44564
|
-
.INDENT 3.5
|
44565
|
-
このコマンドは実験的な機能です。
|
44566
|
-
.UNINDENT
|
44567
|
-
.UNINDENT
|
44568
|
-
.sp
|
44569
|
-
バージョン 5.0.7 で追加.
|
44570
|
-
|
44571
|
-
.sp
|
44572
|
-
\fBlogical_shard_list\fP は指定した論理テーブル名に対するすべてのシャード名を返します。
|
44573
|
-
.SS 構文
|
44574
|
-
.sp
|
44575
|
-
このコマンドの引数は1つで必須です:
|
44576
|
-
.INDENT 0.0
|
44577
|
-
.INDENT 3.5
|
44578
|
-
.sp
|
44579
|
-
.nf
|
44580
|
-
.ft C
|
44581
|
-
logical_shard_list logical_table
|
44582
|
-
.ft P
|
44583
|
-
.fi
|
44584
|
-
.UNINDENT
|
44585
|
-
.UNINDENT
|
44586
|
-
.SS 使い方
|
44587
|
-
.sp
|
44588
|
-
このコマンドを使うには事前に \fBsharding\fP プラグインを登録します。
|
44589
|
-
.sp
|
44590
|
-
実行例:
|
44591
|
-
.INDENT 0.0
|
44592
|
-
.INDENT 3.5
|
44593
|
-
.sp
|
44594
|
-
.nf
|
44595
|
-
.ft C
|
44596
|
-
plugin_register sharding
|
44597
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44598
|
-
.ft P
|
44599
|
-
.fi
|
44600
|
-
.UNINDENT
|
44601
|
-
.UNINDENT
|
44602
|
-
.sp
|
44603
|
-
サンプルシャードは次の通りです。
|
44604
|
-
.sp
|
44605
|
-
実行例:
|
44606
|
-
.INDENT 0.0
|
44607
|
-
.INDENT 3.5
|
44608
|
-
.sp
|
44609
|
-
.nf
|
44610
|
-
.ft C
|
44611
|
-
table_create Logs_20150801 TABLE_HASH_KEY ShortText
|
44612
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44613
|
-
column_create Logs_20150801 timestamp COLUMN_SCALAR Time
|
44614
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44615
|
-
table_create Logs_20150802 TABLE_HASH_KEY ShortText
|
44616
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44617
|
-
column_create Logs_20150802 timestamp COLUMN_SCALAR Time
|
44618
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44619
|
-
table_create Logs_20150930 TABLE_HASH_KEY ShortText
|
44620
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44621
|
-
column_create Logs_20150930 timestamp COLUMN_SCALAR Time
|
44622
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
44623
|
-
.ft P
|
44624
|
-
.fi
|
44625
|
-
.UNINDENT
|
44626
|
-
.UNINDENT
|
44627
|
-
.sp
|
44628
|
-
論理テーブル名として \fBLogs\fP を指定すると昇順ですべてのシャード名を取得できます。
|
44629
|
-
.sp
|
44630
|
-
実行例:
|
44631
|
-
.INDENT 0.0
|
44632
|
-
.INDENT 3.5
|
44633
|
-
.sp
|
44634
|
-
.nf
|
44635
|
-
.ft C
|
44636
|
-
logical_shard_list \-\-logical_table Logs
|
44637
|
-
# [
|
44638
|
-
# [
|
44639
|
-
# 0,
|
44640
|
-
# 1337566253.89858,
|
44641
|
-
# 0.000355720520019531
|
44642
|
-
# ],
|
44643
|
-
# [
|
44644
|
-
# {
|
44645
|
-
# "name": "Logs_20150801"
|
44646
|
-
# },
|
44647
|
-
# {
|
44648
|
-
# "name": "Logs_20150802"
|
44649
|
-
# },
|
44650
|
-
# {
|
44651
|
-
# "name": "Logs_20150930"
|
44652
|
-
# }
|
44653
|
-
# ]
|
44654
|
-
# ]
|
44655
|
-
.ft P
|
44656
|
-
.fi
|
44657
|
-
.UNINDENT
|
44658
|
-
.UNINDENT
|
44659
|
-
.SS 引数
|
44660
|
-
.sp
|
44661
|
-
このセクションでは引数について説明します。
|
44662
|
-
.SS 必須引数
|
44663
|
-
.sp
|
44664
|
-
必須の引数が1つあります。
|
44665
|
-
.SS \fBlogical_table\fP
|
44666
|
-
.sp
|
44667
|
-
論理テーブル名を指定します。 \fBlogical_shard_list\fP は指定した論理テーブルのシャード名のリストを返します。
|
44668
|
-
.sp
|
44669
|
-
実行例:
|
44670
|
-
.INDENT 0.0
|
44671
|
-
.INDENT 3.5
|
44672
|
-
.sp
|
44673
|
-
.nf
|
44674
|
-
.ft C
|
44675
|
-
logical_shard_list \-\-logical_table Logs
|
44676
|
-
# [
|
44677
|
-
# [
|
44678
|
-
# 0,
|
44679
|
-
# 1337566253.89858,
|
44680
|
-
# 0.000355720520019531
|
44681
|
-
# ],
|
44682
|
-
# [
|
44683
|
-
# {
|
44684
|
-
# "name": "Logs_20150801"
|
44685
|
-
# },
|
44686
|
-
# {
|
44687
|
-
# "name": "Logs_20150802"
|
44688
|
-
# },
|
44689
|
-
# {
|
44690
|
-
# "name": "Logs_20150930"
|
44691
|
-
# }
|
44692
|
-
# ]
|
44693
|
-
# ]
|
44694
|
-
.ft P
|
44695
|
-
.fi
|
44696
|
-
.UNINDENT
|
44697
|
-
.UNINDENT
|
44698
|
-
.sp
|
44699
|
-
このリストは昇順でソート済みです。
|
44700
|
-
.SS 省略可能引数
|
44701
|
-
.sp
|
44702
|
-
省略可能な引数はありません。
|
44703
|
-
.SS 戻り値
|
44704
|
-
.sp
|
44705
|
-
このコマンドは昇順でソートしたシャード名のリストを返します:
|
44706
|
-
.INDENT 0.0
|
44707
|
-
.INDENT 3.5
|
44708
|
-
.sp
|
44709
|
-
.nf
|
44710
|
-
.ft C
|
44711
|
-
[
|
44712
|
-
HEADER,
|
44713
|
-
[
|
44714
|
-
{"name": "SHARD_NAME_1"},
|
44715
|
-
{"name": "SHARD_NAME_2"},
|
44716
|
-
...
|
44717
|
-
{"name": "SHARD_NAME_N"}
|
44718
|
-
]
|
44719
|
-
]
|
44720
|
-
.ft P
|
44721
|
-
.fi
|
44722
|
-
.UNINDENT
|
44723
|
-
.UNINDENT
|
44724
|
-
.sp
|
44725
|
-
\fBHEADER\fP については \fB/reference/command/output_format\fP を参照してください。
|
44726
|
-
.SS 参考
|
44727
|
-
.INDENT 0.0
|
44728
|
-
.INDENT 3.5
|
44729
|
-
.INDENT 0.0
|
44730
|
-
.IP \(bu 2
|
44731
|
-
\fB/reference/sharding\fP
|
44732
|
-
.UNINDENT
|
44733
|
-
.UNINDENT
|
44734
|
-
.UNINDENT
|
44735
|
-
.SS \fBlogical_table_remove\fP
|
44736
|
-
.SS 概要
|
44737
|
-
.sp
|
44738
|
-
\fB注釈:\fP
|
44739
|
-
.INDENT 0.0
|
44740
|
-
.INDENT 3.5
|
44741
|
-
このコマンドは実験的な機能です。
|
44742
|
-
.UNINDENT
|
44743
|
-
.UNINDENT
|
44744
|
-
.sp
|
44745
|
-
バージョン 5.0.5 で追加.
|
44746
|
-
|
44747
|
-
.sp
|
44748
|
-
TODO
|
44749
|
-
.SS 構文
|
44750
|
-
.sp
|
44751
|
-
このコマンドにはたくさんの引数があります。
|
44752
|
-
.sp
|
44753
|
-
必須引数は2つあります。 \fBlogical_table\fP と \fBshard_key\fP です。
|
44754
|
-
.INDENT 0.0
|
44755
|
-
.INDENT 3.5
|
44756
|
-
.sp
|
44757
|
-
.nf
|
44758
|
-
.ft C
|
44759
|
-
logical_table_remove logical_table
|
44760
|
-
shard_key
|
44761
|
-
[min]
|
44762
|
-
[min_border]
|
44763
|
-
[max]
|
44764
|
-
[max_border]
|
44765
|
-
.ft P
|
44766
|
-
.fi
|
44767
|
-
.UNINDENT
|
44768
|
-
.UNINDENT
|
44769
|
-
.SS 使い方
|
44770
|
-
.sp
|
44771
|
-
TODO
|
44772
|
-
.SS 引数
|
44773
|
-
.sp
|
44774
|
-
このセクションでは \fBlogical_table_remove\fP の引数について説明します。
|
44775
|
-
.SS 必須引数
|
44776
|
-
.sp
|
44777
|
-
必須引数は二つあります。 \fBlogical_table\fP と \fBshard_key\fP です。
|
44778
|
-
.SS \fBlogical_table\fP
|
44779
|
-
.sp
|
44780
|
-
論理テーブル名を指定します。これは "_YYYYMMDD" をテーブル名から除いたものです。実際のテーブルが "Logs_20150203" や "Logs_20150203" といったものなら、論理テーブル名は "Logs" です。
|
44781
|
-
.SS \fBshard_key\fP
|
44782
|
-
.sp
|
44783
|
-
個々のテーブルで共通のキーとして扱うカラム名を指定します。
|
44784
|
-
.SS 省略可能引数
|
44785
|
-
.sp
|
44786
|
-
いくつか省略可能な引数があります。
|
44787
|
-
.SS \fBmin\fP
|
44788
|
-
.sp
|
44789
|
-
\fBshard_key\fP の最小値を指定します。
|
44790
|
-
.SS \fBmin_border\fP
|
44791
|
-
.sp
|
44792
|
-
最小値を境界値として含めるのか否かを指定します。 \fBinclude\fP もしくは \fBexclude\fP を指定します。
|
44793
|
-
.SS \fBmax\fP
|
44794
|
-
.sp
|
44795
|
-
\fBshard_key\fP の最大値を指定します。
|
44796
|
-
.SS \fBmax_border\fP
|
44797
|
-
.sp
|
44798
|
-
最大値を境界値として含めるのか否かを指定します。 \fBinclude\fP もしくは \fBexclude\fP を指定します。
|
44799
|
-
.SS 戻り値
|
44800
|
-
.sp
|
44801
|
-
TODO
|
44802
|
-
.INDENT 0.0
|
44803
|
-
.INDENT 3.5
|
44804
|
-
.sp
|
44805
|
-
.nf
|
44806
|
-
.ft C
|
44807
|
-
[HEADER, true]
|
44808
|
-
.ft P
|
44809
|
-
.fi
|
44810
|
-
.UNINDENT
|
44811
|
-
.UNINDENT
|
44812
|
-
.SS Log
|
44813
|
-
.sp
|
44814
|
-
Groonga has two log files. They are process log and query
|
44815
|
-
log. Process log is for all of \fBexecutables/groonga\fP
|
44816
|
-
works. Query log is just for query processing.
|
44817
|
-
.SS Process log
|
44818
|
-
.sp
|
44819
|
-
Process log is enabled by default. Log path can be
|
44820
|
-
customized by \fB\-\-log\-path\fP option. Each log has its
|
44821
|
-
log level. If a log is smaller than groonga process\(aq log
|
44822
|
-
level, it\(aqs not logged. Log level can be customized by
|
44823
|
-
\fB\-l\fP or \fBcommands/log_level\fP\&.
|
44824
|
-
.SS フォーマット
|
44825
|
-
.sp
|
44826
|
-
Process log uses the following format:
|
44827
|
-
.INDENT 0.0
|
44828
|
-
.INDENT 3.5
|
44829
|
-
.sp
|
44830
|
-
.nf
|
44831
|
-
.ft C
|
44832
|
-
#{TIME_STAMP}|#{L}| #{MESSAGE}
|
44833
|
-
.ft P
|
44834
|
-
.fi
|
44835
|
-
.UNINDENT
|
44836
|
-
.UNINDENT
|
44837
|
-
.INDENT 0.0
|
44838
|
-
.TP
|
44839
|
-
.B TIME_STAMP
|
44840
|
-
It\(aqs time stamp uses the following format:
|
44841
|
-
.INDENT 7.0
|
44842
|
-
.INDENT 3.5
|
44843
|
-
.sp
|
44844
|
-
.nf
|
44845
|
-
.ft C
|
44846
|
-
YYYY\-MM\-DD hh:mm:ss.SSSSSS
|
44847
|
-
.ft P
|
44848
|
-
.fi
|
44849
|
-
.UNINDENT
|
44850
|
-
.UNINDENT
|
44851
|
-
.INDENT 7.0
|
44852
|
-
.TP
|
44853
|
-
.B YYYY
|
44854
|
-
Year with four digits.
|
44855
|
-
.TP
|
44856
|
-
.B MM
|
44857
|
-
Month with two digits.
|
44858
|
-
.TP
|
44859
|
-
.B DD
|
44860
|
-
Day with two digits.
|
44861
|
-
.TP
|
44862
|
-
.B hh
|
44863
|
-
Hour with two digits.
|
44864
|
-
.TP
|
44865
|
-
.B mm
|
44866
|
-
Minute with two digits.
|
44867
|
-
.TP
|
44868
|
-
.B ss
|
44869
|
-
Second with two digits.
|
44870
|
-
.TP
|
44871
|
-
.B SSSSSS
|
44872
|
-
Microsecond with six digits.
|
44873
|
-
.UNINDENT
|
44874
|
-
.sp
|
44875
|
-
実行例:
|
44876
|
-
.INDENT 7.0
|
44877
|
-
.INDENT 3.5
|
44878
|
-
.sp
|
44879
|
-
.nf
|
44880
|
-
.ft C
|
44881
|
-
2011\-07\-05 06:25:18.345734
|
44882
|
-
.ft P
|
44883
|
-
.fi
|
44884
|
-
.UNINDENT
|
44885
|
-
.UNINDENT
|
44886
|
-
.TP
|
44887
|
-
.B L
|
44888
|
-
Log level with a character. Here is a character and log
|
44889
|
-
level map.
|
44890
|
-
.INDENT 7.0
|
44891
|
-
.TP
|
44892
|
-
.B E
|
44893
|
-
Emergency
|
44894
|
-
.TP
|
44895
|
-
.B A
|
44896
|
-
Alert
|
44897
|
-
.TP
|
44898
|
-
.B C
|
44899
|
-
Critical
|
44900
|
-
.TP
|
44901
|
-
.B e
|
44902
|
-
Error
|
44903
|
-
.TP
|
44904
|
-
.B w
|
44905
|
-
Warning
|
44906
|
-
.TP
|
44907
|
-
.B n
|
44908
|
-
Notification
|
44909
|
-
.TP
|
44910
|
-
.B i
|
44911
|
-
Information
|
44912
|
-
.TP
|
44913
|
-
.B d
|
44914
|
-
Debug
|
44915
|
-
.TP
|
44916
|
-
.B \-
|
44917
|
-
Dump
|
44918
|
-
.UNINDENT
|
44919
|
-
.sp
|
44920
|
-
実行例:
|
44921
|
-
.INDENT 7.0
|
44922
|
-
.INDENT 3.5
|
44923
|
-
.sp
|
44924
|
-
.nf
|
44925
|
-
.ft C
|
44926
|
-
E
|
44927
|
-
.ft P
|
44928
|
-
.fi
|
44929
|
-
.UNINDENT
|
44930
|
-
.UNINDENT
|
44931
|
-
.TP
|
44932
|
-
.B MESSAGE
|
44933
|
-
Details about the log with free format.
|
44934
|
-
.sp
|
44935
|
-
実行例:
|
44936
|
-
.INDENT 7.0
|
44937
|
-
.INDENT 3.5
|
44938
|
-
.sp
|
44939
|
-
.nf
|
44940
|
-
.ft C
|
44941
|
-
log opened.
|
44942
|
-
.ft P
|
44943
|
-
.fi
|
44944
|
-
.UNINDENT
|
44945
|
-
.UNINDENT
|
44946
|
-
.UNINDENT
|
44947
|
-
.sp
|
44948
|
-
実行例:
|
44949
|
-
.INDENT 0.0
|
44950
|
-
.INDENT 3.5
|
44951
|
-
.sp
|
44952
|
-
.nf
|
44953
|
-
.ft C
|
44954
|
-
2011\-07\-05 08:35:09.276421|n| grn_init
|
44955
|
-
2011\-07\-05 08:35:09.276553|n| RLIMIT_NOFILE(4096,4096)
|
44956
|
-
.ft P
|
44957
|
-
.fi
|
44958
|
-
.UNINDENT
|
44959
|
-
.UNINDENT
|
44960
|
-
.SS Query log
|
44961
|
-
.sp
|
44962
|
-
Query log is disabled by default. It can be enabled by
|
44963
|
-
\fB\-\-query\-log\-path\fP option.
|
44964
|
-
.SS フォーマット
|
44965
|
-
.sp
|
44966
|
-
Query log uses the following formats:
|
44967
|
-
.INDENT 0.0
|
44968
|
-
.INDENT 3.5
|
44969
|
-
.sp
|
44970
|
-
.nf
|
44971
|
-
.ft C
|
44972
|
-
#{TIME_STAMP}|#{MESSAGE}
|
44973
|
-
#{TIME_STAMP}|#{ID}|>#{QUERY}
|
44974
|
-
#{TIME_STAMP}|#{ID}|:#{ELAPSED_TIME} #{PROGRESS}
|
44975
|
-
#{TIME_STAMP}|#{ID}|<#{ELAPSED_TIME} #{RETURN_CODE}
|
44976
|
-
.ft P
|
44977
|
-
.fi
|
44978
|
-
.UNINDENT
|
44979
|
-
.UNINDENT
|
44980
|
-
.INDENT 0.0
|
44981
|
-
.TP
|
44982
|
-
.B TIME_STAMP
|
44983
|
-
It\(aqs time stamp uses the following format:
|
44984
|
-
.INDENT 7.0
|
44985
|
-
.INDENT 3.5
|
44986
|
-
.sp
|
44987
|
-
.nf
|
44988
|
-
.ft C
|
44989
|
-
YYYY\-MM\-DD hh:mm:ss.SSSSSS
|
44990
|
-
.ft P
|
44991
|
-
.fi
|
44992
|
-
.UNINDENT
|
44993
|
-
.UNINDENT
|
44994
|
-
.INDENT 7.0
|
44995
|
-
.TP
|
44996
|
-
.B YYYY
|
44997
|
-
Year with four digits.
|
44998
|
-
.TP
|
44999
|
-
.B MM
|
45000
|
-
Month with two digits.
|
45001
|
-
.TP
|
45002
|
-
.B DD
|
45003
|
-
Day with two digits.
|
45004
|
-
.TP
|
45005
|
-
.B hh
|
45006
|
-
Hour with two digits.
|
45007
|
-
.TP
|
45008
|
-
.B mm
|
45009
|
-
Minute with two digits.
|
45010
|
-
.TP
|
45011
|
-
.B ss
|
45012
|
-
Second with two digits.
|
45013
|
-
.TP
|
45014
|
-
.B SSSSSS
|
45015
|
-
Microsecond with six digits.
|
45016
|
-
.UNINDENT
|
45017
|
-
.sp
|
45018
|
-
実行例:
|
45019
|
-
.INDENT 7.0
|
45020
|
-
.INDENT 3.5
|
45021
|
-
.sp
|
45022
|
-
.nf
|
45023
|
-
.ft C
|
45024
|
-
2011\-07\-05 06:25:18.345734
|
45025
|
-
.ft P
|
45026
|
-
.fi
|
45027
|
-
.UNINDENT
|
45028
|
-
.UNINDENT
|
45029
|
-
.TP
|
45030
|
-
.B ID
|
45031
|
-
ID of a thread. Groonga process creates threads to process
|
45032
|
-
requests concurrently. Each thread outputs some logs for a
|
45033
|
-
request. This ID can be used to extract a log sequence by
|
45034
|
-
a thread.
|
45035
|
-
.sp
|
45036
|
-
実行例:
|
45037
|
-
.INDENT 7.0
|
45038
|
-
.INDENT 3.5
|
45039
|
-
.sp
|
45040
|
-
.nf
|
45041
|
-
.ft C
|
45042
|
-
45ea3034
|
45043
|
-
.ft P
|
45044
|
-
.fi
|
45045
|
-
.UNINDENT
|
45046
|
-
.UNINDENT
|
45047
|
-
.UNINDENT
|
45048
|
-
.INDENT 0.0
|
45049
|
-
.TP
|
45050
|
-
.B >
|
45051
|
-
A character that indicates query is started.
|
45052
|
-
.UNINDENT
|
45053
|
-
.INDENT 0.0
|
45054
|
-
.TP
|
45055
|
-
.B :
|
45056
|
-
A character that indicates query is processing.
|
45057
|
-
.UNINDENT
|
45058
|
-
.INDENT 0.0
|
45059
|
-
.TP
|
45060
|
-
.B <
|
45061
|
-
A character that indicates query is finished.
|
45062
|
-
.TP
|
45063
|
-
.B MESSAGE
|
45064
|
-
Details about the log with free format.
|
45065
|
-
.sp
|
45066
|
-
実行例:
|
45067
|
-
.INDENT 7.0
|
45068
|
-
.INDENT 3.5
|
45069
|
-
.sp
|
45070
|
-
.nf
|
45071
|
-
.ft C
|
45072
|
-
query log opened.
|
45073
|
-
.ft P
|
45074
|
-
.fi
|
45075
|
-
.UNINDENT
|
45076
|
-
.UNINDENT
|
45077
|
-
.TP
|
45078
|
-
.B QUERY
|
45079
|
-
A query to be processed.
|
45080
|
-
.sp
|
45081
|
-
実行例:
|
45082
|
-
.INDENT 7.0
|
45083
|
-
.INDENT 3.5
|
45084
|
-
.sp
|
45085
|
-
.nf
|
45086
|
-
.ft C
|
45087
|
-
select users \-\-match_columns hobby \-\-query music
|
45088
|
-
.ft P
|
45089
|
-
.fi
|
45090
|
-
.UNINDENT
|
45091
|
-
.UNINDENT
|
45092
|
-
.TP
|
45093
|
-
.B ELAPSED_TIME
|
45094
|
-
Elapsed time in nanoseconds since query is started.
|
45095
|
-
.sp
|
45096
|
-
実行例:
|
45097
|
-
.INDENT 7.0
|
45098
|
-
.INDENT 3.5
|
45099
|
-
.sp
|
45100
|
-
.nf
|
45101
|
-
.ft C
|
45102
|
-
000000000075770
|
45103
|
-
(It means 75,770 nanoseconds.)
|
45104
|
-
.ft P
|
45105
|
-
.fi
|
45106
|
-
.UNINDENT
|
45107
|
-
.UNINDENT
|
45108
|
-
.TP
|
45109
|
-
.B PROGRESS
|
45110
|
-
A processed work at the time.
|
45111
|
-
.sp
|
45112
|
-
実行例:
|
45113
|
-
.INDENT 7.0
|
45114
|
-
.INDENT 3.5
|
45115
|
-
.sp
|
45116
|
-
.nf
|
45117
|
-
.ft C
|
45118
|
-
select(313401)
|
45119
|
-
(It means that \(aqselect\(aq is processed and 313,401 records are remained.)
|
45120
|
-
.ft P
|
45121
|
-
.fi
|
45122
|
-
.UNINDENT
|
45123
|
-
.UNINDENT
|
45124
|
-
.TP
|
45125
|
-
.B RETURN_CODE
|
45126
|
-
A return code for the query.
|
45127
|
-
.sp
|
45128
|
-
実行例:
|
45129
|
-
.INDENT 7.0
|
45130
|
-
.INDENT 3.5
|
45131
|
-
.sp
|
45132
|
-
.nf
|
45133
|
-
.ft C
|
45134
|
-
rc=0
|
45135
|
-
(It means return code is 0. 0 means GRN_SUCCESS.)
|
45136
|
-
.ft P
|
45137
|
-
.fi
|
45138
|
-
.UNINDENT
|
45139
|
-
.UNINDENT
|
45140
|
-
.UNINDENT
|
45141
|
-
.sp
|
45142
|
-
実行例:
|
45143
|
-
.INDENT 0.0
|
45144
|
-
.INDENT 3.5
|
45145
|
-
.sp
|
45146
|
-
.nf
|
45147
|
-
.ft C
|
45148
|
-
2011\-07\-05 06:25:19.458756|45ea3034|>select Properties \-\-limit 0
|
45149
|
-
2011\-07\-05 06:25:19.458829|45ea3034|:000000000072779 select(19)
|
45150
|
-
2011\-07\-05 06:25:19.458856|45ea3034|:000000000099998 output(0)
|
45151
|
-
2011\-07\-05 06:25:19.458875|45ea3034|<000000000119062 rc=0
|
45152
|
-
2011\-07\-05 06:25:19.458986|45ea3034|>quit
|
45153
|
-
.ft P
|
45154
|
-
.fi
|
45155
|
-
.UNINDENT
|
45156
|
-
.UNINDENT
|
45157
|
-
.SS チューニング
|
45158
|
-
.SS 概要
|
45159
|
-
.sp
|
45160
|
-
大きなデータベースを扱うためのチューニングパラメーターがいくつかあります。
|
45161
|
-
.SS 引数
|
45162
|
-
.sp
|
45163
|
-
このセクションではチューニングパラメーターについて説明します。
|
45164
|
-
.SS 1プロセスで開ける最大ファイル数
|
45165
|
-
.sp
|
45166
|
-
このパラメーターは大きなデータベースを扱うためのパラメーターです。
|
45167
|
-
.sp
|
45168
|
-
Groongaは1つのテーブル・カラムごとに1つ以上のファイルを作ります。もし、データベース内にたくさんのテーブル・カラムがある場合は、Groongaプロセスはたくさんのファイルを開く必要があります。
|
45169
|
-
.sp
|
45170
|
-
システムでは1プロセスごとに開ける最大ファイル数を制限しています。そのため、この制限を緩和する必要があります。
|
45171
|
-
.sp
|
45172
|
-
Groongaがどのくらいファイルを開くのかを計算する式は次の通りです。:
|
45173
|
-
.INDENT 0.0
|
45174
|
-
.INDENT 3.5
|
45175
|
-
.sp
|
45176
|
-
.nf
|
45177
|
-
.ft C
|
45178
|
-
3 (for DB) +
|
45179
|
-
N tables +
|
45180
|
-
N columns (except index clumns) +
|
45181
|
-
(N index columns * 2) +
|
45182
|
-
X (the number of plugins etc.)
|
45183
|
-
.ft P
|
45184
|
-
.fi
|
45185
|
-
.UNINDENT
|
45186
|
-
.UNINDENT
|
45187
|
-
.sp
|
45188
|
-
次のスキーマを例として考えます。:
|
45189
|
-
.INDENT 0.0
|
45190
|
-
.INDENT 3.5
|
45191
|
-
.sp
|
45192
|
-
.nf
|
45193
|
-
.ft C
|
45194
|
-
table_create Entries TABLE_HASH_KEY ShortText
|
45195
|
-
column_create Entries content COLUMN_SCALAR Text
|
45196
|
-
column_create Entries n_likes COLUMN_SCALAR UInt32
|
45197
|
-
table_create Terms TABLE_PAT_KEY ShortText \-\-default_tokenizer TokenBigram \-\-normalizer NormalizerAuto
|
45198
|
-
column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
|
45199
|
-
column_create Terms entries_content_index COLUMN_INDEX|WITH_POSITION Entries content
|
45200
|
-
.ft P
|
45201
|
-
.fi
|
45202
|
-
.UNINDENT
|
45203
|
-
.UNINDENT
|
45204
|
-
.sp
|
45205
|
-
この例では少なくとも11ファイル開きます。:
|
42826
|
+
この例では少なくとも11ファイル開きます。:
|
45206
42827
|
.INDENT 0.0
|
45207
42828
|
.INDENT 3.5
|
45208
42829
|
.sp
|
@@ -45284,7 +42905,7 @@ vm.overcommit_memory = 1
|
|
45284
42905
|
.sp
|
45285
42906
|
.nf
|
45286
42907
|
.ft C
|
45287
|
-
% sudo sysctl
|
42908
|
+
% sudo sysctl \-\-system
|
45288
42909
|
.ft P
|
45289
42910
|
.fi
|
45290
42911
|
.UNINDENT
|