rroonga 6.1.3-x64-mingw32 → 7.0.2-x64-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 documentation</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
         
     | 
| 
         @@ -27,7 +27,7 @@ 
     | 
|
| 
       27 
27 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       28 
28 
     | 
    
         
             
                <link rel="index" title="Index" href="../../genindex.html" />
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="search" title="Search" href="../../search.html" />
         
     | 
| 
       30 
     | 
    
         
            -
                <link rel="top" title="Groonga  
     | 
| 
      
 30 
     | 
    
         
            +
                <link rel="top" title="Groonga v7.0.1-160-gda23e59 documentation" href="../../index.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="up" title="7.3. Command" href="../command.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="next" title="7.3.53. schema" href="schema.html" />
         
     | 
| 
       33 
33 
     | 
    
         
             
                <link rel="prev" title="7.3.51. ruby_eval" href="ruby_eval.html" /> 
         
     | 
| 
         @@ -62,7 +62,7 @@ 
     | 
|
| 
       62 
62 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       63 
63 
     | 
    
         
             
                      <a href="ruby_eval.html" title="7.3.51. ruby_eval"
         
     | 
| 
       64 
64 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       65 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 65 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> »</li>
         
     | 
| 
       66 
66 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       67 
67 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. Command</a> »</li> 
         
     | 
| 
       68 
68 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -192,7 +192,7 @@ exception information (Including metadata isn't implemented yet):</p> 
     | 
|
| 
       192 
192 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       193 
193 
     | 
    
         
             
                      <a href="ruby_eval.html" title="7.3.51. ruby_eval"
         
     | 
| 
       194 
194 
     | 
    
         
             
                         >previous</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 documentation</a> »</li>
         
     | 
| 
       196 
196 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       197 
197 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. Command</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 documentation</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
         
     | 
| 
         @@ -27,7 +27,7 @@ 
     | 
|
| 
       27 
27 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       28 
28 
     | 
    
         
             
                <link rel="index" title="Index" href="../../genindex.html" />
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="search" title="Search" href="../../search.html" />
         
     | 
| 
       30 
     | 
    
         
            -
                <link rel="top" title="Groonga  
     | 
| 
      
 30 
     | 
    
         
            +
                <link rel="top" title="Groonga v7.0.1-160-gda23e59 documentation" href="../../index.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="up" title="7.3. Command" href="../command.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="next" title="7.3.54. select" href="select.html" />
         
     | 
| 
       33 
33 
     | 
    
         
             
                <link rel="prev" title="7.3.52. ruby_load" href="ruby_load.html" /> 
         
     | 
| 
         @@ -62,7 +62,7 @@ 
     | 
|
| 
       62 
62 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       63 
63 
     | 
    
         
             
                      <a href="ruby_load.html" title="7.3.52. ruby_load"
         
     | 
| 
       64 
64 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       65 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 65 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> »</li>
         
     | 
| 
       66 
66 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       67 
67 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. Command</a> »</li> 
         
     | 
| 
       68 
68 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -1175,7 +1175,7 @@ empty array.</p> 
     | 
|
| 
       1175 
1175 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       1176 
1176 
     | 
    
         
             
                      <a href="ruby_load.html" title="7.3.52. ruby_load"
         
     | 
| 
       1177 
1177 
     | 
    
         
             
                         >previous</a> |</li>
         
     | 
| 
       1178 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 1178 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> »</li>
         
     | 
| 
       1179 
1179 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       1180 
1180 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. Command</a> »</li> 
         
     | 
| 
       1181 
1181 
     | 
    
         
             
                  </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 documentation</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
         
     | 
| 
         @@ -27,7 +27,7 @@ 
     | 
|
| 
       27 
27 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       28 
28 
     | 
    
         
             
                <link rel="index" title="Index" href="../../genindex.html" />
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="search" title="Search" href="../../search.html" />
         
     | 
| 
       30 
     | 
    
         
            -
                <link rel="top" title="Groonga  
     | 
| 
      
 30 
     | 
    
         
            +
                <link rel="top" title="Groonga v7.0.1-160-gda23e59 documentation" href="../../index.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="up" title="7.3. Command" href="../command.html" />
         
     | 
| 
       32 
32 
     | 
    
         
             
                <link rel="next" title="7.3.55. shutdown" href="shutdown.html" />
         
     | 
| 
       33 
33 
     | 
    
         
             
                <link rel="prev" title="7.3.53. schema" href="schema.html" /> 
         
     | 
| 
         @@ -62,7 +62,7 @@ 
     | 
|
| 
       62 
62 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       63 
63 
     | 
    
         
             
                      <a href="schema.html" title="7.3.53. schema"
         
     | 
| 
       64 
64 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       65 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 65 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> »</li>
         
     | 
| 
       66 
66 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       67 
67 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. Command</a> »</li> 
         
     | 
| 
       68 
68 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -109,24 +109,67 @@ optional:</p> 
     | 
|
| 
       109 
109 
     | 
    
         
             
                   [adjuster=null]
         
     | 
| 
       110 
110 
     | 
    
         
             
                   [drilldown_calc_types=NONE]
         
     | 
| 
       111 
111 
     | 
    
         
             
                   [drilldown_calc_target=null]
         
     | 
| 
      
 112 
     | 
    
         
            +
                   [drilldown_filter=null]
         
     | 
| 
       112 
113 
     | 
    
         
             
                   [sort_keys=null]
         
     | 
| 
       113 
114 
     | 
    
         
             
                   [drilldown_sort_keys=null]
         
     | 
| 
       114 
115 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       115 
116 
     | 
    
         
             
            </div>
         
     | 
| 
       116 
     | 
    
         
            -
            <p 
     | 
| 
      
 117 
     | 
    
         
            +
            <p>This command has the following named parameters for dynamic columns:</p>
         
     | 
| 
      
 118 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 119 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 120 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
      
 121 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
         
     | 
| 
      
 122 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].type=null</span></code></li>
         
     | 
| 
      
 123 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].value=null</span></code></li>
         
     | 
| 
      
 124 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys=null</span></code></li>
         
     | 
| 
      
 125 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys=null</span></code></li>
         
     | 
| 
      
 126 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 127 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 128 
     | 
    
         
            +
            <p>You can use one or more alphabets, digits, <code class="docutils literal"><span class="pre">_</span></code> for <code class="docutils literal"><span class="pre">${NAME}</span></code>. For
         
     | 
| 
      
 129 
     | 
    
         
            +
            example, <code class="docutils literal"><span class="pre">column1</span></code> is a valid <code class="docutils literal"><span class="pre">${NAME}</span></code>. This is the same rule as
         
     | 
| 
      
 130 
     | 
    
         
            +
            normal column. See also <a class="reference internal" href="column_create.html#column-create-name"><span class="std std-ref">name</span></a>.</p>
         
     | 
| 
      
 131 
     | 
    
         
            +
            <p>Parameters that have the same <code class="docutils literal"><span class="pre">${NAME}</span></code> are grouped.</p>
         
     | 
| 
      
 132 
     | 
    
         
            +
            <p>For example, the following parameters specify one dynamic column:</p>
         
     | 
| 
      
 133 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 134 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 135 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name].stage</span> <span class="pre">initial</span></code></li>
         
     | 
| 
      
 136 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name].type</span> <span class="pre">UInt32</span></code></li>
         
     | 
| 
      
 137 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name].value</span> <span class="pre">29</span></code></li>
         
     | 
| 
      
 138 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 139 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 140 
     | 
    
         
            +
            <p>The following parameters specify two dynamic columns:</p>
         
     | 
| 
      
 141 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 142 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 143 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name1].stage</span> <span class="pre">initial</span></code></li>
         
     | 
| 
      
 144 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name1].type</span> <span class="pre">UInt32</span></code></li>
         
     | 
| 
      
 145 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name1].value</span> <span class="pre">29</span></code></li>
         
     | 
| 
      
 146 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name2].stage</span> <span class="pre">filtered</span></code></li>
         
     | 
| 
      
 147 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--columns[name2].type</span> <span class="pre">Float</span></code></li>
         
     | 
| 
      
 148 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 149 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 150 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 151 
     | 
    
         
            +
            <p>This command has the following named parameters for advanced drilldown:</p>
         
     | 
| 
       117 
152 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       118 
153 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       119 
154 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys=null</span></code></li>
         
     | 
| 
       120 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]. 
     | 
| 
      
 155 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys=null</span></code></li>
         
     | 
| 
       121 
156 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns="_key,</span> <span class="pre">_nsubrecs"</span></code></li>
         
     | 
| 
       122 
157 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset=0</span></code></li>
         
     | 
| 
       123 
158 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit=10</span></code></li>
         
     | 
| 
       124 
159 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types=NONE</span></code></li>
         
     | 
| 
       125 
160 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target=null</span></code></li>
         
     | 
| 
      
 161 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter=null</span></code></li>
         
     | 
| 
      
 162 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
      
 163 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
         
     | 
| 
      
 164 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code></li>
         
     | 
| 
      
 165 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code></li>
         
     | 
| 
      
 166 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code></li>
         
     | 
| 
      
 167 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code></li>
         
     | 
| 
       126 
168 
     | 
    
         
             
            </ul>
         
     | 
| 
       127 
169 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       128 
170 
     | 
    
         
             
            <div class="deprecated">
         
     | 
| 
       129 
     | 
    
         
            -
            <p><span class="versionmodified">Deprecated since version 6.0.3: </span><code class="docutils literal"><span class="pre">drilldown[...]</span></code> syntax is deprecated, Use <code class="docutils literal"><span class="pre">drilldowns[...]</span></code> 
     | 
| 
      
 171 
     | 
    
         
            +
            <p><span class="versionmodified">Deprecated since version 6.0.3: </span><code class="docutils literal"><span class="pre">drilldown[...]</span></code> syntax is deprecated, Use <code class="docutils literal"><span class="pre">drilldowns[...]</span></code>
         
     | 
| 
      
 172 
     | 
    
         
            +
            instead.</p>
         
     | 
| 
       130 
173 
     | 
    
         
             
            </div>
         
     | 
| 
       131 
174 
     | 
    
         
             
            <p>You can use one or more alphabets, digits, <code class="docutils literal"><span class="pre">_</span></code> and <code class="docutils literal"><span class="pre">.</span></code> for
         
     | 
| 
       132 
175 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">${LABEL}</span></code>. For example, <code class="docutils literal"><span class="pre">parent.sub1</span></code> is a valid <code class="docutils literal"><span class="pre">${LABEL}</span></code>.</p>
         
     | 
| 
         @@ -135,16 +178,16 @@ optional:</p> 
     | 
|
| 
       135 
178 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       136 
179 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       137 
180 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">--drilldowns[label].keys</span> <span class="pre">column</span></code></li>
         
     | 
| 
       138 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">--drilldowns[label]. 
     | 
| 
      
 181 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldowns[label].sort_keys</span> <span class="pre">-_nsubrecs</span></code></li>
         
     | 
| 
       139 
182 
     | 
    
         
             
            </ul>
         
     | 
| 
       140 
183 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       141 
184 
     | 
    
         
             
            <p>The following parameters specify two drilldowns:</p>
         
     | 
| 
       142 
185 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       143 
186 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       144 
187 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">--drilldowns[label1].keys</span> <span class="pre">column1</span></code></li>
         
     | 
| 
       145 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">--drilldowns[label1]. 
     | 
| 
      
 188 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldowns[label1].sort_keys</span> <span class="pre">-_nsubrecs</span></code></li>
         
     | 
| 
       146 
189 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">--drilldowns[label2].keys</span> <span class="pre">column2</span></code></li>
         
     | 
| 
       147 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">--drilldowns[label2]. 
     | 
| 
      
 190 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldowns[label2].sort_keys</span> <span class="pre">_key</span></code></li>
         
     | 
| 
       148 
191 
     | 
    
         
             
            </ul>
         
     | 
| 
       149 
192 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       150 
193 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -537,8 +580,8 @@ records.</p> 
     | 
|
| 
       537 
580 
     | 
    
         
             
            <div class="section" id="drilldown">
         
     | 
| 
       538 
581 
     | 
    
         
             
            <h3>7.3.54.3.5. Drilldown<a class="headerlink" href="#drilldown" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       539 
582 
     | 
    
         
             
            <p>You can get additional grouped results against the search result in
         
     | 
| 
       540 
     | 
    
         
            -
            one <code class="docutils literal"><span class="pre">select</span></code>. You need to use two or more <code class="docutils literal"><span class="pre">SELECT 
     | 
| 
       541 
     | 
    
         
            -
            <span class="pre" 
     | 
| 
      
 583 
     | 
    
         
            +
            one <code class="docutils literal"><span class="pre">select</span></code>. You need to use two or more <code class="docutils literal"><span class="pre">SELECT</span></code> s in SQL but
         
     | 
| 
      
 584 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">select</span></code> in Groonga can do it in one <code class="docutils literal"><span class="pre">select</span></code>.</p>
         
     | 
| 
       542 
585 
     | 
    
         
             
            <p>This feature is called as <a class="reference external" href="http://en.wikipedia.org/wiki/Drill_down">drilldown</a> in Groonga. It's also
         
     | 
| 
       543 
586 
     | 
    
         
             
            called as <a class="reference external" href="http://en.wikipedia.org/wiki/Faceted_search">faceted search</a> in other search
         
     | 
| 
       544 
587 
     | 
    
         
             
            engine.</p>
         
     | 
| 
         @@ -694,6 +737,249 @@ the maximum and/or minimum value from grouped records, summing values 
     | 
|
| 
       694 
737 
     | 
    
         
             
            in grouped records and so on. See
         
     | 
| 
       695 
738 
     | 
    
         
             
            <a class="reference internal" href="#select-drilldown-related-parameters"><span class="std std-ref">Drilldown related parameters</span></a> for details.</p>
         
     | 
| 
       696 
739 
     | 
    
         
             
            </div>
         
     | 
| 
      
 740 
     | 
    
         
            +
            <div class="section" id="dynamic-column">
         
     | 
| 
      
 741 
     | 
    
         
            +
            <h3>7.3.54.3.6. Dynamic column<a class="headerlink" href="#dynamic-column" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 742 
     | 
    
         
            +
            <p>You can create zero or more columns dynamically while a <code class="docutils literal"><span class="pre">select</span></code>
         
     | 
| 
      
 743 
     | 
    
         
            +
            execution. You can use them for drilldown by computed value, window
         
     | 
| 
      
 744 
     | 
    
         
            +
            function and so on.</p>
         
     | 
| 
      
 745 
     | 
    
         
            +
            <p>Here is an example that uses dynamic column for drilldown by computed
         
     | 
| 
      
 746 
     | 
    
         
            +
            value. This example creates a new column named
         
     | 
| 
      
 747 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">n_likes_class</span></code>. <code class="docutils literal"><span class="pre">n_likes_class</span></code> column has classified value of
         
     | 
| 
      
 748 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> value. This example classifies <code class="docutils literal"><span class="pre">Entry.n_likes</span></code>
         
     | 
| 
      
 749 
     | 
    
         
            +
            column value <code class="docutils literal"><span class="pre">10</span></code> step and the lowest number in the class is the
         
     | 
| 
      
 750 
     | 
    
         
            +
            classified value. If a <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> value is between <code class="docutils literal"><span class="pre">0</span></code> and
         
     | 
| 
      
 751 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">9</span></code> such as <code class="docutils literal"><span class="pre">3</span></code> and <code class="docutils literal"><span class="pre">5</span></code>, <code class="docutils literal"><span class="pre">n_likes_class</span></code> value (classified
         
     | 
| 
      
 752 
     | 
    
         
            +
            value) is <code class="docutils literal"><span class="pre">0</span></code>. If <code class="docutils literal"><span class="pre">Entry.n_likes</span></code> value is between <code class="docutils literal"><span class="pre">10</span></code> and
         
     | 
| 
      
 753 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">19</span></code> such as <code class="docutils literal"><span class="pre">10</span></code> and <code class="docutils literal"><span class="pre">15</span></code>, <code class="docutils literal"><span class="pre">n_likes_class</span></code> value (classified
         
     | 
| 
      
 754 
     | 
    
         
            +
            value) is <code class="docutils literal"><span class="pre">10</span></code>.</p>
         
     | 
| 
      
 755 
     | 
    
         
            +
            <p>You can use <a class="reference internal" href="../functions/number_classify.html"><span class="doc">number_classify</span></a> function for
         
     | 
| 
      
 756 
     | 
    
         
            +
            the classification. You need to register <code class="docutils literal"><span class="pre">functions/number</span></code> plugin
         
     | 
| 
      
 757 
     | 
    
         
            +
            by <a class="reference internal" href="plugin_register.html"><span class="doc">plugin_register</span></a> command to use
         
     | 
| 
      
 758 
     | 
    
         
            +
            <a class="reference internal" href="../functions/number_classify.html"><span class="doc">number_classify</span></a> function.</p>
         
     | 
| 
      
 759 
     | 
    
         
            +
            <p>This example does drilldown by <code class="docutils literal"><span class="pre">n_likes_class</span></code> value. The drilldown
         
     | 
| 
      
 760 
     | 
    
         
            +
            result will help you to know data trend.</p>
         
     | 
| 
      
 761 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 762 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/number
         
     | 
| 
      
 763 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 764 
     | 
    
         
            +
            select \
         
     | 
| 
      
 765 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 766 
     | 
    
         
            +
              --columns[n_likes_class].stage initial \
         
     | 
| 
      
 767 
     | 
    
         
            +
              --columns[n_likes_class].type UInt32 \
         
     | 
| 
      
 768 
     | 
    
         
            +
              --columns[n_likes_class].value 'number_classify(n_likes, 10)' \
         
     | 
| 
      
 769 
     | 
    
         
            +
              --drilldown n_likes_class \
         
     | 
| 
      
 770 
     | 
    
         
            +
              --drilldown_sort_keys _nsubrecs \
         
     | 
| 
      
 771 
     | 
    
         
            +
              --output_columns n_likes,n_likes_class
         
     | 
| 
      
 772 
     | 
    
         
            +
            # [
         
     | 
| 
      
 773 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 774 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 775 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 776 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 777 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 778 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 779 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 780 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 781 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 782 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 783 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 784 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 785 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 786 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 787 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 788 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 789 
     | 
    
         
            +
            #           "n_likes_class",
         
     | 
| 
      
 790 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 791 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 792 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 793 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 794 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 795 
     | 
    
         
            +
            #         0
         
     | 
| 
      
 796 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 797 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 798 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 799 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 800 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 801 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 802 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 803 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 804 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 805 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 806 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 807 
     | 
    
         
            +
            #         0
         
     | 
| 
      
 808 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 809 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 810 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 811 
     | 
    
         
            +
            #         0
         
     | 
| 
      
 812 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 813 
     | 
    
         
            +
            #     ],
         
     | 
| 
      
 814 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 815 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 816 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 817 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 818 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 819 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 820 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 821 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 822 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 823 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 824 
     | 
    
         
            +
            #           "_nsubrecs",
         
     | 
| 
      
 825 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 826 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 827 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 828 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 829 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 830 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 831 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 832 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 833 
     | 
    
         
            +
            #         0,
         
     | 
| 
      
 834 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 835 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 836 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 837 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 838 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 839 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 840 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 841 
     | 
    
         
            +
            <p>See <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">Dynamic column related parameters</span></a> for details.</p>
         
     | 
| 
      
 842 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 843 
     | 
    
         
            +
            <div class="section" id="window-function">
         
     | 
| 
      
 844 
     | 
    
         
            +
            <h3>7.3.54.3.7. Window function<a class="headerlink" href="#window-function" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 845 
     | 
    
         
            +
            <p>You can compute each record value from values of grouped records. For
         
     | 
| 
      
 846 
     | 
    
         
            +
            example, you can compute sums of each group and puts sums to each
         
     | 
| 
      
 847 
     | 
    
         
            +
            record. The difference against drilldown is drilldown can compute sums
         
     | 
| 
      
 848 
     | 
    
         
            +
            of each group but it puts sums to each group not record.</p>
         
     | 
| 
      
 849 
     | 
    
         
            +
            <p>Here is the result with window function. Each record has sum:</p>
         
     | 
| 
      
 850 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 851 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 852 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 853 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 854 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 855 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 856 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 857 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Group No.</th>
         
     | 
| 
      
 858 
     | 
    
         
            +
            <th class="head">Target value</th>
         
     | 
