rroonga 6.1.3-x86-mingw32 → 7.0.2-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/Rakefile +1 -0
 - data/doc/text/news.md +28 -0
 - data/ext/groonga/rb-grn-column.c +53 -32
 - data/ext/groonga/rb-grn-context.c +1 -1
 - data/ext/groonga/rb-grn-data-column.c +103 -0
 - data/ext/groonga/rb-grn-default-cache.c +104 -0
 - data/ext/groonga/rb-grn-index-column.c +93 -15
 - data/ext/groonga/rb-grn-inverted-index-cursor.c +269 -0
 - data/ext/groonga/rb-grn-object.c +1 -1
 - data/ext/groonga/rb-grn-plugin.c +1 -1
 - data/ext/groonga/rb-grn-table-cursor.c +1 -1
 - data/ext/groonga/rb-grn-table-key-support.c +6 -0
 - data/ext/groonga/rb-grn-table.c +0 -3
 - data/ext/groonga/rb-grn-utils.c +35 -7
 - data/ext/groonga/rb-grn.h +13 -4
 - data/ext/groonga/rb-groonga.c +2 -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/rroonga-build.rb +7 -7
 - data/rroonga.gemspec +2 -1
 - data/test/test-data-column.rb +71 -2
 - data/test/test-default-cache.rb +43 -0
 - data/test/test-double-array-trie.rb +7 -0
 - data/test/test-fix-size-column.rb +12 -0
 - data/test/test-hash.rb +7 -0
 - data/test/test-index-column.rb +12 -0
 - data/test/test-index-cursor.rb +93 -28
 - data/test/test-patricia-trie.rb +7 -0
 - data/test/test-variable-size-column.rb +19 -0
 - data/vendor/local/bin/grndb.exe +0 -0
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
 - data/vendor/local/bin/groonga.exe +0 -0
 - data/vendor/local/bin/libgroonga-0.dll +0 -0
 - data/vendor/local/bin/libmecab-2.dll +0 -0
 - data/vendor/local/bin/libmsgpackc.dll +0 -0
 - data/vendor/local/bin/libonigmo-6.dll +0 -0
 - data/vendor/local/bin/libpcre-1.dll +0 -0
 - data/vendor/local/bin/libpcrecpp-0.dll +0 -0
 - data/vendor/local/bin/libpcreposix-0.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-config +2 -2
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/onigmo-config +2 -2
 - data/vendor/local/bin/pcre-config +1 -1
 - data/vendor/local/bin/pcregrep.exe +0 -0
 - data/vendor/local/bin/pcretest.exe +0 -0
 - data/vendor/local/bin/zlib1.dll +0 -0
 - data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +16 -3
 - data/vendor/local/include/groonga/groonga.h +2 -1
 - data/vendor/local/include/groonga/groonga/cache.h +49 -0
 - data/vendor/local/include/groonga/groonga/column.h +1 -1
 - data/vendor/local/include/groonga/groonga/groonga.h +26 -16
 - data/vendor/local/include/groonga/groonga/ii.h +7 -1
 - data/vendor/local/include/groonga/groonga/obj.h +8 -1
 - data/vendor/local/include/groonga/groonga/plugin.h +6 -1
 - data/vendor/local/include/groonga/groonga/table.h +5 -0
 - data/vendor/local/include/groonga/groonga/util.h +4 -1
 - data/vendor/local/include/groonga/groonga/window_function.h +5 -1
 - data/vendor/local/include/onigmo.h +6 -5
 - data/vendor/local/include/zconf.h +32 -9
 - data/vendor/local/include/zlib.h +298 -154
 - data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/number.la +2 -2
 - data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/string.la +2 -2
 - data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/time.la +2 -2
 - 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/functions/vector.la +2 -2
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
 - 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/query_expanders/tsv.la +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +392 -53
 - data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +1 -2
 - data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +37 -14
 - 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/suggest/suggest.la +2 -2
 - 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/token_filters/stop_word.la +2 -2
 - 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/plugins/tokenizers/mecab.la +2 -2
 - data/vendor/local/lib/groonga/scripts/ruby/command.rb +0 -1
 - data/vendor/local/lib/groonga/scripts/ruby/command_input.rb +15 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression.rb +1 -0
 - data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +2 -136
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +12 -1
 - data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger.rb +7 -8
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +234 -80
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +185 -0
 - data/vendor/local/lib/groonga/scripts/ruby/table.rb +27 -2
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +2 -2
 - 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/libmecab.la +2 -2
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libonigmo.a +0 -0
 - data/vendor/local/lib/libonigmo.dll.a +0 -0
 - data/vendor/local/lib/libonigmo.la +3 -3
 - data/vendor/local/lib/libpcre.a +0 -0
 - data/vendor/local/lib/libpcre.dll.a +0 -0
 - data/vendor/local/lib/libpcre.la +2 -2
 - data/vendor/local/lib/libpcrecpp.a +0 -0
 - data/vendor/local/lib/libpcrecpp.dll.a +0 -0
 - data/vendor/local/lib/libpcrecpp.la +2 -2
 - data/vendor/local/lib/libpcreposix.a +0 -0
 - data/vendor/local/lib/libpcreposix.dll.a +0 -0
 - data/vendor/local/lib/libpcreposix.la +2 -2
 - data/vendor/local/lib/libz.a +0 -0
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
 - data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
 - data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
 - data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
 - data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
 - data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
 - data/vendor/local/lib/pkgconfig/onigmo.pc +7 -7
 - data/vendor/local/lib/pkgconfig/zlib.pc +4 -4
 - 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/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +11 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +13 -47
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
 - 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 +3 -4
 - 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 +181 -891
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +11 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/5.x.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/6.x.txt +1086 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +45 -19
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +632 -91
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +514 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +902 -55
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +5 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +71 -23
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +51 -25
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_records.txt +195 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +100 -15
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/string_length.txt +33 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_new.txt +38 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +6 -6
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_function.txt +22 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/record_number.txt +28 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/window_record_number.txt +25 -0
 - data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions/record_number.txt → en/html/_sources/reference/window_functions/window_sum.txt} +5 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +3 -3
 - 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 +5 -5
 - 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 +102 -93
 - 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 +326 -251
 - data/vendor/local/share/doc/groonga/en/html/index.html +111 -104
 - data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +24 -65
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +12 -11
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
 - 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 +8 -9
 - 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 +213 -898
 - 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 +7 -6
 - 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 +16 -14
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/5.x.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/news/6.x.html +1148 -0
 - 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 +90 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/alias.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +39 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +22 -22
 - 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 +5 -5
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +61 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +1727 -408
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +526 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1685 -492
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +19 -19
 - 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 +14 -14
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +75 -34
 - 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 +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +107 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +355 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +25 -25
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +31 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +155 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +15 -15
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/{record_number.html → string_length.html} +36 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +24 -24
 - 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/time_classify_day.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +170 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +24 -24
 - 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 +36 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +27 -15
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +29 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +26 -26
 - 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 +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +33 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +28 -28
 - 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 +35 -35
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +147 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +164 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +163 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +163 -0
 - 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 +9 -9
 - 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 +8 -8
 - 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/contribution/development/release.txt +11 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +13 -47
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
 - 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 +3 -4
 - 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 +181 -891
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +11 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/5.x.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/6.x.txt +1086 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +45 -19
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +632 -91
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +514 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +902 -55
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +5 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +71 -23
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +51 -25
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_records.txt +195 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +100 -15
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/string_length.txt +33 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_new.txt +38 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_function.txt +22 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/record_number.txt +28 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/window_record_number.txt +25 -0
 - data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions/record_number.txt → ja/html/_sources/reference/window_functions/window_sum.txt} +5 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +3 -3
 - 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 +5 -5
 - 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 +102 -93
 - 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 +186 -118
 - data/vendor/local/share/doc/groonga/ja/html/index.html +111 -104
 - data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +24 -61
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +12 -11
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
 - 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 +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news.html +132 -761
 - 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 +6 -6
 - 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 +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +1064 -0
 - 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 +90 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +39 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +22 -22
 - 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 +5 -5
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +67 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +1629 -383
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +508 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1606 -478
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +19 -19
 - 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 +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +76 -48
 - 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 +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +103 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +370 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +31 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +150 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +15 -15
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/{record_number.html → string_length.html} +36 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +24 -24
 - 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/time_classify_day.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +171 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +24 -24
 - 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 +36 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +19 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +26 -26
 - 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 +6 -6
 - 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 +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +33 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +28 -28
 - 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 +35 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +146 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +165 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +164 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +164 -0
 - 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 +9 -9
 - 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 +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
 - data/vendor/local/share/groonga/mruby/LEGAL +4 -0
 - data/vendor/local/share/license/mruby/AUTHORS +1 -0
 - data/vendor/local/share/license/mruby/MITL +1 -1
 - data/vendor/local/share/license/zlib/README +3 -3
 - metadata +100 -67
 - data/lib/2.4/groonga.so +0 -0
 - data/vendor/local/sbin/groonga-httpd-restart +0 -105
 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.3.52. ruby_load — Groonga  
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.3.52. ruby_load — Groonga v7.0.1-160-gda23e59ドキュメント</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     ' 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '7.0.1-160-gda23e59',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -28,7 +28,7 @@ 
     | 
|
| 
       28 
28 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="index" title="索引" href="../../genindex.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="search" title="検索" href="../../search.html" />
         
     | 
| 
       31 
     | 
    
         
            -
                <link rel="top" title="Groonga  
     | 
| 
      
 31 
     | 
    
         
            +
                <link rel="top" title="Groonga v7.0.1-160-gda23e59ドキュメント" href="../../index.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="up" title="7.3. コマンド" href="../command.html" />
         
     | 
| 
       33 
33 
     | 
    
         
             
                <link rel="next" title="7.3.53. schema" href="schema.html" />
         
     | 
| 
       34 
34 
     | 
    
         
             
                <link rel="prev" title="7.3.51. ruby_eval" href="ruby_eval.html" /> 
         
     | 
| 
         @@ -63,7 +63,7 @@ 
     | 
|
| 
       63 
63 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       64 
64 
     | 
    
         
             
                      <a href="ruby_eval.html" title="7.3.51. ruby_eval"
         
     | 
| 
       65 
65 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       66 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 66 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> »</li>
         
     | 
| 
       67 
67 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       68 
68 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       69 
69 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -192,7 +192,7 @@ ruby_load "expression.rb" 
     | 
|
| 
       192 
192 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       193 
193 
     | 
    
         
             
                      <a href="ruby_eval.html" title="7.3.51. ruby_eval"
         
     | 
| 
       194 
194 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       195 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 195 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> »</li>
         
     | 
| 
       196 
196 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       197 
197 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       198 
198 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.3.53. schema — Groonga  
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.3.53. schema — Groonga v7.0.1-160-gda23e59ドキュメント</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     ' 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '7.0.1-160-gda23e59',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -28,7 +28,7 @@ 
     | 
|
| 
       28 
28 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="index" title="索引" href="../../genindex.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="search" title="検索" href="../../search.html" />
         
     | 
| 
       31 
     | 
    
         
            -
                <link rel="top" title="Groonga  
     | 
| 
      
 31 
     | 
    
         
            +
                <link rel="top" title="Groonga v7.0.1-160-gda23e59ドキュメント" href="../../index.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="up" title="7.3. コマンド" href="../command.html" />
         
     | 
| 
       33 
33 
     | 
    
         
             
                <link rel="next" title="7.3.54. select" href="select.html" />
         
     | 
| 
       34 
34 
     | 
    
         
             
                <link rel="prev" title="7.3.52. ruby_load" href="ruby_load.html" /> 
         
     | 
| 
         @@ -63,7 +63,7 @@ 
     | 
|
| 
       63 
63 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       64 
64 
     | 
    
         
             
                      <a href="ruby_load.html" title="7.3.52. ruby_load"
         
     | 
| 
       65 
65 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       66 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 66 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> »</li>
         
     | 
| 
       67 
67 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       68 
68 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       69 
69 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -1183,7 +1183,7 @@ column_create Terms memos_content_index \ 
     | 
|
| 
       1183 
1183 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       1184 
1184 
     | 
    
         
             
                      <a href="ruby_load.html" title="7.3.52. ruby_load"
         
     | 
| 
       1185 
1185 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       1186 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 1186 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> »</li>
         
     | 
| 
       1187 
1187 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       1188 
1188 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       1189 
1189 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.3.54. select — Groonga  
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.3.54. select — Groonga v7.0.1-160-gda23e59ドキュメント</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     ' 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '7.0.1-160-gda23e59',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -28,7 +28,7 @@ 
     | 
|
| 
       28 
28 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="index" title="索引" href="../../genindex.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="search" title="検索" href="../../search.html" />
         
     | 
| 
       31 
     | 
    
         
            -
                <link rel="top" title="Groonga  
     | 
| 
      
 31 
     | 
    
         
            +
                <link rel="top" title="Groonga v7.0.1-160-gda23e59ドキュメント" href="../../index.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="up" title="7.3. コマンド" href="../command.html" />
         
     | 
| 
       33 
33 
     | 
    
         
             
                <link rel="next" title="7.3.55. shutdown" href="shutdown.html" />
         
     | 
| 
       34 
34 
     | 
    
         
             
                <link rel="prev" title="7.3.53. schema" href="schema.html" /> 
         
     | 
| 
         @@ -63,7 +63,7 @@ 
     | 
|
| 
       63 
63 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       64 
64 
     | 
    
         
             
                      <a href="schema.html" title="7.3.53. schema"
         
     | 
| 
       65 
65 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       66 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 66 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> »</li>
         
     | 
| 
       67 
67 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       68 
68 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       69 
69 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -107,20 +107,60 @@ 
     | 
|
| 
       107 
107 
     | 
    
         
             
                   [adjuster=null]
         
     | 
| 
       108 
108 
     | 
    
         
             
                   [drilldown_calc_types=NONE]
         
     | 
| 
       109 
109 
     | 
    
         
             
                   [drilldown_calc_target=null]
         
     | 
| 
      
 110 
     | 
    
         
            +
                   [drilldown_filter=null]
         
     | 
| 
       110 
111 
     | 
    
         
             
                   [sort_keys=null]
         
     | 
| 
       111 
112 
     | 
    
         
             
                   [drilldown_sort_keys=null]
         
     | 
| 
       112 
113 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       113 
114 
     | 
    
         
             
            </div>
         
     | 
| 
       114 
     | 
    
         
            -
            <p 
     | 
| 
      
 115 
     | 
    
         
            +
            <p>以下の名前付き引数で動的カラム機能を使うことができます。</p>
         
     | 
| 
      
 116 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 117 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 118 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
      
 119 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
         
     | 
| 
      
 120 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].type=null</span></code></li>
         
     | 
| 
      
 121 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].value=null</span></code></li>
         
     | 
| 
      
 122 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys=null</span></code></li>
         
     | 
| 
      
 123 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys=null</span></code></li>
         
     | 
| 
      
 124 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 125 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 126 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">${NAME}</span></code> には1つ以上のアルファベット、数字、 <code class="docutils literal"><span class="pre">_</span></code>  を使うことができます。たとえば、 <code class="docutils literal"><span class="pre">column1</span></code> は有効な <code class="docutils literal"><span class="pre">${NAME}</span></code> です。これは通常のカラムと同じルールです。 <a class="reference internal" href="column_create.html#column-create-name"><span class="std std-ref">name</span></a> も見てください。</p>
         
     | 
| 
      
 127 
     | 
    
         
            +
            <p>同じ <code class="docutils literal"><span class="pre">${NAME}</span></code> も持つ引数は同じグループになります。</p>
         
     | 
| 
      
 128 
     | 
    
         
            +
            <p>たとえば、以下の引数は1つの動的カラムを指定しています。</p>
         
     | 
| 
      
 129 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 130 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 131 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name].stage</span> <span class="pre">initial</span></code></li>
         
     | 
| 
      
 132 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name].type</span> <span class="pre">UInt32</span></code></li>
         
     | 
| 
      
 133 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name].value</span> <span class="pre">29</span></code></li>
         
     | 
| 
      
 134 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 135 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 136 
     | 
    
         
            +
            <p>以下の引数は2つの動的カラムを指定しています。</p>
         
     | 
| 
      
 137 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 138 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 139 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name1].stage</span> <span class="pre">initial</span></code></li>
         
     | 
| 
      
 140 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name1].type</span> <span class="pre">UInt32</span></code></li>
         
     | 
| 
      
 141 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name1].value</span> <span class="pre">29</span></code></li>
         
     | 
| 
      
 142 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name2].stage</span> <span class="pre">filtered</span></code></li>
         
     | 
| 
      
 143 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name2].type</span> <span class="pre">Float</span></code></li>
         
     | 
| 
      
 144 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name2].value</span> <span class="pre">'_score</span> <span class="pre">*</span> <span class="pre">0.1'</span></code></li>
         
     | 
| 
      
 145 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 146 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 147 
     | 
    
         
            +
            <p>このコマンドには高度なドリルダウン機能のために以下の名前付き引数があります。</p>
         
     | 
| 
       115 
148 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       116 
149 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       117 
150 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys=null</span></code></li>
         
     | 
| 
       118 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]. 
     | 
| 
      
 151 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys=null</span></code></li>
         
     | 
| 
       119 
152 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns="_key,</span> <span class="pre">_nsubrecs"</span></code></li>
         
     | 
| 
       120 
153 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset=0</span></code></li>
         
     | 
| 
       121 
154 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit=10</span></code></li>
         
     | 
| 
       122 
155 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types=NONE</span></code></li>
         
     | 
| 
       123 
156 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target=null</span></code></li>
         
     | 
| 
      
 157 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter=null</span></code></li>
         
     | 
| 
      
 158 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
      
 159 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
         
     | 
| 
      
 160 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code></li>
         
     | 
| 
      
 161 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code></li>
         
     | 
| 
      
 162 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code></li>
         
     | 
| 
      
 163 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code></li>
         
     | 
| 
       124 
164 
     | 
    
         
             
            </ul>
         
     | 
| 
       125 
165 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       126 
166 
     | 
    
         
             
            <div class="deprecated">
         
     | 
| 
         @@ -132,16 +172,16 @@ 
     | 
|
| 
       132 
172 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       133 
173 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       134 
174 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">--drilldowns[label].keys</span> <span class="pre">column</span></code></li>
         
     | 
| 
       135 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">--drilldowns[label]. 
     | 
| 
      
 175 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldowns[label].sort_keys</span> <span class="pre">-_nsubrecs</span></code></li>
         
     | 
| 
       136 
176 
     | 
    
         
             
            </ul>
         
     | 
| 
       137 
177 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       138 
178 
     | 
    
         
             
            <p>以下の引数は2つのドリルダウンを指定しています。</p>
         
     | 
| 
       139 
179 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       140 
180 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       141 
181 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">--drilldowns[label1].keys</span> <span class="pre">column1</span></code></li>
         
     | 
| 
       142 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">--drilldowns[label1]. 
     | 
| 
      
 182 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldowns[label1].sort_keys</span> <span class="pre">-_nsubrecs</span></code></li>
         
     | 
| 
       143 
183 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">--drilldowns[label2].keys</span> <span class="pre">column2</span></code></li>
         
     | 
| 
       144 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">--drilldowns[label2]. 
     | 
| 
      
 184 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldowns[label2].sort_keys</span> <span class="pre">_key</span></code></li>
         
     | 
| 
       145 
185 
     | 
    
         
             
            </ul>
         
     | 
| 
       146 
186 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       147 
187 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -638,6 +678,236 @@ load --table Entries 
     | 
|
| 
       638 
678 
     | 
    
         
             
            <p>多くのECサイトではこのUIを使っています。Amazonのサイドメニューを見てください。</p>
         
     | 
| 
       639 
679 
     | 
    
         
             
            <p>Groongaはグループ化したレコードの数を数えるだけでなく、グループ化したレコードのカラムの値の中から最大値・最小値を見つけたり、合計値を計算したりすることができます。詳細は <a class="reference internal" href="#select-drilldown-related-parameters"><span class="std std-ref">ドリルダウン関連の引数</span></a> を参照してください。</p>
         
     | 
| 
       640 
680 
     | 
    
         
             
            </div>
         
     | 
| 
      
 681 
     | 
    
         
            +
            <div class="section" id="dynamic-column">
         
     | 
| 
      
 682 
     | 
    
         
            +
            <h3>7.3.54.3.6. 動的カラム<a class="headerlink" href="#dynamic-column" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 683 
     | 
    
         
            +
            <p>1回の <code class="docutils literal"><span class="pre">select</span></code> 実行中に0個以上のカラムを動的に作ることができます。この機能を使うと計算した値に対してドリルダウンしたりウィンドウ関数と使ったりできます。</p>
         
     | 
| 
      
 684 
     | 
    
         
            +
            <p>以下は計算した値に対してドリルダウンするために動的カラムを使う例です。この例では <code class="docutils literal"><span class="pre">n_likes_class</span></code> という名前のカラムを新しく作っています。 <code class="docutils literal"><span class="pre">n_likes_class</span></code> カラムには <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> の値を分類した値を入れます。この例では <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> カラムの値を <code class="docutils literal"><span class="pre">10</span></code> 刻みで分類し、一番小さい数値をその分類の代表値とします。もし、 <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> の値が <code class="docutils literal"><span class="pre">3</span></code> や <code class="docutils literal"><span class="pre">5</span></code> のように <code class="docutils literal"><span class="pre">0</span></code> から <code class="docutils literal"><span class="pre">9</span></code> の間の値なら、 <code class="docutils literal"><span class="pre">n_likes_class</span></code> の値(分類した値)は <code class="docutils literal"><span class="pre">0</span></code> になります。もし、 <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> の値が <code class="docutils literal"><span class="pre">10</span></code> や <code class="docutils literal"><span class="pre">15</span></code> のように <code class="docutils literal"><span class="pre">10</span></code> から <code class="docutils literal"><span class="pre">19</span></code> の間の値なら、 <code class="docutils literal"><span class="pre">n_likes_class</span></code> の値(分類した値)は <code class="docutils literal"><span class="pre">10</span></code> になります。</p>
         
     | 
| 
      
 685 
     | 
    
         
            +
            <p>このような分類をするために <a class="reference internal" href="../functions/number_classify.html"><span class="doc">number_classify</span></a> 関数を使えます。 <a class="reference internal" href="../functions/number_classify.html"><span class="doc">number_classify</span></a> 関数を使うためには <a class="reference internal" href="plugin_register.html"><span class="doc">plugin_register</span></a> コマンドで <code class="docutils literal"><span class="pre">functions/number</span></code> プラグインを登録する必要があります。</p>
         
     | 
| 
      
 686 
     | 
    
         
            +
            <p>この例では <code class="docutils literal"><span class="pre">n_likes_class</span></code> の値でドリルダウンしています。このドリルダウン結果があるとデータの傾向がわかりやすくなるでしょう。</p>
         
     | 
| 
      
 687 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 688 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/number
         
     | 
| 
      
 689 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 690 
     | 
    
         
            +
            select \
         
     | 
| 
      
 691 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 692 
     | 
    
         
            +
              --columns[n_likes_class].stage initial \
         
     | 
| 
      
 693 
     | 
    
         
            +
              --columns[n_likes_class].type UInt32 \
         
     | 
| 
      
 694 
     | 
    
         
            +
              --columns[n_likes_class].value 'number_classify(n_likes, 10)' \
         
     | 
| 
      
 695 
     | 
    
         
            +
              --drilldown n_likes_class \
         
     | 
| 
      
 696 
     | 
    
         
            +
              --drilldown_sort_keys _nsubrecs \
         
     | 
| 
      
 697 
     | 
    
         
            +
              --output_columns n_likes,n_likes_class
         
     | 
| 
      
 698 
     | 
    
         
            +
            # [
         
     | 
| 
      
 699 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 700 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 701 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 702 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 703 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 704 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 705 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 706 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 707 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 708 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 709 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 710 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 711 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 712 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 713 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 714 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 715 
     | 
    
         
            +
            #           "n_likes_class",
         
     | 
| 
      
 716 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 717 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 718 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 719 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 720 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 721 
     | 
    
         
            +
            #         0
         
     | 
| 
      
 722 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 723 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 724 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 725 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 726 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 727 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 728 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 729 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 730 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 731 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 732 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 733 
     | 
    
         
            +
            #         0
         
     | 
| 
      
 734 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 735 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 736 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 737 
     | 
    
         
            +
            #         0
         
     | 
| 
      
 738 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 739 
     | 
    
         
            +
            #     ],
         
     | 
| 
      
 740 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 741 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 742 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 743 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 744 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 745 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 746 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 747 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 748 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 749 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 750 
     | 
    
         
            +
            #           "_nsubrecs",
         
     | 
| 
      
 751 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 752 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 753 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 754 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 755 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 756 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 757 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 758 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 759 
     | 
    
         
            +
            #         0,
         
     | 
| 
      
 760 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 761 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 762 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 763 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 764 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 765 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 766 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 767 
     | 
    
         
            +
            <p>詳細は <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">動的カラム関連の引数</span></a> を見てください。</p>
         
     | 
| 
      
 768 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 769 
     | 
    
         
            +
            <div class="section" id="window-function">
         
     | 
| 
      
 770 
     | 
    
         
            +
            <h3>7.3.54.3.7. ウィンドウ関数<a class="headerlink" href="#window-function" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 771 
     | 
    
         
            +
            <p>グループ化したレコードの値を使って各レコードの値を計算することができます。たとえば、グループ毎に合計を計算して、合計値をすべてのレコードに格納できます。ドリルダウンもグループ毎に合計を計算できますが、すべてのレコードに合計を格納するのではなく、各グループ合計を格納する点が違います。</p>
         
     | 
| 
      
 772 
     | 
    
         
            +
            <p>以下はウィンドウ関数を使った結果の例です。すべてのレコードが合計値を持っています。</p>
         
     | 
| 
      
 773 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 774 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 775 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 776 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 777 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 778 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 779 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 780 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
         
     | 
| 
      
 781 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 782 
     | 
    
         
            +
            <th class="head"><p class="first last">合計対象の値</p>
         
     | 
| 
      
 783 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 784 
     | 
    
         
            +
            <th class="head"><p class="first last">合計結果</p>
         
     | 
| 
      
 785 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 786 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 787 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 788 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 789 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 790 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 791 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 792 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 793 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 794 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 795 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 796 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 797 
     | 
    
         
            +
            <tr class="row-even"><td>2</td>
         
     | 
| 
      
 798 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 799 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 800 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 801 
     | 
    
         
            +
            <tr class="row-odd"><td>3</td>
         
     | 
| 
      
 802 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 803 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 804 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 805 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 806 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 807 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 808 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 809 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 810 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 811 
     | 
    
         
            +
            <p>以下はドリルダウンを使った結果の例です。各グループが合計値を持っています。</p>
         
     | 
| 
      
 812 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 813 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 814 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 815 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 816 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 817 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 818 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 819 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
         
     | 
| 
      
 820 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 821 
     | 
    
         
            +
            <th class="head"><p class="first last">合計対象の値</p>
         
     | 
| 
      
 822 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 823 
     | 
    
         
            +
            <th class="head"><p class="first last">合計結果</p>
         
     | 
| 
      
 824 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 825 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 826 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 827 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 828 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 829 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 830 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 831 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 832 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 833 
     | 
    
         
            +
            <td>10, 15</td>
         
     | 
| 
      
 834 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 835 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 836 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 837 
     | 
    
         
            +
            <td>3, 5</td>
         
     | 
| 
      
 838 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 839 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 840 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 841 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 842 
     | 
    
         
            +
            <p>ウィンドウ関数はデータ解析に有用です。</p>
         
     | 
| 
      
 843 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">Entries.tag</span></code> 毎に <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> の合計を計算する例です。</p>
         
     | 
| 
      
 844 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 845 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/number
         
     | 
| 
      
 846 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 847 
     | 
    
         
            +
            select \
         
     | 
| 
      
 848 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 849 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].stage initial \
         
     | 
| 
      
 850 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].type UInt32 \
         
     | 
| 
      
 851 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].value 'window_sum(n_likes)' \
         
     | 
| 
      
 852 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].window.group_keys tag \
         
     | 
| 
      
 853 
     | 
    
         
            +
              --output_columns tag,n_likes,n_likes_sum_per_tag
         
     | 
| 
      
 854 
     | 
    
         
            +
            # [
         
     | 
| 
      
 855 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 856 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 857 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 858 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 859 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 860 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 861 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 862 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 863 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 864 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 865 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 866 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 867 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 868 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 869 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 870 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 871 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 872 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 873 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 874 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 875 
     | 
    
         
            +
            #           "n_likes_sum_per_tag",
         
     | 
| 
      
 876 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 877 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 878 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 879 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 880 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 881 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 882 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 883 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 884 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 885 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 886 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 887 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 888 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 889 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 890 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 891 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 892 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 893 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 894 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 895 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 896 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 897 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 898 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 899 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 900 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 901 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 902 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 903 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 904 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 905 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 906 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 907 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 908 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 909 
     | 
    
         
            +
            <p>詳細は <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を見てください。</p>
         
     | 
| 
      
 910 
     | 
    
         
            +
            </div>
         
     | 
| 
       641 
911 
     | 
    
         
             
            </div>
         
     | 
| 
       642 
912 
     | 
    
         
             
            <div class="section" id="parameters">
         
     | 
| 
       643 
913 
     | 
    
         
             
            <h2>7.3.54.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
         @@ -656,12 +926,12 @@ load --table Entries 
     | 
|
| 
       656 
926 
     | 
    
         
             
            #     -22,
         
     | 
| 
       657 
927 
     | 
    
         
             
            #     1337566253.89858,
         
     | 
| 
       658 
928 
     | 
    
         
             
            #     0.000355720520019531,
         
     | 
| 
       659 
     | 
    
         
            -
            #     "invalid  
     | 
| 
      
 929 
     | 
    
         
            +
            #     "[select][table] invalid name: <Nonexistent>",
         
     | 
| 
       660 
930 
     | 
    
         
             
            #     [
         
     | 
| 
       661 
931 
     | 
    
         
             
            #       [
         
     | 
| 
       662 
932 
     | 
    
         
             
            #         "grn_select",
         
     | 
| 
       663 
     | 
    
         
            -
            #         " 
     | 
| 
       664 
     | 
    
         
            -
            #          
     | 
| 
      
 933 
     | 
    
         
            +
            #         "proc_select.c",
         
     | 
| 
      
 934 
     | 
    
         
            +
            #         3006
         
     | 
| 
       665 
935 
     | 
    
         
             
            #       ]
         
     | 
| 
       666 
936 
     | 
    
         
             
            #     ]
         
     | 
| 
       667 
937 
     | 
    
         
             
            #   ]
         
     | 
| 
         @@ -1877,7 +2147,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1877 
2147 
     | 
    
         
             
            </div>
         
     | 
| 
       1878 
2148 
     | 
    
         
             
            <div class="section" id="sort-keys">
         
     | 
| 
       1879 
2149 
     | 
    
         
             
            <span id="select-sort-keys"></span><h4>7.3.54.4.4.3. <code class="docutils literal"><span class="pre">sort_keys</span></code><a class="headerlink" href="#sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1880 
     | 
    
         
            -
            <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code>  
     | 
| 
      
 2150 
     | 
    
         
            +
            <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーにはカラム名を指定します。</p>
         
     | 
| 
       1881 
2151 
     | 
    
         
             
            <p>以下は簡単な <code class="docutils literal"><span class="pre">sort_keys</span></code> の使用例です。</p>
         
     | 
| 
       1882 
2152 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1883 
2153 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys 'n_likes, _id'
         
     | 
| 
         @@ -2077,7 +2347,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2077 
2347 
     | 
    
         
             
            <span id="select-offset"></span><h4>7.3.54.4.4.4. <code class="docutils literal"><span class="pre">offset</span></code><a class="headerlink" href="#offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       2078 
2348 
     | 
    
         
             
            <p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
       2079 
2349 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2080 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries -- 
     | 
| 
      
 2350 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset 3 --output_columns _key
         
     | 
| 
       2081 
2351 
     | 
    
         
             
            # [
         
     | 
| 
       2082 
2352 
     | 
    
         
             
            #   [
         
     | 
| 
       2083 
2353 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2109,7 +2379,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2109 
2379 
     | 
    
         
             
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは4番目以降のレコードを出力します。</p>
         
     | 
| 
       2110 
2380 
     | 
    
         
             
            <p>負の値を指定することもできます。負の値の場合は <code class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">offset</span></code> 番目のレコードから始まる範囲という意味になります。もし、マッチしたレコードが3つあり、 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></code> を指定した場合は2番目( <code class="docutils literal"><span class="pre">3</span> <span class="pre">+</span> <span class="pre">-2</span> <span class="pre">=</span> <span class="pre">1</span></code> 。 <code class="docutils literal"><span class="pre">1</span></code> は2番目という意味です。オフセットは0始まりということを思い出してください。) のレコードから3番目のレコードを取得します。</p>
         
     | 
| 
       2111 
2381 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2112 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries -- 
     | 
| 
      
 2382 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset -2 --output_columns _key
         
     | 
| 
       2113 
2383 
     | 
    
         
             
            # [
         
     | 
| 
       2114 
2384 
     | 
    
         
             
            #   [
         
     | 
| 
       2115 
2385 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2146,7 +2416,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2146 
2416 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">limit</span></code> は出力レコード数の最大値を指定します。 もし、マッチしたレコード数が <code class="docutils literal"><span class="pre">limit</span></code> よりも小さい場合はすべてのレコードが出力されます。</p>
         
     | 
| 
       2147 
2417 
     | 
    
         
             
            <p>以下は簡単な <code class="docutils literal"><span class="pre">limit</span></code> の使用例です。</p>
         
     | 
| 
       2148 
2418 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2149 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries -- 
     | 
| 
      
 2419 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset 2 --limit 3 --output_columns _key
         
     | 
| 
       2150 
2420 
     | 
    
         
             
            # [
         
     | 
| 
       2151 
2421 
     | 
    
         
             
            #   [
         
     | 
| 
       2152 
2422 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2266,18 +2536,145 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2266 
2536 
     | 
    
         
             
            <p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
         
     | 
| 
       2267 
2537 
     | 
    
         
             
            </div>
         
     | 
| 
       2268 
2538 
     | 
    
         
             
            </div>
         
     | 
| 
       2269 
     | 
    
         
            -
            <div class="section" id=" 
     | 
| 
       2270 
     | 
    
         
            -
            <span id="select- 
     | 
| 
       2271 
     | 
    
         
            -
            < 
     | 
| 
       2272 
     | 
    
         
            -
            < 
     | 
| 
       2273 
     | 
    
         
            -
             
     | 
| 
       2274 
     | 
    
         
            -
            <p 
     | 
| 
       2275 
     | 
    
         
            -
            <p 
     | 
| 
       2276 
     | 
    
         
            -
            <p 
     | 
| 
      
 2539 
     | 
    
         
            +
            <div class="section" id="dynamic-column-related-parameters">
         
     | 
| 
      
 2540 
     | 
    
         
            +
            <span id="select-dynamic-column-related-parameters"></span><h3>7.3.54.4.5. 動的カラム関連の引数<a class="headerlink" href="#dynamic-column-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 2541 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2542 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 2543 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2544 
     | 
    
         
            +
            <p>このセクションは動的カラム関連の引数について説明します。ウィンドウ関数を使うために動的カラムを使うこともできますが、このセクションではウィンドウ関数については説明しません。ウィンドウ関数については <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を参照してください。</p>
         
     | 
| 
      
 2545 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">select</span></code> 実行中に0個以上のカラムを作ってそこに値を入れることができます。これらのカラムのことを「動的カラム」と呼びます。動的カラムが作られた後は通常のカラムと同じように使えます。</p>
         
     | 
| 
      
 2546 
     | 
    
         
            +
            <p>動的カラムは一度計算した値を使いまわすのでパフォーマンス上のメリットがあります。</p>
         
     | 
| 
      
 2547 
     | 
    
         
            +
            <p>動的カラムを使うとメモリー使用量が増えます。 <code class="docutils literal"><span class="pre">select</span></code> 実行中にカラムの値を保存し続ける必要があるからです。</p>
         
     | 
| 
      
 2548 
     | 
    
         
            +
            <p>以下のケースでは動的カラムを使う必要があります。</p>
         
     | 
| 
      
 2549 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 2550 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 2551 
     | 
    
         
            +
            <li><p class="first">SQLの <code class="docutils literal"><span class="pre">AS</span></code> のように値に名前をつけたい場合。</p>
         
     | 
| 
      
 2552 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2553 
     | 
    
         
            +
            <li><p class="first">計算した値をドリルダウンしたい場合。Groongaにはドリルダウン中に値を計算する機能はありません。</p>
         
     | 
| 
      
 2554 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2555 
     | 
    
         
            +
            <li><p class="first">ウィンドウ関数を使いたい場合。</p>
         
     | 
| 
      
 2556 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2557 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 2558 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 2559 
     | 
    
         
            +
            <p>いくつか動的カラムを作るタイミングがあります。各動的カラムには <code class="docutils literal"><span class="pre">stage</span></code> を指定する必要があります。これはどのタイミングで動的カラムを作るかを制御するためです。よりよい性能を出すために適切なタイミングを選ぶことが重要です。</p>
         
     | 
| 
      
 2560 
     | 
    
         
            +
            <p>たとえば、出力対象のレコードだけに必要な動的カラムを全レコードに対して作成することはオススメしません。通常、たとえテーブル内に大量のレコードがあったとしても、出力対象のレコードは少なくなります。これは、多くの場合は、テーブル内のレコードをフィルターしてソートしてレコード数を制限して、制限したレコードだけを出力するからです。</p>
         
     | 
| 
      
 2561 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">stage</span></code> の詳細は <a class="reference internal" href="#select-columns-name-stage"><span class="std std-ref">columns[${NAME}].stage</span></a> を見てください。</p>
         
     | 
| 
      
 2562 
     | 
    
         
            +
            <p>以下は動的カラムの引数です。ウィンドウ関数関連の引数は入っていません。ウィンドウ関数関連の引数については <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を見てください。</p>
         
     | 
| 
      
 2563 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 2564 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 2565 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 2566 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 2567 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 2568 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 2569 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 2570 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">名前</p>
         
     | 
| 
      
 2571 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2572 
     | 
    
         
            +
            <th class="head"><p class="first last">デフォルト値</p>
         
     | 
| 
      
 2573 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2574 
     | 
    
         
            +
            <th class="head"><p class="first last">必須か省略可能か</p>
         
     | 
| 
      
 2575 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2576 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2577 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 2578 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 2579 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code></td>
         
     | 
| 
      
 2580 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">null</span></code></td>
         
     | 
| 
      
 2581 
     | 
    
         
            +
            <td><p class="first last">必須</p>
         
     | 
| 
      
 2582 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2583 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2584 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code></td>
         
     | 
| 
      
 2585 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">COLUMN_SCALAR</span></code></td>
         
     | 
| 
      
 2586 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 2587 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2588 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2589 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code></td>
         
     | 
| 
      
 2590 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">null</span></code></td>
         
     | 
| 
      
 2591 
     | 
    
         
            +
            <td><p class="first last">必須</p>
         
     | 
| 
      
 2592 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2593 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2594 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></td>
         
     | 
| 
      
 2595 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">null</span></code></td>
         
     | 
| 
      
 2596 
     | 
    
         
            +
            <td><p class="first last">必須</p>
         
     | 
| 
      
 2597 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2598 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2599 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 2600 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 2601 
     | 
    
         
            +
            <p>1つの動的カラムに対して複数のパラメーターを指定する必要があります。同じ <code class="docutils literal"><span class="pre">${NAME}</span></code> を使っているパラメーターは同じ動的カラムのパラメーターとして扱われます。以下は2つの動的カラム( <code class="docutils literal"><span class="pre">name1</span></code> と <code class="docutils literal"><span class="pre">name2</span></code> )用のパラメーターを指定する例です。:</p>
         
     | 
| 
      
 2602 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>--columns[name1].stage initial
         
     | 
| 
      
 2603 
     | 
    
         
            +
            --columns[name1].type UInt32
         
     | 
| 
      
 2604 
     | 
    
         
            +
            --columns[name1].value 29
         
     | 
| 
      
 2605 
     | 
    
         
            +
             
     | 
| 
      
 2606 
     | 
    
         
            +
            --columns[name2].stage filtered
         
     | 
| 
      
 2607 
     | 
    
         
            +
            --columns[name2].type ShortText
         
     | 
| 
      
 2608 
     | 
    
         
            +
            --columns[name2].value "29"
         
     | 
| 
      
 2609 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2610 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2611 
     | 
    
         
            +
            <div class="section" id="columns-name-stage">
         
     | 
| 
      
 2612 
     | 
    
         
            +
            <span id="select-columns-name-stage"></span><h4>7.3.54.4.5.1. <code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code><a class="headerlink" href="#columns-name-stage" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2613 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2614 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 2615 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2616 
     | 
    
         
            +
            <p>どのタイミング(どのステージ)で動的カラムを作るかを指定します。動的カラムを作る場合はこのパラメーターは必須です。</p>
         
     | 
| 
      
 2617 
     | 
    
         
            +
            <p>指定可能なステージは以下の通りです。</p>
         
     | 
| 
      
 2618 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 2619 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 2620 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 2621 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 2622 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 2623 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 2624 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">名前</p>
         
     | 
| 
      
 2625 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2626 
     | 
    
         
            +
            <th class="head"><p class="first last">説明</p>
         
     | 
| 
      
 2627 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2628 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2629 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 2630 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 2631 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">initial</span></code></td>
         
     | 
| 
      
 2632 
     | 
    
         
            +
            <td><p class="first last">最初に動的カラムを作成します。</p>
         
     | 
| 
      
 2633 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2634 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2635 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">filtered</span></code></td>
         
     | 
| 
      
 2636 
     | 
    
         
            +
            <td><p class="first last"><a class="reference internal" href="#select-query"><span class="std std-ref">query</span></a> と <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> を評価してから動的カラムを作成します。</p>
         
     | 
| 
      
 2637 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2638 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2639 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">output</span></code></td>
         
     | 