| 
      
 859 
     | 
    
         
            +
            <th class="head">Sum result</th>
         
     | 
| 
      
 860 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 861 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 862 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 863 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 864 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 865 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 866 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 867 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 868 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 869 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 870 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 871 
     | 
    
         
            +
            <tr class="row-even"><td>2</td>
         
     | 
| 
      
 872 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 873 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 874 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 875 
     | 
    
         
            +
            <tr class="row-odd"><td>3</td>
         
     | 
| 
      
 876 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 877 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 878 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 879 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 880 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 881 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 882 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 883 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 884 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 885 
     | 
    
         
            +
            <p>Here is the result with drilldown. Each group has sum:</p>
         
     | 
| 
      
 886 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 887 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 888 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 889 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 890 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 891 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 892 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 893 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Group No.</th>
         
     | 
| 
      
 894 
     | 
    
         
            +
            <th class="head">Target values</th>
         
     | 
| 
      
 895 
     | 
    
         
            +
            <th class="head">Sum result</th>
         
     | 
| 
      
 896 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 897 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 898 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 899 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 900 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 901 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 902 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 903 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 904 
     | 
    
         
            +
            <td>10, 15</td>
         
     | 
| 
      
 905 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 906 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 907 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 908 
     | 
    
         
            +
            <td>3, 5</td>
         
     | 
| 
      
 909 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 910 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 911 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 912 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 913 
     | 
    
         
            +
            <p>Window function is useful for data analysis.</p>
         
     | 
| 
      
 914 
     | 
    
         
            +
            <p>Here is an example that sums <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> per
         
     | 
| 
      
 915 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">Entries.tag</span></code>:</p>
         
     | 
| 
      
 916 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 917 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/number
         
     | 
| 
      
 918 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 919 
     | 
    
         
            +
            select \
         
     | 
| 
      
 920 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 921 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].stage initial \
         
     | 
| 
      
 922 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].type UInt32 \
         
     | 
| 
      
 923 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].value 'window_sum(n_likes)' \
         
     | 
| 
      
 924 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].window.group_keys tag \
         
     | 
| 
      
 925 
     | 
    
         
            +
              --output_columns tag,n_likes,n_likes_sum_per_tag
         
     | 
| 
      
 926 
     | 
    
         
            +
            # [
         
     | 
| 
      
 927 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 928 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 929 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 930 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 931 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 932 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 933 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 934 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 935 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 936 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 937 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 938 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 939 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 940 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 941 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 942 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 943 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 944 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 945 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 946 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 947 
     | 
    
         
            +
            #           "n_likes_sum_per_tag",
         
     | 
| 
      
 948 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 949 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 950 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 951 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 952 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 953 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 954 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 955 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 956 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 957 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 958 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 959 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 960 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 961 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 962 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 963 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 964 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 965 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 966 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 967 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 968 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 969 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 970 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 971 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 972 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 973 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 974 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 975 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 976 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 977 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 978 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 979 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 980 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 981 
     | 
    
         
            +
            <p>See <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">Window function related parameters</span></a> for details.</p>
         
     | 
| 
      
 982 
     | 
    
         
            +
            </div>
         
     | 
| 
       697 
983 
     | 
    
         
             
            </div>
         
     | 
| 
       698 
984 
     | 
    
         
             
            <div class="section" id="parameters">
         
     | 
| 
       699 
985 
     | 
    
         
             
            <h2>7.3.54.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
         @@ -712,12 +998,12 @@ in grouped records and so on. See 
     | 
|
| 
       712 
998 
     | 
    
         
             
            #     -22,
         
     | 
| 
       713 
999 
     | 
    
         
             
            #     1337566253.89858,
         
     | 
| 
       714 
1000 
     | 
    
         
             
            #     0.000355720520019531,
         
     | 
| 
       715 
     | 
    
         
            -
            #     "invalid  
     | 
| 
      
 1001 
     | 
    
         
            +
            #     "[select][table] invalid name: <Nonexistent>",
         
     | 
| 
       716 
1002 
     | 
    
         
             
            #     [
         
     | 
| 
       717 
1003 
     | 
    
         
             
            #       [
         
     | 
| 
       718 
1004 
     | 
    
         
             
            #         "grn_select",
         
     | 
| 
       719 
     | 
    
         
            -
            #         " 
     | 
| 
       720 
     | 
    
         
            -
            #          
     | 
| 
      
 1005 
     | 
    
         
            +
            #         "proc_select.c",
         
     | 
| 
      
 1006 
     | 
    
         
            +
            #         3006
         
     | 
| 
       721 
1007 
     | 
    
         
             
            #       ]
         
     | 
| 
       722 
1008 
     | 
    
         
             
            #     ]
         
     | 
| 
       723 
1009 
     | 
    
         
             
            #   ]
         
     | 
| 
         @@ -2293,7 +2579,7 @@ it's just ignored but get a warning in log file.</p> 
     | 
|
| 
       2293 
2579 
     | 
    
         
             
            zero-based. <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> means output range is started from the 2nd
         
     | 
| 
       2294 
2580 
     | 
    
         
             
            record.</p>
         
     | 
| 
       2295 
2581 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2296 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries -- 
     | 
| 
      
 2582 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset 3 --output_columns _key
         
     | 
| 
       2297 
2583 
     | 
    
         
             
            # [
         
     | 
| 
       2298 
2584 
     | 
    
         
             
            #   [
         
     | 
| 
       2299 
2585 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2329,7 +2615,7 @@ record.</p> 
     | 
|
| 
       2329 
2615 
     | 
    
         
             
            means 2nd. Remember that offset is zero-based.) record to the 3rd
         
     | 
| 
       2330 
2616 
     | 
    
         
             
            record.</p>
         
     | 
| 
       2331 
2617 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2332 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries -- 
     | 
| 
      
 2618 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset -2 --output_columns _key
         
     | 
| 
       2333 
2619 
     | 
    
         
             
            # [
         
     | 
| 
       2334 
2620 
     | 
    
         
             
            #   [
         
     | 
| 
       2335 
2621 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2368,7 +2654,7 @@ number of records is <code class="docutils literal"><span class="pre">5</span></ 
     | 
|
| 
       2368 
2654 
     | 
    
         
             
            matched records is less than <code class="docutils literal"><span class="pre">limit</span></code>, all records are outputted.</p>
         
     | 
| 
       2369 
2655 
     | 
    
         
             
            <p>Here is a simple <code class="docutils literal"><span class="pre">limit</span></code> usage example.</p>
         
     | 
| 
       2370 
2656 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2371 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries -- 
     | 
| 
      
 2657 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries --sort_keys _id --offset 2 --limit 3 --output_columns _key
         
     | 
| 
       2372 
2658 
     | 
    
         
             
            # [
         
     | 
| 
       2373 
2659 
     | 
    
         
             
            #   [
         
     | 
| 
       2374 
2660 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2490,21 +2776,163 @@ records. It's very useful value to show all records.</p> 
     | 
|
| 
       2490 
2776 
     | 
    
         
             
            <p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
         
     | 
| 
       2491 
2777 
     | 
    
         
             
            </div>
         
     | 
| 
       2492 
2778 
     | 
    
         
             
            </div>
         
     | 
| 
       2493 
     | 
    
         
            -
            <div class="section" id=" 
     | 
| 
       2494 
     | 
    
         
            -
            <span id="select- 
     | 
| 
       2495 
     | 
    
         
            -
            < 
     | 
| 
       2496 
     | 
    
         
            -
             
     | 
| 
       2497 
     | 
    
         
            -
             
     | 
| 
       2498 
     | 
    
         
            -
            < 
     | 
| 
       2499 
     | 
    
         
            -
             
     | 
| 
       2500 
     | 
    
         
            -
            < 
     | 
| 
       2501 
     | 
    
         
            -
             
     | 
| 
       2502 
     | 
    
         
            -
             
     | 
| 
       2503 
     | 
    
         
            -
             
     | 
| 
      
 2779 
     | 
    
         
            +
            <div class="section" id="dynamic-column-related-parameters">
         
     | 
| 
      
 2780 
     | 
    
         
            +
            <span id="select-dynamic-column-related-parameters"></span><h3>7.3.54.4.5. Dynamic column related parameters<a class="headerlink" href="#dynamic-column-related-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 2781 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2782 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 2783 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2784 
     | 
    
         
            +
            <p>This section describes dynamic column related parameters. You can use
         
     | 
| 
      
 2785 
     | 
    
         
            +
            dynamic column for window function but this section doesn't describe
         
     | 
| 
      
 2786 
     | 
    
         
            +
            window function. See <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">Window function related parameters</span></a>
         
     | 
| 
      
 2787 
     | 
    
         
            +
            for window function.</p>
         
     | 
| 
      
 2788 
     | 
    
         
            +
            <p>You can create zero or more columns and fill values into these columns
         
     | 
| 
      
 2789 
     | 
    
         
            +
            while a <code class="docutils literal"><span class="pre">select</span></code> execution. These columns are called as "dynamic
         
     | 
| 
      
 2790 
     | 
    
         
            +
            columns". You can use dynamic columns as same as normal columns after
         
     | 
| 
      
 2791 
     | 
    
         
            +
            dynamic columns are created.</p>
         
     | 
| 
      
 2792 
     | 
    
         
            +
            <p>Dynamic column has performance merit because its values are computed
         
     | 
| 
      
 2793 
     | 
    
         
            +
            at once and reused computed values.</p>
         
     | 
| 
      
 2794 
     | 
    
         
            +
            <p>Dynamic column increases memory usage because its values are kept
         
     | 
| 
      
 2795 
     | 
    
         
            +
            while the <code class="docutils literal"><span class="pre">select</span></code> execution.</p>
         
     | 
| 
      
 2796 
     | 
    
         
            +
            <p>You need to use dynamic column in the following cases:</p>
         
     | 
| 
      
 2797 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 2798 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 2799 
     | 
    
         
            +
            <li>You want to name values like <code class="docutils literal"><span class="pre">AS</span></code> in SQL.</li>
         
     | 
| 
      
 2800 
     | 
    
         
            +
            <li>You want to use computed values for drilldown. Groonga doesn't
         
     | 
| 
      
 2801 
     | 
    
         
            +
            support drilldown target value computation in drilldown.</li>
         
     | 
| 
      
 2802 
     | 
    
         
            +
            <li>You want to use window function.</li>
         
     | 
| 
      
 2803 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 2804 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 2805 
     | 
    
         
            +
            <p>There are some points to create dynamic columns. You must specify
         
     | 
| 
      
 2806 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">stage</span></code> to each dynamic column to control dynamic columns creation
         
     | 
| 
      
 2807 
     | 
    
         
            +
            points. It's important that you choose proper point to get better
         
     | 
| 
      
 2808 
     | 
    
         
            +
            performance.</p>
         
     | 
| 
      
 2809 
     | 
    
         
            +
            <p>For example, it's not a good idea that you create a dynamic column
         
     | 
| 
      
 2810 
     | 
    
         
            +
            that is only used for output for all records. The number of output
         
     | 
| 
      
 2811 
     | 
    
         
            +
            records will be a little even if there are many records in a
         
     | 
| 
      
 2812 
     | 
    
         
            +
            table. Because you will filter, sort and limit all records and output
         
     | 
| 
      
 2813 
     | 
    
         
            +
            only the limited records in many cases.</p>
         
     | 
| 
      
 2814 
     | 
    
         
            +
            <p>See <a class="reference internal" href="#select-columns-name-stage"><span class="std std-ref">columns[${NAME}].stage</span></a> for <code class="docutils literal"><span class="pre">stage</span></code> detail.</p>
         
     | 
| 
      
 2815 
     | 
    
         
            +
            <p>Here are parameters for dynamic column. They don't include window
         
     | 
| 
      
 2816 
     | 
    
         
            +
            function related parameters. See
         
     | 
| 
      
 2817 
     | 
    
         
            +
            <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">Window function related parameters</span></a> for window function
         
     | 
| 
      
 2818 
     | 
    
         
            +
            related parameters:</p>
         
     | 
| 
      
 2819 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 2820 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 2821 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 2822 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 2823 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 2824 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 2825 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 2826 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Name</th>
         
     | 
| 
      
 2827 
     | 
    
         
            +
            <th class="head">Default value</th>
         
     | 
| 
      
 2828 
     | 
    
         
            +
            <th class="head">Required or optional</th>
         
     | 
| 
      
 2829 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2830 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 2831 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 2832 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].stage</span></code></td>
         
     | 
| 
      
 2833 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">null</span></code></td>
         
     | 
| 
      
 2834 
     | 
    
         
            +
            <td>Required</td>
         
     | 
| 
      
 2835 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2836 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code></td>
         
     | 
| 
      
 2837 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">COLUMN_SCALAR</span></code></td>
         
     | 
| 
      
 2838 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 2839 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2840 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].type</span></code></td>
         
     | 
| 
      
 2841 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">null</span></code></td>
         
     | 
| 
      
 2842 
     | 
    
         
            +
            <td>Required</td>
         
     | 
| 
      
 2843 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2844 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></td>
         
     | 
| 
      
 2845 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">null</span></code></td>
         
     | 
| 
      
 2846 
     | 
    
         
            +
            <td>Required</td>
         
     | 
| 
      
 2847 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2848 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 2849 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 2850 
     | 
    
         
            +
            <p>You need to specify multiple parameters for a dynamic
         
     | 
| 
      
 2851 
     | 
    
         
            +
            column. <code class="docutils literal"><span class="pre">${NAME}</span></code> is the name for each dynamic column. Parameters
         
     | 
| 
      
 2852 
     | 
    
         
            +
            that use the same <code class="docutils literal"><span class="pre">${NAME}</span></code> are treated as parameters for the same
         
     | 
| 
      
 2853 
     | 
    
         
            +
            dynamic column. Here is an example to specify parameters for 2 dynamic
         
     | 
| 
      
 2854 
     | 
    
         
            +
            columns (<code class="docutils literal"><span class="pre">name1</span></code> and <code class="docutils literal"><span class="pre">name2</span></code>):</p>
         
     | 
| 
      
 2855 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>--columns[name1].stage initial
         
     | 
| 
      
 2856 
     | 
    
         
            +
            --columns[name1].type UInt32
         
     | 
| 
      
 2857 
     | 
    
         
            +
            --columns[name1].value 29
         
     | 
| 
      
 2858 
     | 
    
         
            +
             
     | 
| 
      
 2859 
     | 
    
         
            +
            --columns[name2].stage filtered
         
     | 
| 
      
 2860 
     | 
    
         
            +
            --columns[name2].type ShortText
         
     | 
| 
      
 2861 
     | 
    
         
            +
            --columns[name2].value "29"
         
     | 
| 
      
 2862 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2863 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2864 
     | 
    
         
            +
            <div class="section" id="columns-name-stage">
         
     | 
| 
      
 2865 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 2866 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2867 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 2868 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2869 
     | 
    
         
            +
            <p>Specifies when the dynamic column is created. This is a required
         
     | 
| 
      
 2870 
     | 
    
         
            +
            parameter to create a dynamic column.</p>
         
     | 
| 
      
 2871 
     | 
    
         
            +
            <p>Here are available stages:</p>
         
     | 
| 
      
 2872 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 2873 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 2874 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 2875 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 2876 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 2877 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 2878 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Name</th>
         
     | 
| 
      
 2879 
     | 
    
         
            +
            <th class="head">Description</th>
         
     | 
| 
      
 2880 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2881 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 2882 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 2883 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">initial</span></code></td>
         
     | 
| 
      
 2884 
     | 
    
         
            +
            <td>Dynamic column is created at first.</td>
         
     | 
| 
      
 2885 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2886 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">filtered</span></code></td>
         
     | 
| 
      
 2887 
     | 
    
         
            +
            <td>Dynamic column is created after <a class="reference internal" href="#select-query"><span class="std std-ref">query</span></a> and
         
     | 
| 
      
 2888 
     | 
    
         
            +
            <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a> are evaluated.</td>
         
     | 
| 
      
 2889 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2890 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">output</span></code></td>
         
     | 
| 
      
 2891 
     | 
    
         
            +
            <td>Dynamic column is created before <a class="reference internal" href="#select-output-columns"><span class="std std-ref">output_columns</span></a>
         
     | 
| 
      
 2892 
     | 
    
         
            +
            is evaluated.</td>
         
     | 
| 
      
 2893 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 2894 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 2895 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 2896 
     | 
    
         
            +
            <p>Here is the <code class="docutils literal"><span class="pre">select</span></code> process flow with dynamic column creation
         
     | 
| 
      
 2897 
     | 
    
         
            +
            points. You should choose stage as late as possible:</p>
         
     | 
| 
      
 2898 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 2899 
     | 
    
         
            +
            <div><ol class="arabic simple">
         
     | 
| 
      
 2900 
     | 
    
         
            +
            <li>Creates dynamic columns for <code class="docutils literal"><span class="pre">initial</span></code> stage. All records have
         
     | 
| 
      
 2901 
     | 
    
         
            +
            these dynamic columns.</li>
         
     | 
| 
      
 2902 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-query"><span class="std std-ref">query</span></a> and <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a>. You can
         
     | 
| 
      
 2903 
     | 
    
         
            +
            use dynamic columns created in <code class="docutils literal"><span class="pre">initial</span></code> stage.</li>
         
     | 
| 
      
 2904 
     | 
    
         
            +
            <li>Creates dynamic columns for <code class="docutils literal"><span class="pre">filtered</span></code> stage. Only filtered
         
     | 
| 
      
 2905 
     | 
    
         
            +
            records have these dynamic columns.</li>
         
     | 
| 
      
 2906 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-adjuster"><span class="std std-ref">adjuster</span></a>. You can use dynamic columns
         
     | 
| 
      
 2907 
     | 
    
         
            +
            created in <code class="docutils literal"><span class="pre">initial</span></code> stage and <code class="docutils literal"><span class="pre">filtered</span></code> stage.</li>
         
     | 
| 
      
 2908 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-scorer"><span class="std std-ref">scorer</span></a>. You can use dynamic columns
         
     | 
| 
      
 2909 
     | 
    
         
            +
            created in <code class="docutils literal"><span class="pre">initial</span></code> stage and <code class="docutils literal"><span class="pre">filtered</span></code> stage.</li>
         
     | 
| 
      
 2910 
     | 
    
         
            +
            <li>Evaluates <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> and
         
     | 
| 
      
 2911 
     | 
    
         
            +
            <a class="reference internal" href="#select-limit"><span class="std std-ref">limit</span></a>. You can use dynamic columns created in
         
     | 
| 
      
 2912 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">initial</span></code> stage and <code class="docutils literal"><span class="pre">filtered</span></code> stage.</li>
         
     | 
| 
      
 2913 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-slice-related-parameters"><span class="std std-ref">Slice related parameters</span></a>. You can use
         
     | 
| 
      
 2914 
     | 
    
         
            +
            dynamic columns created in <code class="docutils literal"><span class="pre">initial</span></code> stage and <code class="docutils literal"><span class="pre">filtered</span></code> stage.</li>
         
     | 
| 
      
 2915 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-drilldown-related-parameters"><span class="std std-ref">Drilldown related parameters</span></a> and
         
     | 
| 
      
 2916 
     | 
    
         
            +
            <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span class="std std-ref">Advanced drilldown related parameters</span></a>. You can use
         
     | 
| 
      
 2917 
     | 
    
         
            +
            dynamic columns created in <code class="docutils literal"><span class="pre">initial</span></code> stage and <code class="docutils literal"><span class="pre">filtered</span></code> stage.
         
     | 
| 
      
 2918 
     | 
    
         
            +
            Note that you can create dynamic columns in each drilldown.</li>
         
     | 
| 
      
 2919 
     | 
    
         
            +
            <li>Creates dynamic columns for <code class="docutils literal"><span class="pre">output</span></code> stage. Only
         
     | 
| 
      
 2920 
     | 
    
         
            +
            <a class="reference internal" href="#select-limit"><span class="std std-ref">limit</span></a> records have these dynamic columns.</li>
         
     | 
| 
      
 2921 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-output-columns"><span class="std std-ref">output_columns</span></a>. You can use dynamic
         
     | 
| 
      
 2922 
     | 
    
         
            +
            columns created in <code class="docutils literal"><span class="pre">initial</span></code> stage, <code class="docutils literal"><span class="pre">filtered</span></code> stage and
         
     | 