| 
      
 2640 
     | 
    
         
            +
            <td><p class="first last"><a class="reference internal" href="#select-output-columns"><span class="std std-ref">output_columns</span></a> を評価する前に動的カラムを作成します。</p>
         
     | 
| 
      
 2641 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 2642 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2643 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 2644 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 2645 
     | 
    
         
            +
            <p>以下は動的カラム作成タイミング入りの <code class="docutils literal"><span class="pre">select</span></code> の処理の流れです。できるだけ後のステージを選ぶべきです。</p>
         
     | 
| 
      
 2646 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 2647 
     | 
    
         
            +
            <div><ol class="arabic simple">
         
     | 
| 
      
 2648 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">initial</span></code> ステージの動的カラムを作ります。すべてのレコードはこの動的カラムを持ちます。</p>
         
     | 
| 
      
 2649 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2650 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-query"><span class="std std-ref">query</span></a> と <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 2651 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2652 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">filtered</span></code> ステージの動的カラムを作ります。フィルター後のレコードだけがこの動的カラムを持ちます。</p>
         
     | 
| 
      
 2653 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2654 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-adjuster"><span class="std std-ref">adjuster</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 2655 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2656 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-scorer"><span class="std std-ref">scorer</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 2657 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2658 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-sort-keys"><span class="std std-ref">sort_keys</span></a> 、 <a class="reference internal" href="#select-offset"><span class="std std-ref">offset</span></a> 、 <a class="reference internal" href="#select-limit"><span class="std std-ref">limit</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 2659 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2660 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-slice-related-parameters"><span class="std std-ref">スライス関連の引数</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 2661 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2662 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-drilldown-related-parameters"><span class="std std-ref">ドリルダウン関連の引数</span></a> と <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span class="std std-ref">高度なドリルダウン関連のパラメーター</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージで作った動的カラムを使えます。各ドリルダウン内でも個別に動的カラムを作れるので混同しないように注意してください。</p>
         
     | 
| 
      
 2663 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2664 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">output</span></code> ステージの動的カラムを作ります。最大 <a class="reference internal" href="#select-limit"><span class="std std-ref">limit</span></a> 件のレコードだけがこの動的カラムを持ちます。</p>
         
     | 
| 
      
 2665 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2666 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-output-columns"><span class="std std-ref">output_columns</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージと <code class="docutils literal"><span class="pre">filtered</span></code> ステージと <code class="docutils literal"><span class="pre">output</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 2667 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 2668 
     | 
    
         
            +
            </ol>
         
     | 
| 
      
 2669 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 2670 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">initial</span></code> ステージで <code class="docutils literal"><span class="pre">is_popular</span></code> カラムを作る例です。作成した <code class="docutils literal"><span class="pre">is_popular</span></code> カラムは <code class="docutils literal"><span class="pre">filter</span></code> や <code class="docutils literal"><span class="pre">output_columns</span></code> を含むすべてのパラメーターで使えます。</p>
         
     | 
| 
       2277 
2671 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2278 
2672 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2279 
     | 
    
         
            -
              -- 
     | 
| 
       2280 
     | 
    
         
            -
              -- 
     | 
| 
      
 2673 
     | 
    
         
            +
              --columns[is_popular].stage initial \
         
     | 
| 
      
 2674 
     | 
    
         
            +
              --columns[is_popular].type Bool \
         
     | 
| 
      
 2675 
     | 
    
         
            +
              --columns[is_popular].value 'n_likes >= 10' \
         
     | 
| 
      
 2676 
     | 
    
         
            +
              --filter is_popular \
         
     | 
| 
      
 2677 
     | 
    
         
            +
              --output_columns _id,is_popular,n_likes
         
     | 
| 
       2281 
2678 
     | 
    
         
             
            # [
         
     | 
| 
       2282 
2679 
     | 
    
         
             
            #   [
         
     | 
| 
       2283 
2680 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2287,20 +2684,667 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2287 
2684 
     | 
    
         
             
            #   [
         
     | 
| 
       2288 
2685 
     | 
    
         
             
            #     [
         
     | 
| 
       2289 
2686 
     | 
    
         
             
            #       [
         
     | 
| 
       2290 
     | 
    
         
            -
            #          
     | 
| 
      
 2687 
     | 
    
         
            +
            #         2
         
     | 
| 
       2291 
2688 
     | 
    
         
             
            #       ],
         
     | 
| 
       2292 
2689 
     | 
    
         
             
            #       [
         
     | 
| 
       2293 
2690 
     | 
    
         
             
            #         [
         
     | 
| 
       2294 
     | 
    
         
            -
            #           " 
     | 
| 
       2295 
     | 
    
         
            -
            #           " 
     | 
| 
      
 2691 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 2692 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
       2296 
2693 
     | 
    
         
             
            #         ],
         
     | 
| 
       2297 
2694 
     | 
    
         
             
            #         [
         
     | 
| 
       2298 
     | 
    
         
            -
            #           " 
     | 
| 
       2299 
     | 
    
         
            -
            #           " 
     | 
| 
      
 2695 
     | 
    
         
            +
            #           "is_popular",
         
     | 
| 
      
 2696 
     | 
    
         
            +
            #           "Bool"
         
     | 
| 
      
 2697 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2698 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2699 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 2700 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
       2300 
2701 
     | 
    
         
             
            #         ]
         
     | 
| 
       2301 
2702 
     | 
    
         
             
            #       ],
         
     | 
| 
       2302 
2703 
     | 
    
         
             
            #       [
         
     | 
| 
       2303 
     | 
    
         
            -
            #          
     | 
| 
      
 2704 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 2705 
     | 
    
         
            +
            #         true,
         
     | 
| 
      
 2706 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 2707 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2708 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2709 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2710 
     | 
    
         
            +
            #         true,
         
     | 
| 
      
 2711 
     | 
    
         
            +
            #         15
         
     | 
| 
      
 2712 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 2713 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 2714 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 2715 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 2716 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2717 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2718 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2719 
     | 
    
         
            +
            <div class="section" id="columns-name-flags">
         
     | 
| 
      
 2720 
     | 
    
         
            +
            <span id="select-columns-name-flags"></span><h4>7.3.54.4.5.2. <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code><a class="headerlink" href="#columns-name-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2721 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2722 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 2723 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2724 
     | 
    
         
            +
            <p>動的カラムのフラグを指定します。これは <a class="reference internal" href="column_create.html"><span class="doc">column_create</span></a> の <code class="docutils literal"><span class="pre">flags</span></code> パラメーターと同じです。利用可能なフラグは <a class="reference internal" href="column_create.html#column-create-flags"><span class="std std-ref">flags</span></a> を見てください。</p>
         
     | 
| 
      
 2725 
     | 
    
         
            +
            <p>デフォルト値は <code class="docutils literal"><span class="pre">COLUMN_SCALAR</span></code> です。</p>
         
     | 
| 
      
 2726 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code> の使用例です。この例では <code class="docutils literal"><span class="pre">COLUMN_VECTOR</span></code> フラグを指定してベクターカラムを作成しています。 <code class="docutils literal"><span class="pre">plugin_register</span> <span class="pre">functions/vector</span></code> は <a class="reference internal" href="../functions/vector_new.html"><span class="doc">vector_new</span></a> 関数を使うために実行しています。:</p>
         
     | 
| 
      
 2727 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 2728 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/vector
         
     | 
| 
      
 2729 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 2730 
     | 
    
         
            +
            select Entries \
         
     | 
| 
      
 2731 
     | 
    
         
            +
              --columns[vector].stage initial \
         
     | 
| 
      
 2732 
     | 
    
         
            +
              --columns[vector].flags COLUMN_VECTOR \
         
     | 
| 
      
 2733 
     | 
    
         
            +
              --columns[vector].type UInt32 \
         
     | 
| 
      
 2734 
     | 
    
         
            +
              --columns[vector].value 'vector_new(1, 2, 3)' \
         
     | 
| 
      
 2735 
     | 
    
         
            +
              --output_columns _id,vector
         
     | 
| 
      
 2736 
     | 
    
         
            +
            # [
         
     | 
| 
      
 2737 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 2738 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 2739 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 2740 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 2741 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 2742 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 2743 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 2744 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2745 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 2746 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2747 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2748 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2749 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 2750 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 2751 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2752 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2753 
     | 
    
         
            +
            #           "vector",
         
     | 
| 
      
 2754 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 2755 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2756 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2757 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2758 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 2759 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2760 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 2761 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 2762 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 2763 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2764 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2765 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2766 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 2767 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2768 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 2769 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 2770 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 2771 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2772 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2773 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2774 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2775 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2776 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 2777 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 2778 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 2779 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2780 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2781 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2782 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 2783 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2784 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 2785 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 2786 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 2787 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2788 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2789 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2790 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 2791 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2792 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 2793 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 2794 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 2795 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2796 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 2797 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 2798 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 2799 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 2800 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2801 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2802 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2803 
     | 
    
         
            +
            <div class="section" id="columns-name-type">
         
     | 
| 
      
 2804 
     | 
    
         
            +
            <span id="select-columns-name-type"></span><h4>7.3.54.4.5.3. <code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code><a class="headerlink" href="#columns-name-type" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2805 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2806 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 2807 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2808 
     | 
    
         
            +
            <p>動的カラムの値の型を指定します。 <a class="reference internal" href="column_create.html"><span class="doc">column_create</span></a> の <code class="docutils literal"><span class="pre">type</span></code> パラメーターと同じです。利用可能な型は <a class="reference internal" href="column_create.html#column-create-type"><span class="std std-ref">type</span></a> を見てください。</p>
         
     | 
| 
      
 2809 
     | 
    
         
            +
            <p>必須の引数です。</p>
         
     | 
| 
      
 2810 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">ShortText</span></code> 型のカラムを作る例です。保存された値は自動的に <code class="docutils literal"><span class="pre">ShortText</span></code> にキャストされます。この例では数値が <code class="docutils literal"><span class="pre">ShortText</span></code> にキャストされています。</p>
         
     | 
| 
      
 2811 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 2812 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 2813 
     | 
    
         
            +
              --columns[n_likes_string].stage initial \
         
     | 
| 
      
 2814 
     | 
    
         
            +
              --columns[n_likes_string].type ShortText \
         
     | 
| 
      
 2815 
     | 
    
         
            +
              --columns[n_likes_string].value n_likes \
         
     | 
| 
      
 2816 
     | 
    
         
            +
              --output_columns _id,n_likes,n_likes_string
         
     | 
| 
      
 2817 
     | 
    
         
            +
            # [
         
     | 
| 
      
 2818 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 2819 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 2820 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 2821 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 2822 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 2823 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 2824 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 2825 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2826 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 2827 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2828 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2829 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2830 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 2831 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 2832 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2833 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2834 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 2835 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 2836 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2837 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2838 
     | 
    
         
            +
            #           "n_likes_string",
         
     | 
| 
      
 2839 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 2840 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2841 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2842 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2843 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 2844 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 2845 
     | 
    
         
            +
            #         "5"
         
     | 
| 
      
 2846 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2847 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2848 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 2849 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 2850 
     | 
    
         
            +
            #         "10"
         
     | 
| 
      
 2851 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2852 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2853 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2854 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 2855 
     | 
    
         
            +
            #         "15"
         
     | 
| 
      
 2856 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2857 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2858 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 2859 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2860 
     | 
    
         
            +
            #         "3"
         
     | 
| 
      
 2861 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2862 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2863 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 2864 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2865 
     | 
    
         
            +
            #         "3"
         
     | 
| 
      
 2866 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 2867 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 2868 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 2869 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 2870 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2871 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2872 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2873 
     | 
    
         
            +
            <div class="section" id="columns-name-value">
         
     | 
| 
      
 2874 
     | 
    
         
            +
            <span id="select-columns-name-value"></span><h4>7.3.54.4.5.4. <code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code><a class="headerlink" href="#columns-name-value" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2875 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2876 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 2877 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2878 
     | 
    
         
            +
            <p>この動的カラムの値を生成する式を指定します。式には <a class="reference internal" href="../grn_expr/script_syntax.html"><span class="doc">スクリプト構文</span></a> を使います。この構文は <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> と同じです。たとえば、 <code class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">1</span></code> 、 <code class="docutils literal"><span class="pre">string_length("Hello")</span></code> 、 <code class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">1.08</span></code> などは妥当な式です。</p>
         
     | 
| 
      
 2879 
     | 
    
         
            +
            <p>ウィンドウ関数を使う場合は、 <code class="docutils literal"><span class="pre">value</span></code> の値に <a class="reference internal" href="../window_function.html"><span class="doc">ウィンドウ関数</span></a> を指定し、他のウィンドウ関数のパラメーターも指定する必要があります。詳細は <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">ウィンドウ関数関連の引数</span></a> を見てください。</p>
         
     | 
| 
      
 2880 
     | 
    
         
            +
            <p>必須の引数です。</p>
         
     | 
| 
      
 2881 
     | 
    
         
            +
            <p>以下は内容の文字数を格納するための動的カラムを1つ作る例です。この例では文字数を数えるために <code class="docutils literal"><span class="pre">functions/string</span></code> プラグイン内の <a class="reference internal" href="../functions/string_length.html"><span class="doc">string_length</span></a> 関数を使っています。 <code class="docutils literal"><span class="pre">functions/string</span></code> プラグインを登録するために <a class="reference internal" href="plugin_register.html"><span class="doc">plugin_register</span></a> を使っています。</p>
         
     | 
| 
      
 2882 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 2883 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/string
         
     | 
| 
      
 2884 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 2885 
     | 
    
         
            +
            select Entries \
         
     | 
| 
      
 2886 
     | 
    
         
            +
              --columns[content_length].stage initial \
         
     | 
| 
      
 2887 
     | 
    
         
            +
              --columns[content_length].type UInt32 \
         
     | 
| 
      
 2888 
     | 
    
         
            +
              --columns[content_length].value 'string_length(content)' \
         
     | 
| 
      
 2889 
     | 
    
         
            +
              --output_columns _id,content,content_length
         
     | 
| 
      
 2890 
     | 
    
         
            +
            # [
         
     | 
| 
      
 2891 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 2892 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 2893 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 2894 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 2895 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 2896 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 2897 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 2898 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2899 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 2900 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2901 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2902 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2903 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 2904 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 2905 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2906 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2907 
     | 
    
         
            +
            #           "content",
         
     | 
| 
      
 2908 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 2909 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2910 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2911 
     | 
    
         
            +
            #           "content_length",
         
     | 
| 
      
 2912 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 2913 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 2914 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2915 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2916 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 2917 
     | 
    
         
            +
            #         "Welcome! This is my first post!",
         
     | 
| 
      
 2918 
     | 
    
         
            +
            #         31
         
     | 
| 
      
 2919 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2920 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2921 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 2922 
     | 
    
         
            +
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
      
 2923 
     | 
    
         
            +
            #         41
         
     | 
| 
      
 2924 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2925 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2926 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2927 
     | 
    
         
            +
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
      
 2928 
     | 
    
         
            +
            #         64
         
     | 
| 
      
 2929 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2930 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2931 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 2932 
     | 
    
         
            +
            #         "I migrated all Senna system!",
         
     | 
| 
      
 2933 
     | 
    
         
            +
            #         28
         
     | 
| 
      
 2934 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 2935 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 2936 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 2937 
     | 
    
         
            +
            #         "I also migrated all Tritonn system!",
         
     | 
| 
      
 2938 
     | 
    
         
            +
            #         35
         
     | 
| 
      
 2939 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 2940 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 2941 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 2942 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 2943 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2944 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2945 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2946 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2947 
     | 
    
         
            +
            <div class="section" id="window-function-related-parameters">
         
     | 
| 
      
 2948 
     | 
    
         
            +
            <span id="select-window-function-related-parameters"></span><h3>7.3.54.4.6. ウィンドウ関数関連の引数<a class="headerlink" href="#window-function-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 2949 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2950 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 2951 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2952 
     | 
    
         
            +
            <p>このセクションはウィンドウ関数関連の引数について説明します。ウィンドウ関数を使うためには動的カラムを使う必要があります。動的カラムについては <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">動的カラム関連の引数</span></a> を見てください。</p>
         
     | 
| 
      
 2953 
     | 
    
         
            +
            <p>Groongaのウィンドウ関数はSQLのウィンドウ関数と似ています。通常の関数は現在のレコードだけを使って結果を計算します。一方、ウィンドウ関数は複数のレコードを使って結果を計算します。複数のレコードを処理できるのでウィンドウ関数はデータ解析に有用です。</p>
         
     | 
| 
      
 2954 
     | 
    
         
            +
            <p>サポートしているウィンドウ関数は <a class="reference internal" href="../window_function.html"><span class="doc">ウィンドウ関数</span></a> で確認できます。たとえば、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はウィンドウ関数です。このウィンドウ関数は対象レコードの数値の合計を計算します。</p>
         
     | 
| 
      
 2955 
     | 
    
         
            +
            <p>ウィンドウ関数は指定したグループキーでグループ化したレコードを処理します。たとえば、以下のケースではウィンドウ関数は3つのグループ( <code class="docutils literal"><span class="pre">Hello</span></code> グループ、 <code class="docutils literal"><span class="pre">Groonga</span></code> グループ、 <code class="docutils literal"><span class="pre">Senna</span></code> グループ)を処理します。 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> は各グループ毎に <code class="docutils literal"><span class="pre">n_likes</span></code> の値の合計を計算します。</p>
         
     | 
| 
      
 2956 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 2957 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 2958 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 2959 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 2960 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 2961 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 2962 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 2963 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 2964 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
         
     | 
| 
      
 2965 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2966 
     | 
    
         
            +
            <th class="head"><p class="first last">グループキーの値</p>
         
     | 
| 
      
 2967 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2968 
     | 
    
         
            +
            <th class="head"><p class="first last"><code class="docutils literal"><span class="pre">n_likes</span></code> の値</p>
         
     | 
| 
      
 2969 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2970 
     | 
    
         
            +
            <th class="head"><p class="first last"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> の結果</p>
         
     | 
| 
      
 2971 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 2972 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2973 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 2974 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 2975 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 2976 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Hello</span></code></td>
         
     | 
| 
      
 2977 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 2978 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 2979 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2980 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 2981 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 2982 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 2983 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 2984 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2985 
     | 
    
         
            +
            <tr class="row-even"><td>2</td>
         
     | 
| 
      
 2986 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 2987 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 2988 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 2989 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2990 
     | 
    
         
            +
            <tr class="row-odd"><td>3</td>
         
     | 
| 
      
 2991 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 2992 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 2993 
     | 
    
         
            +
            <td>6</td>
         
     | 
| 
      
 2994 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2995 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 2996 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 2997 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 2998 
     | 
    
         
            +
            <td>6</td>
         
     | 
| 
      
 2999 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3000 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3001 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3002 
     | 
    
         
            +
            <p>グループキーを指定しないこともできます。この場合、ウィンドウ関数はすべてのレコードを含んだ1つのグループだけを処理します。以下のケースでは <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はすべての <code class="docutils literal"><span class="pre">n_likes</span></code> の値の合計を計算します。</p>
         
     | 
| 
      
 3003 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3004 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3005 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3006 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3007 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3008 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3009 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3010 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
         
     | 
| 
      
 3011 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3012 
     | 
    
         
            +
            <th class="head"><p class="first last"><code class="docutils literal"><span class="pre">n_likes</span></code> の値</p>
         
     | 
| 
      
 3013 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3014 
     | 
    
         
            +
            <th class="head"><p class="first last"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> の結果</p>
         
     | 
| 
      
 3015 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3016 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3017 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3018 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3019 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3020 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3021 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3022 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3023 
     | 
    
         
            +
            <tr class="row-odd"><td>1</td>
         
     | 
| 
      
 3024 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3025 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3026 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3027 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3028 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 3029 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3030 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3031 
     | 
    
         
            +
            <tr class="row-odd"><td>1</td>
         
     | 
| 
      
 3032 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3033 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3034 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3035 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3036 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3037 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3038 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3039 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3040 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3041 
     | 
    
         
            +
            <p>ウィンドウ関数は各グループのレコードを指定された順に処理します。前述のグループキーの例のようにソートキーを指定しないこともできます。</p>
         
     | 
| 
      
 3042 
     | 
    
         
            +
            <p>ソートキーを指定しなかったときの挙動は各ウィンドウ関数の仕様に依存します。たとえば、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はソートキーを指定したときと指定しないときで挙動が変わります。ソートキーを指定しなかったときは、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はグループの全レコードの値の合計を計算し、すべての対象レコードに合計値を格納します。これは前述のグループキーの例での挙動です。ソートキーを指定したときは、 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> は累積和を計算します。 <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> はグループの全レコードの合計を順番に計算し、各レコードにはそのレコードを処理した時点の合計値を格納します。以下に例を示します。</p>
         
     | 
| 
      
 3043 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3044 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3045 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3046 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3047 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3048 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3049 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3050 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3051 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3052 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3053 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">グループ番号</p>
         
     | 
| 
      
 3054 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3055 
     | 
    
         
            +
            <th class="head"><p class="first last">グループキーの値</p>
         
     | 
| 
      
 3056 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3057 
     | 
    
         
            +
            <th class="head"><p class="first last">ソートキーの値</p>
         
     | 
| 
      
 3058 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3059 
     | 
    
         
            +
            <th class="head"><p class="first last"><code class="docutils literal"><span class="pre">n_likes</span></code> の値</p>
         
     | 
| 
      
 3060 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3061 
     | 
    
         
            +
            <th class="head"><p class="first last"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> の結果</p>
         
     | 
| 
      
 3062 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3063 
     | 
    
         
            +
            <th class="head"><p class="first last">備考</p>
         
     | 
| 
      
 3064 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3065 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3066 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3067 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3068 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3069 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Hello</span></code></td>
         
     | 
| 
      
 3070 
     | 
    
         
            +
            <td>1</td>
         
     | 
| 
      
 3071 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3072 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3073 
     | 
    
         
            +
            <td><p class="first last">グループ番号1の最初のレコード。( <code class="docutils literal"><span class="pre">5</span> <span class="pre">=</span> <span class="pre">5</span></code> )</p>
         
     | 
| 
      
 3074 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3075 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3076 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 3077 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 3078 
     | 
    
         
            +
            <td>90</td>
         
     | 
| 
      
 3079 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3080 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3081 
     | 
    
         
            +
            <td><p class="first last">グループ番号2の最初のレコード。( <code class="docutils literal"><span class="pre">10</span> <span class="pre">=</span> <span class="pre">10</span></code> )</p>
         
     | 
| 
      
 3082 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3083 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3084 
     | 
    
         
            +
            <tr class="row-even"><td>2</td>
         
     | 
| 
      
 3085 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 3086 
     | 
    
         
            +
            <td>91</td>
         
     | 
| 
      
 3087 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 3088 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 3089 
     | 
    
         
            +
            <td><p class="first last">グループ番号2の2つ目のレコード。( <code class="docutils literal"><span class="pre">10</span> <span class="pre">+</span> <span class="pre">15</span> <span class="pre">=</span> <span class="pre">25</span></code> )</p>
         
     | 
| 
      
 3090 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3091 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3092 
     | 
    
         
            +
            <tr class="row-odd"><td>3</td>
         
     | 
| 
      
 3093 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 3094 
     | 
    
         
            +
            <td>200</td>
         
     | 
| 
      
 3095 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3096 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 3097 
     | 
    
         
            +
            <td><p class="first last">グループ番号3の2つ目のレコード。( <code class="docutils literal"><span class="pre">5</span> <span class="pre">+</span> <span class="pre">3</span> <span class="pre">=</span> <span class="pre">8</span></code> )</p>
         
     | 
| 
      
 3098 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3099 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3100 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 3101 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 3102 
     | 
    
         
            +
            <td>100</td>
         
     | 
| 
      
 3103 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3104 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3105 
     | 
    
         
            +
            <td><p class="first last">グループ番号3の最初のレコード。( <code class="docutils literal"><span class="pre">5</span> <span class="pre">=</span> <span class="pre">5</span></code> )</p>
         
     | 
| 
      
 3106 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3107 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3108 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3109 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3110 
     | 
    
         
            +
            <p>以下はウィンドウ関数のパラメーターです。ウィンドウ関数関連のパラメーターと動的カラム関連のパラメーターを指定する必要があります。なぜならウィンドウ関数は動的カラムの上に実装されているからです。動的カラム関連のパラメーターについては <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">動的カラム関連の引数</span></a> を見てください。</p>
         
     | 
| 
      
 3111 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3112 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3113 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3114 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3115 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3116 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3117 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3118 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">名前</p>
         
     | 
| 
      
 3119 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3120 
     | 
    
         
            +
            <th class="head"><p class="first last">必須か省略可能か</p>
         
     | 
| 
      
 3121 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3122 
     | 
    
         
            +
            <th class="head"><p class="first last">備考</p>
         
     | 
| 
      
 3123 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 3124 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3125 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3126 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3127 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></td>
         
     | 
| 
      
 3128 
     | 
    
         
            +
            <td><p class="first last">必須</p>
         
     | 
| 
      
 3129 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3130 
     | 
    
         
            +
            <td><p class="first last"><a class="reference internal" href="../window_function.html"><span class="doc">ウィンドウ関数</span></a> を使います。</p>
         
     | 
| 
      
 3131 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3132 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3133 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code></td>
         
     | 
| 
      
 3134 
     | 
    
         
            +
            <td><p class="first last"><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code> を指定しない場合は必須です。</p>
         
     | 
| 
      
 3135 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3136 
     | 
    
         
            +
            <td> </td>
         
     | 
| 
      
 3137 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3138 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code></td>
         
     | 
| 
      
 3139 
     | 
    
         
            +
            <td><p class="first last"><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code> を指定しない場合は必須です。</p>
         
     | 
| 
      
 3140 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 3141 
     | 
    
         
            +
            <td> </td>
         
     | 
| 
      
 3142 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3143 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3144 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3145 
     | 
    
         
            +
            <div class="section" id="columns-name-window-sort-keys">
         
     | 
| 
      
 3146 
     | 
    
         
            +
            <span id="select-columns-name-window-sort-keys"></span><h4>7.3.54.4.6.1. <code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code><a class="headerlink" href="#columns-name-window-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3147 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3148 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.6 で追加.</span></p>
         
     | 
| 
      
 3149 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3150 
     | 
    
         
            +
            <p>各グループでのソートキーを指定します。ウィンドウ関数は各グループのレコードを指定された順に処理します。</p>
         
     | 
| 
      
 3151 
     | 
    
         
            +
            <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーにはカラム名を指定します。これは <a class="reference internal" href="#select-sort-keys"><span class="std std-ref">sort_keys</span></a> と同じです。</p>
         
     | 
| 
      
 3152 
     | 
    
         
            +
            <p>ウィンドウ関数を使う場合は <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a> または <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a> を使う必要があります。</p>
         
     | 
| 
      
 3153 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">Entries.tag</span></code> 毎に累積和を計算する例です。各グループ内のレコードは <code class="docutils literal"><span class="pre">Entries._key</span></code> でソートします。</p>
         
     | 
| 
      
 3154 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 3155 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select \
         
     | 
| 
      
 3156 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 3157 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].stage initial \
         
     | 
| 
      
 3158 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].type UInt32 \
         
     | 
| 
      
 3159 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].value 'window_sum(n_likes)' \
         
     | 
| 
      
 3160 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].window.sort_keys _key \
         
     | 
| 
      
 3161 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].window.group_keys tag \
         
     | 
| 
      
 3162 
     | 
    
         
            +
              --sort_keys _key \
         
     | 
| 
      
 3163 
     | 
    
         
            +
              --output_columns tag,_key,n_likes,n_likes_cumulative_sum_per_tag
         
     | 
| 
      
 3164 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3165 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3166 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3167 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3168 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3169 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3170 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3171 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3172 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3173 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3174 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3175 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3176 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3177 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 3178 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3179 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3180 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3181 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 3182 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3183 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3184 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3185 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 3186 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3187 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3188 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3189 
     | 
    
         
            +
            #           "n_likes_cumulative_sum_per_tag",
         
     | 
| 
      
 3190 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3191 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3192 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3193 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3194 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3195 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 3196 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3197 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 3198 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3199 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3200 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3201 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 3202 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3203 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 3204 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3205 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3206 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3207 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3208 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 3209 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 3210 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3211 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3212 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3213 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 3214 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 3215 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 3216 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3217 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3218 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 3219 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 3220 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3221 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3222 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3223 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3224 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3225 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3226 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3227 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3228 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3229 
     | 
    
         
            +
            <div class="section" id="columns-name-window-group-keys">
         
     | 
| 
      
 3230 
     | 
    
         
            +
            <span id="select-columns-name-window-group-keys"></span><h4>7.3.54.4.6.2. <code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code><a class="headerlink" href="#columns-name-window-group-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3231 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3232 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 7.0.0 で追加.</span></p>
         
     | 
| 
      
 3233 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3234 
     | 
    
         
            +
            <p>グループキーを指定します。ウィンドウ関数は各グループのレコードを処理します。グループキーを指定しない場合はウィンドウ関数はすべてのレコードを含んだ1つのグループを処理します。</p>
         
     | 
| 
      
 3235 
     | 
    
         
            +
            <p>グループキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのグループキーにはカラム名を指定します。これは <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> と同じです。</p>
         
     | 
| 
      
 3236 
     | 
    
         
            +
            <p>ウィンドウ関数を使う場合は <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a> または <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a> を使う必要があります。</p>
         
     | 
| 
      
 3237 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">Entries.tag</span></code> 毎に合計を計算する例です。</p>
         
     | 
| 
      
 3238 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 3239 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select \
         
     | 
| 
      
 3240 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 3241 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].stage initial \
         
     | 
| 
      
 3242 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].type UInt32 \
         
     | 
| 
      
 3243 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].value 'window_sum(n_likes)' \
         
     | 
| 
      
 3244 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].window.group_keys tag \
         
     | 
| 
      
 3245 
     | 
    
         
            +
              --sort_keys _key \
         
     | 
| 
      
 3246 
     | 
    
         
            +
              --output_columns tag,_key,n_likes,n_likes_sum_per_tag
         
     | 
| 
      
 3247 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3248 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3249 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3250 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3251 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3252 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3253 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3254 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3255 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3256 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3257 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3258 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3259 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3260 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 3261 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3262 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3263 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3264 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 3265 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3266 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3267 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3268 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 3269 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3270 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3271 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3272 
     | 
    
         
            +
            #           "n_likes_sum_per_tag",
         
     | 
| 
      
 3273 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3274 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3275 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3276 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3277 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3278 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 3279 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3280 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 3281 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3282 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3283 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3284 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 3285 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3286 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 3287 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3288 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3289 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3290 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3291 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 3292 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 3293 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3294 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3295 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3296 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 3297 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 3298 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 3299 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3300 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3301 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 3302 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 3303 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3304 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3305 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3306 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3307 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3308 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3309 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3310 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3311 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3312 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3313 
     | 
    
         
            +
            <div class="section" id="drilldown-related-parameters">
         
     | 
| 
      
 3314 
     | 
    
         
            +
            <span id="select-drilldown-related-parameters"></span><h3>7.3.54.4.7. ドリルダウン関連の引数<a class="headerlink" href="#drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 3315 
     | 
    
         
            +
            <p>このセクションでは基本的なドリルダウン関連の引数について説明します。高度なドリルダウン関連の引数は他のセクションで説明します。</p>
         
     | 
| 
      
 3316 
     | 
    
         
            +
            <div class="section" id="select-drilldown">
         
     | 
| 
      
 3317 
     | 
    
         
            +
            <span id="id2"></span><h4>7.3.54.4.7.1. <code class="docutils literal"><span class="pre">drilldown</span></code><a class="headerlink" href="#select-drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3318 
     | 
    
         
            +
            <p>グループ化するときに使うキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
         
     | 
| 
      
 3319 
     | 
    
         
            +
            <p>指定した検索条件にマッチしたレコードを指定したキーのそれぞれでグループ化します。検索条件を指定していない場合はすべてのレコードを指定したキーのそれぞれでグループ化します。</p>
         
     | 
| 
      
 3320 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown</span></code> の使用例です。</p>
         
     | 
| 
      
 3321 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 3322 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 3323 
     | 
    
         
            +
              --output_columns _key,tag \
         
     | 
| 
      
 3324 
     | 
    
         
            +
              --drilldown tag
         
     | 
| 
      
 3325 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3326 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3327 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3328 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3329 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3330 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3331 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3332 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3333 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3334 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3335 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3336 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3337 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3338 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 3339 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3340 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3341 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3342 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 3343 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3344 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3345 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3346 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3347 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
       2304 
3348 
     | 
    
         
             
            #         "Hello"
         
     | 
| 
       2305 
3349 
     | 
    
         
             
            #       ],
         
     | 
| 
       2306 
3350 
     | 
    
         
             
            #       [
         
     | 
| 
         @@ -2446,7 +3490,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2446 
3490 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2447 
3491 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2448 
3492 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2449 
     | 
    
         
            -
              -- 
     | 
| 
      
 3493 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2450 
3494 
     | 
    
         
             
              --drilldown tag,n_likes
         
     | 
| 
       2451 
3495 
     | 
    
         
             
            # [
         
     | 
| 
       2452 
3496 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -2463,22 +3507,6 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2463 
3507 
     | 
    
         
             
            #         [
         
     | 
| 
       2464 
3508 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2465 
3509 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2466 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2467 
     | 
    
         
            -
            #         [
         
     | 
| 
       2468 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2469 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2470 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2471 
     | 
    
         
            -
            #         [
         
     | 
| 
       2472 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2473 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2474 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2475 
     | 
    
         
            -
            #         [
         
     | 
| 
       2476 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2477 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2478 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2479 
     | 
    
         
            -
            #         [
         
     | 
| 
       2480 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2481 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2482 
3510 
     | 
    
         
             
            #         ]
         
     | 
| 
       2483 
3511 
     | 
    
         
             
            #       ]
         
     | 
| 
       2484 
3512 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2571,22 +3599,22 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2571 
3599 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2572 
3600 
     | 
    
         
             
            </div>
         
     | 
| 
       2573 
3601 
     | 
    
         
             
            <div class="section" id="drilldown-sortby">
         
     | 
| 
       2574 
     | 
    
         
            -
            <span id="select-drilldown-sortby"></span><h4>7.3.54.4. 
     | 
| 
      
 3602 
     | 
    
         
            +
            <span id="select-drilldown-sortby"></span><h4>7.3.54.4.7.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       2575 
3603 
     | 
    
         
             
            <div class="deprecated">
         
     | 
| 
       2576 
3604 
     | 
    
         
             
            <p><span class="versionmodified">バージョン 6.0.3 で撤廃: </span><a class="reference internal" href="#select-drilldown-sort-keys"><span class="std std-ref">drilldown_sort_keys</span></a> を代わりに使ってください</p>
         
     | 
| 
       2577 
3605 
     | 
    
         
             
            </div>
         
     | 
| 
       2578 
3606 
     | 
    
         
             
            </div>
         
     | 
| 
       2579 
3607 
     | 
    
         
             
            <div class="section" id="drilldown-sort-keys">
         
     | 
| 
       2580 
     | 
    
         
            -
            <span id="select-drilldown-sort-keys"></span><h4>7.3.54.4. 
     | 
| 
      
 3608 
     | 
    
         
            +
            <span id="select-drilldown-sort-keys"></span><h4>7.3.54.4.7.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code><a class="headerlink" href="#drilldown-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       2581 
3609 
     | 
    
         
             
            <p>ドリルダウン結果のソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
         
     | 
| 
       2582 
3610 
     | 
    
         
             
            <p>グループ化されたレコード数は <code class="docutils literal"><span class="pre">_nsubrecs</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> 擬似カラムで参照できます。</p>
         
     | 
| 
       2583 
     | 
    
         
            -
            <p>以下は簡単な <code class="docutils literal"><span class="pre"> 
     | 
| 
      
 3611 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code> の使用例です。</p>
         
     | 
| 
       2584 
3612 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2585 
3613 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2586 
3614 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2587 
     | 
    
         
            -
              -- 
     | 
| 
      
 3615 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2588 
3616 
     | 
    
         
             
              --drilldown 'tag, n_likes' \
         
     | 
| 
       2589 
     | 
    
         
            -
              -- 
     | 
| 
      
 3617 
     | 
    
         
            +
              --drilldown_sort_keys '-_nsubrecs, _key'
         
     | 
| 
       2590 
3618 
     | 
    
         
             
            # [
         
     | 
| 
       2591 
3619 
     | 
    
         
             
            #   [
         
     | 
| 
       2592 
3620 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2602,22 +3630,6 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2602 
3630 
     | 
    
         
             
            #         [
         
     | 
| 
       2603 
3631 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2604 
3632 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2605 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2606 
     | 
    
         
            -
            #         [
         
     | 
| 
       2607 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2608 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2609 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2610 
     | 
    
         
            -
            #         [
         
     | 
| 
       2611 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2612 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2613 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2614 
     | 
    
         
            -
            #         [
         
     | 
| 
       2615 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2616 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2617 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2618 
     | 
    
         
            -
            #         [
         
     | 
| 
       2619 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2620 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2621 
3633 
     | 
    
         
             
            #         ]
         
     | 
| 
       2622 
3634 
     | 
    
         
             
            #       ]
         
     | 
| 
       2623 
3635 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2688,9 +3700,9 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2688 
3700 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2689 
3701 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2690 
3702 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2691 
     | 
    
         
            -
              -- 
     | 
| 
      
 3703 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2692 
3704 
     | 
    
         
             
              --drilldown 'tag, n_likes' \
         
     | 
| 
       2693 
     | 
    
         
            -
              -- 
     | 
| 
      
 3705 
     | 
    
         
            +
              --drilldown_sort_keys '-_nsubrecs, _key'
         
     | 
| 
       2694 
3706 
     | 
    
         
             
            # [
         
     | 
| 
       2695 
3707 
     | 
    
         
             
            #   [
         
     | 
| 
       2696 
3708 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2706,22 +3718,6 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2706 
3718 
     | 
    
         
             
            #         [
         
     | 
| 
       2707 
3719 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2708 
3720 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2709 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2710 
     | 
    
         
            -
            #         [
         
     | 
| 
       2711 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2712 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2713 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2714 
     | 
    
         
            -
            #         [
         
     | 
| 
       2715 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2716 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2717 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2718 
     | 
    
         
            -
            #         [
         
     | 
| 
       2719 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2720 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2721 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2722 
     | 
    
         
            -
            #         [
         
     | 
| 
       2723 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2724 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2725 
3721 
     | 
    
         
             
            #         ]
         
     | 
| 
       2726 
3722 
     | 
    
         
             
            #       ]
         
     | 
| 
       2727 
3723 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2791,13 +3787,13 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2791 
3787 
     | 
    
         
             
            <p>それぞれのドリルダウンで異なるソートキーを使いたい場合は <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span class="std std-ref">高度なドリルダウン関連のパラメーター</span></a> を参照してください。</p>
         
     | 
| 
       2792 
3788 
     | 
    
         
             
            </div>
         
     | 
| 
       2793 
3789 
     | 
    
         
             
            <div class="section" id="drilldown-output-columns">
         
     | 
| 
       2794 
     | 
    
         
            -
            <span id="select-drilldown-output-columns"></span><h4>7.3.54.4. 
     | 
| 
      
 3790 
     | 
    
         
            +
            <span id="select-drilldown-output-columns"></span><h4>7.3.54.4.7.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       2795 
3791 
     | 
    
         
             
            <p>ドリルダウン結果から出力するカラムを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
         
     | 
| 
       2796 
3792 
     | 
    
         
             
            <p>以下は <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の使用例です。</p>
         
     | 
| 
       2797 
3793 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2798 
3794 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2799 
3795 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2800 
     | 
    
         
            -
              -- 
     | 
| 
      
 3796 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2801 
3797 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       2802 
3798 
     | 
    
         
             
              --drilldown_output_columns _key
         
     | 
| 
       2803 
3799 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2815,22 +3811,6 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2815 
3811 
     | 
    
         
             
            #         [
         
     | 
| 
       2816 
3812 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2817 
3813 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2818 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2819 
     | 
    
         
            -
            #         [
         
     | 
| 
       2820 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2821 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2822 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2823 
     | 
    
         
            -
            #         [
         
     | 
| 
       2824 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2825 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2826 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2827 
     | 
    
         
            -
            #         [
         
     | 
| 
       2828 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2829 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2830 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2831 
     | 
    
         
            -
            #         [
         
     | 
| 
       2832 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2833 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2834 
3814 
     | 
    
         
             
            #         ]
         
     | 
| 
       2835 
3815 
     | 
    
         
             
            #       ]
         
     | 
| 
       2836 
3816 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2892,7 +3872,7 @@ load --table Items 
     | 
|
| 
       2892 
3872 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2893 
3873 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Items \
         
     | 
| 
       2894 
3874 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2895 
     | 
    
         
            -
              -- 
     | 
| 
      
 3875 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2896 
3876 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       2897 
3877 
     | 
    
         
             
              --drilldown_output_columns '_key, label'
         
     | 
| 
       2898 
3878 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2910,14 +3890,6 @@ load --table Items 
     | 
|
| 
       2910 
3890 
     | 
    
         
             
            #         [
         
     | 
| 
       2911 
3891 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2912 
3892 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2913 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2914 
     | 
    
         
            -
            #         [
         
     | 
| 
       2915 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2916 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2917 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2918 
     | 
    
         
            -
            #         [
         
     | 
| 
       2919 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2920 
     | 
    
         
            -
            #           "Tags"
         
     | 
| 
       2921 
3893 
     | 
    
         
             
            #         ]
         
     | 
| 
       2922 
3894 
     | 
    
         
             
            #       ]
         
     | 
| 
       2923 
3895 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2952,7 +3924,7 @@ load --table Items 
     | 
|
| 
       2952 
3924 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2953 
3925 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Items \
         
     | 
| 
       2954 
3926 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2955 
     | 
    
         
            -
              -- 
     | 
| 
      
 3927 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2956 
3928 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       2957 
3929 
     | 
    
         
             
              --drilldown_output_columns '_key, *'
         
     | 
| 
       2958 