| 
      
 2923 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">output</span></code> stage.</li>
         
     | 
| 
      
 2924 
     | 
    
         
            +
            </ol>
         
     | 
| 
      
 2925 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 2926 
     | 
    
         
            +
            <p>Here is an example that creates <code class="docutils literal"><span class="pre">is_popular</span></code> column at <code class="docutils literal"><span class="pre">initial</span></code>
         
     | 
| 
      
 2927 
     | 
    
         
            +
            stage. You can use <code class="docutils literal"><span class="pre">is_popular</span></code> in all parameters such as <code class="docutils literal"><span class="pre">filter</span></code>
         
     | 
| 
      
 2928 
     | 
    
         
            +
            and <code class="docutils literal"><span class="pre">output_columns</span></code>:</p>
         
     | 
| 
       2504 
2929 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2505 
2930 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2506 
     | 
    
         
            -
              -- 
     | 
| 
       2507 
     | 
    
         
            -
              -- 
     | 
| 
      
 2931 
     | 
    
         
            +
              --columns[is_popular].stage initial \
         
     | 
| 
      
 2932 
     | 
    
         
            +
              --columns[is_popular].type Bool \
         
     | 
| 
      
 2933 
     | 
    
         
            +
              --columns[is_popular].value 'n_likes >= 10' \
         
     | 
| 
      
 2934 
     | 
    
         
            +
              --filter is_popular \
         
     | 
| 
      
 2935 
     | 
    
         
            +
              --output_columns _id,is_popular,n_likes
         
     | 
| 
       2508 
2936 
     | 
    
         
             
            # [
         
     | 
| 
       2509 
2937 
     | 
    
         
             
            #   [
         
     | 
| 
       2510 
2938 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2514,29 +2942,715 @@ each key.</p> 
     | 
|
| 
       2514 
2942 
     | 
    
         
             
            #   [
         
     | 
| 
       2515 
2943 
     | 
    
         
             
            #     [
         
     | 
| 
       2516 
2944 
     | 
    
         
             
            #       [
         
     | 
| 
       2517 
     | 
    
         
            -
            #          
     | 
| 
      
 2945 
     | 
    
         
            +
            #         2
         
     | 
| 
       2518 
2946 
     | 
    
         
             
            #       ],
         
     | 
| 
       2519 
2947 
     | 
    
         
             
            #       [
         
     | 
| 
       2520 
2948 
     | 
    
         
             
            #         [
         
     | 
| 
       2521 
     | 
    
         
            -
            #           " 
     | 
| 
       2522 
     | 
    
         
            -
            #           " 
     | 
| 
      
 2949 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 2950 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
       2523 
2951 
     | 
    
         
             
            #         ],
         
     | 
| 
       2524 
2952 
     | 
    
         
             
            #         [
         
     | 
| 
       2525 
     | 
    
         
            -
            #           " 
     | 
| 
       2526 
     | 
    
         
            -
            #           " 
     | 
| 
      
 2953 
     | 
    
         
            +
            #           "is_popular",
         
     | 
| 
      
 2954 
     | 
    
         
            +
            #           "Bool"
         
     | 
| 
      
 2955 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 2956 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 2957 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 2958 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
       2527 
2959 
     | 
    
         
             
            #         ]
         
     | 
| 
       2528 
2960 
     | 
    
         
             
            #       ],
         
     | 
| 
       2529 
2961 
     | 
    
         
             
            #       [
         
     | 
| 
       2530 
     | 
    
         
            -
            #          
     | 
| 
       2531 
     | 
    
         
            -
            #          
     | 
| 
      
 2962 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 2963 
     | 
    
         
            +
            #         true,
         
     | 
| 
      
 2964 
     | 
    
         
            +
            #         10
         
     | 
| 
       2532 
2965 
     | 
    
         
             
            #       ],
         
     | 
| 
       2533 
2966 
     | 
    
         
             
            #       [
         
     | 
| 
       2534 
     | 
    
         
            -
            #          
     | 
| 
       2535 
     | 
    
         
            -
            #          
     | 
| 
       2536 
     | 
    
         
            -
            # 
     | 
| 
      
 2967 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 2968 
     | 
    
         
            +
            #         true,
         
     | 
| 
      
 2969 
     | 
    
         
            +
            #         15
         
     | 
| 
      
 2970 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 2971 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 2972 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 2973 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 2974 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 2975 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2976 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2977 
     | 
    
         
            +
            <div class="section" id="columns-name-flags">
         
     | 
| 
      
 2978 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 2979 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 2980 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 2981 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 2982 
     | 
    
         
            +
            <p>Specifies flags for the dynamic column. It's the same as <code class="docutils literal"><span class="pre">flags</span></code>
         
     | 
| 
      
 2983 
     | 
    
         
            +
            parameter for <a class="reference internal" href="column_create.html"><span class="doc">column_create</span></a>. See <a class="reference internal" href="column_create.html#column-create-flags"><span class="std std-ref">flags</span></a> for
         
     | 
| 
      
 2984 
     | 
    
         
            +
            available flags.</p>
         
     | 
| 
      
 2985 
     | 
    
         
            +
            <p>The default value is <code class="docutils literal"><span class="pre">COLUMN_SCALAR</span></code>.</p>
         
     | 
| 
      
 2986 
     | 
    
         
            +
            <p>Here is a <code class="docutils literal"><span class="pre">columns[${NAME}].flags</span></code> example. It creates a vector
         
     | 
| 
      
 2987 
     | 
    
         
            +
            column by <code class="docutils literal"><span class="pre">COLUMN_VECTOR</span></code> flags. <code class="docutils literal"><span class="pre">plugin_register</span>
         
     | 
| 
      
 2988 
     | 
    
         
            +
            <span class="pre">functions/vector</span></code> is for using <a class="reference internal" href="../functions/vector_new.html"><span class="doc">vector_new</span></a>
         
     | 
| 
      
 2989 
     | 
    
         
            +
            function:</p>
         
     | 
| 
      
 2990 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 2991 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/vector
         
     | 
| 
      
 2992 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 2993 
     | 
    
         
            +
            select Entries \
         
     | 
| 
      
 2994 
     | 
    
         
            +
              --columns[vector].stage initial \
         
     | 
| 
      
 2995 
     | 
    
         
            +
              --columns[vector].flags COLUMN_VECTOR \
         
     | 
| 
      
 2996 
     | 
    
         
            +
              --columns[vector].type UInt32 \
         
     | 
| 
      
 2997 
     | 
    
         
            +
              --columns[vector].value 'vector_new(1, 2, 3)' \
         
     | 
| 
      
 2998 
     | 
    
         
            +
              --output_columns _id,vector
         
     | 
| 
      
 2999 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3000 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3001 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3002 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3003 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3004 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3005 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3006 
     | 
    
         
            +
            #     [
         
     | 
| 
       2537 
3007 
     | 
    
         
             
            #       [
         
     | 
| 
       2538 
     | 
    
         
            -
            #          
     | 
| 
       2539 
     | 
    
         
            -
            # 
     | 
| 
      
 3008 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3009 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3010 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3011 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3012 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 3013 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3014 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3015 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3016 
     | 
    
         
            +
            #           "vector",
         
     | 
| 
      
 3017 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3018 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3019 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3020 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3021 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 3022 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3023 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 3024 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 3025 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 3026 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3027 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3028 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3029 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 3030 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3031 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 3032 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 3033 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 3034 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3035 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3036 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3037 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3038 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3039 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 3040 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 3041 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 3042 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3043 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3044 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3045 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 3046 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3047 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 3048 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 3049 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 3050 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3051 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3052 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3053 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3054 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3055 
     | 
    
         
            +
            #           1,
         
     | 
| 
      
 3056 
     | 
    
         
            +
            #           2,
         
     | 
| 
      
 3057 
     | 
    
         
            +
            #           3
         
     | 
| 
      
 3058 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3059 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3060 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3061 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3062 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3063 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3064 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3065 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3066 
     | 
    
         
            +
            <div class="section" id="columns-name-type">
         
     | 
| 
      
 3067 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 3068 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3069 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 3070 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3071 
     | 
    
         
            +
            <p>Specifies value type for the dynamic column. It's the same as <code class="docutils literal"><span class="pre">type</span></code>
         
     | 
| 
      
 3072 
     | 
    
         
            +
            parameter for <a class="reference internal" href="column_create.html"><span class="doc">column_create</span></a>. See <a class="reference internal" href="column_create.html#column-create-type"><span class="std std-ref">type</span></a> for
         
     | 
| 
      
 3073 
     | 
    
         
            +
            available types.</p>
         
     | 
| 
      
 3074 
     | 
    
         
            +
            <p>This is a required parameter.</p>
         
     | 
| 
      
 3075 
     | 
    
         
            +
            <p>Here is an example that creates a <code class="docutils literal"><span class="pre">ShortText</span></code> type column. Stored
         
     | 
| 
      
 3076 
     | 
    
         
            +
            value is casted to <code class="docutils literal"><span class="pre">ShortText</span></code> automatically. In this example,
         
     | 
| 
      
 3077 
     | 
    
         
            +
            number is casted to <code class="docutils literal"><span class="pre">ShortText</span></code>:</p>
         
     | 
| 
      
 3078 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 3079 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 3080 
     | 
    
         
            +
              --columns[n_likes_string].stage initial \
         
     | 
| 
      
 3081 
     | 
    
         
            +
              --columns[n_likes_string].type ShortText \
         
     | 
| 
      
 3082 
     | 
    
         
            +
              --columns[n_likes_string].value n_likes \
         
     | 
| 
      
 3083 
     | 
    
         
            +
              --output_columns _id,n_likes,n_likes_string
         
     | 
| 
      
 3084 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3085 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3086 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3087 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3088 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3089 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3090 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3091 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3092 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3093 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3094 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3095 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3096 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3097 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 3098 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3099 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3100 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3101 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 3102 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3103 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3104 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3105 
     | 
    
         
            +
            #           "n_likes_string",
         
     | 
| 
      
 3106 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3107 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3108 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3109 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3110 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 3111 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3112 
     | 
    
         
            +
            #         "5"
         
     | 
| 
      
 3113 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3114 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3115 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 3116 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 3117 
     | 
    
         
            +
            #         "10"
         
     | 
| 
      
 3118 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3119 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3120 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3121 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 3122 
     | 
    
         
            +
            #         "15"
         
     | 
| 
      
 3123 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3124 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3125 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 3126 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3127 
     | 
    
         
            +
            #         "3"
         
     | 
| 
      
 3128 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3129 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3130 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3131 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3132 
     | 
    
         
            +
            #         "3"
         
     | 
| 
      
 3133 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3134 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3135 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3136 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3137 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3138 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3139 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3140 
     | 
    
         
            +
            <div class="section" id="columns-name-value">
         
     | 
| 
      
 3141 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 3142 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3143 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 3144 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3145 
     | 
    
         
            +
            <p>Specifies expression that generates values for the dynamic column. The
         
     | 
| 
      
 3146 
     | 
    
         
            +
            expression uses <a class="reference internal" href="../grn_expr/script_syntax.html"><span class="doc">Script syntax</span></a>. It's the
         
     | 
| 
      
 3147 
     | 
    
         
            +
            same syntax in <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a>. For example, <code class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">1</span></code>,
         
     | 
| 
      
 3148 
     | 
    
         
            +
            <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> and so on are valid
         
     | 
| 
      
 3149 
     | 
    
         
            +
            expressions.</p>
         
     | 
| 
      
 3150 
     | 
    
         
            +
            <p>You need to specify <a class="reference internal" href="../window_function.html"><span class="doc">Window function</span></a> as <code class="docutils literal"><span class="pre">value</span></code>
         
     | 
| 
      
 3151 
     | 
    
         
            +
            value and other window function related parameters when you use window
         
     | 
| 
      
 3152 
     | 
    
         
            +
            function. See <a class="reference internal" href="#select-window-function-related-parameters"><span class="std std-ref">Window function related parameters</span></a> for
         
     | 
| 
      
 3153 
     | 
    
         
            +
            details.</p>
         
     | 
| 
      
 3154 
     | 
    
         
            +
            <p>This is a required parameter.</p>
         
     | 
| 
      
 3155 
     | 
    
         
            +
            <p>Here is an example that creates a new dynamic column that stores the
         
     | 
| 
      
 3156 
     | 
    
         
            +
            number of characters of content. This example uses
         
     | 
| 
      
 3157 
     | 
    
         
            +
            <a class="reference internal" href="../functions/string_length.html"><span class="doc">string_length</span></a> function in
         
     | 
| 
      
 3158 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">functions/string</span></code> plugin to compute the number of characters in a
         
     | 
| 
      
 3159 
     | 
    
         
            +
            string. <a class="reference internal" href="plugin_register.html"><span class="doc">plugin_register</span></a> is used to register
         
     | 
| 
      
 3160 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">functions/string</span></code> plugin:</p>
         
     | 
| 
      
 3161 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 3162 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>plugin_register functions/string
         
     | 
| 
      
 3163 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 3164 
     | 
    
         
            +
            select Entries \
         
     | 
| 
      
 3165 
     | 
    
         
            +
              --columns[content_length].stage initial \
         
     | 
| 
      
 3166 
     | 
    
         
            +
              --columns[content_length].type UInt32 \
         
     | 
| 
      
 3167 
     | 
    
         
            +
              --columns[content_length].value 'string_length(content)' \
         
     | 
| 
      
 3168 
     | 
    
         
            +
              --output_columns _id,content,content_length
         
     | 
| 
      
 3169 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3170 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3171 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3172 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3173 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3174 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3175 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3176 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3177 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3178 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3179 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3180 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3181 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3182 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 3183 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3184 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3185 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3186 
     | 
    
         
            +
            #           "content",
         
     | 
| 
      
 3187 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 3188 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3189 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3190 
     | 
    
         
            +
            #           "content_length",
         
     | 
| 
      
 3191 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3192 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3193 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3194 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3195 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 3196 
     | 
    
         
            +
            #         "Welcome! This is my first post!",
         
     | 
| 
      
 3197 
     | 
    
         
            +
            #         31
         
     | 
| 
      
 3198 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3199 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3200 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 3201 
     | 
    
         
            +
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
      
 3202 
     | 
    
         
            +
            #         41
         
     | 
| 
      
 3203 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3204 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3205 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3206 
     | 
    
         
            +
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
      
 3207 
     | 
    
         
            +
            #         64
         
     | 
| 
      
 3208 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3209 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3210 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 3211 
     | 
    
         
            +
            #         "I migrated all Senna system!",
         
     | 
| 
      
 3212 
     | 
    
         
            +
            #         28
         
     | 
| 
      
 3213 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3214 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3215 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3216 
     | 
    
         
            +
            #         "I also migrated all Tritonn system!",
         
     | 
| 
      
 3217 
     | 
    
         
            +
            #         35
         
     | 
| 
      
 3218 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3219 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3220 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3221 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3222 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3223 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3224 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3225 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3226 
     | 
    
         
            +
            <div class="section" id="window-function-related-parameters">
         
     | 
| 
      
 3227 
     | 
    
         
            +
            <span id="select-window-function-related-parameters"></span><h3>7.3.54.4.6. Window function related parameters<a class="headerlink" href="#window-function-related-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 3228 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3229 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 3230 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3231 
     | 
    
         
            +
            <p>This section describes window function related parameters. You need to
         
     | 
| 
      
 3232 
     | 
    
         
            +
            use dynamic column for using window function. See
         
     | 
| 
      
 3233 
     | 
    
         
            +
            <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">Dynamic column related parameters</span></a> for dynamic column.</p>
         
     | 
| 
      
 3234 
     | 
    
         
            +
            <p>Window function in Groonga is similar to window function in
         
     | 
| 
      
 3235 
     | 
    
         
            +
            SQL. Normal function computes its result with only the current
         
     | 
| 
      
 3236 
     | 
    
         
            +
            record. On the other hand, window function computes its result with
         
     | 
| 
      
 3237 
     | 
    
         
            +
            multiple records. Window function is useful to data analysis because
         
     | 
| 
      
 3238 
     | 
    
         
            +
            it can process multiple records.</p>
         
     | 
| 
      
 3239 
     | 
    
         
            +
            <p>You can find supported window functions at
         
     | 
| 
      
 3240 
     | 
    
         
            +
            <a class="reference internal" href="../window_function.html"><span class="doc">Window function</span></a>. For example,
         
     | 
| 
      
 3241 
     | 
    
         
            +
            <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> is a window function. It
         
     | 
| 
      
 3242 
     | 
    
         
            +
            sums numbers in the target records.</p>
         
     | 
| 
      
 3243 
     | 
    
         
            +
            <p>Window function processes records that are grouped by the specified
         
     | 
| 
      
 3244 
     | 
    
         
            +
            group keys. For example, window function processes three groups
         
     | 
| 
      
 3245 
     | 
    
         
            +
            (<code class="docutils literal"><span class="pre">Hello</span></code> group, <code class="docutils literal"><span class="pre">Groonga</span></code> group and <code class="docutils literal"><span class="pre">Senna</span></code> group) in the
         
     | 
| 
      
 3246 
     | 
    
         
            +
            following case. <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> sums
         
     | 
| 
      
 3247 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">n_likes</span></code> values in each group:</p>
         
     | 
| 
      
 3248 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3249 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3250 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 3251 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 3252 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 3253 
     | 
    
         
            +
            <col width="25%" />
         
     | 
| 
      
 3254 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3255 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3256 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Group No.</th>
         
     | 
| 
      
 3257 
     | 
    
         
            +
            <th class="head">Group key value</th>
         
     | 
| 
      
 3258 
     | 
    
         
            +
            <th class="head"><code class="docutils literal"><span class="pre">n_likes</span></code> value</th>
         
     | 
| 
      
 3259 
     | 
    
         
            +
            <th class="head"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> result</th>
         
     | 
| 
      
 3260 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3261 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3262 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3263 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3264 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Hello</span></code></td>
         
     | 
| 
      
 3265 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3266 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3267 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3268 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 3269 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 3270 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3271 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 3272 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3273 
     | 
    
         
            +
            <tr class="row-even"><td>2</td>
         
     | 
| 
      
 3274 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 3275 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 3276 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 3277 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3278 
     | 
    
         
            +
            <tr class="row-odd"><td>3</td>
         
     | 
| 
      
 3279 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 3280 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3281 
     | 
    
         
            +
            <td>6</td>
         
     | 
| 
      
 3282 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3283 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 3284 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 3285 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3286 
     | 
    
         
            +
            <td>6</td>
         
     | 
| 
      
 3287 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3288 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3289 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3290 
     | 
    
         
            +
            <p>You can specify no group keys. In the case, window function processes
         
     | 
| 
      
 3291 
     | 
    
         
            +
            only one group that includes all
         
     | 
| 
      
 3292 
     | 
    
         
            +
            records. <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> sums all
         
     | 
| 
      
 3293 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">n_likes</span></code> values in the following case:</p>
         
     | 
| 
      
 3294 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3295 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3296 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3297 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3298 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3299 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3300 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3301 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Group No.</th>
         
     | 
| 
      
 3302 
     | 
    
         
            +
            <th class="head"><code class="docutils literal"><span class="pre">n_likes</span></code> value</th>
         
     | 
| 
      
 3303 
     | 
    
         
            +
            <th class="head"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> result</th>
         
     | 
| 
      
 3304 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3305 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3306 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3307 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3308 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3309 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3310 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3311 
     | 
    
         
            +
            <tr class="row-odd"><td>1</td>
         
     | 
| 
      
 3312 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3313 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3314 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3315 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3316 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 3317 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3318 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3319 
     | 
    
         
            +
            <tr class="row-odd"><td>1</td>
         
     | 
| 
      
 3320 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3321 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3322 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3323 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3324 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3325 
     | 
    
         
            +
            <td>36</td>
         
     | 
| 
      
 3326 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3327 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3328 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3329 
     | 
    
         
            +
            <p>Window function processes records in each group in the specified
         
     | 
| 
      
 3330 
     | 
    
         
            +
            order. You can specify no sort keys like the above group keys
         
     | 
| 
      
 3331 
     | 
    
         
            +
            example.</p>
         
     | 
| 
      
 3332 
     | 
    
         
            +
            <p>The behavior when you specify no sort keys depends on each window
         
     | 
| 
      
 3333 
     | 
    
         
            +
            function specification. For example,
         
     | 