3930 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2970,14 +3942,6 @@ load --table Items 
     | 
|
| 
       2970 
3942 
     | 
    
         
             
            #         [
         
     | 
| 
       2971 
3943 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2972 
3944 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2973 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2974 
     | 
    
         
            -
            #         [
         
     | 
| 
       2975 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2976 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2977 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2978 
     | 
    
         
            -
            #         [
         
     | 
| 
       2979 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2980 
     | 
    
         
            -
            #           "Tags"
         
     | 
| 
       2981 
3945 
     | 
    
         
             
            #         ]
         
     | 
| 
       2982 
3946 
     | 
    
         
             
            #       ]
         
     | 
| 
       2983 
3947 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3019,15 +3983,15 @@ load --table Items 
     | 
|
| 
       3019 
3983 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> を使うと、 <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の中で <code class="docutils literal"><span class="pre">_max</span></code> 、 <code class="docutils literal"><span class="pre">_min</span></code> 、 <code class="docutils literal"><span class="pre">_sum</span></code> 、 <code class="docutils literal"><span class="pre">_avg</span></code> といった <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> も使えるようになります。詳細は <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> のドキュメントを参照してください。</p>
         
     | 
| 
       3020 
3984 
     | 
    
         
             
            </div>
         
     | 
| 
       3021 
3985 
     | 
    
         
             
            <div class="section" id="drilldown-offset">
         
     | 
| 
       3022 
     | 
    
         
            -
            <span id="select-drilldown-offset"></span><h4>7.3.54.4. 
     | 
| 
      
 3986 
     | 
    
         
            +
            <span id="select-drilldown-offset"></span><h4>7.3.54.4.7.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       3023 
3987 
     | 
    
         
             
            <p>ドリルダウン結果を出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
       3024 
3988 
     | 
    
         
             
            <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_offset</span></code> の使用例です。</p>
         
     | 
| 
       3025 
3989 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3026 
3990 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3027 
3991 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3028 
     | 
    
         
            -
              -- 
     | 
| 
      
 3992 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3029 
3993 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3030 
     | 
    
         
            -
              -- 
     | 
| 
      
 3994 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3031 
3995 
     | 
    
         
             
              --drilldown_offset 1
         
     | 
| 
       3032 
3996 
     | 
    
         
             
            # [
         
     | 
| 
       3033 
3997 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -3044,22 +4008,6 @@ load --table Items 
     | 
|
| 
       3044 
4008 
     | 
    
         
             
            #         [
         
     | 
| 
       3045 
4009 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3046 
4010 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3047 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3048 
     | 
    
         
            -
            #         [
         
     | 
| 
       3049 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3050 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3051 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3052 
     | 
    
         
            -
            #         [
         
     | 
| 
       3053 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3054 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3055 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3056 
     | 
    
         
            -
            #         [
         
     | 
| 
       3057 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3058 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3059 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3060 
     | 
    
         
            -
            #         [
         
     | 
| 
       3061 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3062 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3063 
4011 
     | 
    
         
             
            #         ]
         
     | 
| 
       3064 
4012 
     | 
    
         
             
            #       ]
         
     | 
| 
       3065 
4013 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3095,9 +4043,9 @@ load --table Items 
     | 
|
| 
       3095 
4043 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3096 
4044 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3097 
4045 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3098 
     | 
    
         
            -
              -- 
     | 
| 
      
 4046 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3099 
4047 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3100 
     | 
    
         
            -
              -- 
     | 
| 
      
 4048 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3101 
4049 
     | 
    
         
             
              --drilldown_offset -2
         
     | 
| 
       3102 
4050 
     | 
    
         
             
            # [
         
     | 
| 
       3103 
4051 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -3114,22 +4062,6 @@ load --table Items 
     | 
|
| 
       3114 
4062 
     | 
    
         
             
            #         [
         
     | 
| 
       3115 
4063 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3116 
4064 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3117 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3118 
     | 
    
         
            -
            #         [
         
     | 
| 
       3119 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3120 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3121 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3122 
     | 
    
         
            -
            #         [
         
     | 
| 
       3123 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3124 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3125 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3126 
     | 
    
         
            -
            #         [
         
     | 
| 
       3127 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3128 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3129 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3130 
     | 
    
         
            -
            #         [
         
     | 
| 
       3131 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3132 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3133 
4065 
     | 
    
         
             
            #         ]
         
     | 
| 
       3134 
4066 
     | 
    
         
             
            #       ]
         
     | 
| 
       3135 
4067 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3164,15 +4096,15 @@ load --table Items 
     | 
|
| 
       3164 
4096 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldown_offset</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">0</span></code> です。</p>
         
     | 
| 
       3165 
4097 
     | 
    
         
             
            </div>
         
     | 
| 
       3166 
4098 
     | 
    
         
             
            <div class="section" id="drilldown-limit">
         
     | 
| 
       3167 
     | 
    
         
            -
            <span id="select-drilldown-limit"></span><h4>7.3.54.4. 
     | 
| 
      
 4099 
     | 
    
         
            +
            <span id="select-drilldown-limit"></span><h4>7.3.54.4.7.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       3168 
4100 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldown_limit</span></code> は出力グループ数の最大値を指定します。もし、グループ数 <code class="docutils literal"><span class="pre">limit</span></code> よりも小さい場合はすべてのグループが出力されます。</p>
         
     | 
| 
       3169 
4101 
     | 
    
         
             
            <p>以下は <code class="docutils literal"><span class="pre">drilldown_limit</span></code> の使用例です。</p>
         
     | 
| 
       3170 
4102 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3171 
4103 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3172 
4104 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3173 
     | 
    
         
            -
              -- 
     | 
| 
      
 4105 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3174 
4106 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3175 
     | 
    
         
            -
              -- 
     | 
| 
      
 4107 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3176 
4108 
     | 
    
         
             
              --drilldown_offset 1 \
         
     | 
| 
       3177 
4109 
     | 
    
         
             
              --drilldown_limit 2
         
     | 
| 
       3178 
4110 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -3190,22 +4122,6 @@ load --table Items 
     | 
|
| 
       3190 
4122 
     | 
    
         
             
            #         [
         
     | 
| 
       3191 
4123 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3192 
4124 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3193 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3194 
     | 
    
         
            -
            #         [
         
     | 
| 
       3195 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3196 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3197 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3198 
     | 
    
         
            -
            #         [
         
     | 
| 
       3199 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3200 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3201 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3202 
     | 
    
         
            -
            #         [
         
     | 
| 
       3203 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3204 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3205 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3206 
     | 
    
         
            -
            #         [
         
     | 
| 
       3207 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3208 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3209 
4125 
     | 
    
         
             
            #         ]
         
     | 
| 
       3210 
4126 
     | 
    
         
             
            #       ]
         
     | 
| 
       3211 
4127 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3242,9 +4158,9 @@ load --table Items 
     | 
|
| 
       3242 
4158 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3243 
4159 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3244 
4160 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3245 
     | 
    
         
            -
              -- 
     | 
| 
      
 4161 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3246 
4162 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3247 
     | 
    
         
            -
              -- 
     | 
| 
      
 4163 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3248 
4164 
     | 
    
         
             
              --drilldown_limit -1
         
     | 
| 
       3249 
4165 
     | 
    
         
             
            # [
         
     | 
| 
       3250 
4166 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -3261,22 +4177,6 @@ load --table Items 
     | 
|
| 
       3261 
4177 
     | 
    
         
             
            #         [
         
     | 
| 
       3262 
4178 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3263 
4179 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3264 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3265 
     | 
    
         
            -
            #         [
         
     | 
| 
       3266 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3267 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3268 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3269 
     | 
    
         
            -
            #         [
         
     | 
| 
       3270 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3271 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3272 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3273 
     | 
    
         
            -
            #         [
         
     | 
| 
       3274 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3275 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3276 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3277 
     | 
    
         
            -
            #         [
         
     | 
| 
       3278 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3279 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3280 
4180 
     | 
    
         
             
            #         ]
         
     | 
| 
       3281 
4181 
     | 
    
         
             
            #       ]
         
     | 
| 
       3282 
4182 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3315,7 +4215,7 @@ load --table Items 
     | 
|
| 
       3315 
4215 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldown_limit</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">10</span></code> です。</p>
         
     | 
| 
       3316 
4216 
     | 
    
         
             
            </div>
         
     | 
| 
       3317 
4217 
     | 
    
         
             
            <div class="section" id="drilldown-calc-types">
         
     | 
| 
       3318 
     | 
    
         
            -
            <span id="select-drilldown-calc-types"></span><h4>7.3.54.4. 
     | 
| 
      
 4218 
     | 
    
         
            +
            <span id="select-drilldown-calc-types"></span><h4>7.3.54.4.7.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code><a class="headerlink" href="#drilldown-calc-types" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       3319 
4219 
     | 
    
         
             
            <p>ドリルダウンでグループ内のレコードの値を計算(集計)する方法を指定します。「 <code class="docutils literal"><span class="pre">,</span></code> 」で区切ることで複数の計算タイプを指定することもできます。たとえば、 <code class="docutils literal"><span class="pre">MAX,MIN</span></code> といった具合です。</p>
         
     | 
| 
       3320 
4220 
     | 
    
         
             
            <p>計算対象の値はグループ内のレコードのカラムから取得します。このカラムは <a class="reference internal" href="#select-drilldown-calc-target"><span class="std std-ref">drilldown_calc_target</span></a> で指定します。</p>
         
     | 
| 
       3321 
4221 
     | 
    
         
             
            <p>計算した値は <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> の中で <code class="docutils literal"><span class="pre">_max</span></code> や <code class="docutils literal"><span class="pre">_min</span></code> のような <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を指定すると取得できます。</p>
         
     | 
| 
         @@ -3388,7 +4288,7 @@ load --table Items 
     | 
|
| 
       3388 
4288 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3389 
4289 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3390 
4290 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3391 
     | 
    
         
            -
              -- 
     | 
| 
      
 4291 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3392 
4292 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3393 
4293 
     | 
    
         
             
              --drilldown_calc_types MAX \
         
     | 
| 
       3394 
4294 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3410,56 +4310,29 @@ load --table Items 
     | 
|
| 
       3410 
4310 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3411 
4311 
     | 
    
         
             
            #         ],
         
     | 
| 
       3412 
4312 
     | 
    
         
             
            #         [
         
     | 
| 
       3413 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3414 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3415 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3416 
     | 
    
         
            -
            #         [
         
     | 
| 
       3417 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3418 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3419 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3420 
     | 
    
         
            -
            #         [
         
     | 
| 
       3421 
4313 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3422 
4314 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3423 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3424 
     | 
    
         
            -
            #         [
         
     | 
| 
       3425 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3426 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3427 
4315 
     | 
    
         
             
            #         ]
         
     | 
| 
       3428 
4316 
     | 
    
         
             
            #       ],
         
     | 
| 
       3429 
4317 
     | 
    
         
             
            #       [
         
     | 
| 
       3430 
4318 
     | 
    
         
             
            #         1,
         
     | 
| 
       3431 
     | 
    
         
            -
            #          
     | 
| 
       3432 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3433 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3434 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4319 
     | 
    
         
            +
            #         5
         
     | 
| 
       3435 
4320 
     | 
    
         
             
            #       ],
         
     | 
| 
       3436 
4321 
     | 
    
         
             
            #       [
         
     | 
| 
       3437 
4322 
     | 
    
         
             
            #         2,
         
     | 
| 
       3438 
     | 
    
         
            -
            #          
     | 
| 
       3439 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3440 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3441 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4323 
     | 
    
         
            +
            #         10
         
     | 
| 
       3442 
4324 
     | 
    
         
             
            #       ],
         
     | 
| 
       3443 
4325 
     | 
    
         
             
            #       [
         
     | 
| 
       3444 
4326 
     | 
    
         
             
            #         3,
         
     | 
| 
       3445 
     | 
    
         
            -
            #          
     | 
| 
       3446 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3447 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3448 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4327 
     | 
    
         
            +
            #         15
         
     | 
| 
       3449 
4328 
     | 
    
         
             
            #       ],
         
     | 
| 
       3450 
4329 
     | 
    
         
             
            #       [
         
     | 
| 
       3451 
4330 
     | 
    
         
             
            #         4,
         
     | 
| 
       3452 
     | 
    
         
            -
            #          
     | 
| 
       3453 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3454 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3455 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4331 
     | 
    
         
            +
            #         3
         
     | 
| 
       3456 
4332 
     | 
    
         
             
            #       ],
         
     | 
| 
       3457 
4333 
     | 
    
         
             
            #       [
         
     | 
| 
       3458 
4334 
     | 
    
         
             
            #         5,
         
     | 
| 
       3459 
     | 
    
         
            -
            #          
     | 
| 
       3460 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3461 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3462 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4335 
     | 
    
         
            +
            #         3
         
     | 
| 
       3463 
4336 
     | 
    
         
             
            #       ]
         
     | 
| 
       3464 
4337 
     | 
    
         
             
            #     ],
         
     | 
| 
       3465 
4338 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3498,7 +4371,7 @@ load --table Items 
     | 
|
| 
       3498 
4371 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3499 
4372 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3500 
4373 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3501 
     | 
    
         
            -
              -- 
     | 
| 
      
 4374 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3502 
4375 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3503 
4376 
     | 
    
         
             
              --drilldown_calc_types MIN \
         
     | 
| 
       3504 
4377 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3520,56 +4393,29 @@ load --table Items 
     | 
|
| 
       3520 
4393 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3521 
4394 
     | 
    
         
             
            #         ],
         
     | 
| 
       3522 
4395 
     | 
    
         
             
            #         [
         
     | 
| 
       3523 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3524 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3525 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3526 
     | 
    
         
            -
            #         [
         
     | 
| 
       3527 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3528 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3529 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3530 
     | 
    
         
            -
            #         [
         
     | 
| 
       3531 
4396 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3532 
4397 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3533 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3534 
     | 
    
         
            -
            #         [
         
     | 
| 
       3535 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3536 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3537 
4398 
     | 
    
         
             
            #         ]
         
     | 
| 
       3538 
4399 
     | 
    
         
             
            #       ],
         
     | 
| 
       3539 
4400 
     | 
    
         
             
            #       [
         
     | 
| 
       3540 
4401 
     | 
    
         
             
            #         1,
         
     | 
| 
       3541 
     | 
    
         
            -
            #          
     | 
| 
       3542 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3543 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3544 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4402 
     | 
    
         
            +
            #         5
         
     | 
| 
       3545 
4403 
     | 
    
         
             
            #       ],
         
     | 
| 
       3546 
4404 
     | 
    
         
             
            #       [
         
     | 
| 
       3547 
4405 
     | 
    
         
             
            #         2,
         
     | 
| 
       3548 
     | 
    
         
            -
            #          
     | 
| 
       3549 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3550 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3551 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4406 
     | 
    
         
            +
            #         10
         
     | 
| 
       3552 
4407 
     | 
    
         
             
            #       ],
         
     | 
| 
       3553 
4408 
     | 
    
         
             
            #       [
         
     | 
| 
       3554 
4409 
     | 
    
         
             
            #         3,
         
     | 
| 
       3555 
     | 
    
         
            -
            #          
     | 
| 
       3556 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3557 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3558 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4410 
     | 
    
         
            +
            #         15
         
     | 
| 
       3559 
4411 
     | 
    
         
             
            #       ],
         
     | 
| 
       3560 
4412 
     | 
    
         
             
            #       [
         
     | 
| 
       3561 
4413 
     | 
    
         
             
            #         4,
         
     | 
| 
       3562 
     | 
    
         
            -
            #          
     | 
| 
       3563 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3564 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3565 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4414 
     | 
    
         
            +
            #         3
         
     | 
| 
       3566 
4415 
     | 
    
         
             
            #       ],
         
     | 
| 
       3567 
4416 
     | 
    
         
             
            #       [
         
     | 
| 
       3568 
4417 
     | 
    
         
             
            #         5,
         
     | 
| 
       3569 
     | 
    
         
            -
            #          
     | 
| 
       3570 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3571 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3572 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4418 
     | 
    
         
            +
            #         3
         
     | 
| 
       3573 
4419 
     | 
    
         
             
            #       ]
         
     | 
| 
       3574 
4420 
     | 
    
         
             
            #     ],
         
     | 
| 
       3575 
4421 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3608,7 +4454,7 @@ load --table Items 
     | 
|
| 
       3608 
4454 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3609 
4455 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3610 
4456 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3611 
     | 
    
         
            -
              -- 
     | 
| 
      
 4457 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3612 
4458 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3613 
4459 
     | 
    
         
             
              --drilldown_calc_types SUM \
         
     | 
| 
       3614 
4460 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3630,56 +4476,29 @@ load --table Items 
     | 
|
| 
       3630 
4476 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3631 
4477 
     | 
    
         
             
            #         ],
         
     | 
| 
       3632 
4478 
     | 
    
         
             
            #         [
         
     | 
| 
       3633 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3634 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3635 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3636 
     | 
    
         
            -
            #         [
         
     | 
| 
       3637 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3638 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3639 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3640 
     | 
    
         
            -
            #         [
         
     | 
| 
       3641 
4479 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3642 
4480 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3643 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3644 
     | 
    
         
            -
            #         [
         
     | 
| 
       3645 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3646 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3647 
4481 
     | 
    
         
             
            #         ]
         
     | 
| 
       3648 
4482 
     | 
    
         
             
            #       ],
         
     | 
| 
       3649 
4483 
     | 
    
         
             
            #       [
         
     | 
| 
       3650 
4484 
     | 
    
         
             
            #         1,
         
     | 
| 
       3651 
     | 
    
         
            -
            #          
     | 
| 
       3652 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3653 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3654 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4485 
     | 
    
         
            +
            #         5
         
     | 
| 
       3655 
4486 
     | 
    
         
             
            #       ],
         
     | 
| 
       3656 
4487 
     | 
    
         
             
            #       [
         
     | 
| 
       3657 
4488 
     | 
    
         
             
            #         2,
         
     | 
| 
       3658 
     | 
    
         
            -
            #          
     | 
| 
       3659 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3660 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3661 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4489 
     | 
    
         
            +
            #         10
         
     | 
| 
       3662 
4490 
     | 
    
         
             
            #       ],
         
     | 
| 
       3663 
4491 
     | 
    
         
             
            #       [
         
     | 
| 
       3664 
4492 
     | 
    
         
             
            #         3,
         
     | 
| 
       3665 
     | 
    
         
            -
            #          
     | 
| 
       3666 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3667 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3668 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4493 
     | 
    
         
            +
            #         15
         
     | 
| 
       3669 
4494 
     | 
    
         
             
            #       ],
         
     | 
| 
       3670 
4495 
     | 
    
         
             
            #       [
         
     | 
| 
       3671 
4496 
     | 
    
         
             
            #         4,
         
     | 
| 
       3672 
     | 
    
         
            -
            #          
     | 
| 
       3673 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3674 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3675 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4497 
     | 
    
         
            +
            #         3
         
     | 
| 
       3676 
4498 
     | 
    
         
             
            #       ],
         
     | 
| 
       3677 
4499 
     | 
    
         
             
            #       [
         
     | 
| 
       3678 
4500 
     | 
    
         
             
            #         5,
         
     | 
| 
       3679 
     | 
    
         
            -
            #          
     | 
| 
       3680 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3681 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3682 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4501 
     | 
    
         
            +
            #         3
         
     | 
| 
       3683 
4502 
     | 
    
         
             
            #       ]
         
     | 
| 
       3684 
4503 
     | 
    
         
             
            #     ],
         
     | 
| 
       3685 
4504 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3718,7 +4537,7 @@ load --table Items 
     | 
|
| 
       3718 
4537 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3719 
4538 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3720 
4539 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3721 
     | 
    
         
            -
              -- 
     | 
| 
      
 4540 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3722 
4541 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3723 
4542 
     | 
    
         
             
              --drilldown_calc_types AVG \
         
     | 
| 
       3724 
4543 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3740,56 +4559,29 @@ load --table Items 
     | 
|
| 
       3740 
4559 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3741 
4560 
     | 
    
         
             
            #         ],
         
     | 
| 
       3742 
4561 
     | 
    
         
             
            #         [
         
     | 
| 
       3743 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3744 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3745 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3746 
     | 
    
         
            -
            #         [
         
     | 
| 
       3747 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3748 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3749 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3750 
     | 
    
         
            -
            #         [
         
     | 
| 
       3751 
4562 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3752 
4563 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3753 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3754 
     | 
    
         
            -
            #         [
         
     | 
| 
       3755 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3756 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3757 
4564 
     | 
    
         
             
            #         ]
         
     | 
| 
       3758 
4565 
     | 
    
         
             
            #       ],
         
     | 
| 
       3759 
4566 
     | 
    
         
             
            #       [
         
     | 
| 
       3760 
4567 
     | 
    
         
             
            #         1,
         
     | 
| 
       3761 
     | 
    
         
            -
            #          
     | 
| 
       3762 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3763 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3764 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4568 
     | 
    
         
            +
            #         5
         
     | 
| 
       3765 
4569 
     | 
    
         
             
            #       ],
         
     | 
| 
       3766 
4570 
     | 
    
         
             
            #       [
         
     | 
| 
       3767 
4571 
     | 
    
         
             
            #         2,
         
     | 
| 
       3768 
     | 
    
         
            -
            #          
     | 
| 
       3769 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3770 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3771 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4572 
     | 
    
         
            +
            #         10
         
     | 
| 
       3772 
4573 
     | 
    
         
             
            #       ],
         
     | 
| 
       3773 
4574 
     | 
    
         
             
            #       [
         
     | 
| 
       3774 
4575 
     | 
    
         
             
            #         3,
         
     | 
| 
       3775 
     | 
    
         
            -
            #          
     | 
| 
       3776 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3777 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3778 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4576 
     | 
    
         
            +
            #         15
         
     | 
| 
       3779 
4577 
     | 
    
         
             
            #       ],
         
     | 
| 
       3780 
4578 
     | 
    
         
             
            #       [
         
     | 
| 
       3781 
4579 
     | 
    
         
             
            #         4,
         
     | 
| 
       3782 
     | 
    
         
            -
            #          
     | 
| 
       3783 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3784 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3785 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4580 
     | 
    
         
            +
            #         3
         
     | 
| 
       3786 
4581 
     | 
    
         
             
            #       ],
         
     | 
| 
       3787 
4582 
     | 
    
         
             
            #       [
         
     | 
| 
       3788 
4583 
     | 
    
         
             
            #         5,
         
     | 
| 
       3789 
     | 
    
         
            -
            #          
     | 
| 
       3790 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3791 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3792 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4584 
     | 
    
         
            +
            #         3
         
     | 
| 
       3793 
4585 
     | 
    
         
             
            #       ]
         
     | 
| 
       3794 
4586 
     | 
    
         
             
            #     ],
         
     | 
| 
       3795 
4587 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3828,7 +4620,7 @@ load --table Items 
     | 
|
| 
       3828 
4620 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3829 
4621 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3830 
4622 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3831 
     | 
    
         
            -
              -- 
     | 
| 
      
 4623 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3832 
4624 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3833 
4625 
     | 
    
         
             
              --drilldown_calc_types MAX,MIN,SUM,AVG \
         
     | 
| 
       3834 
4626 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3850,56 +4642,29 @@ load --table Items 
     | 
|
| 
       3850 
4642 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3851 
4643 
     | 
    
         
             
            #         ],
         
     | 
| 
       3852 
4644 
     | 
    
         
             
            #         [
         
     | 
| 
       3853 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3854 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3855 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3856 
     | 
    
         
            -
            #         [
         
     | 
| 
       3857 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3858 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3859 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3860 
     | 
    
         
            -
            #         [
         
     | 
| 
       3861 
4645 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3862 
4646 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3863 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3864 
     | 
    
         
            -
            #         [
         
     | 
| 
       3865 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3866 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3867 
4647 
     | 
    
         
             
            #         ]
         
     | 
| 
       3868 
4648 
     | 
    
         
             
            #       ],
         
     | 
| 
       3869 
4649 
     | 
    
         
             
            #       [
         
     | 
| 
       3870 
4650 
     | 
    
         
             
            #         1,
         
     | 
| 
       3871 
     | 
    
         
            -
            #          
     | 
| 
       3872 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3873 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3874 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4651 
     | 
    
         
            +
            #         5
         
     | 
| 
       3875 
4652 
     | 
    
         
             
            #       ],
         
     | 
| 
       3876 
4653 
     | 
    
         
             
            #       [
         
     | 
| 
       3877 
4654 
     | 
    
         
             
            #         2,
         
     | 
| 
       3878 
     | 
    
         
            -
            #          
     | 
| 
       3879 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3880 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3881 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4655 
     | 
    
         
            +
            #         10
         
     | 
| 
       3882 
4656 
     | 
    
         
             
            #       ],
         
     | 
| 
       3883 
4657 
     | 
    
         
             
            #       [
         
     | 
| 
       3884 
4658 
     | 
    
         
             
            #         3,
         
     | 
| 
       3885 
     | 
    
         
            -
            #          
     | 
| 
       3886 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3887 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3888 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4659 
     | 
    
         
            +
            #         15
         
     | 
| 
       3889 
4660 
     | 
    
         
             
            #       ],
         
     | 
| 
       3890 
4661 
     | 
    
         
             
            #       [
         
     | 
| 
       3891 
4662 
     | 
    
         
             
            #         4,
         
     | 
| 
       3892 
     | 
    
         
            -
            #          
     | 
| 
       3893 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3894 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3895 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4663 
     | 
    
         
            +
            #         3
         
     | 
| 
       3896 
4664 
     | 
    
         
             
            #       ],
         
     | 
| 
       3897 
4665 
     | 
    
         
             
            #       [
         
     | 
| 
       3898 
4666 
     | 
    
         
             
            #         5,
         
     | 
| 
       3899 
     | 
    
         
            -
            #          
     | 
| 
       3900 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3901 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3902 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4667 
     | 
    
         
            +
            #         3
         
     | 
| 
       3903 
4668 
     | 
    
         
             
            #       ]
         
     | 
| 
       3904 
4669 
     | 
    
         
             
            #     ],
         
     | 
| 
       3905 
4670 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3965,7 +4730,10 @@ load --table Items 
     | 
|
| 
       3965 
4730 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">NONE</span></code> です。これは、 <code class="docutils literal"><span class="pre">COUNT</span></code> だけが有効になっているという意味です。なぜなら、 <code class="docutils literal"><span class="pre">NONE</span></code> は単に無視されて、 <code class="docutils literal"><span class="pre">COUNT</span></code> は常に有効だからです。</p>
         
     | 
| 
       3966 
4731 
     | 
    
         
             
            </div>
         
     | 
| 
       3967 
4732 
     | 
    
         
             
            <div class="section" id="drilldown-calc-target">
         
     | 
| 
       3968 
     | 
    
         
            -
            <span id="select-drilldown-calc-target"></span><h4>7.3.54.4. 
     | 
| 
      
 4733 
     | 
    
         
            +
            <span id="select-drilldown-calc-target"></span><h4>7.3.54.4.7.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code><a class="headerlink" href="#drilldown-calc-target" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4734 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 4735 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.3 で追加.</span></p>
         
     | 
| 
      
 4736 
     | 
    
         
            +
            </div>
         
     | 
| 
       3969 
4737 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> の計算対象のカラムを指定します。</p>
         
     | 
| 
       3970 
4738 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> で <code class="docutils literal"><span class="pre">MAX</span></code> のように計算対象のカラムが必要な計算タイプを指定したにも関わらず <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> を省略すると、計算結果は常に <code class="docutils literal"><span class="pre">0</span></code> になります。</p>
         
     | 
| 
       3971 
4739 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">n_likes</span></code> というように1つのカラム名だけしか指定できません。 <code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">_key,n_likes</span></code> というように複数のカラムを指定することはできません。</p>
         
     | 
| 
         @@ -3973,20 +4741,115 @@ load --table Items 
     | 
|
| 
       3973 
4741 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> の使い方は <a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> を参照してください。</p>
         
     | 
| 
       3974 
4742 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">null</span></code> です。これは計算対象カラムは何も指定されていないということです。</p>
         
     | 
| 
       3975 
4743 
     | 
    
         
             
            </div>
         
     | 
| 
      
 4744 
     | 
    
         
            +
            <div class="section" id="drilldown-filter">
         
     | 
| 
      
 4745 
     | 
    
         
            +
            <span id="select-drilldown-filter"></span><h4>7.3.54.4.7.9. <code class="docutils literal"><span class="pre">drilldown_filter</span></code><a class="headerlink" href="#drilldown-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4746 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 4747 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.3 で追加.</span></p>
         
     | 
| 
      
 4748 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4749 
     | 
    
         
            +
            <p>ドリルダウン結果に対するフィルター条件を指定します。</p>
         
     | 
| 
      
 4750 
     | 
    
         
            +
            <p>構文は <a class="reference internal" href="../grn_expr/script_syntax.html"><span class="doc">スクリプト構文</span></a> です。これは <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> と同じです。</p>
         
     | 
| 
      
 4751 
     | 
    
         
            +
            <p>以下は1開始か出現していないタグを除く例です。</p>
         
     | 
| 
      
 4752 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 4753 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 4754 
     | 
    
         
            +
              --limit -1 \
         
     | 
| 
      
 4755 
     | 
    
         
            +
              --output_columns _id,tag \
         
     | 
| 
      
 4756 
     | 
    
         
            +
              --drilldown tag \
         
     | 
| 
      
 4757 
     | 
    
         
            +
              --drilldown_filter '_nsubrecs > 1' \
         
     | 
| 
      
 4758 
     | 
    
         
            +
              --drilldown_output_columns _key,_nsubrecs
         
     | 
| 
      
 4759 
     | 
    
         
            +
            # [
         
     | 
| 
      
 4760 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 4761 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 4762 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 4763 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 4764 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 4765 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 4766 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 4767 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4768 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 4769 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4770 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4771 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4772 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 4773 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 4774 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 4775 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4776 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 4777 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 4778 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 4779 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4780 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4781 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 4782 
     | 
    
         
            +
            #         "Hello"
         
     | 
| 
      
 4783 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4784 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4785 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 4786 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 4787 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4788 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4789 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 4790 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 4791 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4792 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4793 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 4794 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 4795 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4796 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4797 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 4798 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 4799 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 4800 
     | 
    
         
            +
            #     ],
         
     | 
| 
      
 4801 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 4802 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4803 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 4804 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4805 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4806 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4807 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 4808 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 4809 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 4810 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4811 
     | 
    
         
            +
            #           "_nsubrecs",
         
     | 
| 
      
 4812 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 4813 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 4814 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4815 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4816 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 4817 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 4818 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4819 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4820 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 4821 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 4822 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 4823 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 4824 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 4825 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 4826 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4827 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4828 
     | 
    
         
            +
            </div>
         
     | 
| 
       3976 
4829 
     | 
    
         
             
            </div>
         
     | 
| 
       3977 
4830 
     | 
    
         
             
            <div class="section" id="advanced-drilldown-related-parameters">
         
     | 
| 
       3978 
     | 
    
         
            -
            <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.54.4. 
     | 
| 
      
 4831 
     | 
    
         
            +
            <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.54.4.8. 高度なドリルダウン関連のパラメーター<a class="headerlink" href="#advanced-drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 4832 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 4833 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
         
     | 
| 
      
 4834 
     | 
    
         
            +
            </div>
         
     | 
| 
       3979 
4835 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> に複数のグループキーを指定することで複数のドリルダウン結果を取得できます。しかし、すべてのドリルダウンで同じ設定を使う必要があります。例えば、すべてのドリルダウンで同じ <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> の値が使われます。</p>
         
     | 
| 
       3980 
4836 
     | 
    
         
             
            <p>以下の引数を使うことで、各ドリルダウンで別々の設定を使うことができます。</p>
         
     | 
| 
       3981 
4837 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       3982 
4838 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       3983 
4839 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></li>
         
     | 
| 
       3984 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]. 
     | 
| 
      
 4840 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code></li>
         
     | 
| 
       3985 
4841 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></li>
         
     | 
| 
       3986 
4842 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code></li>
         
     | 
| 
       3987 
4843 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code></li>
         
     | 
| 
       3988 
4844 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code></li>
         
     | 
| 
       3989 
4845 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code></li>
         
     | 
| 
      
 4846 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code></li>
         
     | 
| 
      
 4847 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
      
 4848 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
         
     | 
| 
      
 4849 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code></li>
         
     | 
| 
      
 4850 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code></li>
         
     | 
| 
      
 4851 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code></li>
         
     | 
| 
      
 4852 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code></li>
         
     | 
| 
       3990 
4853 
     | 
    
         
             
            </ul>
         
     | 
| 
       3991 
4854 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       3992 
4855 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">${LABEL}</span></code> は変数です。 <code class="docutils literal"><span class="pre">${LABEL}</span></code> には次の文字を使うことができます。</p>
         
     | 
| 
         @@ -4000,6 +4863,16 @@ load --table Items 
     | 
|
| 
       4000 
4863 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">_</span></code></li>
         
     | 
| 
       4001 
4864 
     | 
    
         
             
            </ul>
         
     | 
| 
       4002 
4865 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
      
 4866 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">${NAME}</span></code> は変数です。 <code class="docutils literal"><span class="pre">${NAME}</span></code> には次の文字を使うことができます。</p>
         
     | 
| 
      
 4867 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 4868 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 4869 
     | 
    
         
            +
            <li><p class="first">アルファベット</p>
         
     | 
| 
      
 4870 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 4871 
     | 
    
         
            +
            <li><p class="first">数字</p>
         
     | 
| 
      
 4872 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 4873 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">_</span></code></li>
         
     | 
| 
      
 4874 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 4875 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
       4003 
4876 
     | 
    
         
             
            <div class="admonition note">
         
     | 
| 
       4004 
4877 
     | 
    
         
             
            <p class="first admonition-title">注釈</p>
         
     | 
| 
       4005 
4878 
     | 
    
         
             
            <p class="last">他の文字も使えますが、これらの文字だけを使ってください。</p>
         
     | 
| 
         @@ -4020,11 +4893,27 @@ load --table Items 
     | 
|
| 
       4020 
4893 
     | 
    
         
             
            <p>以下の引数の使い方は対応する <code class="docutils literal"><span class="pre">drilldown_XXX</span></code> 引数のドキュメントを参照してください。</p>
         
     | 
| 
       4021 
4894 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4022 
4895 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4023 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]. 
     | 
| 
      
 4896 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code>: <a class="reference internal" href="#select-drilldown-sort-keys"><span class="std std-ref">drilldown_sort_keys</span></a></li>
         
     | 
| 
       4024 
4897 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code>: <a class="reference internal" href="#select-drilldown-offset"><span class="std std-ref">drilldown_offset</span></a></li>
         
     | 
| 
       4025 
4898 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code>: <a class="reference internal" href="#select-drilldown-limit"><span class="std std-ref">drilldown_limit</span></a></li>
         
     | 
| 
       4026 
4899 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code>: <a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a></li>
         
     | 
| 
       4027 
4900 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code>: <a class="reference internal" href="#select-drilldown-calc-target"><span class="std std-ref">drilldown_calc_target</span></a></li>
         
     | 
| 
      
 4901 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code>: <a class="reference internal" href="#select-drilldown-filter"><span class="std std-ref">drilldown_filter</span></a></li>
         
     | 
| 
      
 4902 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 4903 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 4904 
     | 
    
         
            +
            <p>以下の引数の使い方は対応する <code class="docutils literal"><span class="pre">columns[${NAME}].XXX</span></code> 引数のドキュメントを参照してください。</p>
         
     | 
| 
      
 4905 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 4906 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 4907 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code>:
         
     | 
| 
      
 4908 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-flags"><span class="std std-ref">columns[${NAME}].flags</span></a></li>
         
     | 
| 
      
 4909 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code>:
         
     | 
| 
      
 4910 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-type"><span class="std std-ref">columns[${NAME}].type</span></a></li>
         
     | 
| 
      
 4911 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code>:
         
     | 
| 
      
 4912 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-value"><span class="std std-ref">columns[${NAME}].value</span></a></li>
         
     | 
| 
      
 4913 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code>:
         
     | 
| 
      
 4914 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a></li>
         
     | 
| 
      
 4915 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code>:
         
     | 
| 
      
 4916 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a></li>
         
     | 
| 
       4028 
4917 
     | 
    
         
             
            </ul>
         
     | 
| 
       4029 
4918 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4030 
4919 
     | 
    
         
             
            <p>以下の引数は追加の説明が必要です。</p>
         
     | 
| 
         @@ -4032,21 +4921,25 @@ load --table Items 
     | 
|
| 
       4032 
4921 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4033 
4922 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></li>
         
     | 
| 
       4034 
4923 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></li>
         
     | 
| 
      
 4924 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
       4035 
4925 
     | 
    
         
             
            </ul>
         
     | 
| 
       4036 
4926 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4037 
4927 
     | 
    
         
             
            <p>出力フォーマットは少し違います。これも追加の説明が必要です。</p>
         
     | 
| 
       4038 
4928 
     | 
    
         
             
            <div class="section" id="drilldowns-label-keys">
         
     | 
| 
       4039 
     | 
    
         
            -
            <span id="select- 
     | 
| 
      
 4929 
     | 
    
         
            +
            <span id="select-drilldowns-label-keys"></span><h4>7.3.54.4.8.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code><a class="headerlink" href="#drilldowns-label-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4930 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 4931 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
         
     | 
| 
      
 4932 
     | 
    
         
            +
            </div>
         
     | 
| 
       4040 
4933 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> は複数のキーを指定して複数のドリルダウンを指定できます。しかし、1つのドリルダウンに複数のキーを指定することはできません。</p>
         
     | 
| 
       4041 
4934 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code> は複数のキーを指定して複数のドリルダウンを指定することはできません。しかし、1つのドリルダウンに複数のキーを指定することができます。</p>
         
     | 
| 
       4042 
     | 
    
         
            -
            <p 
     | 
| 
      
 4935 
     | 
    
         
            +
            <p>複数のキーを「<code class="docutils literal"><span class="pre">,</span></code> 」区切りで指定します。</p>
         
     | 
| 
       4043 
4936 
     | 
    
         
             
            <p>以下は <code class="docutils literal"><span class="pre">tag</span></code> カラムと <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値を使った複数キーでのグループ化の例です。</p>
         
     | 
| 
       4044 
4937 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4045 
4938 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4046 
4939 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       4047 
     | 
    
         
            -
              -- 
     | 
| 
       4048 
     | 
    
         
            -
              -- 
     | 
| 
       4049 
     | 
    
         
            -
              -- 
     | 
| 
      
 4940 
     | 
    
         
            +
              --output_columns tag,n_likes \
         
     | 
| 
      
 4941 
     | 
    
         
            +
              --drilldowns[tag.n_likes].keys tag,n_likes \
         
     | 
| 
      
 4942 
     | 
    
         
            +
              --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
         
     | 
| 
       4050 
4943 
     | 
    
         
             
            # [
         
     | 
| 
       4051 
4944 
     | 
    
         
             
            #   [
         
     | 
| 
       4052 
4945 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -4060,60 +4953,33 @@ load --table Items 
     | 
|
| 
       4060 
4953 
     | 
    
         
             
            #       ],
         
     | 
| 
       4061 
4954 
     | 
    
         
             
            #       [
         
     | 
| 
       4062 
4955 
     | 
    
         
             
            #         [
         
     | 
| 
       4063 
     | 
    
         
            -
            #           " 
     | 
| 
       4064 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       4065 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4066 
     | 
    
         
            -
            #         [
         
     | 
| 
       4067 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
      
 4956 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
       4068 
4957 
     | 
    
         
             
            #           "ShortText"
         
     | 
| 
       4069 
4958 
     | 
    
         
             
            #         ],
         
     | 
| 
       4070 
4959 
     | 
    
         
             
            #         [
         
     | 
| 
       4071 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       4072 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       4073 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4074 
     | 
    
         
            -
            #         [
         
     | 
| 
       4075 
4960 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       4076 
4961 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       4077 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4078 
     | 
    
         
            -
            #         [
         
     | 
| 
       4079 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       4080 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4081 
4962 
     | 
    
         
             
            #         ]
         
     | 
| 
       4082 
4963 
     | 
    
         
             
            #       ],
         
     | 
| 
       4083 
4964 
     | 
    
         
             
            #       [
         
     | 
| 
       4084 
     | 
    
         
            -
            #          
     | 
| 
       4085 
     | 
    
         
            -
            #          
     | 
| 
       4086 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       4087 
     | 
    
         
            -
            #         5,
         
     | 
| 
       4088 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4965 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 4966 
     | 
    
         
            +
            #         5
         
     | 
| 
       4089 
4967 
     | 
    
         
             
            #       ],
         
     | 
| 
       4090 
4968 
     | 
    
         
             
            #       [
         
     | 
| 
       4091 
     | 
    
         
            -
            #         2,
         
     | 
| 
       4092 
4969 
     | 
    
         
             
            #         "Groonga",
         
     | 
| 
       4093 
     | 
    
         
            -
            #          
     | 
| 
       4094 
     | 
    
         
            -
            #         10,
         
     | 
| 
       4095 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4970 
     | 
    
         
            +
            #         10
         
     | 
| 
       4096 
4971 
     | 
    
         
             
            #       ],
         
     | 
| 
       4097 
4972 
     | 
    
         
             
            #       [
         
     | 
| 
       4098 
     | 
    
         
            -
            #          
     | 
| 
       4099 
     | 
    
         
            -
            #          
     | 
| 
       4100 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       4101 
     | 
    
         
            -
            #         15,
         
     | 
| 
       4102 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4973 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 4974 
     | 
    
         
            +
            #         15
         
     | 
| 
       4103 
4975 
     | 
    
         
             
            #       ],
         
     | 
| 
       4104 
4976 
     | 
    
         
             
            #       [
         
     | 
| 
       4105 
     | 
    
         
            -
            #          
     | 
| 
       4106 
     | 
    
         
            -
            #          
     | 
| 
       4107 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       4108 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4109 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4977 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 4978 
     | 
    
         
            +
            #         3
         
     | 
| 
       4110 
4979 
     | 
    
         
             
            #       ],
         
     | 
| 
       4111 