| 
      
 3334 
     | 
    
         
            +
            <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> uses different behavior
         
     | 
| 
      
 3335 
     | 
    
         
            +
            whether sort keys are specified or not. If you specify not sort keys,
         
     | 
| 
      
 3336 
     | 
    
         
            +
            <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> sums values of all
         
     | 
| 
      
 3337 
     | 
    
         
            +
            records in the group and puts it to all target records like the above
         
     | 
| 
      
 3338 
     | 
    
         
            +
            group keys example. If you specify sort keys,
         
     | 
| 
      
 3339 
     | 
    
         
            +
            <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> behaves as cumulative
         
     | 
| 
      
 3340 
     | 
    
         
            +
            sum. <a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> sums values of all
         
     | 
| 
      
 3341 
     | 
    
         
            +
            records in the group in sequence and puts the current sum to the
         
     | 
| 
      
 3342 
     | 
    
         
            +
            current record like the following:</p>
         
     | 
| 
      
 3343 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3344 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3345 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3346 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3347 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3348 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3349 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3350 
     | 
    
         
            +
            <col width="17%" />
         
     | 
| 
      
 3351 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3352 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3353 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Group No.</th>
         
     | 
| 
      
 3354 
     | 
    
         
            +
            <th class="head">Group key value</th>
         
     | 
| 
      
 3355 
     | 
    
         
            +
            <th class="head">Sort key value</th>
         
     | 
| 
      
 3356 
     | 
    
         
            +
            <th class="head"><code class="docutils literal"><span class="pre">n_likes</span></code> value</th>
         
     | 
| 
      
 3357 
     | 
    
         
            +
            <th class="head"><a class="reference internal" href="../window_functions/window_sum.html"><span class="doc">window_sum</span></a> result</th>
         
     | 
| 
      
 3358 
     | 
    
         
            +
            <th class="head">Note</th>
         
     | 
| 
      
 3359 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3360 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3361 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3362 
     | 
    
         
            +
            <tr class="row-even"><td>1</td>
         
     | 
| 
      
 3363 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Hello</span></code></td>
         
     | 
| 
      
 3364 
     | 
    
         
            +
            <td>1</td>
         
     | 
| 
      
 3365 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3366 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3367 
     | 
    
         
            +
            <td>The first record in group No. 1. (<code class="docutils literal"><span class="pre">5</span> <span class="pre">=</span> <span class="pre">5</span></code>)</td>
         
     | 
| 
      
 3368 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3369 
     | 
    
         
            +
            <tr class="row-odd"><td>2</td>
         
     | 
| 
      
 3370 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 3371 
     | 
    
         
            +
            <td>90</td>
         
     | 
| 
      
 3372 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3373 
     | 
    
         
            +
            <td>10</td>
         
     | 
| 
      
 3374 
     | 
    
         
            +
            <td>The first record in group No. 2. (<code class="docutils literal"><span class="pre">10</span> <span class="pre">=</span> <span class="pre">10</span></code>)</td>
         
     | 
| 
      
 3375 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3376 
     | 
    
         
            +
            <tr class="row-even"><td>2</td>
         
     | 
| 
      
 3377 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Groonga</span></code></td>
         
     | 
| 
      
 3378 
     | 
    
         
            +
            <td>91</td>
         
     | 
| 
      
 3379 
     | 
    
         
            +
            <td>15</td>
         
     | 
| 
      
 3380 
     | 
    
         
            +
            <td>25</td>
         
     | 
| 
      
 3381 
     | 
    
         
            +
            <td>The second record in group No. 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>)</td>
         
     | 
| 
      
 3382 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3383 
     | 
    
         
            +
            <tr class="row-odd"><td>3</td>
         
     | 
| 
      
 3384 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 3385 
     | 
    
         
            +
            <td>200</td>
         
     | 
| 
      
 3386 
     | 
    
         
            +
            <td>3</td>
         
     | 
| 
      
 3387 
     | 
    
         
            +
            <td>8</td>
         
     | 
| 
      
 3388 
     | 
    
         
            +
            <td>The second record in group No. 3. (<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>)</td>
         
     | 
| 
      
 3389 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3390 
     | 
    
         
            +
            <tr class="row-even"><td>3</td>
         
     | 
| 
      
 3391 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">Senna</span></code></td>
         
     | 
| 
      
 3392 
     | 
    
         
            +
            <td>100</td>
         
     | 
| 
      
 3393 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3394 
     | 
    
         
            +
            <td>5</td>
         
     | 
| 
      
 3395 
     | 
    
         
            +
            <td>The first record in group No. 3. (<code class="docutils literal"><span class="pre">5</span> <span class="pre">=</span> <span class="pre">5</span></code>)</td>
         
     | 
| 
      
 3396 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3397 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3398 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3399 
     | 
    
         
            +
            <p>Here are parameters for window function. You need to specify both
         
     | 
| 
      
 3400 
     | 
    
         
            +
            window function related parameters and required dynamic columns
         
     | 
| 
      
 3401 
     | 
    
         
            +
            parameters. Because window function is implemented based on dynamic
         
     | 
| 
      
 3402 
     | 
    
         
            +
            column. See <a class="reference internal" href="#select-dynamic-column-related-parameters"><span class="std std-ref">Dynamic column related parameters</span></a> for
         
     | 
| 
      
 3403 
     | 
    
         
            +
            dynamic column related parameters:</p>
         
     | 
| 
      
 3404 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 3405 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 3406 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3407 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3408 
     | 
    
         
            +
            <col width="33%" />
         
     | 
| 
      
 3409 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 3410 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 3411 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Name</th>
         
     | 
| 
      
 3412 
     | 
    
         
            +
            <th class="head">Required or optional</th>
         
     | 
| 
      
 3413 
     | 
    
         
            +
            <th class="head">Note</th>
         
     | 
| 
      
 3414 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3415 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 3416 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 3417 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].value</span></code></td>
         
     | 
| 
      
 3418 
     | 
    
         
            +
            <td>Required</td>
         
     | 
| 
      
 3419 
     | 
    
         
            +
            <td>Use <a class="reference internal" href="../window_function.html"><span class="doc">Window function</span></a>.</td>
         
     | 
| 
      
 3420 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3421 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code></td>
         
     | 
| 
      
 3422 
     | 
    
         
            +
            <td>Required if <code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code> isn't specified.</td>
         
     | 
| 
      
 3423 
     | 
    
         
            +
            <td> </td>
         
     | 
| 
      
 3424 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3425 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">columns[${NAME}].window.group_keys</span></code></td>
         
     | 
| 
      
 3426 
     | 
    
         
            +
            <td>Required if <code class="docutils literal"><span class="pre">columns[${NAME}].window.sort_keys</span></code> isn't specified.</td>
         
     | 
| 
      
 3427 
     | 
    
         
            +
            <td> </td>
         
     | 
| 
      
 3428 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 3429 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 3430 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 3431 
     | 
    
         
            +
            <div class="section" id="columns-name-window-sort-keys">
         
     | 
| 
      
 3432 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 3433 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3434 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.6.</span></p>
         
     | 
| 
      
 3435 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3436 
     | 
    
         
            +
            <p>Specifies sort keys in each group. Window function processes records
         
     | 
| 
      
 3437 
     | 
    
         
            +
            in each group in the specified order.</p>
         
     | 
| 
      
 3438 
     | 
    
         
            +
            <p>Sort keys are separated by <code class="docutils literal"><span class="pre">,</span></code>. Each sort key is column name. It's
         
     | 
| 
      
 3439 
     | 
    
         
            +
            the same as <a class="reference internal" href="#select-sort-keys"><span class="std std-ref">sort_keys</span></a>.</p>
         
     | 
| 
      
 3440 
     | 
    
         
            +
            <p>You must specify <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a> or
         
     | 
| 
      
 3441 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a> to use window function.</p>
         
     | 
| 
      
 3442 
     | 
    
         
            +
            <p>Here is an example that computes cumulative sum per
         
     | 
| 
      
 3443 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">Entries.tag</span></code>. Each group is sorted by <code class="docutils literal"><span class="pre">Entries._key</span></code>:</p>
         
     | 
| 
      
 3444 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 3445 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select \
         
     | 
| 
      
 3446 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 3447 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].stage initial \
         
     | 
| 
      
 3448 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].type UInt32 \
         
     | 
| 
      
 3449 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].value 'window_sum(n_likes)' \
         
     | 
| 
      
 3450 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].window.sort_keys _key \
         
     | 
| 
      
 3451 
     | 
    
         
            +
              --columns[n_likes_cumulative_sum_per_tag].window.group_keys tag \
         
     | 
| 
      
 3452 
     | 
    
         
            +
              --sort_keys _key \
         
     | 
| 
      
 3453 
     | 
    
         
            +
              --output_columns tag,_key,n_likes,n_likes_cumulative_sum_per_tag
         
     | 
| 
      
 3454 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3455 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3456 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3457 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3458 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3459 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3460 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3461 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3462 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3463 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3464 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3465 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3466 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3467 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 3468 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3469 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3470 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3471 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 3472 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3473 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3474 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3475 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 3476 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3477 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3478 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3479 
     | 
    
         
            +
            #           "n_likes_cumulative_sum_per_tag",
         
     | 
| 
      
 3480 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3481 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3482 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3483 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3484 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3485 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 3486 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3487 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 3488 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3489 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3490 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3491 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 3492 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3493 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 3494 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3495 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3496 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3497 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3498 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 3499 
     | 
    
         
            +
            #         10
         
     | 
| 
      
 3500 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3501 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3502 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3503 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 3504 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 3505 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 3506 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3507 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3508 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 3509 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 3510 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3511 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3512 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3513 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3514 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3515 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3516 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3517 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3518 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3519 
     | 
    
         
            +
            <div class="section" id="columns-name-window-group-keys">
         
     | 
| 
      
 3520 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 3521 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 3522 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 7.0.0.</span></p>
         
     | 
| 
      
 3523 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3524 
     | 
    
         
            +
            <p>Specifies group keys. Window function processes records in each
         
     | 
| 
      
 3525 
     | 
    
         
            +
            group. If you specify no group keys, window function processes one
         
     | 
| 
      
 3526 
     | 
    
         
            +
            group that includes all records.</p>
         
     | 
| 
      
 3527 
     | 
    
         
            +
            <p>Group keys are separated by <code class="docutils literal"><span class="pre">,</span></code>. Each group key is column name. It's
         
     | 
| 
      
 3528 
     | 
    
         
            +
            the same as <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a>.</p>
         
     | 
| 
      
 3529 
     | 
    
         
            +
            <p>You must specify <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a> or
         
     | 
| 
      
 3530 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a> to use window function.</p>
         
     | 
| 
      
 3531 
     | 
    
         
            +
            <p>Here is an example that computes sum per <code class="docutils literal"><span class="pre">Entries.tag</span></code>:</p>
         
     | 
| 
      
 3532 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 3533 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select \
         
     | 
| 
      
 3534 
     | 
    
         
            +
              --table Entries \
         
     | 
| 
      
 3535 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].stage initial \
         
     | 
| 
      
 3536 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].type UInt32 \
         
     | 
| 
      
 3537 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].value 'window_sum(n_likes)' \
         
     | 
| 
      
 3538 
     | 
    
         
            +
              --columns[n_likes_sum_per_tag].window.group_keys tag \
         
     | 
| 
      
 3539 
     | 
    
         
            +
              --sort_keys _key \
         
     | 
| 
      
 3540 
     | 
    
         
            +
              --output_columns tag,_key,n_likes,n_likes_sum_per_tag
         
     | 
| 
      
 3541 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3542 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3543 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3544 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3545 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3546 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3547 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3548 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3549 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3550 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3551 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3552 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3553 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3554 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 3555 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3556 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3557 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3558 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 3559 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3560 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3561 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3562 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 3563 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3564 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3565 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3566 
     | 
    
         
            +
            #           "n_likes_sum_per_tag",
         
     | 
| 
      
 3567 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 3568 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3569 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3570 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3571 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3572 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 3573 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3574 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 3575 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3576 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3577 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 3578 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 3579 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 3580 
     | 
    
         
            +
            #         6
         
     | 
| 
      
 3581 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3582 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3583 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3584 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3585 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 3586 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 3587 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3588 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3589 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3590 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 3591 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 3592 
     | 
    
         
            +
            #         25
         
     | 
| 
      
 3593 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3594 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3595 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 3596 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 3597 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 3598 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3599 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 3600 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 3601 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 3602 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 3603 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 3604 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3605 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3606 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3607 
     | 
    
         
            +
            <div class="section" id="drilldown-related-parameters">
         
     | 
| 
      
 3608 
     | 
    
         
            +
            <span id="select-drilldown-related-parameters"></span><h3>7.3.54.4.7. Drilldown related parameters<a class="headerlink" href="#drilldown-related-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 3609 
     | 
    
         
            +
            <p>This section describes basic drilldown related parameters. Advanced
         
     | 
| 
      
 3610 
     | 
    
         
            +
            drilldown related parameters are described in another section.</p>
         
     | 
| 
      
 3611 
     | 
    
         
            +
            <div class="section" id="select-drilldown">
         
     | 
| 
      
 3612 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 3613 
     | 
    
         
            +
            <p>Specifies keys for grouping separated by <code class="docutils literal"><span class="pre">,</span></code>.</p>
         
     | 
| 
      
 3614 
     | 
    
         
            +
            <p>Matched records by specified search conditions are grouped by each
         
     | 
| 
      
 3615 
     | 
    
         
            +
            key. If you specify no search condition, all records are grouped by
         
     | 
| 
      
 3616 
     | 
    
         
            +
            each key.</p>
         
     | 
| 
      
 3617 
     | 
    
         
            +
            <p>Here is a simple <code class="docutils literal"><span class="pre">drilldown</span></code> example:</p>
         
     | 
| 
      
 3618 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 3619 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 3620 
     | 
    
         
            +
              --output_columns _key,tag \
         
     | 
| 
      
 3621 
     | 
    
         
            +
              --drilldown tag
         
     | 
| 
      
 3622 
     | 
    
         
            +
            # [
         
     | 
| 
      
 3623 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3624 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 3625 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 3626 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 3627 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 3628 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 3629 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 3630 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3631 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 3632 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3633 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3634 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3635 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 3636 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3637 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 3638 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 3639 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 3640 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 3641 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 3642 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3643 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3644 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 3645 
     | 
    
         
            +
            #         "Hello"
         
     | 
| 
      
 3646 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3647 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3648 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 3649 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 3650 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 3651 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 3652 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 3653 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
       2540 
3654 
     | 
    
         
             
            #       ],
         
     | 
| 
       2541 
3655 
     | 
    
         
             
            #       [
         
     | 
| 
       2542 
3656 
     | 
    
         
             
            #         "Good-bye Senna",
         
     | 
| 
         @@ -2667,7 +3781,7 @@ each key.</p> 
     | 
|
| 
       2667 
3781 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2668 
3782 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2669 
3783 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2670 
     | 
    
         
            -
              -- 
     | 
| 
      
 3784 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2671 
3785 
     | 
    
         
             
              --drilldown tag,n_likes
         
     | 
| 
       2672 
3786 
     | 
    
         
             
            # [
         
     | 
| 
       2673 
3787 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -2684,22 +3798,6 @@ each key.</p> 
     | 
|
| 
       2684 
3798 
     | 
    
         
             
            #         [
         
     | 
| 
       2685 
3799 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2686 
3800 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2687 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2688 
     | 
    
         
            -
            #         [
         
     | 
| 
       2689 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2690 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2691 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2692 
     | 
    
         
            -
            #         [
         
     | 
| 
       2693 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2694 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2695 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2696 
     | 
    
         
            -
            #         [
         
     | 
| 
       2697 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2698 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2699 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2700 
     | 
    
         
            -
            #         [
         
     | 
| 
       2701 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2702 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2703 
3801 
     | 
    
         
             
            #         ]
         
     | 
| 
       2704 
3802 
     | 
    
         
             
            #       ]
         
     | 
| 
       2705 
3803 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2784,24 +3882,24 @@ each key.</p> 
     | 
|
| 
       2784 
3882 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2785 
3883 
     | 
    
         
             
            </div>
         
     | 
| 
       2786 
3884 
     | 
    
         
             
            <div class="section" id="drilldown-sortby">
         
     | 
| 
       2787 
     | 
    
         
            -
            <span id="select-drilldown-sortby"></span><h4>7.3.54.4. 
     | 
| 
      
 3885 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       2788 
3886 
     | 
    
         
             
            <div class="deprecated">
         
     | 
| 
       2789 
3887 
     | 
    
         
             
            <p><span class="versionmodified">Deprecated since version 6.0.3: </span>Use <a class="reference internal" href="#select-drilldown-sort-keys"><span class="std std-ref">drilldown_sort_keys</span></a> instead.</p>
         
     | 
| 
       2790 
3888 
     | 
    
         
             
            </div>
         
     | 
| 
       2791 
3889 
     | 
    
         
             
            </div>
         
     | 
| 
       2792 
3890 
     | 
    
         
             
            <div class="section" id="drilldown-sort-keys">
         
     | 
| 
       2793 
     | 
    
         
            -
            <span id="select-drilldown-sort-keys"></span><h4>7.3.54.4. 
     | 
| 
      
 3891 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       2794 
3892 
     | 
    
         
             
            <p>Specifies sort keys for drilldown outputs separated by <code class="docutils literal"><span class="pre">,</span></code>. Each
         
     | 
| 
       2795 
3893 
     | 
    
         
             
            sort key is column name.</p>
         
     | 
| 
       2796 
3894 
     | 
    
         
             
            <p>You can refer the number of grouped records by <code class="docutils literal"><span class="pre">_nsubrecs</span></code>
         
     | 
| 
       2797 
3895 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><span class="doc">Pseudo column</span></a>.</p>
         
     | 
| 
       2798 
     | 
    
         
            -
            <p>Here is a simple <code class="docutils literal"><span class="pre"> 
     | 
| 
      
 3896 
     | 
    
         
            +
            <p>Here is a simple <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code> example:</p>
         
     | 
| 
       2799 
3897 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2800 
3898 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2801 
3899 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2802 
     | 
    
         
            -
              -- 
     | 
| 
      
 3900 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2803 
3901 
     | 
    
         
             
              --drilldown 'tag, n_likes' \
         
     | 
| 
       2804 
     | 
    
         
            -
              -- 
     | 
| 
      
 3902 
     | 
    
         
            +
              --drilldown_sort_keys '-_nsubrecs, _key'
         
     | 
| 
       2805 
3903 
     | 
    
         
             
            # [
         
     | 
| 
       2806 
3904 
     | 
    
         
             
            #   [
         
     | 
| 
       2807 
3905 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2817,22 +3915,6 @@ sort key is column name.</p> 
     | 
|
| 
       2817 
3915 
     | 
    
         
             
            #         [
         
     | 
| 
       2818 
3916 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2819 
3917 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2820 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2821 
     | 
    
         
            -
            #         [
         
     | 
| 
       2822 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2823 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2824 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2825 
     | 
    
         
            -
            #         [
         
     | 
| 
       2826 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2827 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2828 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2829 
     | 
    
         
            -
            #         [
         
     | 
| 
       2830 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2831 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2832 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2833 
     | 
    
         
            -
            #         [
         
     | 
| 
       2834 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2835 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2836 
3918 
     | 
    
         
             
            #         ]
         
     | 
| 
       2837 
3919 
     | 
    
         
             
            #       ]
         
     | 
| 
       2838 
3920 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -2906,9 +3988,9 @@ are sorted by grouped key (= <code class="docutils literal"><span class="pre">_k 
     | 
|
| 
       2906 
3988 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       2907 
3989 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       2908 
3990 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       2909 
     | 
    
         
            -
              -- 
     | 
| 
      
 3991 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       2910 
3992 
     | 
    
         
             
              --drilldown 'tag, n_likes' \
         
     | 
| 
       2911 
     | 
    
         
            -
              -- 
     | 
| 
      
 3993 
     | 
    
         
            +
              --drilldown_sort_keys '-_nsubrecs, _key'
         
     | 
| 
       2912 
3994 
     | 
    
         
             
            # [
         
     | 
| 
       2913 
3995 
     | 
    
         
             
            #   [
         
     | 
| 
       2914 
3996 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -2924,22 +4006,6 @@ are sorted by grouped key (= <code class="docutils literal"><span class="pre">_k 
     | 
|
| 
       2924 
4006 
     | 
    
         
             
            #         [
         
     | 
| 
       2925 
4007 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       2926 
4008 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       2927 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2928 
     | 
    
         
            -
            #         [
         
     | 
| 
       2929 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       2930 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2931 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2932 
     | 
    
         
            -
            #         [
         
     | 
| 
       2933 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       2934 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       2935 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2936 
     | 
    
         
            -
            #         [
         
     | 
| 
       2937 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       2938 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       2939 
     | 
    
         
            -
            #         ],
         
     | 
| 
       2940 
     | 
    
         
            -
            #         [
         
     | 
| 
       2941 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       2942 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       2943 
4009 
     | 
    
         
             
            #         ]
         
     | 
| 
       2944 
4010 
     | 
    
         
             
            #       ]
         
     | 
| 
       2945 
4011 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3011,13 +4077,13 @@ drilldown.</p> 
     | 
|
| 
       3011 
4077 
     | 
    
         
             
            <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span class="std std-ref">Advanced drilldown related parameters</span></a>.</p>
         
     | 
| 
       3012 
4078 
     | 
    
         
             
            </div>
         
     | 
| 
       3013 
4079 
     | 
    
         
             
            <div class="section" id="drilldown-output-columns">
         
     | 
| 
       3014 
     | 
    
         
            -
            <span id="select-drilldown-output-columns"></span><h4>7.3.54.4. 
     | 
| 
      
 4080 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       3015 
4081 
     | 
    
         
             
            <p>Specifies output columns for drilldown separated by <code class="docutils literal"><span class="pre">,</span></code>.</p>
         
     | 
| 
       3016 
4082 
     | 
    
         
             
            <p>Here is a <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> example:</p>
         
     | 
| 
       3017 
4083 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3018 
4084 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3019 
4085 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3020 
     | 
    
         
            -
              -- 
     | 
| 
      
 4086 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3021 
4087 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3022 
4088 
     | 
    
         
             
              --drilldown_output_columns _key
         
     | 
| 
       3023 
4089 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -3035,22 +4101,6 @@ drilldown.</p> 
     | 
|
| 
       3035 
4101 
     | 
    
         
             
            #         [
         
     | 
| 
       3036 
4102 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3037 
4103 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3038 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3039 
     | 
    
         
            -
            #         [
         
     | 
| 
       3040 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3041 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3042 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3043 
     | 
    
         
            -
            #         [
         
     | 
| 
       3044 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3045 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3046 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3047 
     | 
    
         
            -
            #         [
         
     | 
| 
       3048 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3049 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3050 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3051 
     | 
    
         
            -
            #         [
         
     | 
| 
       3052 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3053 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3054 
4104 
     | 
    
         
             
            #         ]
         
     | 
| 
       3055 
4105 
     | 
    
         
             
            #       ]
         
     | 
| 
       3056 
4106 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3117,7 +4167,7 @@ type column.</p> 
     | 
|
| 
       3117 
4167 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3118 
4168 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Items \
         
     | 
| 
       3119 
4169 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3120 
     | 
    
         
            -
              -- 
     | 
| 
      
 4170 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3121 
4171 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3122 
4172 
     | 
    
         
             
              --drilldown_output_columns '_key, label'
         
     | 
| 
       3123 
4173 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -3135,14 +4185,6 @@ type column.</p> 
     | 
|
| 
       3135 
4185 
     | 
    
         
             
            #         [
         
     | 
| 
       3136 
4186 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3137 
4187 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3138 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3139 
     | 
    
         
            -
            #         [
         
     | 
| 
       3140 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3141 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3142 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3143 
     | 
    
         
            -
            #         [
         
     | 
| 
       3144 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3145 
     | 
    
         
            -
            #           "Tags"
         
     | 
| 
       3146 
4188 
     | 
    
         
             
            #         ]
         
     | 
| 
       3147 
4189 
     | 
    
         
             
            #       ]
         
     | 
| 
       3148 
4190 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3177,7 +4219,7 @@ type column.</p> 
     | 
|
| 
       3177 
4219 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3178 
4220 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Items \
         
     | 
| 
       3179 
4221 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3180 
     | 
    
         
            -
              -- 
     | 
| 
      
 4222 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3181 
4223 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3182 
4224 
     | 
    
         
             
              --drilldown_output_columns '_key, *'
         
     | 
| 
       3183 
4225 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -3195,14 +4237,6 @@ type column.</p> 
     | 
|
| 
       3195 
4237 
     | 
    
         
             
            #         [
         
     | 
| 
       3196 
4238 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3197 
4239 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3198 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3199 
     | 
    
         
            -
            #         [
         
     | 
| 
       3200 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3201 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3202 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3203 
     | 
    
         
            -
            #         [
         
     | 
| 
       3204 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3205 
     | 
    
         
            -
            #           "Tags"
         
     | 
| 
       3206 
4240 
     | 
    
         
             
            #         ]
         
     | 
| 
       3207 
4241 
     | 
    
         
             
            #       ]
         
     | 
| 
       3208 
4242 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3249,7 +4283,7 @@ the group are output.</p> 
     | 
|
| 
       3249 
4283 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> document for details.</p>
         
     | 
| 
       3250 
4284 
     | 
    
         
             
            </div>
         
     | 
| 
       3251 
4285 
     | 
    
         
             
            <div class="section" id="drilldown-offset">
         
     | 
| 
       3252 
     | 
    
         
            -
            <span id="select-drilldown-offset"></span><h4>7.3.54.4. 
     | 
| 
      
 4286 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       3253 
4287 
     | 
    
         
             
            <p>Specifies offset to determine range of drilldown output
         
     | 
| 
       3254 
4288 
     | 
    
         
             
            records. Offset is zero-based. <code class="docutils literal"><span class="pre">--drilldown_offset</span> <span class="pre">1</span></code> means output
         
     | 
| 
       3255 
4289 
     | 
    
         
             
            range is started from the 2nd record.</p>
         
     | 
| 
         @@ -3257,9 +4291,9 @@ range is started from the 2nd record.</p> 
     | 
|
| 
       3257 
4291 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3258 
4292 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3259 
4293 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3260 
     | 
    
         
            -
              -- 
     | 
| 
      
 4294 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3261 
4295 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3262 
     | 
    
         
            -
              -- 
     | 
| 
      
 4296 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3263 
4297 
     | 
    
         
             
              --drilldown_offset 1
         
     | 
| 
       3264 
4298 
     | 
    
         
             
            # [
         
     | 
| 
       3265 
4299 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -3276,22 +4310,6 @@ range is started from the 2nd record.</p> 
     | 
|
| 
       3276 
4310 
     | 
    
         
             
            #         [
         
     | 
| 
       3277 
4311 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3278 
4312 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3279 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3280 
     | 
    
         
            -
            #         [
         
     | 
| 
       3281 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3282 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3283 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3284 
     | 
    
         
            -
            #         [
         
     | 
| 
       3285 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3286 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3287 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3288 
     | 
    
         
            -
            #         [
         
     | 
| 
       3289 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3290 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3291 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3292 
     | 
    
         
            -
            #         [
         
     | 
| 
       3293 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3294 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3295 
4313 
     | 
    
         
             
            #         ]
         
     | 
| 
       3296 
4314 
     | 
    
         
             
            #       ]
         
     | 
| 
       3297 
4315 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3331,9 +4349,9 @@ grouped result to the 3rd grouped result.</p> 
     | 
|
| 
       3331 
4349 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3332 
4350 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3333 
4351 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3334 
     | 
    
         
            -
              -- 
     | 
| 
      
 4352 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3335 
4353 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3336 
     | 
    
         
            -
              -- 
     | 
| 
      
 4354 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3337 
4355 
     | 
    
         
             
              --drilldown_offset -2
         
     | 
| 
       3338 
4356 
     | 
    
         
             
            # [
         
     | 
| 
       3339 
4357 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -3350,22 +4368,6 @@ grouped result to the 3rd grouped result.</p> 
     | 
|
| 
       3350 
4368 
     | 
    
         
             
            #         [
         
     | 
| 
       3351 
4369 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3352 
4370 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3353 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3354 
     | 
    
         
            -
            #         [
         
     | 
| 
       3355 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3356 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3357 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3358 
     | 
    
         
            -
            #         [
         
     | 
| 
       3359 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3360 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3361 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3362 
     | 
    
         
            -
            #         [
         
     | 
| 
       3363 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3364 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3365 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3366 
     | 
    
         
            -
            #         [
         
     | 
| 
       3367 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3368 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3369 
4371 
     | 
    
         
             
            #         ]
         
     | 
| 
       3370 
4372 
     | 
    
         
             
            #       ]
         
     | 
| 
       3371 
4373 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3401,16 +4403,16 @@ total number of grouped results is <code class="docutils literal"><span class="p 
     | 
|
| 
       3401 
4403 
     | 
    
         
             
            <p>The default value of <code class="docutils literal"><span class="pre">drilldown_offset</span></code> is <code class="docutils literal"><span class="pre">0</span></code>.</p>
         
     | 
| 
       3402 
4404 
     | 
    
         
             
            </div>
         
     | 
| 
       3403 
4405 
     | 
    
         
             
            <div class="section" id="drilldown-limit">
         
     | 
| 
       3404 
     | 
    
         
            -
            <span id="select-drilldown-limit"></span><h4>7.3.54.4. 
     | 
| 
      
 4406 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       3405 
4407 
     | 
    
         
             
            <p>Specifies the max number of groups in a drilldown. If the number of
         
     | 
| 
       3406 
4408 
     | 
    
         
             
            groups is less than <code class="docutils literal"><span class="pre">drilldown_limit</span></code>, all groups are outputted.</p>
         
     | 
| 
       3407 
4409 
     | 
    
         
             
            <p>Here is a <code class="docutils literal"><span class="pre">drilldown_limit</span></code> example:</p>
         
     | 
| 
       3408 
4410 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3409 
4411 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3410 
4412 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3411 
     | 
    
         
            -
              -- 
     | 
| 
      
 4413 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3412 
4414 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3413 
     | 
    
         
            -
              -- 
     | 
| 
      
 4415 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3414 
4416 
     | 
    
         
             
              --drilldown_offset 1 \
         
     | 
| 
       3415 
4417 
     | 
    
         
             
              --drilldown_limit 2
         
     | 
| 
       3416 
4418 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -3428,22 +4430,6 @@ groups is less than <code class="docutils literal"><span class="pre">drilldown_l 
     | 
|
| 
       3428 
4430 
     | 
    
         
             
            #         [
         
     | 
| 
       3429 
4431 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3430 
4432 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3431 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3432 
     | 
    
         
            -
            #         [
         
     | 
| 
       3433 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3434 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3435 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3436 
     | 
    
         
            -
            #         [
         
     | 
| 
       3437 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3438 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3439 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3440 
     | 
    
         
            -
            #         [
         
     | 
| 
       3441 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3442 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3443 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3444 
     | 
    
         
            -
            #         [
         
     | 
| 
       3445 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3446 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3447 
4433 
     | 
    
         
             
            #         ]
         
     | 
| 
       3448 
4434 
     | 
    
         
             
            #       ]
         
     | 
| 
       3449 
4435 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3482,9 +4468,9 @@ all groups. It's very useful value to show all groups.</p> 
     | 
|
| 
       3482 
4468 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3483 
4469 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3484 
4470 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       3485 
     | 
    
         
            -
              -- 
     | 
| 
      
 4471 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
       3486 
4472 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3487 
     | 
    
         
            -
              -- 
     | 
| 
      
 4473 
     | 
    
         
            +
              --drilldown_sort_keys _key \
         
     | 
| 
       3488 
4474 
     | 
    
         
             
              --drilldown_limit -1
         
     | 
| 
       3489 
4475 
     | 
    
         
             
            # [
         
     | 
| 
       3490 
4476 
     | 
    
         
             
            #   [
         
     | 
| 
         @@ -3500,23 +4486,7 @@ all groups. It's very useful value to show all groups.</p> 
     | 
|
| 
       3500 
4486 
     | 
    
         
             
            #       [
         
     | 
| 
       3501 
4487 
     | 
    
         
             
            #         [
         
     | 
| 
       3502 
4488 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       3503 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3504 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3505 
     | 
    
         
            -
            #         [
         
     | 
| 
       3506 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3507 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3508 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3509 
     | 
    
         
            -
            #         [
         
     | 
| 
       3510 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3511 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3512 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3513 
     | 
    
         
            -
            #         [
         
     | 
| 
       3514 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       3515 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       3516 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3517 
     | 
    
         
            -
            #         [
         
     | 
| 
       3518 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3519 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
      
 4489 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
       3520 
4490 
     | 
    
         
             
            #         ]
         
     | 
| 
       3521 
4491 
     | 
    
         
             
            #       ]
         
     | 
| 
       3522 
4492 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -3555,7 +4525,7 @@ all groups. It's very useful value to show all groups.</p> 
     | 
|
| 
       3555 
4525 
     | 
    
         
             
            <p>The default value of <code class="docutils literal"><span class="pre">drilldown_limit</span></code> is <code class="docutils literal"><span class="pre">10</span></code>.</p>
         
     | 
| 
       3556 
4526 
     | 
    
         
             
            </div>
         
     | 
| 
       3557 
4527 
     | 
    
         
             
            <div class="section" id="drilldown-calc-types">
         
     | 
| 
       3558 
     | 
    
         
            -
            <span id="select-drilldown-calc-types"></span><h4>7.3.54.4. 
     | 
| 
      
 4528 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       3559 
4529 
     | 
    
         
             
            <p>Specifies how to calculate (aggregate) values in grouped records by
         
     | 
| 
       3560 
4530 
     | 
    
         
             
            a drilldown. You can specify multiple calculation types separated by
         
     | 
| 
       3561 
4531 
     | 
    
         
             
            "<code class="docutils literal"><span class="pre">,</span></code>". For example, <code class="docutils literal"><span class="pre">MAX,MIN</span></code>.</p>
         
     | 
| 
         @@ -3619,7 +4589,7 @@ grouped records.</td> 
     | 
|
| 
       3619 
4589 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3620 
4590 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3621 
4591 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3622 
     | 
    
         
            -
              -- 
     | 
| 
      
 4592 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3623 
4593 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3624 
4594 
     | 
    
         
             
              --drilldown_calc_types MAX \
         
     | 
| 
       3625 
4595 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3641,56 +4611,29 @@ grouped records.</td> 
     | 
|
| 
       3641 
4611 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3642 
4612 
     | 
    
         
             
            #         ],
         
     | 
| 
       3643 
4613 
     | 
    
         
             
            #         [
         
     | 
| 
       3644 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3645 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3646 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3647 
     | 
    
         
            -
            #         [
         
     | 
| 
       3648 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3649 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3650 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3651 
     | 
    
         
            -
            #         [
         
     | 
| 
       3652 
4614 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3653 
4615 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3654 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3655 
     | 
    
         
            -
            #         [
         
     | 
| 
       3656 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3657 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3658 
4616 
     | 
    
         
             
            #         ]
         
     | 
| 
       3659 
4617 
     | 
    
         
             
            #       ],
         
     | 
| 
       3660 
4618 
     | 
    
         
             
            #       [
         
     | 
| 
       3661 
4619 
     | 
    
         
             
            #         1,
         
     | 
| 
       3662 
     | 
    
         
            -
            #          
     | 
| 
       3663 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3664 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3665 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4620 
     | 
    
         
            +
            #         5
         
     | 
| 
       3666 
4621 
     | 
    
         
             
            #       ],
         
     | 
| 
       3667 
4622 
     | 
    
         
             
            #       [
         
     | 
| 
       3668 
4623 
     | 
    
         
             
            #         2,
         
     | 
| 
       3669 
     | 
    
         
            -
            #          
     | 
| 
       3670 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3671 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3672 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4624 
     | 
    
         
            +
            #         10
         
     | 
| 
       3673 
4625 
     | 
    
         
             
            #       ],
         
     | 
| 
       3674 
4626 
     | 
    
         
             
            #       [
         
     | 
| 
       3675 
4627 
     | 
    
         
             
            #         3,
         
     | 
| 
       3676 
     | 
    
         
            -
            #          
     | 
| 
       3677 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3678 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3679 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4628 
     | 
    
         
            +
            #         15
         
     | 
| 
       3680 
4629 
     | 
    
         
             
            #       ],
         
     | 
| 
       3681 
4630 
     | 
    
         
             
            #       [
         
     | 
| 
       3682 
4631 
     | 
    
         
             
            #         4,
         
     | 
| 
       3683 
     | 
    
         
            -
            #          
     | 
| 
       3684 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3685 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3686 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4632 
     | 
    
         
            +
            #         3
         
     | 
| 
       3687 
4633 
     | 
    
         
             
            #       ],
         
     | 
| 
       3688 
4634 
     | 
    
         
             
            #       [
         
     | 
| 
       3689 
4635 
     | 
    
         
             
            #         5,
         
     | 
| 
       3690 
     | 
    
         
            -
            #          
     | 
| 
       3691 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3692 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3693 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4636 
     | 
    
         
            +
            #         3
         
     | 
| 
       3694 
4637 
     | 
    
         
             
            #       ]
         
     | 
| 
       3695 
4638 
     | 
    
         
             
            #     ],
         
     | 
| 
       3696 
4639 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3733,7 +4676,7 @@ read the maximum <code class="docutils literal"><span class="pre">n_likes</span> 
     | 
|
| 
       3733 
4676 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3734 
4677 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3735 
4678 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3736 
     | 
    
         
            -
              -- 
     | 
| 
      
 4679 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3737 
4680 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3738 
4681 
     | 
    
         
             
              --drilldown_calc_types MIN \
         
     | 
| 
       3739 
4682 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3755,56 +4698,29 @@ read the maximum <code class="docutils literal"><span class="pre">n_likes</span> 
     | 
|
| 
       3755 
4698 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3756 
4699 
     | 
    
         
             
            #         ],
         
     | 
| 
       3757 
4700 
     | 
    
         
             
            #         [
         
     | 
| 
       3758 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3759 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3760 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3761 
     | 
    
         
            -
            #         [
         
     | 
| 
       3762 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3763 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3764 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3765 
     | 
    
         
            -
            #         [
         
     | 
| 
       3766 
4701 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3767 
4702 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3768 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3769 
     | 
    
         
            -
            #         [
         
     | 
| 
       3770 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3771 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3772 
4703 
     | 
    
         
             
            #         ]
         
     | 
| 
       3773 
4704 
     | 
    
         
             
            #       ],
         
     | 
| 
       3774 
4705 
     | 
    
         
             
            #       [
         
     | 
| 
       3775 
4706 
     | 
    
         
             
            #         1,
         
     | 
| 
       3776 
     | 
    
         
            -
            #          
     | 
| 
       3777 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3778 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3779 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4707 
     | 
    
         
            +
            #         5
         
     | 
| 
       3780 
4708 
     | 
    
         
             
            #       ],
         
     | 
| 
       3781 
4709 
     | 
    
         
             
            #       [
         
     | 
| 
       3782 
4710 
     | 
    
         
             
            #         2,
         
     | 
| 
       3783 
     | 
    
         
            -
            #          
     | 
| 
       3784 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3785 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3786 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4711 
     | 
    
         
            +
            #         10
         
     | 
| 
       3787 
4712 
     | 
    
         
             
            #       ],
         
     | 
| 
       3788 
4713 
     | 
    
         
             
            #       [
         
     | 
| 
       3789 
4714 
     | 
    
         
             
            #         3,
         
     | 
| 
       3790 
     | 
    
         
            -
            #          
     | 
| 
       3791 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3792 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3793 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4715 
     | 
    
         
            +
            #         15
         
     | 
| 
       3794 
4716 
     | 
    
         
             
            #       ],
         
     | 
| 
       3795 
4717 
     | 
    
         
             
            #       [
         
     | 
| 
       3796 
4718 
     | 
    
         
             
            #         4,
         
     | 
| 
       3797 
     | 
    
         
            -
            #          
     | 
| 
       3798 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3799 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3800 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4719 
     | 
    
         
            +
            #         3
         
     | 
| 
       3801 
4720 
     | 
    
         
             
            #       ],
         
     | 
| 
       3802 
4721 
     | 
    
         
             
            #       [
         
     | 
| 
       3803 
4722 
     | 
    
         
             
            #         5,
         
     | 
| 
       3804 
     | 
    
         
            -
            #          
     | 
| 
       3805 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3806 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3807 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4723 
     | 
    
         
            +
            #         3
         
     | 
| 
       3808 
4724 
     | 
    
         
             
            #       ]
         
     | 
| 
       3809 
4725 
     | 
    
         
             
            #     ],
         
     | 
| 
       3810 
4726 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3847,7 +4763,7 @@ read the minimum <code class="docutils literal"><span class="pre">n_likes</span> 
     | 
|
| 
       3847 
4763 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3848 
4764 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3849 
4765 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3850 
     | 
    
         
            -
              -- 
     | 
| 
      
 4766 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3851 
4767 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3852 
4768 
     | 
    
         
             
              --drilldown_calc_types SUM \
         
     | 
| 
       3853 
4769 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3869,56 +4785,29 @@ read the minimum <code class="docutils literal"><span class="pre">n_likes</span> 
     | 
|
| 
       3869 
4785 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3870 
4786 
     | 
    
         
             
            #         ],
         
     | 
| 
       3871 
4787 
     | 
    
         
             
            #         [
         
     | 
| 
       3872 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3873 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3874 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3875 
     | 
    
         
            -
            #         [
         
     | 
| 
       3876 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3877 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3878 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3879 
     | 
    
         
            -
            #         [
         
     | 
| 
       3880 
4788 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3881 
4789 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3882 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3883 
     | 
    
         
            -
            #         [
         
     | 
| 
       3884 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3885 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3886 
4790 
     | 
    
         
             
            #         ]
         
     | 
| 
       3887 
4791 
     | 
    
         
             
            #       ],
         
     | 
| 
       3888 
4792 
     | 
    
         
             
            #       [
         
     | 
| 
       3889 
4793 
     | 
    
         
             
            #         1,
         
     | 
| 
       3890 
     | 
    
         
            -
            #          
     | 
| 
       3891 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       3892 
     | 
    
         
            -
            #         5,
         
     | 
| 
       3893 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4794 
     | 
    
         
            +
            #         5
         
     | 
| 
       3894 
4795 
     | 
    
         
             
            #       ],
         
     | 
| 
       3895 
4796 
     | 
    
         
             
            #       [
         
     | 
| 
       3896 
4797 
     | 
    
         
             
            #         2,
         
     | 
| 
       3897 
     | 
    
         
            -
            #          
     | 
| 
       3898 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       3899 
     | 
    
         
            -
            #         10,
         
     | 
| 
       3900 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4798 
     | 
    
         
            +
            #         10
         
     | 
| 
       3901 
4799 
     | 
    
         
             
            #       ],
         
     | 
| 
       3902 
4800 
     | 
    
         
             
            #       [
         
     | 
| 
       3903 
4801 
     | 
    
         
             
            #         3,
         
     | 
| 
       3904 
     | 
    
         
            -
            #          
     | 
| 
       3905 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       3906 
     | 
    
         
            -
            #         15,
         
     | 
| 
       3907 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4802 
     | 
    
         
            +
            #         15
         
     | 
| 
       3908 
4803 
     | 
    
         
             
            #       ],
         
     | 
| 
       3909 
4804 
     | 
    
         
             
            #       [
         
     | 
| 
       3910 
4805 
     | 
    
         
             
            #         4,
         
     | 
| 
       3911 
     | 
    
         
            -
            #          
     | 
| 
       3912 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       3913 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3914 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4806 
     | 
    
         
            +
            #         3
         
     | 
| 
       3915 
4807 
     | 
    
         
             
            #       ],
         
     | 
| 
       3916 
4808 
     | 
    
         
             
            #       [
         
     | 
| 
       3917 
4809 
     | 
    
         
             
            #         5,
         
     | 
| 
       3918 
     | 
    
         
            -
            #          
     | 
| 
       3919 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       3920 
     | 
    
         
            -
            #         3,
         
     | 
| 
       3921 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4810 
     | 
    
         
            +
            #         3
         
     | 
| 
       3922 
4811 
     | 
    
         
             
            #       ]
         
     | 
| 
       3923 
4812 
     | 
    
         
             
            #     ],
         
     | 
| 
       3924 
4813 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -3961,7 +4850,7 @@ summed <code class="docutils literal"><span class="pre">n_likes</span></code> co 
     | 
|
| 
       3961 
4850 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       3962 
4851 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       3963 
4852 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       3964 
     | 
    
         
            -
              -- 
     | 
| 
      
 4853 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       3965 
4854 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       3966 
4855 
     | 
    
         
             
              --drilldown_calc_types AVG \
         
     | 
| 
       3967 
4856 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -3983,56 +4872,29 @@ summed <code class="docutils literal"><span class="pre">n_likes</span></code> co 
     | 
|
| 
       3983 
4872 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3984 
4873 
     | 
    
         
             
            #         ],
         
     | 
| 
       3985 
4874 
     | 
    
         
             
            #         [
         
     | 
| 
       3986 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       3987 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       3988 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3989 
     | 
    
         
            -
            #         [
         
     | 
| 
       3990 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       3991 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       3992 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3993 
     | 
    
         
            -
            #         [
         
     | 
| 
       3994 
4875 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       3995 
4876 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       3996 
     | 
    
         
            -
            #         ],
         
     | 
| 
       3997 
     | 
    
         
            -
            #         [
         
     | 
| 
       3998 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       3999 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4000 
4877 
     | 
    
         
             
            #         ]
         
     | 
| 
       4001 
4878 
     | 
    
         
             
            #       ],
         
     | 
| 
       4002 
4879 
     | 
    
         
             
            #       [
         
     | 
| 
       4003 
4880 
     | 
    
         
             
            #         1,
         
     | 
| 
       4004 
     | 
    
         
            -
            #          
     | 
| 
       4005 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       4006 
     | 
    
         
            -
            #         5,
         
     | 
| 
       4007 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4881 
     | 
    
         
            +
            #         5
         
     | 
| 
       4008 
4882 
     | 
    
         
             
            #       ],
         
     | 
| 
       4009 
4883 
     | 
    
         
             
            #       [
         
     | 
| 
       4010 
4884 
     | 
    
         
             
            #         2,
         
     | 
| 
       4011 
     | 
    
         
            -
            #          
     | 
| 
       4012 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       4013 
     | 
    
         
            -
            #         10,
         
     | 
| 
       4014 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4885 
     | 
    
         
            +
            #         10
         
     | 
| 
       4015 
4886 
     | 
    
         
             
            #       ],
         
     | 
| 
       4016 
4887 
     | 
    
         
             
            #       [
         
     | 
| 
       4017 
4888 
     | 
    
         
             
            #         3,
         
     | 
| 
       4018 
     | 
    
         
            -
            #          
     | 
| 
       4019 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       4020 
     | 
    
         
            -
            #         15,
         
     | 
| 
       4021 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4889 
     | 
    
         
            +
            #         15
         
     | 
| 
       4022 
4890 
     | 
    
         
             
            #       ],
         
     | 
| 
       4023 
4891 
     | 
    
         
             
            #       [
         
     | 
| 
       4024 
4892 
     | 
    
         
             
            #         4,
         
     | 
| 
       4025 
     | 
    
         
            -
            #          
     | 
| 
       4026 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       4027 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4028 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4893 
     | 
    
         
            +
            #         3
         
     | 
| 
       4029 
4894 
     | 
    
         
             
            #       ],
         
     | 
| 
       4030 
4895 
     | 
    
         
             
            #       [
         
     | 
| 
       4031 
4896 
     | 
    
         
             
            #         5,
         
     | 
| 
       4032 
     | 
    
         
            -
            #          
     | 
| 
       4033 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       4034 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4035 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4897 
     | 
    
         
            +
            #         3
         
     | 
| 
       4036 
4898 
     | 
    
         
             
            #       ]
         
     | 
| 
       4037 
4899 
     | 
    
         
             
            #     ],
         
     | 
| 
       4038 
4900 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -4075,7 +4937,7 @@ the averaged <code class="docutils literal"><span class="pre">n_likes</span></co 
     | 
|
| 
       4075 
4937 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       4076 
4938 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4077 
4939 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       4078 
     | 
    
         
            -
              -- 
     | 
| 
      
 4940 
     | 
    
         
            +
              --output_columns _id,n_likes \
         
     | 
| 
       4079 
4941 
     | 
    
         
             
              --drilldown tag \
         
     | 
| 
       4080 
4942 
     | 
    
         
             
              --drilldown_calc_types MAX,MIN,SUM,AVG \
         
     | 
| 
       4081 
4943 
     | 
    
         
             
              --drilldown_calc_target n_likes \
         
     | 
| 
         @@ -4097,56 +4959,29 @@ the averaged <code class="docutils literal"><span class="pre">n_likes</span></co 
     | 
|
| 
       4097 
4959 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       4098 
4960 
     | 
    
         
             
            #         ],
         
     | 
| 
       4099 
4961 
     | 
    
         
             
            #         [
         
     | 
| 
       4100 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       4101 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4102 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4103 
     | 
    
         
            -
            #         [
         
     | 
| 
       4104 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       4105 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       4106 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4107 
     | 
    
         
            -
            #         [
         
     | 
| 
       4108 
4962 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       4109 
4963 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       4110 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4111 
     | 
    
         
            -
            #         [
         
     | 
| 
       4112 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       4113 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4114 
4964 
     | 
    
         
             
            #         ]
         
     | 
| 
       4115 
4965 
     | 
    
         
             
            #       ],
         
     | 
| 
       4116 
4966 
     | 
    
         
             
            #       [
         
     | 
| 
       4117 
4967 
     | 
    
         
             
            #         1,
         
     | 
| 
       4118 
     | 
    
         
            -
            #          
     | 
| 
       4119 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       4120 
     | 
    
         
            -
            #         5,
         
     | 
| 
       4121 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 4968 
     | 
    
         
            +
            #         5
         
     | 
| 
       4122 
4969 
     | 
    
         
             
            #       ],
         
     | 
| 
       4123 
4970 
     | 
    
         
             
            #       [
         
     | 
| 
       4124 
4971 
     | 
    
         
             
            #         2,
         
     | 
| 
       4125 
     | 
    
         
            -
            #          
     | 
| 
       4126 
     | 
    
         
            -
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
       4127 
     | 
    
         
            -
            #         10,
         
     | 
| 
       4128 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4972 
     | 
    
         
            +
            #         10
         
     | 
| 
       4129 
4973 
     | 
    
         
             
            #       ],
         
     | 
| 
       4130 
4974 
     | 
    
         
             
            #       [
         
     | 
| 
       4131 
4975 
     | 
    
         
             
            #         3,
         
     | 
| 
       4132 
     | 
    
         
            -
            #          
     | 
| 
       4133 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       4134 
     | 
    
         
            -
            #         15,
         
     | 
| 
       4135 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 4976 
     | 
    
         
            +
            #         15
         
     | 
| 
       4136 
4977 
     | 
    
         
             
            #       ],
         
     | 
| 
       4137 
4978 
     | 
    
         
             
            #       [
         
     | 
| 
       4138 
4979 
     | 
    
         
             
            #         4,
         
     | 
| 
       4139 
     | 
    
         
            -
            #          
     | 
| 
       4140 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       4141 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4142 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4980 
     | 
    
         
            +
            #         3
         
     | 
| 
       4143 
4981 
     | 
    
         
             
            #       ],
         
     | 
| 
       4144 
4982 
     | 
    
         
             
            #       [
         
     | 
| 
       4145 
4983 
     | 
    
         
             
            #         5,
         
     | 
| 
       4146 
     | 
    
         
            -
            #          
     | 
| 
       4147 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       4148 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4149 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 4984 
     | 
    
         
            +
            #         3
         
     | 
| 
       4150 
4985 
     | 
    
         
             
            #       ]
         
     | 
| 
       4151 
4986 
     | 
    
         
             
            #     ],
         
     | 
| 
       4152 
4987 
     | 
    
         
             
            #     [
         
     | 
| 
         @@ -4218,7 +5053,10 @@ that only <code class="docutils literal"><span class="pre">COUNT</span></code> i 
     | 
|
| 
       4218 
5053 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">COUNT</span></code> is always enabled.</p>
         
     | 
| 
       4219 
5054 
     | 
    
         
             
            </div>
         
     | 
| 
       4220 
5055 
     | 
    
         
             
            <div class="section" id="drilldown-calc-target">
         
     | 
| 
       4221 
     | 
    
         
            -
            <span id="select-drilldown-calc-target"></span><h4>7.3.54.4. 
     | 
| 
      
 5056 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5057 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5058 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.3.</span></p>
         
     | 
| 
      
 5059 
     | 
    
         
            +
            </div>
         
     | 
| 
       4222 
5060 
     | 
    
         
             
            <p>Specifies the target column for <a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a>.</p>
         
     | 
| 
       4223 
5061 
     | 
    
         
             
            <p>If you specify a calculation type that needs a target column such as
         
     | 
| 
       4224 
5062 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">MAX</span></code> in <a class="reference internal" href="#select-drilldown-calc-types"><span class="std std-ref">drilldown_calc_types</span></a> but you omit
         
     | 
| 
         @@ -4234,9 +5072,98 @@ that only <code class="docutils literal"><span class="pre">COUNT</span></code> i 
     | 
|
| 
       4234 
5072 
     | 
    
         
             
            <p>The default value of <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> is <code class="docutils literal"><span class="pre">null</span></code>. It means
         
     | 
| 
       4235 
5073 
     | 
    
         
             
            that no calculation target column is specified.</p>
         
     | 
| 
       4236 
5074 
     | 
    
         
             
            </div>
         
     | 
| 
      
 5075 
     | 
    
         
            +
            <div class="section" id="drilldown-filter">
         
     | 
| 
      
 5076 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5077 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5078 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.3.</span></p>
         
     | 
| 
      
 5079 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5080 
     | 
    
         
            +
            <p>Specifies the filter condition against the drilled down result.</p>
         
     | 
| 
      
 5081 
     | 
    
         
            +
            <p>The syntax is <a class="reference internal" href="../grn_expr/script_syntax.html"><span class="doc">Script syntax</span></a>. It's the same
         
     | 
| 
      
 5082 
     | 
    
         
            +
            as <a class="reference internal" href="#select-filter"><span class="std std-ref">filter</span></a>.</p>
         
     | 
| 
      
 5083 
     | 
    
         
            +
            <p>Here is an example to suppress tags that are occurred only once:</p>
         
     | 
| 
      
 5084 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 5085 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 5086 
     | 
    
         
            +
              --limit -1 \
         
     | 
| 
      
 5087 
     | 
    
         
            +
              --output_columns _id,tag \
         
     | 
| 
      
 5088 
     | 
    
         
            +
              --drilldown tag \
         
     | 
| 
      
 5089 
     | 
    
         
            +
              --drilldown_filter '_nsubrecs > 1' \
         
     | 
| 
      
 5090 
     | 
    
         
            +
              --drilldown_output_columns _key,_nsubrecs
         
     | 
| 
      
 5091 
     | 
    
         
            +
            # [
         
     | 
| 
      
 5092 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 5093 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 5094 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 5095 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 5096 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 5097 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 5098 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 5099 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5100 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 5101 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5102 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5103 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5104 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 5105 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 5106 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5107 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5108 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 5109 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 5110 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 5111 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5112 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5113 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 5114 
     | 
    
         
            +
            #         "Hello"
         
     | 
| 
      
 5115 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5116 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5117 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 5118 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 5119 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5120 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5121 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5122 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 5123 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5124 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5125 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 5126 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 5127 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5128 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5129 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 5130 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 5131 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 5132 
     | 
    
         
            +
            #     ],
         
     | 
| 
      
 5133 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 5134 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5135 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 5136 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5137 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5138 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5139 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 5140 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 5141 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5142 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5143 
     | 
    
         
            +
            #           "_nsubrecs",
         
     | 
| 
      
 5144 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 5145 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 5146 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5147 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5148 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 5149 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 5150 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5151 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5152 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 5153 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 5154 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 5155 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 5156 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 5157 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 5158 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 5159 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5160 
     | 
    
         
            +
            </div>
         
     | 
| 
       4237 
5161 
     | 
    
         
             
            </div>
         
     | 
| 
       4238 
5162 
     | 
    
         
             
            <div class="section" id="advanced-drilldown-related-parameters">
         
     | 
| 
       4239 
     | 
    
         
            -
            <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.54.4. 
     | 
| 
      
 5163 
     | 
    
         
            +
            <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.54.4.8. Advanced drilldown related parameters<a class="headerlink" href="#advanced-drilldown-related-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 5164 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5165 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 4.0.8.</span></p>
         
     | 
| 
      
 5166 
     | 
    
         
            +
            </div>
         
     | 
| 
       4240 
5167 
     | 
    
         
             
            <p>You can get multiple drilldown results by specifying multiple group
         
     | 
| 
       4241 
5168 
     | 
    
         
             
            keys by <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a>. But you need to use the same
         
     | 
| 
       4242 
5169 
     | 
    
         
             
            configuration for all drilldowns. For example,
         
     | 
| 
         @@ -4246,12 +5173,19 @@ parameters:</p> 
     | 
|
| 
       4246 
5173 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4247 
5174 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4248 
5175 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></li>
         
     | 
| 
       4249 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]. 
     | 
| 
      
 5176 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code></li>
         
     | 
| 
       4250 
5177 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></li>
         
     | 
| 
       4251 
5178 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code></li>
         
     | 
| 
       4252 
5179 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code></li>
         
     | 
| 
       4253 
5180 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code></li>
         
     | 
| 
       4254 
5181 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code></li>
         
     | 
| 
      
 5182 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code></li>
         
     | 
| 
      
 5183 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
      
 5184 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code></li>
         
     | 
| 
      
 5185 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code></li>
         
     | 
| 
      
 5186 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code></li>
         
     | 
| 
      
 5187 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code></li>
         
     | 
| 
      
 5188 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code></li>
         
     | 
| 
       4255 
5189 
     | 
    
         
             
            </ul>
         
     | 
| 
       4256 
5190 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4257 
5191 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">${LABEL}</span></code> is a variable. You can use the following characters for
         
     | 
| 
         @@ -4264,6 +5198,15 @@ parameters:</p> 
     | 
|
| 
       4264 
5198 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">_</span></code></li>
         
     | 
| 
       4265 
5199 
     | 
    
         
             
            </ul>
         
     | 
| 
       4266 
5200 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
      
 5201 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">${NAME}</span></code> is a variable. You can use the following characters for
         
     | 
| 
      
 5202 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">${NAME}</span></code>:</p>
         
     | 
| 
      
 5203 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 5204 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 5205 
     | 
    
         
            +
            <li>Alphabets</li>
         
     | 
| 
      
 5206 
     | 
    
         
            +
            <li>Digits</li>
         
     | 
| 
      
 5207 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">_</span></code></li>
         
     | 
| 
      
 5208 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 5209 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
       4267 
5210 
     | 
    
         
             
            <div class="admonition note">
         
     | 
| 
       4268 
5211 
     | 
    
         
             
            <p class="first admonition-title">Note</p>
         
     | 
| 
       4269 
5212 
     | 
    
         
             
            <p class="last">You can use more characters but it's better that you use only these
         
     | 
| 
         @@ -4291,11 +5234,28 @@ is used for output columns.</p> 
     | 
|
| 
       4291 
5234 
     | 
    
         
             
            to use it for the following parameters:</p>
         
     | 
| 
       4292 
5235 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4293 
5236 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4294 
     | 
    
         
            -
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}]. 
     | 