4980 
     | 
    
         
             
            #       [
         
     | 
| 
       4112 
     | 
    
         
            -
            #          
     | 
| 
       4113 
     | 
    
         
            -
            #          
     | 
| 
       4114 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       4115 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4116 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4981 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 4982 
     | 
    
         
            +
            #         3
         
     | 
| 
       4117 
4983 
     | 
    
         
             
            #       ]
         
     | 
| 
       4118 
4984 
     | 
    
         
             
            #     ],
         
     | 
| 
       4119 
4985 
     | 
    
         
             
            #     {
         
     | 
| 
         @@ -4161,20 +5027,23 @@ load --table Items 
     | 
|
| 
       4161 
5027 
     | 
    
         
             
            # ]
         
     | 
| 
       4162 
5028 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4163 
5029 
     | 
    
         
             
            </div>
         
     | 
| 
       4164 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">tag.n_likes</span></code> はドリルダウン引数グループのラベルです。グループ化に使ったそれぞれのキーを参照するときは <a class="reference internal" href="#select- 
     | 
| 
      
 5030 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">tag.n_likes</span></code> はドリルダウン引数グループのラベルです。グループ化に使ったそれぞれのキーを参照するときは <a class="reference internal" href="#select-drilldowns-label-output-columns"><span class="std std-ref">drilldowns[${LABEL}].output_columns</span></a> で <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> という構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> にはグループキーを指定したときに使ったカラム名を使います。この場合は <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> に <code class="docutils literal"><span class="pre">tag</span></code> と <code class="docutils literal"><span class="pre">n_keys</span></code> を使います。</p>
         
     | 
| 
       4165 
5031 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">--drilldowns[tag].keys</span> <span class="pre">tag</span></code> のように <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code> にキーを1つだけしか指定していない場合は <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使うことはできません。この場合は <code class="docutils literal"><span class="pre">_key</span></code> を使ってください。これは、 <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> と同じルールです。</p>
         
     | 
| 
       4166 
5032 
     | 
    
         
             
            </div>
         
     | 
| 
       4167 
5033 
     | 
    
         
             
            <div class="section" id="drilldowns-label-output-columns">
         
     | 
| 
       4168 
     | 
    
         
            -
            <span id="select- 
     | 
| 
      
 5034 
     | 
    
         
            +
            <span id="select-drilldowns-label-output-columns"></span><h4>7.3.54.4.8.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code><a class="headerlink" href="#drilldowns-label-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5035 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5036 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
         
     | 
| 
      
 5037 
     | 
    
         
            +
            </div>
         
     | 
| 
       4169 
5038 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> はほとんど <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> と同じです。 <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> と <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> の違いはグループキーの参照方法です。</p>
         
     | 
| 
       4170 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> はグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> も <a class="reference internal" href="#select- 
     | 
| 
      
 5039 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> はグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> も <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> で1つだけしかグループキーを指定していない場合は、グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使います。</p>
         
     | 
| 
       4171 
5040 
     | 
    
         
             
            <p>以下は1つだけ指定したグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使う例です。</p>
         
     | 
| 
       4172 
5041 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4173 
5042 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4174 
5043 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       4175 
     | 
    
         
            -
              -- 
     | 
| 
       4176 
     | 
    
         
            -
              -- 
     | 
| 
       4177 
     | 
    
         
            -
              -- 
     | 
| 
      
 5044 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
      
 5045 
     | 
    
         
            +
              --drilldowns[tag.n_likes].keys tag,n_likes \
         
     | 
| 
      
 5046 
     | 
    
         
            +
              --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes
         
     | 
| 
       4178 
5047 
     | 
    
         
             
            # [
         
     | 
| 
       4179 
5048 
     | 
    
         
             
            #   [
         
     | 
| 
       4180 
5049 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -4190,22 +5059,69 @@ load --table Items 
     | 
|
| 
       4190 
5059 
     | 
    
         
             
            #         [
         
     | 
| 
       4191 
5060 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       4192 
5061 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
      
 5062 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 5063 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 5064 
     | 
    
         
            +
            #     ],
         
     | 
| 
      
 5065 
     | 
    
         
            +
            #     {
         
     | 
| 
      
 5066 
     | 
    
         
            +
            #       "tag.n_likes": [
         
     | 
| 
      
 5067 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5068 
     | 
    
         
            +
            #           4
         
     | 
| 
       4193 
5069 
     | 
    
         
             
            #         ],
         
     | 
| 
       4194 
5070 
     | 
    
         
             
            #         [
         
     | 
| 
       4195 
     | 
    
         
            -
            #            
     | 
| 
       4196 
     | 
    
         
            -
            # 
     | 
| 
      
 5071 
     | 
    
         
            +
            #           [
         
     | 
| 
      
 5072 
     | 
    
         
            +
            #             "tag",
         
     | 
| 
      
 5073 
     | 
    
         
            +
            #             "ShortText"
         
     | 
| 
      
 5074 
     | 
    
         
            +
            #           ],
         
     | 
| 
      
 5075 
     | 
    
         
            +
            #           [
         
     | 
| 
      
 5076 
     | 
    
         
            +
            #             "n_likes",
         
     | 
| 
      
 5077 
     | 
    
         
            +
            #             "UInt32"
         
     | 
| 
      
 5078 
     | 
    
         
            +
            #           ]
         
     | 
| 
       4197 
5079 
     | 
    
         
             
            #         ],
         
     | 
| 
       4198 
5080 
     | 
    
         
             
            #         [
         
     | 
| 
       4199 
     | 
    
         
            -
            #           " 
     | 
| 
       4200 
     | 
    
         
            -
            #            
     | 
| 
      
 5081 
     | 
    
         
            +
            #           "Hello",
         
     | 
| 
      
 5082 
     | 
    
         
            +
            #           5
         
     | 
| 
       4201 
5083 
     | 
    
         
             
            #         ],
         
     | 
| 
       4202 
5084 
     | 
    
         
             
            #         [
         
     | 
| 
       4203 
     | 
    
         
            -
            #           " 
     | 
| 
       4204 
     | 
    
         
            -
            #            
     | 
| 
      
 5085 
     | 
    
         
            +
            #           "Groonga",
         
     | 
| 
      
 5086 
     | 
    
         
            +
            #           10
         
     | 
| 
       4205 
5087 
     | 
    
         
             
            #         ],
         
     | 
| 
       4206 
5088 
     | 
    
         
             
            #         [
         
     | 
| 
       4207 
     | 
    
         
            -
            #           " 
     | 
| 
       4208 
     | 
    
         
            -
            #            
     | 
| 
      
 5089 
     | 
    
         
            +
            #           "Groonga",
         
     | 
| 
      
 5090 
     | 
    
         
            +
            #           15
         
     | 
| 
      
 5091 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5092 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5093 
     | 
    
         
            +
            #           "Senna",
         
     | 
| 
      
 5094 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 5095 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 5096 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 5097 
     | 
    
         
            +
            #     }
         
     | 
| 
      
 5098 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 5099 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 5100 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 5101 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5102 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldownss[${LABEL}].output_columns</span></code> で各グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><span class="doc">擬似カラム</span></a> を使うことはできません。 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> には <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> でグループキーを指定するために使ったカラム名を使います。</p>
         
     | 
| 
      
 5103 
     | 
    
         
            +
            <p>以下は複数のグループキーを使ったときに <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でそれぞれのグループキーを参照する例です。</p>
         
     | 
| 
      
 5104 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 5105 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 5106 
     | 
    
         
            +
              --limit 0 \
         
     | 
| 
      
 5107 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
      
 5108 
     | 
    
         
            +
              --drilldowns[tag.n_likes].keys tag,n_likes \
         
     | 
| 
      
 5109 
     | 
    
         
            +
              --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes
         
     | 
| 
      
 5110 
     | 
    
         
            +
            # [
         
     | 
| 
      
 5111 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 5112 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 5113 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 5114 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 5115 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 5116 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 5117 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 5118 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5119 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 5120 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5121 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5122 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5123 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 5124 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
       4209 
5125 
     | 
    
         
             
            #         ]
         
     | 
| 
       4210 
5126 
     | 
    
         
             
            #       ]
         
     | 
| 
       4211 
5127 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -4246,14 +5162,65 @@ load --table Items 
     | 
|
| 
       4246 
5162 
     | 
    
         
             
            # ]
         
     | 
| 
       4247 
5163 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4248 
5164 
     | 
    
         
             
            </div>
         
     | 
| 
       4249 
     | 
    
         
            -
            < 
     | 
| 
       4250 
     | 
    
         
            -
            <p 
     | 
| 
      
 5165 
     | 
    
         
            +
            <div class="admonition tip">
         
     | 
| 
      
 5166 
     | 
    
         
            +
            <p class="first admonition-title">ちなみに</p>
         
     | 
| 
      
 5167 
     | 
    
         
            +
            <p>どうして <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文なの?</p>
         
     | 
| 
      
 5168 
     | 
    
         
            +
            <p>これは実装よりの情報です。</p>
         
     | 
| 
      
 5169 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">_key</span></code> はベクターの値です。このベクターの値はすべてのグループキーから成ります。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で <code class="docutils literal"><span class="pre">_key</span></code> を参照するとこのベクターの値のバイト列を確認することができます。</p>
         
     | 
| 
      
 5170 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に複数のグループキーを指定したとき、各グループの値を参照するために <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードが1つだけ保存されています。そのため、各グループキーを参照するために <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使えます。</p>
         
     | 
| 
      
 5171 
     | 
    
         
            +
            <p class="last">一方、 <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に1つのグループキーしか指定していない場合は、 <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードを保存しません。そのため、 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でグループキーを参照できません。</p>
         
     | 
| 
      
 5172 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5173 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5174 
     | 
    
         
            +
            <div class="section" id="drilldowns-label-columns-name-stage">
         
     | 
| 
      
 5175 
     | 
    
         
            +
            <span id="select-drilldowns-label-columns-name-stage"></span><h4>7.3.54.4.8.3. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code><a class="headerlink" href="#drilldowns-label-columns-name-stage" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5176 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5177 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.5 で追加.</span></p>
         
     | 
| 
      
 5178 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5179 
     | 
    
         
            +
            <p>どのタイミング(どのステージ)で動的カラムを作るかを指定します。動的カラムを作る場合はこのパラメーターは必須です。</p>
         
     | 
| 
      
 5180 
     | 
    
         
            +
            <p>指定可能なステージは以下の通りです。</p>
         
     | 
| 
      
 5181 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 5182 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 5183 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5184 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5185 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 5186 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 5187 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">名前</p>
         
     | 
| 
      
 5188 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 5189 
     | 
    
         
            +
            <th class="head"><p class="first last">説明</p>
         
     | 
| 
      
 5190 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 5191 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5192 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 5193 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 5194 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">initial</span></code></td>
         
     | 
| 
      
 5195 
     | 
    
         
            +
            <td><p class="first last">最初に動的カラムを作成します。</p>
         
     | 
| 
      
 5196 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5197 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5198 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 5199 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 5200 
     | 
    
         
            +
            <p>以下は動的カラム作成タイミング入りの各ドリルダウンの処理の流れです。できるだけ後のステージを選ぶべきです。</p>
         
     | 
| 
      
 5201 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 5202 
     | 
    
         
            +
            <div><ol class="arabic simple">
         
     | 
| 
      
 5203 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code> を評価します。</p>
         
     | 
| 
      
 5204 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 5205 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">initial</span></code> ステージの動的カラムを作ります。すべてのドリルダウン結果レコードはこの動的カラムを持ちます。</p>
         
     | 
| 
      
 5206 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 5207 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 5208 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 5209 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code> 、 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 5210 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 5211 
     | 
    
         
            +
            <li><p class="first"><a class="reference internal" href="#select-drilldowns-label-output-columns"><span class="std std-ref">drilldowns[${LABEL}].output_columns</span></a> を評価します。 <code class="docutils literal"><span class="pre">initial</span></code> ステージで作った動的カラムを使えます。</p>
         
     | 
| 
      
 5212 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 5213 
     | 
    
         
            +
            </ol>
         
     | 
| 
      
 5214 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 5215 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code> の使用例です。この例では <code class="docutils literal"><span class="pre">initial</span></code> ステージで <code class="docutils literal"><span class="pre">is_popular</span></code> カラムを作っています。作成した <code class="docutils literal"><span class="pre">is_popular</span></code> カラムは <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code> と <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で使えます。</p>
         
     | 
| 
       4251 
5216 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4252 
5217 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4253 
     | 
    
         
            -
              -- 
     | 
| 
       4254 
     | 
    
         
            -
              -- 
     | 
| 
       4255 
     | 
    
         
            -
              -- 
     | 
| 
       4256 
     | 
    
         
            -
              -- 
     | 
| 
      
 5218 
     | 
    
         
            +
              --drilldowns[tag].keys tag \
         
     | 
| 
      
 5219 
     | 
    
         
            +
              --drilldowns[tag].columns[is_popular].stage initial \
         
     | 
| 
      
 5220 
     | 
    
         
            +
              --drilldowns[tag].columns[is_popular].type Bool \
         
     | 
| 
      
 5221 
     | 
    
         
            +
              --drilldowns[tag].columns[is_popular].value '_nsubrecs > 1' \
         
     | 
| 
      
 5222 
     | 
    
         
            +
              --drilldowns[tag].filter is_popular \
         
     | 
| 
      
 5223 
     | 
    
         
            +
              --drilldowns[tag].output_columns _key,is_popular,_nsubrecs
         
     | 
| 
       4257 
5224 
     | 
    
         
             
            # [
         
     | 
| 
       4258 
5225 
     | 
    
         
             
            #   [
         
     | 
| 
       4259 
5226 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -4286,38 +5253,71 @@ load --table Items 
     | 
|
| 
       4286 
5253 
     | 
    
         
             
            #           "tag",
         
     | 
| 
       4287 
5254 
     | 
    
         
             
            #           "ShortText"
         
     | 
| 
       4288 
5255 
     | 
    
         
             
            #         ]
         
     | 
| 
      
 5256 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5257 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5258 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 5259 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 5260 
     | 
    
         
            +
            #         "Welcome! This is my first post!",
         
     | 
| 
      
 5261 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 5262 
     | 
    
         
            +
            #         "Hello"
         
     | 
| 
      
 5263 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5264 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5265 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 5266 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 5267 
     | 
    
         
            +
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
      
 5268 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 5269 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 5270 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5271 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5272 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5273 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 5274 
     | 
    
         
            +
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
      
 5275 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 5276 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 5277 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5278 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5279 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 5280 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 5281 
     | 
    
         
            +
            #         "I migrated all Senna system!",
         
     | 
| 
      
 5282 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5283 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 5284 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5285 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5286 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 5287 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 5288 
     | 
    
         
            +
            #         "I also migrated all Tritonn system!",
         
     | 
| 
      
 5289 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5290 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
       4289 
5291 
     | 
    
         
             
            #       ]
         
     | 
| 
       4290 
5292 
     | 
    
         
             
            #     ],
         
     | 
| 
       4291 
5293 
     | 
    
         
             
            #     {
         
     | 
| 
       4292 
     | 
    
         
            -
            #       "tag 
     | 
| 
      
 5294 
     | 
    
         
            +
            #       "tag": [
         
     | 
| 
       4293 
5295 
     | 
    
         
             
            #         [
         
     | 
| 
       4294 
     | 
    
         
            -
            #            
     | 
| 
      
 5296 
     | 
    
         
            +
            #           2
         
     | 
| 
       4295 
5297 
     | 
    
         
             
            #         ],
         
     | 
| 
       4296 
5298 
     | 
    
         
             
            #         [
         
     | 
| 
       4297 
5299 
     | 
    
         
             
            #           [
         
     | 
| 
       4298 
     | 
    
         
            -
            #             " 
     | 
| 
      
 5300 
     | 
    
         
            +
            #             "_key",
         
     | 
| 
       4299 
5301 
     | 
    
         
             
            #             "ShortText"
         
     | 
| 
       4300 
5302 
     | 
    
         
             
            #           ],
         
     | 
| 
       4301 
5303 
     | 
    
         
             
            #           [
         
     | 
| 
       4302 
     | 
    
         
            -
            #             " 
     | 
| 
       4303 
     | 
    
         
            -
            #             " 
     | 
| 
      
 5304 
     | 
    
         
            +
            #             "is_popular",
         
     | 
| 
      
 5305 
     | 
    
         
            +
            #             "Bool"
         
     | 
| 
      
 5306 
     | 
    
         
            +
            #           ],
         
     | 
| 
      
 5307 
     | 
    
         
            +
            #           [
         
     | 
| 
      
 5308 
     | 
    
         
            +
            #             "_nsubrecs",
         
     | 
| 
      
 5309 
     | 
    
         
            +
            #             "Int32"
         
     | 
| 
       4304 
5310 
     | 
    
         
             
            #           ]
         
     | 
| 
       4305 
5311 
     | 
    
         
             
            #         ],
         
     | 
| 
       4306 
5312 
     | 
    
         
             
            #         [
         
     | 
| 
       4307 
     | 
    
         
            -
            #           "Hello",
         
     | 
| 
       4308 
     | 
    
         
            -
            #           5
         
     | 
| 
       4309 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4310 
     | 
    
         
            -
            #         [
         
     | 
| 
       4311 
5313 
     | 
    
         
             
            #           "Groonga",
         
     | 
| 
       4312 
     | 
    
         
            -
            #            
     | 
| 
       4313 
     | 
    
         
            -
            # 
     | 
| 
       4314 
     | 
    
         
            -
            #         [
         
     | 
| 
       4315 
     | 
    
         
            -
            #           "Groonga",
         
     | 
| 
       4316 
     | 
    
         
            -
            #           15
         
     | 
| 
      
 5314 
     | 
    
         
            +
            #           true,
         
     | 
| 
      
 5315 
     | 
    
         
            +
            #           2
         
     | 
| 
       4317 
5316 
     | 
    
         
             
            #         ],
         
     | 
| 
       4318 
5317 
     | 
    
         
             
            #         [
         
     | 
| 
       4319 
5318 
     | 
    
         
             
            #           "Senna",
         
     | 
| 
       4320 
     | 
    
         
            -
            #            
     | 
| 
      
 5319 
     | 
    
         
            +
            #           true,
         
     | 
| 
      
 5320 
     | 
    
         
            +
            #           2
         
     | 
| 
       4321 
5321 
     | 
    
         
             
            #         ]
         
     | 
| 
       4322 
5322 
     | 
    
         
             
            #       ]
         
     | 
| 
       4323 
5323 
     | 
    
         
             
            #     }
         
     | 
| 
         @@ -4325,18 +5325,13 @@ load --table Items 
     | 
|
| 
       4325 
5325 
     | 
    
         
             
            # ]
         
     | 
| 
       4326 
5326 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4327 
5327 
     | 
    
         
             
            </div>
         
     | 
| 
       4328 
     | 
    
         
            -
            <div class=" 
     | 
| 
       4329 
     | 
    
         
            -
            <p class=" 
     | 
| 
       4330 
     | 
    
         
            -
            <p>どうして <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文なの?</p>
         
     | 
| 
       4331 
     | 
    
         
            -
            <p>これは実装よりの情報です。</p>
         
     | 
| 
       4332 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">_key</span></code> はベクターの値です。このベクターの値はすべてのグループキーから成ります。 <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> で <code class="docutils literal"><span class="pre">_key</span></code> を参照するとこのベクターの値のバイト列を確認することができます。</p>
         
     | 
| 
       4333 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に複数のグループキーを指定したとき、各グループの値を参照するために <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードが1つだけ保存されています。そのため、各グループキーを参照するために <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使えます。</p>
         
     | 
| 
       4334 
     | 
    
         
            -
            <p class="last">一方、 <a class="reference internal" href="#select-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> に1つのグループキーしか指定していない場合は、 <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードを保存しません。そのため、 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でグループキーを参照できません。</p>
         
     | 
| 
      
 5328 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5329 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 4.0.8 で追加.</span></p>
         
     | 
| 
       4335 
5330 
     | 
    
         
             
            </div>
         
     | 
| 
       4336 
5331 
     | 
    
         
             
            </div>
         
     | 
| 
       4337 
5332 
     | 
    
         
             
            <div class="section" id="output-format-for-drilldowns-label-style">
         
     | 
| 
       4338 
     | 
    
         
            -
            <span id="select- 
     | 
| 
       4339 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> と <a class="reference internal" href="#select- 
     | 
| 
      
 5333 
     | 
    
         
            +
            <span id="select-drilldowns-label-output-format"></span><h4>7.3.54.4.8.4. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルの出力フォーマット<a class="headerlink" href="#output-format-for-drilldowns-label-style" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5334 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> と <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> には出力フォーマットに違いがあります。 <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> は複数のドリルダウン結果を出力するために配列を使います。 <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> は「ラベル」と「ドリルダウン結果」のペアの集まりを使います。</p>
         
     | 
| 
       4340 
5335 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> の出力フォーマットは以下の通りです:</p>
         
     | 
| 
       4341 
5336 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>[
         
     | 
| 
       4342 
5337 
     | 
    
         
             
              HEADER,
         
     | 
| 
         @@ -4349,7 +5344,7 @@ load --table Items 
     | 
|
| 
       4349 
5344 
     | 
    
         
             
            ]
         
     | 