| 
      
 5237 
     | 
    
         
            +
            <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>
         
     | 
| 
       4295 
5238 
     | 
    
         
             
            <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>
         
     | 
| 
       4296 
5239 
     | 
    
         
             
            <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>
         
     | 
| 
       4297 
5240 
     | 
    
         
             
            <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>
         
     | 
| 
       4298 
5241 
     | 
    
         
             
            <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>
         
     | 
| 
      
 5242 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 5243 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 5244 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 5245 
     | 
    
         
            +
            <p>See document for corresponding <code class="docutils literal"><span class="pre">columns[${NAME}].XXX</span></code> parameter to
         
     | 
| 
      
 5246 
     | 
    
         
            +
            know how to use it for the following parameters:</p>
         
     | 
| 
      
 5247 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 5248 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 5249 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].flags=COLUMN_SCALAR</span></code>:
         
     | 
| 
      
 5250 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-flags"><span class="std std-ref">columns[${NAME}].flags</span></a></li>
         
     | 
| 
      
 5251 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].type=null</span></code>:
         
     | 
| 
      
 5252 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-type"><span class="std std-ref">columns[${NAME}].type</span></a></li>
         
     | 
| 
      
 5253 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].value=null</span></code>:
         
     | 
| 
      
 5254 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-value"><span class="std std-ref">columns[${NAME}].value</span></a></li>
         
     | 
| 
      
 5255 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.sort_keys=null</span></code>:
         
     | 
| 
      
 5256 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-window-sort-keys"><span class="std std-ref">columns[${NAME}].window.sort_keys</span></a></li>
         
     | 
| 
      
 5257 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].window.group_keys=null</span></code>:
         
     | 
| 
      
 5258 
     | 
    
         
            +
            <a class="reference internal" href="#select-columns-name-window-group-keys"><span class="std std-ref">columns[${NAME}].window.group_keys</span></a></li>
         
     | 
| 
       4299 
5259 
     | 
    
         
             
            </ul>
         
     | 
| 
       4300 
5260 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4301 
5261 
     | 
    
         
             
            <p>The following parameters are needed more description:</p>
         
     | 
| 
         @@ -4303,11 +5263,15 @@ to use it for the following parameters:</p> 
     | 
|
| 
       4303 
5263 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4304 
5264 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></li>
         
     | 
| 
       4305 
5265 
     | 
    
         
             
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></li>
         
     | 
| 
      
 5266 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage=null</span></code></li>
         
     | 
| 
       4306 
5267 
     | 
    
         
             
            </ul>
         
     | 
| 
       4307 
5268 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4308 
5269 
     | 
    
         
             
            <p>Output format is different a bit. It's also needed more description.</p>
         
     | 
| 
       4309 
5270 
     | 
    
         
             
            <div class="section" id="drilldowns-label-keys">
         
     | 
| 
       4310 
     | 
    
         
            -
            <span id="select- 
     | 
| 
      
 5271 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5272 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5273 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 4.0.8.</span></p>
         
     | 
| 
      
 5274 
     | 
    
         
            +
            </div>
         
     | 
| 
       4311 
5275 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> can specify multiple keys for multiple
         
     | 
| 
       4312 
5276 
     | 
    
         
             
            drilldowns. But it can't specify multiple keys for one drilldown.</p>
         
     | 
| 
       4313 
5277 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code> can't specify multiple keys for multiple
         
     | 
| 
         @@ -4318,9 +5282,9 @@ column values:</p> 
     | 
|
| 
       4318 
5282 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       4319 
5283 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4320 
5284 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
       4321 
     | 
    
         
            -
              -- 
     | 
| 
       4322 
     | 
    
         
            -
              -- 
     | 
| 
       4323 
     | 
    
         
            -
              -- 
     | 
| 
      
 5285 
     | 
    
         
            +
              --output_columns tag,n_likes \
         
     | 
| 
      
 5286 
     | 
    
         
            +
              --drilldowns[tag.n_likes].keys tag,n_likes \
         
     | 
| 
      
 5287 
     | 
    
         
            +
              --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
         
     | 
| 
       4324 
5288 
     | 
    
         
             
            # [
         
     | 
| 
       4325 
5289 
     | 
    
         
             
            #   [
         
     | 
| 
       4326 
5290 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -4334,60 +5298,33 @@ column values:</p> 
     | 
|
| 
       4334 
5298 
     | 
    
         
             
            #       ],
         
     | 
| 
       4335 
5299 
     | 
    
         
             
            #       [
         
     | 
| 
       4336 
5300 
     | 
    
         
             
            #         [
         
     | 
| 
       4337 
     | 
    
         
            -
            #           " 
     | 
| 
       4338 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       4339 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4340 
     | 
    
         
            -
            #         [
         
     | 
| 
       4341 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
      
 5301 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
       4342 
5302 
     | 
    
         
             
            #           "ShortText"
         
     | 
| 
       4343 
5303 
     | 
    
         
             
            #         ],
         
     | 
| 
       4344 
5304 
     | 
    
         
             
            #         [
         
     | 
| 
       4345 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       4346 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       4347 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4348 
     | 
    
         
            -
            #         [
         
     | 
| 
       4349 
5305 
     | 
    
         
             
            #           "n_likes",
         
     | 
| 
       4350 
5306 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       4351 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4352 
     | 
    
         
            -
            #         [
         
     | 
| 
       4353 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       4354 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4355 
5307 
     | 
    
         
             
            #         ]
         
     | 
| 
       4356 
5308 
     | 
    
         
             
            #       ],
         
     | 
| 
       4357 
5309 
     | 
    
         
             
            #       [
         
     | 
| 
       4358 
     | 
    
         
            -
            #          
     | 
| 
       4359 
     | 
    
         
            -
            #          
     | 
| 
       4360 
     | 
    
         
            -
            #         "Welcome! This is my first post!",
         
     | 
| 
       4361 
     | 
    
         
            -
            #         5,
         
     | 
| 
       4362 
     | 
    
         
            -
            #         "Hello"
         
     | 
| 
      
 5310 
     | 
    
         
            +
            #         "Hello",
         
     | 
| 
      
 5311 
     | 
    
         
            +
            #         5
         
     | 
| 
       4363 
5312 
     | 
    
         
             
            #       ],
         
     | 
| 
       4364 
5313 
     | 
    
         
             
            #       [
         
     | 
| 
       4365 
     | 
    
         
            -
            #         2,
         
     | 
| 
       4366 
5314 
     | 
    
         
             
            #         "Groonga",
         
     | 
| 
       4367 
     | 
    
         
            -
            #          
     | 
| 
       4368 
     | 
    
         
            -
            #         10,
         
     | 
| 
       4369 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 5315 
     | 
    
         
            +
            #         10
         
     | 
| 
       4370 
5316 
     | 
    
         
             
            #       ],
         
     | 
| 
       4371 
5317 
     | 
    
         
             
            #       [
         
     | 
| 
       4372 
     | 
    
         
            -
            #          
     | 
| 
       4373 
     | 
    
         
            -
            #          
     | 
| 
       4374 
     | 
    
         
            -
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
       4375 
     | 
    
         
            -
            #         15,
         
     | 
| 
       4376 
     | 
    
         
            -
            #         "Groonga"
         
     | 
| 
      
 5318 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 5319 
     | 
    
         
            +
            #         15
         
     | 
| 
       4377 
5320 
     | 
    
         
             
            #       ],
         
     | 
| 
       4378 
5321 
     | 
    
         
             
            #       [
         
     | 
| 
       4379 
     | 
    
         
            -
            #          
     | 
| 
       4380 
     | 
    
         
            -
            #          
     | 
| 
       4381 
     | 
    
         
            -
            #         "I migrated all Senna system!",
         
     | 
| 
       4382 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4383 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 5322 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 5323 
     | 
    
         
            +
            #         3
         
     | 
| 
       4384 
5324 
     | 
    
         
             
            #       ],
         
     | 
| 
       4385 
5325 
     | 
    
         
             
            #       [
         
     | 
| 
       4386 
     | 
    
         
            -
            #          
     | 
| 
       4387 
     | 
    
         
            -
            #          
     | 
| 
       4388 
     | 
    
         
            -
            #         "I also migrated all Tritonn system!",
         
     | 
| 
       4389 
     | 
    
         
            -
            #         3,
         
     | 
| 
       4390 
     | 
    
         
            -
            #         "Senna"
         
     | 
| 
      
 5326 
     | 
    
         
            +
            #         "Senna",
         
     | 
| 
      
 5327 
     | 
    
         
            +
            #         3
         
     | 
| 
       4391 
5328 
     | 
    
         
             
            #       ]
         
     | 
| 
       4392 
5329 
     | 
    
         
             
            #     ],
         
     | 
| 
       4393 
5330 
     | 
    
         
             
            #     {
         
     | 
| 
         @@ -4437,7 +5374,7 @@ column values:</p> 
     | 
|
| 
       4437 
5374 
     | 
    
         
             
            </div>
         
     | 
| 
       4438 
5375 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">tag.n_likes</span></code> is used as the label for the drilldown parameters
         
     | 
| 
       4439 
5376 
     | 
    
         
             
            group. You can refer grouped keys by <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> syntax in
         
     | 
| 
       4440 
     | 
    
         
            -
            <a class="reference internal" href="#select- 
     | 
| 
      
 5377 
     | 
    
         
            +
            <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">${KEY_NAME}</span></code> is a
         
     | 
| 
       4441 
5378 
     | 
    
         
             
            column name to be used by group key. <code class="docutils literal"><span class="pre">tag</span></code> and <code class="docutils literal"><span class="pre">n_likes</span></code> are
         
     | 
| 
       4442 
5379 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> in this case.</p>
         
     | 
| 
       4443 
5380 
     | 
    
         
             
            <p>Note that you can't use <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> syntax when you just
         
     | 
| 
         @@ -4446,7 +5383,10 @@ specify one key as <code class="docutils literal"><span class="pre">drilldowns[$ 
     | 
|
| 
       4446 
5383 
     | 
    
         
             
            <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a>.</p>
         
     | 
| 
       4447 
5384 
     | 
    
         
             
            </div>
         
     | 
| 
       4448 
5385 
     | 
    
         
             
            <div class="section" id="drilldowns-label-output-columns">
         
     | 
| 
       4449 
     | 
    
         
            -
            <span id="select- 
     | 
| 
      
 5386 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5387 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5388 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 4.0.8.</span></p>
         
     | 
| 
      
 5389 
     | 
    
         
            +
            </div>
         
     | 
| 
       4450 
5390 
     | 
    
         
             
            <p>It's almost same as <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a>. The
         
     | 
| 
       4451 
5391 
     | 
    
         
             
            difference between <a class="reference internal" href="#select-drilldown-output-columns"><span class="std std-ref">drilldown_output_columns</span></a> and
         
     | 
| 
       4452 
5392 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> is how to refer group keys.</p>
         
     | 
| 
         @@ -4454,15 +5394,15 @@ difference between <a class="reference internal" href="#select-drilldown-output- 
     | 
|
| 
       4454 
5394 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><span class="doc">Pseudo column</span></a> to refer group
         
     | 
| 
       4455 
5395 
     | 
    
         
             
            key. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code> also uses <code class="docutils literal"><span class="pre">_key</span></code>
         
     | 
| 
       4456 
5396 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><span class="doc">Pseudo column</span></a> to refer group key when you specify
         
     | 
| 
       4457 
     | 
    
         
            -
            only one group key by <a class="reference internal" href="#select- 
     | 
| 
      
 5397 
     | 
    
         
            +
            only one group key by <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>.</p>
         
     | 
| 
       4458 
5398 
     | 
    
         
             
            <p>Here is an example to refer single group key by <code class="docutils literal"><span class="pre">_key</span></code>
         
     | 
| 
       4459 
5399 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><span class="doc">Pseudo column</span></a>:</p>
         
     | 
| 
       4460 
5400 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       4461 
5401 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4462 
5402 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       4463 
     | 
    
         
            -
              -- 
     | 
| 
       4464 
     | 
    
         
            -
              -- 
     | 
| 
       4465 
     | 
    
         
            -
              -- 
     | 
| 
      
 5403 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
      
 5404 
     | 
    
         
            +
              --drilldowns[tag.n_likes].keys tag,n_likes \
         
     | 
| 
      
 5405 
     | 
    
         
            +
              --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes
         
     | 
| 
       4466 
5406 
     | 
    
         
             
            # [
         
     | 
| 
       4467 
5407 
     | 
    
         
             
            #   [
         
     | 
| 
       4468 
5408 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -4478,22 +5418,6 @@ only one group key by <a class="reference internal" href="#select-drilldown-labe 
     | 
|
| 
       4478 
5418 
     | 
    
         
             
            #         [
         
     | 
| 
       4479 
5419 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       4480 
5420 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       4481 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4482 
     | 
    
         
            -
            #         [
         
     | 
| 
       4483 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       4484 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4485 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4486 
     | 
    
         
            -
            #         [
         
     | 
| 
       4487 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       4488 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       4489 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4490 
     | 
    
         
            -
            #         [
         
     | 
| 
       4491 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       4492 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       4493 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4494 
     | 
    
         
            -
            #         [
         
     | 
| 
       4495 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       4496 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4497 
5421 
     | 
    
         
             
            #         ]
         
     | 
| 
       4498 
5422 
     | 
    
         
             
            #       ]
         
     | 
| 
       4499 
5423 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -4538,15 +5462,15 @@ only one group key by <a class="reference internal" href="#select-drilldown-labe 
     | 
|
| 
       4538 
5462 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><span class="doc">Pseudo column</span></a> in
         
     | 
| 
       4539 
5463 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code>. You need to use
         
     | 
| 
       4540 
5464 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> syntax. <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> is a column name that is
         
     | 
| 
       4541 
     | 
    
         
            -
            used for group key in <a class="reference internal" href="#select- 
     | 
| 
      
 5465 
     | 
    
         
            +
            used for group key in <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>.</p>
         
     | 
| 
       4542 
5466 
     | 
    
         
             
            <p>Here is an example to refer each group key in multiple group keys by
         
     | 
| 
       4543 
5467 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> syntax:</p>
         
     | 
| 
       4544 
5468 
     | 
    
         
             
            <p>Execution example:</p>
         
     | 
| 
       4545 
5469 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
       4546 
5470 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
       4547 
     | 
    
         
            -
              -- 
     | 
| 
       4548 
     | 
    
         
            -
              -- 
     | 
| 
       4549 
     | 
    
         
            -
              -- 
     | 
| 
      
 5471 
     | 
    
         
            +
              --output_columns _id \
         
     | 
| 
      
 5472 
     | 
    
         
            +
              --drilldowns[tag.n_likes].keys tag,n_likes \
         
     | 
| 
      
 5473 
     | 
    
         
            +
              --drilldowns[tag.n_likes].output_columns _value.tag,_value.n_likes
         
     | 
| 
       4550 
5474 
     | 
    
         
             
            # [
         
     | 
| 
       4551 
5475 
     | 
    
         
             
            #   [
         
     | 
| 
       4552 
5476 
     | 
    
         
             
            #     0,
         
     | 
| 
         @@ -4562,22 +5486,6 @@ used for group key in <a class="reference internal" href="#select-drilldown-labe 
     | 
|
| 
       4562 
5486 
     | 
    
         
             
            #         [
         
     | 
| 
       4563 
5487 
     | 
    
         
             
            #           "_id",
         
     | 
| 
       4564 
5488 
     | 
    
         
             
            #           "UInt32"
         
     | 
| 
       4565 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4566 
     | 
    
         
            -
            #         [
         
     | 
| 
       4567 
     | 
    
         
            -
            #           "_key",
         
     | 
| 
       4568 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4569 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4570 
     | 
    
         
            -
            #         [
         
     | 
| 
       4571 
     | 
    
         
            -
            #           "content",
         
     | 
| 
       4572 
     | 
    
         
            -
            #           "Text"
         
     | 
| 
       4573 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4574 
     | 
    
         
            -
            #         [
         
     | 
| 
       4575 
     | 
    
         
            -
            #           "n_likes",
         
     | 
| 
       4576 
     | 
    
         
            -
            #           "UInt32"
         
     | 
| 
       4577 
     | 
    
         
            -
            #         ],
         
     | 
| 
       4578 
     | 
    
         
            -
            #         [
         
     | 
| 
       4579 
     | 
    
         
            -
            #           "tag",
         
     | 
| 
       4580 
     | 
    
         
            -
            #           "ShortText"
         
     | 
| 
       4581 
5489 
     | 
    
         
             
            #         ]
         
     | 
| 
       4582 
5490 
     | 
    
         
             
            #       ]
         
     | 
| 
       4583 
5491 
     | 
    
         
             
            #     ],
         
     | 
| 
         @@ -4627,20 +5535,184 @@ group keys. You can see byte sequence of the vector value by 
     | 
|
| 
       4627 
5535 
     | 
    
         
             
            referring <code class="docutils literal"><span class="pre">_key</span></code> in <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code>.</p>
         
     | 
| 
       4628 
5536 
     | 
    
         
             
            <p>There is one grouped record in <code class="docutils literal"><span class="pre">_value</span></code> to refer each grouped
         
     | 
| 
       4629 
5537 
     | 
    
         
             
            values when you specify multiple group keys to
         
     | 
| 
       4630 
     | 
    
         
            -
            <a class="reference internal" href="#select- 
     | 
| 
      
 5538 
     | 
    
         
            +
            <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>. So you can refer each group key
         
     | 
| 
       4631 
5539 
     | 
    
         
             
            by <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> syntax.</p>
         
     | 
| 
       4632 
5540 
     | 
    
         
             
            <p class="last">On the other hand, there is no grouped record in <code class="docutils literal"><span class="pre">_value</span></code> when
         
     | 
| 
       4633 
5541 
     | 
    
         
             
            you specify only one group key to
         
     | 
| 
       4634 
     | 
    
         
            -
            <a class="reference internal" href="#select- 
     | 
| 
      
 5542 
     | 
    
         
            +
            <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>. So you can't refer group key by
         
     | 
| 
       4635 
5543 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> syntax.</p>
         
     | 
| 
       4636 
5544 
     | 
    
         
             
            </div>
         
     | 
| 
       4637 
5545 
     | 
    
         
             
            </div>
         
     | 
| 
      
 5546 
     | 
    
         
            +
            <div class="section" id="drilldowns-label-columns-name-stage">
         
     | 
| 
      
 5547 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5548 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5549 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.5.</span></p>
         
     | 
| 
      
 5550 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5551 
     | 
    
         
            +
            <p>Specifies when the dynamic column is created. This is a required
         
     | 
| 
      
 5552 
     | 
    
         
            +
            parameter to create a dynamic column.</p>
         
     | 
| 
      
 5553 
     | 
    
         
            +
            <p>Here are available stages:</p>
         
     | 
| 
      
 5554 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 5555 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 5556 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5557 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5558 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 5559 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 5560 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Name</th>
         
     | 
| 
      
 5561 
     | 
    
         
            +
            <th class="head">Description</th>
         
     | 
| 
      
 5562 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5563 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 5564 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 5565 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">initial</span></code></td>
         
     | 
| 
      
 5566 
     | 
    
         
            +
            <td>Dynamic column is created at first.</td>
         
     | 
| 
      
 5567 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5568 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 5569 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 5570 
     | 
    
         
            +
            <p>Here is one drilldown process flow with dynamic column creation
         
     | 
| 
      
 5571 
     | 
    
         
            +
            points. You should choose stage as late as possible:</p>
         
     | 
| 
      
 5572 
     | 
    
         
            +
            <blockquote>
         
     | 
| 
      
 5573 
     | 
    
         
            +
            <div><ol class="arabic simple">
         
     | 
| 
      
 5574 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>,
         
     | 
| 
      
 5575 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_types</span></code> and
         
     | 
| 
      
 5576 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].calc_target</span></code>.</li>
         
     | 
| 
      
 5577 
     | 
    
         
            +
            <li>Creates dynamic columns for <code class="docutils literal"><span class="pre">initial</span></code> stage. All drilldown
         
     | 
| 
      
 5578 
     | 
    
         
            +
            result records have these dynamic columns.</li>
         
     | 
| 
      
 5579 
     | 
    
         
            +
            <li>Evaluates <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code>. You can use dynamic
         
     | 
| 
      
 5580 
     | 
    
         
            +
            columns created in <code class="docutils literal"><span class="pre">initial</span></code> stage.</li>
         
     | 
| 
      
 5581 
     | 
    
         
            +
            <li>Evaluates <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].sort_keys</span></code>,
         
     | 
| 
      
 5582 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].offset</span></code> and
         
     | 
| 
      
 5583 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].limit</span></code>. You can use dynamic columns
         
     | 
| 
      
 5584 
     | 
    
         
            +
            created in <code class="docutils literal"><span class="pre">initial</span></code> stage.</li>
         
     | 
| 
      
 5585 
     | 
    
         
            +
            <li>Evaluates <a class="reference internal" href="#select-drilldowns-label-output-columns"><span class="std std-ref">drilldowns[${LABEL}].output_columns</span></a>. You can
         
     | 
| 
      
 5586 
     | 
    
         
            +
            use dynamic columns created in <code class="docutils literal"><span class="pre">initial</span></code> stage.</li>
         
     | 