| 
       4350 
5345 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4351 
5346 
     | 
    
         
             
            </div>
         
     | 
| 
       4352 
     | 
    
         
            -
            <p><a class="reference internal" href="#select- 
     | 
| 
      
 5347 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> の出力フォーマットは以下の通りです:</p>
         
     | 
| 
       4353 
5348 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>[
         
     | 
| 
       4354 
5349 
     | 
    
         
             
              HEADER,
         
     | 
| 
       4355 
5350 
     | 
    
         
             
              [
         
     | 
| 
         @@ -4365,10 +5360,114 @@ load --table Items 
     | 
|
| 
       4365 
5360 
     | 
    
         
             
            </div>
         
     | 
| 
       4366 
5361 
     | 
    
         
             
            </div>
         
     | 
| 
       4367 
5362 
     | 
    
         
             
            </div>
         
     | 
| 
      
 5363 
     | 
    
         
            +
            <div class="section" id="slice-related-parameters">
         
     | 
| 
      
 5364 
     | 
    
         
            +
            <span id="select-slice-related-parameters"></span><h3>7.3.54.4.9. スライス関連の引数<a class="headerlink" href="#slice-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 5365 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5366 
     | 
    
         
            +
            <p><span class="versionmodified">バージョン 6.0.3 で追加.</span></p>
         
     | 
| 
      
 5367 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5368 
     | 
    
         
            +
            <p>このセクションではスライス関連のパラメーターについて説明します。</p>
         
     | 
| 
      
 5369 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5370 
     | 
    
         
            +
            <p>スライスのパラメーターは以下の通りです。</p>
         
     | 
| 
      
 5371 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 5372 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 5373 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5374 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5375 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 5376 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 5377 
     | 
    
         
            +
            <tr class="row-odd"><th class="head"><p class="first last">名前</p>
         
     | 
| 
      
 5378 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 5379 
     | 
    
         
            +
            <th class="head"><p class="first last">必須</p>
         
     | 
| 
      
 5380 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 5381 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5382 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 5383 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 5384 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].match_columns</span></code></td>
         
     | 
| 
      
 5385 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5386 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5387 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5388 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query</span></code></td>
         
     | 
| 
      
 5389 
     | 
    
         
            +
            <td><p class="first last"><code class="docutils literal"><span class="pre">--slices[${LABEL}].filter</span></code> を指定していないときは必須です。</p>
         
     | 
| 
      
 5390 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5391 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5392 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].filter</span></code></td>
         
     | 
| 
      
 5393 
     | 
    
         
            +
            <td><p class="first last"><code class="docutils literal"><span class="pre">--slices[${LABEL}].query</span></code> を指定していないときは必須です。</p>
         
     | 
| 
      
 5394 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5395 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5396 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query_expander</span></code></td>
         
     | 
| 
      
 5397 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5398 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5399 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5400 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query_flags</span></code></td>
         
     | 
| 
      
 5401 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5402 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5403 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5404 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].sort_keys</span></code></td>
         
     | 
| 
      
 5405 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5406 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5407 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5408 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].output_columns</span></code></td>
         
     | 
| 
      
 5409 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5410 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5411 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5412 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].offset</span></code></td>
         
     | 
| 
      
 5413 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5414 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5415 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5416 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].limit</span></code></td>
         
     | 
| 
      
 5417 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5418 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5419 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5420 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].table</span></code></td>
         
     | 
| 
      
 5421 
     | 
    
         
            +
            <td><p class="first last">省略可能</p>
         
     | 
| 
      
 5422 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 5423 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5424 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 5425 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 5426 
     | 
    
         
            +
            <div class="section" id="slices-label-match-columns">
         
     | 
| 
      
 5427 
     | 
    
         
            +
            <span id="select-slices-label-match-columns"></span><h4>7.3.54.4.9.1. <code class="docutils literal"><span class="pre">slices[${LABEL}].match_columns</span></code><a class="headerlink" href="#slices-label-match-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5428 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5429 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5430 
     | 
    
         
            +
            <div class="section" id="slices-label-query">
         
     | 
| 
      
 5431 
     | 
    
         
            +
            <span id="select-slices-label-query"></span><h4>7.3.54.4.9.2. <code class="docutils literal"><span class="pre">slices[${LABEL}].query</span></code><a class="headerlink" href="#slices-label-query" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5432 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5433 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5434 
     | 
    
         
            +
            <div class="section" id="slices-label-filter">
         
     | 
| 
      
 5435 
     | 
    
         
            +
            <span id="select-slices-label-filter"></span><h4>7.3.54.4.9.3. <code class="docutils literal"><span class="pre">slices[${LABEL}].filter</span></code><a class="headerlink" href="#slices-label-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5436 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5437 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5438 
     | 
    
         
            +
            <div class="section" id="slices-label-query-expander">
         
     | 
| 
      
 5439 
     | 
    
         
            +
            <span id="select-slices-label-query-expander"></span><h4>7.3.54.4.9.4. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_expander</span></code><a class="headerlink" href="#slices-label-query-expander" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5440 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5441 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5442 
     | 
    
         
            +
            <div class="section" id="slices-label-query-flags">
         
     | 
| 
      
 5443 
     | 
    
         
            +
            <span id="select-slices-label-query-flags"></span><h4>7.3.54.4.9.5. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_flags</span></code><a class="headerlink" href="#slices-label-query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5444 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5445 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5446 
     | 
    
         
            +
            <div class="section" id="slices-label-sort-keys">
         
     | 
| 
      
 5447 
     | 
    
         
            +
            <span id="select-slices-label-sort-keys"></span><h4>7.3.54.4.9.6. <code class="docutils literal"><span class="pre">slices[${LABEL}].sort_keys</span></code><a class="headerlink" href="#slices-label-sort-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5448 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5449 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5450 
     | 
    
         
            +
            <div class="section" id="slices-label-output-columns">
         
     | 
| 
      
 5451 
     | 
    
         
            +
            <span id="select-slices-label-output-columns"></span><h4>7.3.54.4.9.7. <code class="docutils literal"><span class="pre">slices[${LABEL}].output_columns</span></code><a class="headerlink" href="#slices-label-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5452 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5453 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5454 
     | 
    
         
            +
            <div class="section" id="slices-label-offset">
         
     | 
| 
      
 5455 
     | 
    
         
            +
            <span id="select-slices-label-offset"></span><h4>7.3.54.4.9.8. <code class="docutils literal"><span class="pre">slices[${LABEL}].offset</span></code><a class="headerlink" href="#slices-label-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5456 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5457 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5458 
     | 
    
         
            +
            <div class="section" id="slices-label-limit">
         
     | 
| 
      
 5459 
     | 
    
         
            +
            <span id="select-slices-label-limit"></span><h4>7.3.54.4.9.9. <code class="docutils literal"><span class="pre">slices[${LABEL}].limit</span></code><a class="headerlink" href="#slices-label-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5460 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5461 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5462 
     | 
    
         
            +
            <div class="section" id="slices-label-table">
         
     | 
| 
      
 5463 
     | 
    
         
            +
            <span id="select-slices-label-table"></span><h4>7.3.54.4.9.10. <code class="docutils literal"><span class="pre">slices[${LABEL}].table</span></code><a class="headerlink" href="#slices-label-table" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 5464 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5465 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5466 
     | 
    
         
            +
            </div>
         
     | 
| 
       4368 
5467 
     | 
    
         
             
            <div class="section" id="cache-related-parameter">
         
     | 
| 
       4369 
     | 
    
         
            -
            <h3>7.3.54.4. 
     | 
| 
      
 5468 
     | 
    
         
            +
            <h3>7.3.54.4.10. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       4370 
5469 
     | 
    
         
             
            <div class="section" id="cache">
         
     | 
| 
       4371 
     | 
    
         
            -
            <span id="select-cache"></span><h4>7.3.54.4. 
     | 
| 
      
 5470 
     | 
    
         
            +
            <span id="select-cache"></span><h4>7.3.54.4.10.1. <code class="docutils literal"><span class="pre">cache</span></code><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       4372 
5471 
     | 
    
         
             
            <p>このクエリーの結果をキャッシュするかどうかを指定します。</p>
         
     | 
| 
       4373 
5472 
     | 
    
         
             
            <p>このクエリーの結果がキャッシュしてあると、次に同じクエリーを実行するときはキャッシュを使って高速にレスポンスを返すことができます。</p>
         
     | 
| 
       4374 
5473 
     | 
    
         
             
            <p>これは既存のキャッシュされた結果を使うかどうかを指定するものではありません。</p>
         
     | 
| 
         @@ -4475,10 +5574,10 @@ load --table Items 
     | 
|
| 
       4475 
5574 
     | 
    
         
             
            </div>
         
     | 
| 
       4476 
5575 
     | 
    
         
             
            </div>
         
     | 
| 
       4477 
5576 
     | 
    
         
             
            <div class="section" id="score-related-parameters">
         
     | 
| 
       4478 
     | 
    
         
            -
            <h3>7.3.54.4. 
     | 
| 
      
 5577 
     | 
    
         
            +
            <h3>7.3.54.4.11. スコアー関連の引数<a class="headerlink" href="#score-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       4479 
5578 
     | 
    
         
             
            <p>スコアー関連のパラメーターは <code class="docutils literal"><span class="pre">adjuster</span></code> だけです。</p>
         
     | 
| 
       4480 
5579 
     | 
    
         
             
            <div class="section" id="adjuster">
         
     | 
| 
       4481 
     | 
    
         
            -
            <span id="select-adjuster"></span><h4>7.3.54.4. 
     | 
| 
      
 5580 
     | 
    
         
            +
            <span id="select-adjuster"></span><h4>7.3.54.4.11.1. <code class="docutils literal"><span class="pre">adjuster</span></code><a class="headerlink" href="#adjuster" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       4482 
5581 
     | 
    
         
             
            <p>1つ以上のスコアー調整式(score adjust expression)を指定します。 <code class="docutils literal"><span class="pre">adjuster</span></code> は <code class="docutils literal"><span class="pre">query</span></code> または <code class="docutils literal"><span class="pre">filter</span></code> と一緒に使います。検索しないリクエストでは <code class="docutils literal"><span class="pre">adjuster</span></code> は動きません。</p>
         
     | 
| 
       4483 
5582 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">adjuster</span></code> を使うと特定のレコードのスコアーを増やすことができます。重要なレコードに高いスコアーをつけるために <code class="docutils literal"><span class="pre">adjuster</span></code> を使えます。</p>
         
     | 
| 
       4484 
5583 
     | 
    
         
             
            <p>例えば、 <code class="docutils literal"><span class="pre">groonga</span></code> タグがついたレコードのスコアーを増やすために <code class="docutils literal"><span class="pre">adjuster</span></code> を使えます。</p>
         
     | 
| 
         @@ -4875,7 +5974,7 @@ load --table Items 
     | 
|
| 
       4875 
5974 
     | 
    
         
             
            ]
         
     | 
| 
       4876 
5975 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4877 
5976 
     | 
    
         
             
            </div>
         
     | 
| 
       4878 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre"> 
     | 
| 
      
 5977 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldownss[${LABEL}]</span></code> スタイルのドリルダウンの出力形式については <a class="reference internal" href="#select-drilldowns-label-output-format"><span class="std std-ref">drilldowns[${LABEL}] スタイルの出力フォーマット</span></a> も見てください。</p>
         
     | 
| 
       4879 
5978 
     | 
    
         
             
            </div>
         
     | 
| 
       4880 
5979 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
       4881 
5980 
     | 
    
         
             
            <h2>7.3.54.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
         @@ -4909,6 +6008,8 @@ load --table Items 
     | 
|
| 
       4909 
6008 
     | 
    
         
             
            <li><a class="reference internal" href="#paging">7.3.54.3.3. ページング</a></li>
         
     | 
| 
       4910 
6009 
     | 
    
         
             
            <li><a class="reference internal" href="#the-total-number-of-records">7.3.54.3.4. 全レコード数</a></li>
         
     | 
| 
       4911 
6010 
     | 
    
         
             
            <li><a class="reference internal" href="#drilldown">7.3.54.3.5. ドリルダウン</a></li>
         
     | 
| 
      
 6011 
     | 
    
         
            +
            <li><a class="reference internal" href="#dynamic-column">7.3.54.3.6. 動的カラム</a></li>
         
     | 
| 
      
 6012 
     | 
    
         
            +
            <li><a class="reference internal" href="#window-function">7.3.54.3.7. ウィンドウ関数</a></li>
         
     | 
| 
       4912 
6013 
     | 
    
         
             
            </ul>
         
     | 
| 
       4913 
6014 
     | 
    
         
             
            </li>
         
     | 
| 
       4914 
6015 
     | 
    
         
             
            <li><a class="reference internal" href="#parameters">7.3.54.4. 引数</a><ul>
         
     | 
| 
         @@ -4938,29 +6039,56 @@ load --table Items 
     | 
|
| 
       4938 
6039 
     | 
    
         
             
            <li><a class="reference internal" href="#scorer">7.3.54.4.4.6. <code class="docutils literal"><span class="pre">scorer</span></code></a></li>
         
     | 
| 
       4939 
6040 
     | 
    
         
             
            </ul>
         
     | 
| 
       4940 
6041 
     | 
    
         
             
            </li>
         
     | 
| 
       4941 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4942 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4943 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4944 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4945 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4946 
     | 
    
         
            -
             
     | 
| 
       4947 
     | 
    
         
            -
             
     | 
| 
       4948 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4949 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
      
 6042 
     | 
    
         
            +
            <li><a class="reference internal" href="#dynamic-column-related-parameters">7.3.54.4.5. 動的カラム関連の引数</a><ul>
         
     | 
| 
      
 6043 
     | 
    
         
            +
            <li><a class="reference internal" href="#columns-name-stage">7.3.54.4.5.1. <code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code></a></li>
         
     | 
| 
      
 6044 
     | 
    
         
            +
            <li><a class="reference internal" href="#columns-name-flags">7.3.54.4.5.2. <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code></a></li>
         
     | 
| 
      
 6045 
     | 
    
         
            +
            <li><a class="reference internal" href="#columns-name-type">7.3.54.4.5.3. <code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code></a></li>
         
     | 
| 
      
 6046 
     | 
    
         
            +
            <li><a class="reference internal" href="#columns-name-value">7.3.54.4.5.4. <code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></a></li>
         
     | 
| 
      
 6047 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 6048 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 6049 
     | 
    
         
            +
            <li><a class="reference internal" href="#window-function-related-parameters">7.3.54.4.6. ウィンドウ関数関連の引数</a><ul>
         
     | 
| 
      
 6050 
     | 
    
         
            +
            <li><a class="reference internal" href="#columns-name-window-sort-keys">7.3.54.4.6.1. <code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code></a></li>
         
     | 
| 
      
 6051 
     | 
    
         
            +
            <li><a class="reference internal" href="#columns-name-window-group-keys">7.3.54.4.6.2. <code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code></a></li>
         
     | 
| 
      
 6052 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 6053 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 6054 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-related-parameters">7.3.54.4.7. ドリルダウン関連の引数</a><ul>
         
     | 
| 
      
 6055 
     | 
    
         
            +
            <li><a class="reference internal" href="#select-drilldown">7.3.54.4.7.1. <code class="docutils literal"><span class="pre">drilldown</span></code></a></li>
         
     | 
| 
      
 6056 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-sortby">7.3.54.4.7.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code></a></li>
         
     | 
| 
      
 6057 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-sort-keys">7.3.54.4.7.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code></a></li>
         
     | 
| 
      
 6058 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-output-columns">7.3.54.4.7.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code></a></li>
         
     | 
| 
      
 6059 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-offset">7.3.54.4.7.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code></a></li>
         
     | 
| 
      
 6060 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-limit">7.3.54.4.7.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code></a></li>
         
     | 
| 
      
 6061 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-calc-types">7.3.54.4.7.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code></a></li>
         
     | 
| 
      
 6062 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-calc-target">7.3.54.4.7.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code></a></li>
         
     | 
| 
      
 6063 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-filter">7.3.54.4.7.9. <code class="docutils literal"><span class="pre">drilldown_filter</span></code></a></li>
         
     | 
| 
      
 6064 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 6065 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 6066 
     | 
    
         
            +
            <li><a class="reference internal" href="#advanced-drilldown-related-parameters">7.3.54.4.8. 高度なドリルダウン関連のパラメーター</a><ul>
         
     | 
| 
      
 6067 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldowns-label-keys">7.3.54.4.8.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></a></li>
         
     | 
| 
      
 6068 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldowns-label-output-columns">7.3.54.4.8.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></a></li>
         
     | 
| 
      
 6069 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldowns-label-columns-name-stage">7.3.54.4.8.3. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code></a></li>
         
     | 
| 
      
 6070 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-format-for-drilldowns-label-style">7.3.54.4.8.4. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> スタイルの出力フォーマット</a></li>
         
     | 
| 
       4950 
6071 
     | 
    
         
             
            </ul>
         
     | 
| 
       4951 
6072 
     | 
    
         
             
            </li>
         
     | 
| 
       4952 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4953 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4954 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4955 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
      
 6073 
     | 
    
         
            +
            <li><a class="reference internal" href="#slice-related-parameters">7.3.54.4.9. スライス関連の引数</a><ul>
         
     | 
| 
      
 6074 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-match-columns">7.3.54.4.9.1. <code class="docutils literal"><span class="pre">slices[${LABEL}].match_columns</span></code></a></li>
         
     | 
| 
      
 6075 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-query">7.3.54.4.9.2. <code class="docutils literal"><span class="pre">slices[${LABEL}].query</span></code></a></li>
         
     | 
| 
      
 6076 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-filter">7.3.54.4.9.3. <code class="docutils literal"><span class="pre">slices[${LABEL}].filter</span></code></a></li>
         
     | 
| 
      
 6077 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-query-expander">7.3.54.4.9.4. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_expander</span></code></a></li>
         
     | 
| 
      
 6078 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-query-flags">7.3.54.4.9.5. <code class="docutils literal"><span class="pre">slices[${LABEL}].query_flags</span></code></a></li>
         
     | 
| 
      
 6079 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-sort-keys">7.3.54.4.9.6. <code class="docutils literal"><span class="pre">slices[${LABEL}].sort_keys</span></code></a></li>
         
     | 
| 
      
 6080 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-output-columns">7.3.54.4.9.7. <code class="docutils literal"><span class="pre">slices[${LABEL}].output_columns</span></code></a></li>
         
     | 
| 
      
 6081 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-offset">7.3.54.4.9.8. <code class="docutils literal"><span class="pre">slices[${LABEL}].offset</span></code></a></li>
         
     | 
| 
      
 6082 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-limit">7.3.54.4.9.9. <code class="docutils literal"><span class="pre">slices[${LABEL}].limit</span></code></a></li>
         
     | 
| 
      
 6083 
     | 
    
         
            +
            <li><a class="reference internal" href="#slices-label-table">7.3.54.4.9.10. <code class="docutils literal"><span class="pre">slices[${LABEL}].table</span></code></a></li>
         
     | 
| 
       4956 
6084 
     | 
    
         
             
            </ul>
         
     | 
| 
       4957 
6085 
     | 
    
         
             
            </li>
         
     | 
| 
       4958 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache-related-parameter">7.3.54.4. 
     | 
| 
       4959 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache">7.3.54.4. 
     | 
| 
      
 6086 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache-related-parameter">7.3.54.4.10. キャッシュ関連の引数</a><ul>
         
     | 
| 
      
 6087 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache">7.3.54.4.10.1. <code class="docutils literal"><span class="pre">cache</span></code></a></li>
         
     | 
| 
       4960 
6088 
     | 
    
         
             
            </ul>
         
     | 
| 
       4961 
6089 
     | 
    
         
             
            </li>
         
     | 
| 
       4962 
     | 
    
         
            -
            <li><a class="reference internal" href="#score-related-parameters">7.3.54.4. 
     | 
| 
       4963 
     | 
    
         
            -
            <li><a class="reference internal" href="#adjuster">7.3.54.4. 
     | 
| 
      
 6090 
     | 
    
         
            +
            <li><a class="reference internal" href="#score-related-parameters">7.3.54.4.11. スコアー関連の引数</a><ul>
         
     | 
| 
      
 6091 
     | 
    
         
            +
            <li><a class="reference internal" href="#adjuster">7.3.54.4.11.1. <code class="docutils literal"><span class="pre">adjuster</span></code></a></li>
         
     | 
| 
       4964 
6092 
     | 
    
         
             
            </ul>
         
     | 
| 
       4965 
6093 
     | 
    
         
             
            </li>
         
     | 
| 
       4966 
6094 
     | 
    
         
             
            </ul>
         
     | 
| 
         @@ -5010,7 +6138,7 @@ load --table Items 
     | 
|
| 
       5010 
6138 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       5011 
6139 
     | 
    
         
             
                      <a href="schema.html" title="7.3.53. schema"
         
     | 
| 
       5012 
6140 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       5013 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 6141 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59ドキュメント</a> »</li>
         
     | 
| 
       5014 
6142 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       5015 
6143 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       5016 
6144 
     | 
    
         
             
                  </ul>
         
     |