| 
      
 5587 
     | 
    
         
            +
            </ol>
         
     | 
| 
      
 5588 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 5589 
     | 
    
         
            +
            <p>Here is a <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].columns[${NAME}].stage</span></code> example. It
         
     | 
| 
      
 5590 
     | 
    
         
            +
            creates <code class="docutils literal"><span class="pre">is_popular</span></code> column at <code class="docutils literal"><span class="pre">initial</span></code> stage. You can use
         
     | 
| 
      
 5591 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">is_popular</span></code> in all parameters such as
         
     | 
| 
      
 5592 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].filter</span></code> and
         
     | 
| 
      
 5593 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code>:</p>
         
     | 
| 
      
 5594 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 5595 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre><span></span>select Entries \
         
     | 
| 
      
 5596 
     | 
    
         
            +
              --drilldowns[tag].keys tag \
         
     | 
| 
      
 5597 
     | 
    
         
            +
              --drilldowns[tag].columns[is_popular].stage initial \
         
     | 
| 
      
 5598 
     | 
    
         
            +
              --drilldowns[tag].columns[is_popular].type Bool \
         
     | 
| 
      
 5599 
     | 
    
         
            +
              --drilldowns[tag].columns[is_popular].value '_nsubrecs > 1' \
         
     | 
| 
      
 5600 
     | 
    
         
            +
              --drilldowns[tag].filter is_popular \
         
     | 
| 
      
 5601 
     | 
    
         
            +
              --drilldowns[tag].output_columns _key,is_popular,_nsubrecs
         
     | 
| 
      
 5602 
     | 
    
         
            +
            # [
         
     | 
| 
      
 5603 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 5604 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 5605 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 5606 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 5607 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 5608 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 5609 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 5610 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5611 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 5612 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5613 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5614 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5615 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 5616 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 5617 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5618 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5619 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 5620 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 5621 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5622 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5623 
     | 
    
         
            +
            #           "content",
         
     | 
| 
      
 5624 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 5625 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5626 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5627 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 5628 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 5629 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5630 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5631 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 5632 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 5633 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 5634 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5635 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5636 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 5637 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 5638 
     | 
    
         
            +
            #         "Welcome! This is my first post!",
         
     | 
| 
      
 5639 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 5640 
     | 
    
         
            +
            #         "Hello"
         
     | 
| 
      
 5641 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5642 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5643 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 5644 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 5645 
     | 
    
         
            +
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
      
 5646 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 5647 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 5648 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5649 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5650 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5651 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 5652 
     | 
    
         
            +
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
      
 5653 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 5654 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 5655 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5656 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5657 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 5658 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 5659 
     | 
    
         
            +
            #         "I migrated all Senna system!",
         
     | 
| 
      
 5660 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5661 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 5662 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 5663 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 5664 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 5665 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 5666 
     | 
    
         
            +
            #         "I also migrated all Tritonn system!",
         
     | 
| 
      
 5667 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 5668 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 5669 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 5670 
     | 
    
         
            +
            #     ],
         
     | 
| 
      
 5671 
     | 
    
         
            +
            #     {
         
     | 
| 
      
 5672 
     | 
    
         
            +
            #       "tag": [
         
     | 
| 
      
 5673 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5674 
     | 
    
         
            +
            #           2
         
     | 
| 
      
 5675 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5676 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5677 
     | 
    
         
            +
            #           [
         
     | 
| 
      
 5678 
     | 
    
         
            +
            #             "_key",
         
     | 
| 
      
 5679 
     | 
    
         
            +
            #             "ShortText"
         
     | 
| 
      
 5680 
     | 
    
         
            +
            #           ],
         
     | 
| 
      
 5681 
     | 
    
         
            +
            #           [
         
     | 
| 
      
 5682 
     | 
    
         
            +
            #             "is_popular",
         
     | 
| 
      
 5683 
     | 
    
         
            +
            #             "Bool"
         
     | 
| 
      
 5684 
     | 
    
         
            +
            #           ],
         
     | 
| 
      
 5685 
     | 
    
         
            +
            #           [
         
     | 
| 
      
 5686 
     | 
    
         
            +
            #             "_nsubrecs",
         
     | 
| 
      
 5687 
     | 
    
         
            +
            #             "Int32"
         
     | 
| 
      
 5688 
     | 
    
         
            +
            #           ]
         
     | 
| 
      
 5689 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5690 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5691 
     | 
    
         
            +
            #           "Groonga",
         
     | 
| 
      
 5692 
     | 
    
         
            +
            #           true,
         
     | 
| 
      
 5693 
     | 
    
         
            +
            #           2
         
     | 
| 
      
 5694 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 5695 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 5696 
     | 
    
         
            +
            #           "Senna",
         
     | 
| 
      
 5697 
     | 
    
         
            +
            #           true,
         
     | 
| 
      
 5698 
     | 
    
         
            +
            #           2
         
     | 
| 
      
 5699 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 5700 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 5701 
     | 
    
         
            +
            #     }
         
     | 
| 
      
 5702 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 5703 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 5704 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 5705 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5706 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5707 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 4.0.8.</span></p>
         
     | 
| 
      
 5708 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5709 
     | 
    
         
            +
            </div>
         
     | 
| 
       4638 
5710 
     | 
    
         
             
            <div class="section" id="output-format-for-drilldowns-label-style">
         
     | 
| 
       4639 
     | 
    
         
            -
            <span id="select- 
     | 
| 
      
 5711 
     | 
    
         
            +
            <span id="select-drilldowns-label-output-format"></span><h4>7.3.54.4.8.4. Output format for <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> style<a class="headerlink" href="#output-format-for-drilldowns-label-style" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
       4640 
5712 
     | 
    
         
             
            <p>There is a difference in output format between <a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a>
         
     | 
| 
       4641 
     | 
    
         
            -
            and <a class="reference internal" href="#select- 
     | 
| 
      
 5713 
     | 
    
         
            +
            and <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> uses
         
     | 
| 
       4642 
5714 
     | 
    
         
             
            array to output multiple drilldown results.
         
     | 
| 
       4643 
     | 
    
         
            -
            <a class="reference internal" href="#select- 
     | 
| 
      
 5715 
     | 
    
         
            +
            <a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> uses pairs of label and drilldown
         
     | 
| 
       4644 
5716 
     | 
    
         
             
            result.</p>
         
     | 
| 
       4645 
5717 
     | 
    
         
             
            <p><a class="reference internal" href="#select-drilldown"><span class="std std-ref">drilldown</span></a> uses the following output format:</p>
         
     | 
| 
       4646 
5718 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>[
         
     | 
| 
         @@ -4654,7 +5726,7 @@ result.</p> 
     | 
|
| 
       4654 
5726 
     | 
    
         
             
            ]
         
     | 
| 
       4655 
5727 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4656 
5728 
     | 
    
         
             
            </div>
         
     | 
| 
       4657 
     | 
    
         
            -
            <p><a class="reference internal" href="#select- 
     | 
| 
      
 5729 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldowns-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> uses the following output format:</p>
         
     | 
| 
       4658 
5730 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre><span></span>[
         
     | 
| 
       4659 
5731 
     | 
    
         
             
              HEADER,
         
     | 
| 
       4660 
5732 
     | 
    
         
             
              [
         
     | 
| 
         @@ -4670,10 +5742,102 @@ result.</p> 
     | 
|
| 
       4670 
5742 
     | 
    
         
             
            </div>
         
     | 
| 
       4671 
5743 
     | 
    
         
             
            </div>
         
     | 
| 
       4672 
5744 
     | 
    
         
             
            </div>
         
     | 
| 
      
 5745 
     | 
    
         
            +
            <div class="section" id="slice-related-parameters">
         
     | 
| 
      
 5746 
     | 
    
         
            +
            <span id="select-slice-related-parameters"></span><h3>7.3.54.4.9. Slice related parameters<a class="headerlink" href="#slice-related-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 5747 
     | 
    
         
            +
            <div class="versionadded">
         
     | 
| 
      
 5748 
     | 
    
         
            +
            <p><span class="versionmodified">New in version 6.0.3.</span></p>
         
     | 
| 
      
 5749 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5750 
     | 
    
         
            +
            <p>This section describes slice related parameters.</p>
         
     | 
| 
      
 5751 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5752 
     | 
    
         
            +
            <p>Here are parameters for slice:</p>
         
     | 
| 
      
 5753 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 5754 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 5755 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5756 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 5757 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 5758 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 5759 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Name</th>
         
     | 
| 
      
 5760 
     | 
    
         
            +
            <th class="head">Required</th>
         
     | 
| 
      
 5761 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5762 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 5763 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 5764 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].match_columns</span></code></td>
         
     | 
| 
      
 5765 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5766 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5767 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query</span></code></td>
         
     | 
| 
      
 5768 
     | 
    
         
            +
            <td>Required if <code class="docutils literal"><span class="pre">--slices[${LABEL}].filter</span></code> isn't specified.</td>
         
     | 
| 
      
 5769 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5770 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].filter</span></code></td>
         
     | 
| 
      
 5771 
     | 
    
         
            +
            <td>Required if <code class="docutils literal"><span class="pre">--slices[${LABEL}].query</span></code> isn't specified.</td>
         
     | 
| 
      
 5772 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5773 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query_expander</span></code></td>
         
     | 
| 
      
 5774 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5775 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5776 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].query_flags</span></code></td>
         
     | 
| 
      
 5777 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5778 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5779 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].sort_keys</span></code></td>
         
     | 
| 
      
 5780 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5781 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5782 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].output_columns</span></code></td>
         
     | 
| 
      
 5783 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5784 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5785 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].offset</span></code></td>
         
     | 
| 
      
 5786 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5787 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5788 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].limit</span></code></td>
         
     | 
| 
      
 5789 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5790 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5791 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">--slices[${LABEL}].table</span></code></td>
         
     | 
| 
      
 5792 
     | 
    
         
            +
            <td>Optional</td>
         
     | 
| 
      
 5793 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 5794 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 5795 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 5796 
     | 
    
         
            +
            <div class="section" id="slices-label-match-columns">
         
     | 
| 
      
 5797 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5798 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5799 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5800 
     | 
    
         
            +
            <div class="section" id="slices-label-query">
         
     | 
| 
      
 5801 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5802 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5803 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5804 
     | 
    
         
            +
            <div class="section" id="slices-label-filter">
         
     | 
| 
      
 5805 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5806 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5807 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5808 
     | 
    
         
            +
            <div class="section" id="slices-label-query-expander">
         
     | 
| 
      
 5809 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5810 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5811 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5812 
     | 
    
         
            +
            <div class="section" id="slices-label-query-flags">
         
     | 
| 
      
 5813 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5814 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5815 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5816 
     | 
    
         
            +
            <div class="section" id="slices-label-sort-keys">
         
     | 
| 
      
 5817 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5818 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5819 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5820 
     | 
    
         
            +
            <div class="section" id="slices-label-output-columns">
         
     | 
| 
      
 5821 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5822 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5823 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5824 
     | 
    
         
            +
            <div class="section" id="slices-label-offset">
         
     | 
| 
      
 5825 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5826 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5827 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5828 
     | 
    
         
            +
            <div class="section" id="slices-label-limit">
         
     | 
| 
      
 5829 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5830 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5831 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5832 
     | 
    
         
            +
            <div class="section" id="slices-label-table">
         
     | 
| 
      
 5833 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 5834 
     | 
    
         
            +
            <p>TODO</p>
         
     | 
| 
      
 5835 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 5836 
     | 
    
         
            +
            </div>
         
     | 
| 
       4673 
5837 
     | 
    
         
             
            <div class="section" id="cache-related-parameter">
         
     | 
| 
       4674 
     | 
    
         
            -
            <h3>7.3.54.4. 
     | 
| 
      
 5838 
     | 
    
         
            +
            <h3>7.3.54.4.10. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       4675 
5839 
     | 
    
         
             
            <div class="section" id="cache">
         
     | 
| 
       4676 
     | 
    
         
            -
            <span id="select-cache"></span><h4>7.3.54.4. 
     | 
| 
      
 5840 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       4677 
5841 
     | 
    
         
             
            <p>Specifies whether caching the result of this query or not.</p>
         
     | 
| 
       4678 
5842 
     | 
    
         
             
            <p>If the result of this query is cached, the next same query returns
         
     | 
| 
       4679 
5843 
     | 
    
         
             
            response quickly by using the cache.</p>
         
     | 
| 
         @@ -4779,10 +5943,10 @@ It's the default value.</td> 
     | 
|
| 
       4779 
5943 
     | 
    
         
             
            </div>
         
     | 
| 
       4780 
5944 
     | 
    
         
             
            </div>
         
     | 
| 
       4781 
5945 
     | 
    
         
             
            <div class="section" id="score-related-parameters">
         
     | 
| 
       4782 
     | 
    
         
            -
            <h3>7.3.54.4. 
     | 
| 
      
 5946 
     | 
    
         
            +
            <h3>7.3.54.4.11. Score related parameters<a class="headerlink" href="#score-related-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
       4783 
5947 
     | 
    
         
             
            <p>There is a score related parameter, <code class="docutils literal"><span class="pre">adjuster</span></code>.</p>
         
     | 
| 
       4784 
5948 
     | 
    
         
             
            <div class="section" id="adjuster">
         
     | 
| 
       4785 
     | 
    
         
            -
            <span id="select-adjuster"></span><h4>7.3.54.4. 
     | 
| 
      
 5949 
     | 
    
         
            +
            <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="Permalink to this headline">¶</a></h4>
         
     | 
| 
       4786 
5950 
     | 
    
         
             
            <p>Specifies one or more score adjust expressions. You need to use
         
     | 
| 
       4787 
5951 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">adjuster</span></code> with <code class="docutils literal"><span class="pre">query</span></code> or <code class="docutils literal"><span class="pre">filter</span></code>. <code class="docutils literal"><span class="pre">adjuster</span></code> doesn't work
         
     | 
| 
       4788 
5952 
     | 
    
         
             
            with not searched request.</p>
         
     | 
| 
         @@ -5217,7 +6381,7 @@ pairs):</p> 
     | 
|
| 
       5217 
6381 
     | 
    
         
             
            ]
         
     | 
| 
       5218 
6382 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       5219 
6383 
     | 
    
         
             
            </div>
         
     | 
| 
       5220 
     | 
    
         
            -
            <p>See also <a class="reference internal" href="#select- 
     | 
| 
      
 6384 
     | 
    
         
            +
            <p>See also <a class="reference internal" href="#select-drilldowns-label-output-format"><span class="std std-ref">Output format for drilldowns[${LABEL}] style</span></a> for
         
     | 
| 
       5221 
6385 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> style drilldown output format.</p>
         
     | 
| 
       5222 
6386 
     | 
    
         
             
            </div>
         
     | 
| 
       5223 
6387 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
         @@ -5252,6 +6416,8 @@ pairs):</p> 
     | 
|
| 
       5252 
6416 
     | 
    
         
             
            <li><a class="reference internal" href="#paging">7.3.54.3.3. Paging</a></li>
         
     | 
| 
       5253 
6417 
     | 
    
         
             
            <li><a class="reference internal" href="#the-total-number-of-records">7.3.54.3.4. The total number of records</a></li>
         
     | 
| 
       5254 
6418 
     | 
    
         
             
            <li><a class="reference internal" href="#drilldown">7.3.54.3.5. Drilldown</a></li>
         
     | 
| 
      
 6419 
     | 
    
         
            +
            <li><a class="reference internal" href="#dynamic-column">7.3.54.3.6. Dynamic column</a></li>
         
     | 
| 
      
 6420 
     | 
    
         
            +
            <li><a class="reference internal" href="#window-function">7.3.54.3.7. Window function</a></li>
         
     | 
| 
       5255 
6421 
     | 
    
         
             
            </ul>
         
     | 
| 
       5256 
6422 
     | 
    
         
             
            </li>
         
     | 
| 
       5257 
6423 
     | 
    
         
             
            <li><a class="reference internal" href="#parameters">7.3.54.4. Parameters</a><ul>
         
     | 
| 
         @@ -5281,29 +6447,56 @@ pairs):</p> 
     | 
|
| 
       5281 
6447 
     | 
    
         
             
            <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>
         
     | 
| 
       5282 
6448 
     | 
    
         
             
            </ul>
         
     | 
| 
       5283 
6449 
     | 
    
         
             
            </li>
         
     | 
| 
       5284 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5285 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5286 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5287 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5288 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5289 
     | 
    
         
            -
             
     | 
| 
       5290 
     | 
    
         
            -
             
     | 
| 
       5291 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5292 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
      
 6450 
     | 
    
         
            +
            <li><a class="reference internal" href="#dynamic-column-related-parameters">7.3.54.4.5. Dynamic column related parameters</a><ul>
         
     | 
| 
      
 6451 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6452 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6453 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6454 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6455 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 6456 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 6457 
     | 
    
         
            +
            <li><a class="reference internal" href="#window-function-related-parameters">7.3.54.4.6. Window function related parameters</a><ul>
         
     | 
| 
      
 6458 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6459 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6460 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 6461 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 6462 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-related-parameters">7.3.54.4.7. Drilldown related parameters</a><ul>
         
     | 
| 
      
 6463 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6464 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6465 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6466 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6467 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6468 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6469 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6470 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6471 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6472 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 6473 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 6474 
     | 
    
         
            +
            <li><a class="reference internal" href="#advanced-drilldown-related-parameters">7.3.54.4.8. Advanced drilldown related parameters</a><ul>
         
     | 
| 
      
 6475 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6476 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6477 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6478 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-format-for-drilldowns-label-style">7.3.54.4.8.4. Output format for <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> style</a></li>
         
     | 
| 
       5293 
6479 
     | 
    
         
             
            </ul>
         
     | 
| 
       5294 
6480 
     | 
    
         
             
            </li>
         
     | 
| 
       5295 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5296 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5297 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       5298 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
      
 6481 
     | 
    
         
            +
            <li><a class="reference internal" href="#slice-related-parameters">7.3.54.4.9. Slice related parameters</a><ul>
         
     | 
| 
      
 6482 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6483 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6484 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6485 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6486 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6487 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6488 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6489 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6490 
     | 
    
         
            +
            <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>
         
     | 
| 
      
 6491 
     | 
    
         
            +
            <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>
         
     | 
| 
       5299 
6492 
     | 
    
         
             
            </ul>
         
     | 
| 
       5300 
6493 
     | 
    
         
             
            </li>
         
     | 
| 
       5301 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache-related-parameter">7.3.54.4. 
     | 
| 
       5302 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache">7.3.54.4. 
     | 
| 
      
 6494 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache-related-parameter">7.3.54.4.10. Cache related parameter</a><ul>
         
     | 
| 
      
 6495 
     | 
    
         
            +
            <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>
         
     | 
| 
       5303 
6496 
     | 
    
         
             
            </ul>
         
     | 
| 
       5304 
6497 
     | 
    
         
             
            </li>
         
     | 
| 
       5305 
     | 
    
         
            -
            <li><a class="reference internal" href="#score-related-parameters">7.3.54.4. 
     | 
| 
       5306 
     | 
    
         
            -
            <li><a class="reference internal" href="#adjuster">7.3.54.4. 
     | 
| 
      
 6498 
     | 
    
         
            +
            <li><a class="reference internal" href="#score-related-parameters">7.3.54.4.11. Score related parameters</a><ul>
         
     | 
| 
      
 6499 
     | 
    
         
            +
            <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>
         
     | 
| 
       5307 
6500 
     | 
    
         
             
            </ul>
         
     | 
| 
       5308 
6501 
     | 
    
         
             
            </li>
         
     | 
| 
       5309 
6502 
     | 
    
         
             
            </ul>
         
     | 
| 
         @@ -5353,7 +6546,7 @@ pairs):</p> 
     | 
|
| 
       5353 
6546 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       5354 
6547 
     | 
    
         
             
                      <a href="schema.html" title="7.3.53. schema"
         
     | 
| 
       5355 
6548 
     | 
    
         
             
                         >previous</a> |</li>
         
     | 
| 
       5356 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga  
     | 
| 
      
 6549 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> »</li>
         
     | 
| 
       5357 
6550 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       5358 
6551 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. Command</a> »</li> 
         
     | 
| 
       5359 
6552 
     | 
    
         
             
                  </ul>
         
     |