rroonga 6.1.3-x86-mingw32 → 7.0.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (745) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -0
  3. data/doc/text/news.md +28 -0
  4. data/ext/groonga/rb-grn-column.c +53 -32
  5. data/ext/groonga/rb-grn-context.c +1 -1
  6. data/ext/groonga/rb-grn-data-column.c +103 -0
  7. data/ext/groonga/rb-grn-default-cache.c +104 -0
  8. data/ext/groonga/rb-grn-index-column.c +93 -15
  9. data/ext/groonga/rb-grn-inverted-index-cursor.c +269 -0
  10. data/ext/groonga/rb-grn-object.c +1 -1
  11. data/ext/groonga/rb-grn-plugin.c +1 -1
  12. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  13. data/ext/groonga/rb-grn-table-key-support.c +6 -0
  14. data/ext/groonga/rb-grn-table.c +0 -3
  15. data/ext/groonga/rb-grn-utils.c +35 -7
  16. data/ext/groonga/rb-grn.h +13 -4
  17. data/ext/groonga/rb-groonga.c +2 -0
  18. data/lib/2.1/groonga.so +0 -0
  19. data/lib/2.2/groonga.so +0 -0
  20. data/lib/2.3/groonga.so +0 -0
  21. data/rroonga-build.rb +7 -7
  22. data/rroonga.gemspec +2 -1
  23. data/test/test-data-column.rb +71 -2
  24. data/test/test-default-cache.rb +43 -0
  25. data/test/test-double-array-trie.rb +7 -0
  26. data/test/test-fix-size-column.rb +12 -0
  27. data/test/test-hash.rb +7 -0
  28. data/test/test-index-column.rb +12 -0
  29. data/test/test-index-cursor.rb +93 -28
  30. data/test/test-patricia-trie.rb +7 -0
  31. data/test/test-variable-size-column.rb +19 -0
  32. data/vendor/local/bin/grndb.exe +0 -0
  33. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  34. data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
  35. data/vendor/local/bin/groonga.exe +0 -0
  36. data/vendor/local/bin/libgroonga-0.dll +0 -0
  37. data/vendor/local/bin/libmecab-2.dll +0 -0
  38. data/vendor/local/bin/libmsgpackc.dll +0 -0
  39. data/vendor/local/bin/libonigmo-6.dll +0 -0
  40. data/vendor/local/bin/libpcre-1.dll +0 -0
  41. data/vendor/local/bin/libpcrecpp-0.dll +0 -0
  42. data/vendor/local/bin/libpcreposix-0.dll +0 -0
  43. data/vendor/local/bin/lz4.exe +0 -0
  44. data/vendor/local/bin/lz4c.exe +0 -0
  45. data/vendor/local/bin/lz4cat +0 -0
  46. data/vendor/local/bin/mecab-config +2 -2
  47. data/vendor/local/bin/mecab.exe +0 -0
  48. data/vendor/local/bin/onigmo-config +2 -2
  49. data/vendor/local/bin/pcre-config +1 -1
  50. data/vendor/local/bin/pcregrep.exe +0 -0
  51. data/vendor/local/bin/pcretest.exe +0 -0
  52. data/vendor/local/bin/zlib1.dll +0 -0
  53. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +16 -3
  54. data/vendor/local/include/groonga/groonga.h +2 -1
  55. data/vendor/local/include/groonga/groonga/cache.h +49 -0
  56. data/vendor/local/include/groonga/groonga/column.h +1 -1
  57. data/vendor/local/include/groonga/groonga/groonga.h +26 -16
  58. data/vendor/local/include/groonga/groonga/ii.h +7 -1
  59. data/vendor/local/include/groonga/groonga/obj.h +8 -1
  60. data/vendor/local/include/groonga/groonga/plugin.h +6 -1
  61. data/vendor/local/include/groonga/groonga/table.h +5 -0
  62. data/vendor/local/include/groonga/groonga/util.h +4 -1
  63. data/vendor/local/include/groonga/groonga/window_function.h +5 -1
  64. data/vendor/local/include/onigmo.h +6 -5
  65. data/vendor/local/include/zconf.h +32 -9
  66. data/vendor/local/include/zlib.h +298 -154
  67. data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
  68. data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
  69. data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
  70. data/vendor/local/lib/groonga/plugins/functions/number.la +2 -2
  71. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  73. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  74. data/vendor/local/lib/groonga/plugins/functions/string.la +2 -2
  75. data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
  76. data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
  77. data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
  78. data/vendor/local/lib/groonga/plugins/functions/time.la +2 -2
  79. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  80. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  81. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  82. data/vendor/local/lib/groonga/plugins/functions/vector.la +2 -2
  83. data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
  84. data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
  85. data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
  86. data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
  87. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  88. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  89. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  90. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
  91. data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +2 -2
  92. data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +2 -2
  93. data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +2 -2
  94. data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +392 -53
  95. data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +1 -2
  96. data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +37 -14
  97. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  98. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  99. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  100. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  101. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  102. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  103. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  104. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
  105. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  106. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  107. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  108. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  109. data/vendor/local/lib/groonga/scripts/ruby/command.rb +0 -1
  110. data/vendor/local/lib/groonga/scripts/ruby/command_input.rb +15 -0
  111. data/vendor/local/lib/groonga/scripts/ruby/expression.rb +1 -0
  112. data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +2 -136
  113. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +12 -1
  114. data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +1 -1
  115. data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
  116. data/vendor/local/lib/groonga/scripts/ruby/logger.rb +7 -8
  117. data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +234 -80
  118. data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +185 -0
  119. data/vendor/local/lib/groonga/scripts/ruby/table.rb +27 -2
  120. data/vendor/local/lib/libgroonga.a +0 -0
  121. data/vendor/local/lib/libgroonga.dll.a +0 -0
  122. data/vendor/local/lib/libgroonga.la +2 -2
  123. data/vendor/local/lib/liblz4.a +0 -0
  124. data/vendor/local/lib/liblz4.dll +0 -0
  125. data/vendor/local/lib/liblz4.dll.1 +0 -0
  126. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  127. data/vendor/local/lib/libmecab.a +0 -0
  128. data/vendor/local/lib/libmecab.dll.a +0 -0
  129. data/vendor/local/lib/libmecab.la +2 -2
  130. data/vendor/local/lib/libmsgpackc.a +0 -0
  131. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  132. data/vendor/local/lib/libonigmo.a +0 -0
  133. data/vendor/local/lib/libonigmo.dll.a +0 -0
  134. data/vendor/local/lib/libonigmo.la +3 -3
  135. data/vendor/local/lib/libpcre.a +0 -0
  136. data/vendor/local/lib/libpcre.dll.a +0 -0
  137. data/vendor/local/lib/libpcre.la +2 -2
  138. data/vendor/local/lib/libpcrecpp.a +0 -0
  139. data/vendor/local/lib/libpcrecpp.dll.a +0 -0
  140. data/vendor/local/lib/libpcrecpp.la +2 -2
  141. data/vendor/local/lib/libpcreposix.a +0 -0
  142. data/vendor/local/lib/libpcreposix.dll.a +0 -0
  143. data/vendor/local/lib/libpcreposix.la +2 -2
  144. data/vendor/local/lib/libz.a +0 -0
  145. data/vendor/local/lib/libz.dll.a +0 -0
  146. data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
  147. data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
  148. data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
  149. data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
  150. data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
  151. data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
  152. data/vendor/local/lib/pkgconfig/onigmo.pc +7 -7
  153. data/vendor/local/lib/pkgconfig/zlib.pc +4 -4
  154. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  155. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  156. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  157. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  158. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  159. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  160. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +11 -2
  161. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +13 -47
  162. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -5
  163. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
  164. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  165. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  166. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  167. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
  168. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  169. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +181 -891
  170. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +2 -1
  171. data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +11 -9
  172. data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +4 -4
  173. data/vendor/local/share/doc/groonga/en/html/_sources/news/5.x.txt +2 -2
  174. data/vendor/local/share/doc/groonga/en/html/_sources/news/6.x.txt +1086 -0
  175. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  176. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +1 -1
  177. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +45 -19
  178. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +632 -91
  179. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +514 -0
  180. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +902 -55
  181. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +5 -3
  182. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
  183. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +71 -23
  184. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
  185. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
  186. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +51 -25
  187. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_records.txt +195 -0
  188. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +100 -15
  189. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/string_length.txt +33 -0
  190. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_new.txt +38 -0
  191. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
  192. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
  193. data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +6 -6
  194. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_function.txt +22 -0
  195. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/record_number.txt +28 -0
  196. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/window_record_number.txt +25 -0
  197. 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
  198. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +3 -3
  199. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +102 -93
  212. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/genindex.html +326 -251
  222. data/vendor/local/share/doc/groonga/en/html/index.html +111 -104
  223. data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
  224. data/vendor/local/share/doc/groonga/en/html/install/centos.html +24 -65
  225. data/vendor/local/share/doc/groonga/en/html/install/debian.html +12 -11
  226. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
  227. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  228. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  229. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  230. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -9
  231. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  232. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/news.html +213 -898
  234. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +7 -6
  238. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +16 -14
  240. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +9 -9
  241. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/news/5.x.html +7 -7
  243. data/vendor/local/share/doc/groonga/en/html/news/6.x.html +1148 -0
  244. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  246. data/vendor/local/share/doc/groonga/en/html/reference.html +90 -82
  247. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +23 -23
  248. data/vendor/local/share/doc/groonga/en/html/reference/api.html +39 -39
  249. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +22 -22
  250. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +24 -24
  251. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +24 -24
  252. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +24 -24
  253. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +22 -22
  254. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +24 -24
  255. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +24 -24
  256. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +24 -24
  257. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +22 -22
  258. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +24 -24
  259. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +24 -24
  260. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +24 -24
  261. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +24 -24
  262. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +24 -24
  263. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +24 -24
  264. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +24 -24
  265. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +24 -24
  266. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -24
  267. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +24 -24
  268. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +24 -24
  269. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +24 -24
  270. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +24 -24
  271. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +20 -20
  272. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +24 -24
  273. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +22 -22
  274. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  276. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  278. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
  279. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  280. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  281. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  282. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  283. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
  284. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
  285. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +6 -6
  286. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  287. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  288. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  289. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  290. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
  291. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  292. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  293. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  294. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  295. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
  296. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
  297. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
  298. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
  299. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  300. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  301. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  302. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  303. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
  304. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  305. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
  306. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
  307. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
  308. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +61 -17
  309. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  310. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  311. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
  312. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
  313. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
  314. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +1727 -408
  315. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
  316. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +5 -5
  317. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  318. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
  319. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
  320. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +526 -33
  321. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +5 -5
  322. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
  323. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
  324. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
  325. data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +5 -5
  326. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  327. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
  328. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  329. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
  330. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
  331. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
  332. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
  333. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
  334. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1685 -492
  335. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  336. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
  337. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  338. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +5 -5
  339. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  340. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  341. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  342. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +5 -5
  343. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +5 -5
  344. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +5 -5
  345. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
  346. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
  347. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
  348. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +19 -19
  349. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  350. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
  351. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +14 -14
  352. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +32 -32
  353. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +75 -34
  354. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  355. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  356. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +24 -24
  357. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +23 -23
  358. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +107 -82
  359. data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -23
  360. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
  361. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  362. data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +5 -5
  363. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  364. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  365. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  366. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
  367. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
  368. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +10 -10
  369. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +355 -0
  370. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +30 -30
  371. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +25 -25
  372. data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +23 -23
  373. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +31 -31
  374. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +155 -55
  375. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +28 -28
  376. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +15 -15
  377. data/vendor/local/share/doc/groonga/en/html/reference/functions/{record_number.html → string_length.html} +36 -31
  378. data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +24 -24
  379. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
  380. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +23 -23
  381. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +23 -23
  382. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +23 -23
  383. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +23 -23
  384. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +23 -23
  385. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +23 -23
  386. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +24 -24
  387. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +170 -0
  388. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +28 -28
  389. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +24 -24
  390. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  391. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +36 -26
  392. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +27 -15
  393. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -21
  394. data/vendor/local/share/doc/groonga/en/html/reference/log.html +29 -29
  395. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  396. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -17
  397. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +20 -20
  398. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +26 -26
  399. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  400. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  401. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  402. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
  403. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
  404. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
  405. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
  406. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +23 -23
  407. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +33 -33
  408. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +32 -32
  409. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +28 -28
  410. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +26 -26
  411. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +28 -28
  412. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  413. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
  414. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  415. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +35 -35
  416. data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
  417. data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +147 -0
  418. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +164 -0
  419. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +163 -0
  420. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +163 -0
  421. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  422. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  423. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  424. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  425. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  426. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  427. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  428. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  429. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
  430. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  431. data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
  432. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  433. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  434. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  435. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  436. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  437. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  438. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  439. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  440. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  441. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  442. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  443. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  444. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  445. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  446. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  447. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +8 -8
  448. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  450. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +11 -2
  451. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +13 -47
  452. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -5
  453. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
  454. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  455. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  456. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  457. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
  458. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  459. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +181 -891
  460. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +2 -1
  461. data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +11 -9
  462. data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +4 -4
  463. data/vendor/local/share/doc/groonga/ja/html/_sources/news/5.x.txt +2 -2
  464. data/vendor/local/share/doc/groonga/ja/html/_sources/news/6.x.txt +1086 -0
  465. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  466. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +1 -1
  467. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +45 -19
  468. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +632 -91
  469. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +514 -0
  470. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +902 -55
  471. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +5 -3
  472. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
  473. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +71 -23
  474. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
  475. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
  476. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +51 -25
  477. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_records.txt +195 -0
  478. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +100 -15
  479. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/string_length.txt +33 -0
  480. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_new.txt +38 -0
  481. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
  482. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
  483. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +6 -6
  484. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_function.txt +22 -0
  485. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/record_number.txt +28 -0
  486. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/window_record_number.txt +25 -0
  487. 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
  488. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +3 -3
  489. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  490. data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
  491. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  492. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  493. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  494. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
  495. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
  496. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
  497. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
  498. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  499. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  500. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  501. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +102 -93
  502. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  503. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  504. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  505. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  506. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  507. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  508. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  509. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  510. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  511. data/vendor/local/share/doc/groonga/ja/html/genindex.html +186 -118
  512. data/vendor/local/share/doc/groonga/ja/html/index.html +111 -104
  513. data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
  514. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +24 -61
  515. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +12 -11
  516. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
  517. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  518. data/vendor/local/share/doc/groonga/ja/html/install/others.html +9 -9
  519. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  520. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -9
  521. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  522. data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
  523. data/vendor/local/share/doc/groonga/ja/html/news.html +132 -761
  524. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  525. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  526. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  527. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +6 -6
  528. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  529. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +10 -10
  530. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +9 -9
  531. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
  532. data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +6 -6
  533. data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +1064 -0
  534. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  535. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  536. data/vendor/local/share/doc/groonga/ja/html/reference.html +90 -82
  537. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +23 -23
  538. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +39 -39
  539. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
  540. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
  541. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
  542. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
  543. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +22 -22
  544. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
  545. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
  546. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
  547. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
  548. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
  549. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
  550. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
  551. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
  552. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
  553. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
  554. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
  555. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
  556. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
  557. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
  558. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
  559. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +24 -24
  560. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
  561. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
  562. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +24 -24
  563. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +22 -22
  564. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  565. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  566. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
  567. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  568. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
  569. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  570. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  571. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  572. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  573. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
  574. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
  575. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +6 -6
  576. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  577. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  578. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  579. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  580. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
  581. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  582. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  583. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  584. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  585. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
  586. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
  587. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
  588. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
  589. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  590. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  591. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  592. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  593. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
  594. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  595. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
  596. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
  597. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
  598. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +67 -17
  599. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  600. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  601. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
  602. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
  603. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
  604. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +1629 -383
  605. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
  606. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +6 -6
  607. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  608. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
  609. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
  610. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +508 -33
  611. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +5 -5
  612. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
  613. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
  614. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
  615. data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +5 -5
  616. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  617. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
  618. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  619. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
  620. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
  621. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  622. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
  623. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
  624. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1606 -478
  625. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  626. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
  627. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  628. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +5 -5
  629. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  630. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  631. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  632. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +5 -5
  633. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +5 -5
  634. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +5 -5
  635. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  636. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
  637. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
  638. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +19 -19
  639. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  640. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
  641. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +14 -14
  642. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +32 -32
  643. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +76 -48
  644. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  645. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  646. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +24 -24
  647. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -23
  648. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +103 -82
  649. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -23
  650. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
  651. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  652. data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +5 -5
  653. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  654. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  655. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  656. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
  657. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
  658. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +10 -10
  659. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +370 -0
  660. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +30 -30
  661. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +25 -25
  662. data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +23 -23
  663. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +31 -31
  664. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +150 -52
  665. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +28 -28
  666. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +15 -15
  667. data/vendor/local/share/doc/groonga/ja/html/reference/functions/{record_number.html → string_length.html} +36 -31
  668. data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +24 -24
  669. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
  670. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +23 -23
  671. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +23 -23
  672. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +23 -23
  673. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +23 -23
  674. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +23 -23
  675. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +23 -23
  676. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +24 -24
  677. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +171 -0
  678. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +28 -28
  679. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +24 -24
  680. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  681. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +36 -26
  682. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +19 -7
  683. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
  684. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +25 -25
  685. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  686. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -17
  687. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +20 -20
  688. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +26 -26
  689. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  690. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  691. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  692. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
  693. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
  694. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
  695. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
  696. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +23 -23
  697. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +33 -33
  698. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +32 -32
  699. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +28 -28
  700. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +26 -26
  701. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +28 -28
  702. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  703. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
  704. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  705. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +35 -35
  706. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  707. data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +146 -0
  708. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +165 -0
  709. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +164 -0
  710. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +164 -0
  711. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  712. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  713. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  714. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  715. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  716. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  717. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  718. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  719. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
  720. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  721. data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
  722. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  723. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  724. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  725. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  726. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  727. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  728. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  729. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  730. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  731. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  732. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  733. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  734. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  735. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  736. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  737. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -8
  738. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  739. data/vendor/local/share/groonga/mruby/LEGAL +4 -0
  740. data/vendor/local/share/license/mruby/AUTHORS +1 -0
  741. data/vendor/local/share/license/mruby/MITL +1 -1
  742. data/vendor/local/share/license/zlib/README +3 -3
  743. metadata +100 -67
  744. data/lib/2.4/groonga.so +0 -0
  745. 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 &#8212; Groonga v6.1.3 documentation</title>
10
+ <title>7.3.52. ruby_load &#8212; 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: '6.1.3',
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 v6.1.3 documentation" href="../../index.html" />
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 v6.1.3 documentation</a> &#187;</li>
65
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> &#187;</li>
66
66
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> &#187;</li>
67
67
  <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. Command</a> &#187;</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 v6.1.3 documentation</a> &#187;</li>
195
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> &#187;</li>
196
196
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> &#187;</li>
197
197
  <li class="nav-item nav-item-2"><a href="../command.html" >7.3. Command</a> &#187;</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 &#8212; Groonga v6.1.3 documentation</title>
10
+ <title>7.3.53. schema &#8212; 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: '6.1.3',
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 v6.1.3 documentation" href="../../index.html" />
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 v6.1.3 documentation</a> &#187;</li>
65
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> &#187;</li>
66
66
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> &#187;</li>
67
67
  <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. Command</a> &#187;</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 v6.1.3 documentation</a> &#187;</li>
1178
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> &#187;</li>
1179
1179
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> &#187;</li>
1180
1180
  <li class="nav-item nav-item-2"><a href="../command.html" >7.3. Command</a> &#187;</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 &#8212; Groonga v6.1.3 documentation</title>
10
+ <title>7.3.54. select &#8212; 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: '6.1.3',
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 v6.1.3 documentation" href="../../index.html" />
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 v6.1.3 documentation</a> &#187;</li>
65
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> &#187;</li>
66
66
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> &#187;</li>
67
67
  <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. Command</a> &#187;</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><code class="docutils literal"><span class="pre">select</span></code> has the following named parameters for advanced drilldown:</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}].sortby=null</span></code></li>
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=&quot;_key,</span> <span class="pre">_nsubrecs&quot;</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> instead.</p>
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].sortby</span> <span class="pre">-_nsubrecs</span></code></li>
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].sortby</span> <span class="pre">-_nsubrecs</span></code></li>
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].sortby</span> <span class="pre">_key</span></code></li>
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``s</span> <span class="pre">in</span> <span class="pre">SQL</span> <span class="pre">but</span>
541
- <span class="pre">``select</span></code> in Groonga can do it in one <code class="docutils literal"><span class="pre">select</span></code>.</p>
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 &#39;number_classify(n_likes, 10)&#39; \
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
+ # &quot;n_likes&quot;,
786
+ # &quot;UInt32&quot;
787
+ # ],
788
+ # [
789
+ # &quot;n_likes_class&quot;,
790
+ # &quot;UInt32&quot;
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
+ # &quot;_key&quot;,
821
+ # &quot;UInt32&quot;
822
+ # ],
823
+ # [
824
+ # &quot;_nsubrecs&quot;,
825
+ # &quot;Int32&quot;
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 &#39;window_sum(n_likes)&#39; \
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
+ # &quot;tag&quot;,
940
+ # &quot;ShortText&quot;
941
+ # ],
942
+ # [
943
+ # &quot;n_likes&quot;,
944
+ # &quot;UInt32&quot;
945
+ # ],
946
+ # [
947
+ # &quot;n_likes_sum_per_tag&quot;,
948
+ # &quot;UInt32&quot;
949
+ # ]
950
+ # ],
951
+ # [
952
+ # &quot;Hello&quot;,
953
+ # 5,
954
+ # 5
955
+ # ],
956
+ # [
957
+ # &quot;Groonga&quot;,
958
+ # 10,
959
+ # 25
960
+ # ],
961
+ # [
962
+ # &quot;Groonga&quot;,
963
+ # 15,
964
+ # 25
965
+ # ],
966
+ # [
967
+ # &quot;Senna&quot;,
968
+ # 3,
969
+ # 6
970
+ # ],
971
+ # [
972
+ # &quot;Senna&quot;,
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
- # &quot;invalid table name: &lt;Nonexistent&gt;&quot;,
1001
+ # &quot;[select][table] invalid name: &lt;Nonexistent&gt;&quot;,
716
1002
  # [
717
1003
  # [
718
1004
  # &quot;grn_select&quot;,
719
- # &quot;proc.c&quot;,
720
- # 1217
1005
+ # &quot;proc_select.c&quot;,
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 --sortby _id --offset 3 --output_columns _key
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 --sortby _id --offset -2 --output_columns _key
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 --sortby _id --offset 2 --limit 3 --output_columns _key
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="drilldown-related-parameters">
2494
- <span id="select-drilldown-related-parameters"></span><h3>7.3.54.4.5. Drilldown related parameters<a class="headerlink" href="#drilldown-related-parameters" title="Permalink to this headline">¶</a></h3>
2495
- <p>This section describes basic drilldown related parameters. Advanced
2496
- drilldown related parameters are described in another section.</p>
2497
- <div class="section" id="select-drilldown">
2498
- <span id="id2"></span><h4>7.3.54.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code><a class="headerlink" href="#select-drilldown" title="Permalink to this headline">¶</a></h4>
2499
- <p>Specifies keys for grouping separated by <code class="docutils literal"><span class="pre">,</span></code>.</p>
2500
- <p>Matched records by specified search conditions are grouped by each
2501
- key. If you specify no search condition, all records are grouped by
2502
- each key.</p>
2503
- <p>Here is a simple <code class="docutils literal"><span class="pre">drilldown</span></code> example:</p>
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 &quot;dynamic
2790
+ columns&quot;. 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 &quot;29&quot;
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
- --output_columns _key,tag \
2507
- --drilldown tag
2931
+ --columns[is_popular].stage initial \
2932
+ --columns[is_popular].type Bool \
2933
+ --columns[is_popular].value &#39;n_likes &gt;= 10&#39; \
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
- # 5
2945
+ # 2
2518
2946
  # ],
2519
2947
  # [
2520
2948
  # [
2521
- # &quot;_key&quot;,
2522
- # &quot;ShortText&quot;
2949
+ # &quot;_id&quot;,
2950
+ # &quot;UInt32&quot;
2523
2951
  # ],
2524
2952
  # [
2525
- # &quot;tag&quot;,
2526
- # &quot;ShortText&quot;
2953
+ # &quot;is_popular&quot;,
2954
+ # &quot;Bool&quot;
2955
+ # ],
2956
+ # [
2957
+ # &quot;n_likes&quot;,
2958
+ # &quot;UInt32&quot;
2527
2959
  # ]
2528
2960
  # ],
2529
2961
  # [
2530
- # &quot;The first post!&quot;,
2531
- # &quot;Hello&quot;
2962
+ # 2,
2963
+ # true,
2964
+ # 10
2532
2965
  # ],
2533
2966
  # [
2534
- # &quot;Groonga&quot;,
2535
- # &quot;Groonga&quot;
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 &#39;vector_new(1, 2, 3)&#39; \
2998
+ --output_columns _id,vector
2999
+ # [
3000
+ # [
3001
+ # 0,
3002
+ # 1337566253.89858,
3003
+ # 0.000355720520019531
3004
+ # ],
3005
+ # [
3006
+ # [
2537
3007
  # [
2538
- # &quot;Mroonga&quot;,
2539
- # &quot;Groonga&quot;
3008
+ # 5
3009
+ # ],
3010
+ # [
3011
+ # [
3012
+ # &quot;_id&quot;,
3013
+ # &quot;UInt32&quot;
3014
+ # ],
3015
+ # [
3016
+ # &quot;vector&quot;,
3017
+ # &quot;UInt32&quot;
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
+ # &quot;_id&quot;,
3098
+ # &quot;UInt32&quot;
3099
+ # ],
3100
+ # [
3101
+ # &quot;n_likes&quot;,
3102
+ # &quot;UInt32&quot;
3103
+ # ],
3104
+ # [
3105
+ # &quot;n_likes_string&quot;,
3106
+ # &quot;ShortText&quot;
3107
+ # ]
3108
+ # ],
3109
+ # [
3110
+ # 1,
3111
+ # 5,
3112
+ # &quot;5&quot;
3113
+ # ],
3114
+ # [
3115
+ # 2,
3116
+ # 10,
3117
+ # &quot;10&quot;
3118
+ # ],
3119
+ # [
3120
+ # 3,
3121
+ # 15,
3122
+ # &quot;15&quot;
3123
+ # ],
3124
+ # [
3125
+ # 4,
3126
+ # 3,
3127
+ # &quot;3&quot;
3128
+ # ],
3129
+ # [
3130
+ # 5,
3131
+ # 3,
3132
+ # &quot;3&quot;
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(&quot;Hello&quot;)</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 &#39;string_length(content)&#39; \
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
+ # &quot;_id&quot;,
3183
+ # &quot;UInt32&quot;
3184
+ # ],
3185
+ # [
3186
+ # &quot;content&quot;,
3187
+ # &quot;Text&quot;
3188
+ # ],
3189
+ # [
3190
+ # &quot;content_length&quot;,
3191
+ # &quot;UInt32&quot;
3192
+ # ]
3193
+ # ],
3194
+ # [
3195
+ # 1,
3196
+ # &quot;Welcome! This is my first post!&quot;,
3197
+ # 31
3198
+ # ],
3199
+ # [
3200
+ # 2,
3201
+ # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3202
+ # 41
3203
+ # ],
3204
+ # [
3205
+ # 3,
3206
+ # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3207
+ # 64
3208
+ # ],
3209
+ # [
3210
+ # 4,
3211
+ # &quot;I migrated all Senna system!&quot;,
3212
+ # 28
3213
+ # ],
3214
+ # [
3215
+ # 5,
3216
+ # &quot;I also migrated all Tritonn system!&quot;,
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>&nbsp;</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>&nbsp;</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 &#39;window_sum(n_likes)&#39; \
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
+ # &quot;tag&quot;,
3468
+ # &quot;ShortText&quot;
3469
+ # ],
3470
+ # [
3471
+ # &quot;_key&quot;,
3472
+ # &quot;ShortText&quot;
3473
+ # ],
3474
+ # [
3475
+ # &quot;n_likes&quot;,
3476
+ # &quot;UInt32&quot;
3477
+ # ],
3478
+ # [
3479
+ # &quot;n_likes_cumulative_sum_per_tag&quot;,
3480
+ # &quot;UInt32&quot;
3481
+ # ]
3482
+ # ],
3483
+ # [
3484
+ # &quot;Senna&quot;,
3485
+ # &quot;Good-bye Senna&quot;,
3486
+ # 3,
3487
+ # 3
3488
+ # ],
3489
+ # [
3490
+ # &quot;Senna&quot;,
3491
+ # &quot;Good-bye Tritonn&quot;,
3492
+ # 3,
3493
+ # 6
3494
+ # ],
3495
+ # [
3496
+ # &quot;Groonga&quot;,
3497
+ # &quot;Groonga&quot;,
3498
+ # 10,
3499
+ # 10
3500
+ # ],
3501
+ # [
3502
+ # &quot;Groonga&quot;,
3503
+ # &quot;Mroonga&quot;,
3504
+ # 15,
3505
+ # 25
3506
+ # ],
3507
+ # [
3508
+ # &quot;Hello&quot;,
3509
+ # &quot;The first post!&quot;,
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 &#39;window_sum(n_likes)&#39; \
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
+ # &quot;tag&quot;,
3555
+ # &quot;ShortText&quot;
3556
+ # ],
3557
+ # [
3558
+ # &quot;_key&quot;,
3559
+ # &quot;ShortText&quot;
3560
+ # ],
3561
+ # [
3562
+ # &quot;n_likes&quot;,
3563
+ # &quot;UInt32&quot;
3564
+ # ],
3565
+ # [
3566
+ # &quot;n_likes_sum_per_tag&quot;,
3567
+ # &quot;UInt32&quot;
3568
+ # ]
3569
+ # ],
3570
+ # [
3571
+ # &quot;Senna&quot;,
3572
+ # &quot;Good-bye Senna&quot;,
3573
+ # 3,
3574
+ # 6
3575
+ # ],
3576
+ # [
3577
+ # &quot;Senna&quot;,
3578
+ # &quot;Good-bye Tritonn&quot;,
3579
+ # 3,
3580
+ # 6
3581
+ # ],
3582
+ # [
3583
+ # &quot;Groonga&quot;,
3584
+ # &quot;Groonga&quot;,
3585
+ # 10,
3586
+ # 25
3587
+ # ],
3588
+ # [
3589
+ # &quot;Groonga&quot;,
3590
+ # &quot;Mroonga&quot;,
3591
+ # 15,
3592
+ # 25
3593
+ # ],
3594
+ # [
3595
+ # &quot;Hello&quot;,
3596
+ # &quot;The first post!&quot;,
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
+ # &quot;_key&quot;,
3636
+ # &quot;ShortText&quot;
3637
+ # ],
3638
+ # [
3639
+ # &quot;tag&quot;,
3640
+ # &quot;ShortText&quot;
3641
+ # ]
3642
+ # ],
3643
+ # [
3644
+ # &quot;The first post!&quot;,
3645
+ # &quot;Hello&quot;
3646
+ # ],
3647
+ # [
3648
+ # &quot;Groonga&quot;,
3649
+ # &quot;Groonga&quot;
3650
+ # ],
3651
+ # [
3652
+ # &quot;Mroonga&quot;,
3653
+ # &quot;Groonga&quot;
2540
3654
  # ],
2541
3655
  # [
2542
3656
  # &quot;Good-bye Senna&quot;,
@@ -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
- --output_column _id \
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
  # &quot;_id&quot;,
2686
3800
  # &quot;UInt32&quot;
2687
- # ],
2688
- # [
2689
- # &quot;_key&quot;,
2690
- # &quot;ShortText&quot;
2691
- # ],
2692
- # [
2693
- # &quot;content&quot;,
2694
- # &quot;Text&quot;
2695
- # ],
2696
- # [
2697
- # &quot;n_likes&quot;,
2698
- # &quot;UInt32&quot;
2699
- # ],
2700
- # [
2701
- # &quot;tag&quot;,
2702
- # &quot;ShortText&quot;
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.5.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>
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.5.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>
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">drilldown_sortby</span></code> example:</p>
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
- --output_column _id \
3900
+ --output_columns _id \
2803
3901
  --drilldown &#39;tag, n_likes&#39; \
2804
- --drilldown_sortby &#39;-_nsubrecs, _key&#39;
3902
+ --drilldown_sort_keys &#39;-_nsubrecs, _key&#39;
2805
3903
  # [
2806
3904
  # [
2807
3905
  # 0,
@@ -2817,22 +3915,6 @@ sort key is column name.</p>
2817
3915
  # [
2818
3916
  # &quot;_id&quot;,
2819
3917
  # &quot;UInt32&quot;
2820
- # ],
2821
- # [
2822
- # &quot;_key&quot;,
2823
- # &quot;ShortText&quot;
2824
- # ],
2825
- # [
2826
- # &quot;content&quot;,
2827
- # &quot;Text&quot;
2828
- # ],
2829
- # [
2830
- # &quot;n_likes&quot;,
2831
- # &quot;UInt32&quot;
2832
- # ],
2833
- # [
2834
- # &quot;tag&quot;,
2835
- # &quot;ShortText&quot;
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
- --output_column _id \
3991
+ --output_columns _id \
2910
3992
  --drilldown &#39;tag, n_likes&#39; \
2911
- --drilldown_sortby &#39;-_nsubrecs, _key&#39;
3993
+ --drilldown_sort_keys &#39;-_nsubrecs, _key&#39;
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
  # &quot;_id&quot;,
2926
4008
  # &quot;UInt32&quot;
2927
- # ],
2928
- # [
2929
- # &quot;_key&quot;,
2930
- # &quot;ShortText&quot;
2931
- # ],
2932
- # [
2933
- # &quot;content&quot;,
2934
- # &quot;Text&quot;
2935
- # ],
2936
- # [
2937
- # &quot;n_likes&quot;,
2938
- # &quot;UInt32&quot;
2939
- # ],
2940
- # [
2941
- # &quot;tag&quot;,
2942
- # &quot;ShortText&quot;
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.5.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>
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
- --output_column _id \
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
  # &quot;_id&quot;,
3037
4103
  # &quot;UInt32&quot;
3038
- # ],
3039
- # [
3040
- # &quot;_key&quot;,
3041
- # &quot;ShortText&quot;
3042
- # ],
3043
- # [
3044
- # &quot;content&quot;,
3045
- # &quot;Text&quot;
3046
- # ],
3047
- # [
3048
- # &quot;n_likes&quot;,
3049
- # &quot;UInt32&quot;
3050
- # ],
3051
- # [
3052
- # &quot;tag&quot;,
3053
- # &quot;ShortText&quot;
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
- --output_column _id \
4170
+ --output_columns _id \
3121
4171
  --drilldown tag \
3122
4172
  --drilldown_output_columns &#39;_key, label&#39;
3123
4173
  # [
@@ -3135,14 +4185,6 @@ type column.</p>
3135
4185
  # [
3136
4186
  # &quot;_id&quot;,
3137
4187
  # &quot;UInt32&quot;
3138
- # ],
3139
- # [
3140
- # &quot;_key&quot;,
3141
- # &quot;ShortText&quot;
3142
- # ],
3143
- # [
3144
- # &quot;tag&quot;,
3145
- # &quot;Tags&quot;
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
- --output_column _id \
4222
+ --output_columns _id \
3181
4223
  --drilldown tag \
3182
4224
  --drilldown_output_columns &#39;_key, *&#39;
3183
4225
  # [
@@ -3195,14 +4237,6 @@ type column.</p>
3195
4237
  # [
3196
4238
  # &quot;_id&quot;,
3197
4239
  # &quot;UInt32&quot;
3198
- # ],
3199
- # [
3200
- # &quot;_key&quot;,
3201
- # &quot;ShortText&quot;
3202
- # ],
3203
- # [
3204
- # &quot;tag&quot;,
3205
- # &quot;Tags&quot;
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.5.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>
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
- --output_column _id \
4294
+ --output_columns _id \
3261
4295
  --drilldown tag \
3262
- --drilldown_sortby _key \
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
  # &quot;_id&quot;,
3278
4312
  # &quot;UInt32&quot;
3279
- # ],
3280
- # [
3281
- # &quot;_key&quot;,
3282
- # &quot;ShortText&quot;
3283
- # ],
3284
- # [
3285
- # &quot;content&quot;,
3286
- # &quot;Text&quot;
3287
- # ],
3288
- # [
3289
- # &quot;n_likes&quot;,
3290
- # &quot;UInt32&quot;
3291
- # ],
3292
- # [
3293
- # &quot;tag&quot;,
3294
- # &quot;ShortText&quot;
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
- --output_column _id \
4352
+ --output_columns _id \
3335
4353
  --drilldown tag \
3336
- --drilldown_sortby _key \
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
  # &quot;_id&quot;,
3352
4370
  # &quot;UInt32&quot;
3353
- # ],
3354
- # [
3355
- # &quot;_key&quot;,
3356
- # &quot;ShortText&quot;
3357
- # ],
3358
- # [
3359
- # &quot;content&quot;,
3360
- # &quot;Text&quot;
3361
- # ],
3362
- # [
3363
- # &quot;n_likes&quot;,
3364
- # &quot;UInt32&quot;
3365
- # ],
3366
- # [
3367
- # &quot;tag&quot;,
3368
- # &quot;ShortText&quot;
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.5.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>
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
- --output_column _id \
4413
+ --output_columns _id \
3412
4414
  --drilldown tag \
3413
- --drilldown_sortby _key \
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
  # &quot;_id&quot;,
3430
4432
  # &quot;UInt32&quot;
3431
- # ],
3432
- # [
3433
- # &quot;_key&quot;,
3434
- # &quot;ShortText&quot;
3435
- # ],
3436
- # [
3437
- # &quot;content&quot;,
3438
- # &quot;Text&quot;
3439
- # ],
3440
- # [
3441
- # &quot;n_likes&quot;,
3442
- # &quot;UInt32&quot;
3443
- # ],
3444
- # [
3445
- # &quot;tag&quot;,
3446
- # &quot;ShortText&quot;
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
- --output_column _id \
4471
+ --output_columns _id \
3486
4472
  --drilldown tag \
3487
- --drilldown_sortby _key \
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
  # &quot;_id&quot;,
3503
- # &quot;UInt32&quot;
3504
- # ],
3505
- # [
3506
- # &quot;_key&quot;,
3507
- # &quot;ShortText&quot;
3508
- # ],
3509
- # [
3510
- # &quot;content&quot;,
3511
- # &quot;Text&quot;
3512
- # ],
3513
- # [
3514
- # &quot;n_likes&quot;,
3515
- # &quot;UInt32&quot;
3516
- # ],
3517
- # [
3518
- # &quot;tag&quot;,
3519
- # &quot;ShortText&quot;
4489
+ # &quot;UInt32&quot;
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.5.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>
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
  &quot;<code class="docutils literal"><span class="pre">,</span></code>&quot;. 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
- --output_column _id,n_likes \
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
  # &quot;UInt32&quot;
3642
4612
  # ],
3643
4613
  # [
3644
- # &quot;_key&quot;,
3645
- # &quot;ShortText&quot;
3646
- # ],
3647
- # [
3648
- # &quot;content&quot;,
3649
- # &quot;Text&quot;
3650
- # ],
3651
- # [
3652
4614
  # &quot;n_likes&quot;,
3653
4615
  # &quot;UInt32&quot;
3654
- # ],
3655
- # [
3656
- # &quot;tag&quot;,
3657
- # &quot;ShortText&quot;
3658
4616
  # ]
3659
4617
  # ],
3660
4618
  # [
3661
4619
  # 1,
3662
- # &quot;The first post!&quot;,
3663
- # &quot;Welcome! This is my first post!&quot;,
3664
- # 5,
3665
- # &quot;Hello&quot;
4620
+ # 5
3666
4621
  # ],
3667
4622
  # [
3668
4623
  # 2,
3669
- # &quot;Groonga&quot;,
3670
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3671
- # 10,
3672
- # &quot;Groonga&quot;
4624
+ # 10
3673
4625
  # ],
3674
4626
  # [
3675
4627
  # 3,
3676
- # &quot;Mroonga&quot;,
3677
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3678
- # 15,
3679
- # &quot;Groonga&quot;
4628
+ # 15
3680
4629
  # ],
3681
4630
  # [
3682
4631
  # 4,
3683
- # &quot;Good-bye Senna&quot;,
3684
- # &quot;I migrated all Senna system!&quot;,
3685
- # 3,
3686
- # &quot;Senna&quot;
4632
+ # 3
3687
4633
  # ],
3688
4634
  # [
3689
4635
  # 5,
3690
- # &quot;Good-bye Tritonn&quot;,
3691
- # &quot;I also migrated all Tritonn system!&quot;,
3692
- # 3,
3693
- # &quot;Senna&quot;
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
- --output_column _id,n_likes \
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
  # &quot;UInt32&quot;
3756
4699
  # ],
3757
4700
  # [
3758
- # &quot;_key&quot;,
3759
- # &quot;ShortText&quot;
3760
- # ],
3761
- # [
3762
- # &quot;content&quot;,
3763
- # &quot;Text&quot;
3764
- # ],
3765
- # [
3766
4701
  # &quot;n_likes&quot;,
3767
4702
  # &quot;UInt32&quot;
3768
- # ],
3769
- # [
3770
- # &quot;tag&quot;,
3771
- # &quot;ShortText&quot;
3772
4703
  # ]
3773
4704
  # ],
3774
4705
  # [
3775
4706
  # 1,
3776
- # &quot;The first post!&quot;,
3777
- # &quot;Welcome! This is my first post!&quot;,
3778
- # 5,
3779
- # &quot;Hello&quot;
4707
+ # 5
3780
4708
  # ],
3781
4709
  # [
3782
4710
  # 2,
3783
- # &quot;Groonga&quot;,
3784
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3785
- # 10,
3786
- # &quot;Groonga&quot;
4711
+ # 10
3787
4712
  # ],
3788
4713
  # [
3789
4714
  # 3,
3790
- # &quot;Mroonga&quot;,
3791
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3792
- # 15,
3793
- # &quot;Groonga&quot;
4715
+ # 15
3794
4716
  # ],
3795
4717
  # [
3796
4718
  # 4,
3797
- # &quot;Good-bye Senna&quot;,
3798
- # &quot;I migrated all Senna system!&quot;,
3799
- # 3,
3800
- # &quot;Senna&quot;
4719
+ # 3
3801
4720
  # ],
3802
4721
  # [
3803
4722
  # 5,
3804
- # &quot;Good-bye Tritonn&quot;,
3805
- # &quot;I also migrated all Tritonn system!&quot;,
3806
- # 3,
3807
- # &quot;Senna&quot;
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
- --output_column _id,n_likes \
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
  # &quot;UInt32&quot;
3870
4786
  # ],
3871
4787
  # [
3872
- # &quot;_key&quot;,
3873
- # &quot;ShortText&quot;
3874
- # ],
3875
- # [
3876
- # &quot;content&quot;,
3877
- # &quot;Text&quot;
3878
- # ],
3879
- # [
3880
4788
  # &quot;n_likes&quot;,
3881
4789
  # &quot;UInt32&quot;
3882
- # ],
3883
- # [
3884
- # &quot;tag&quot;,
3885
- # &quot;ShortText&quot;
3886
4790
  # ]
3887
4791
  # ],
3888
4792
  # [
3889
4793
  # 1,
3890
- # &quot;The first post!&quot;,
3891
- # &quot;Welcome! This is my first post!&quot;,
3892
- # 5,
3893
- # &quot;Hello&quot;
4794
+ # 5
3894
4795
  # ],
3895
4796
  # [
3896
4797
  # 2,
3897
- # &quot;Groonga&quot;,
3898
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
3899
- # 10,
3900
- # &quot;Groonga&quot;
4798
+ # 10
3901
4799
  # ],
3902
4800
  # [
3903
4801
  # 3,
3904
- # &quot;Mroonga&quot;,
3905
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
3906
- # 15,
3907
- # &quot;Groonga&quot;
4802
+ # 15
3908
4803
  # ],
3909
4804
  # [
3910
4805
  # 4,
3911
- # &quot;Good-bye Senna&quot;,
3912
- # &quot;I migrated all Senna system!&quot;,
3913
- # 3,
3914
- # &quot;Senna&quot;
4806
+ # 3
3915
4807
  # ],
3916
4808
  # [
3917
4809
  # 5,
3918
- # &quot;Good-bye Tritonn&quot;,
3919
- # &quot;I also migrated all Tritonn system!&quot;,
3920
- # 3,
3921
- # &quot;Senna&quot;
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
- --output_column _id,n_likes \
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
  # &quot;UInt32&quot;
3984
4873
  # ],
3985
4874
  # [
3986
- # &quot;_key&quot;,
3987
- # &quot;ShortText&quot;
3988
- # ],
3989
- # [
3990
- # &quot;content&quot;,
3991
- # &quot;Text&quot;
3992
- # ],
3993
- # [
3994
4875
  # &quot;n_likes&quot;,
3995
4876
  # &quot;UInt32&quot;
3996
- # ],
3997
- # [
3998
- # &quot;tag&quot;,
3999
- # &quot;ShortText&quot;
4000
4877
  # ]
4001
4878
  # ],
4002
4879
  # [
4003
4880
  # 1,
4004
- # &quot;The first post!&quot;,
4005
- # &quot;Welcome! This is my first post!&quot;,
4006
- # 5,
4007
- # &quot;Hello&quot;
4881
+ # 5
4008
4882
  # ],
4009
4883
  # [
4010
4884
  # 2,
4011
- # &quot;Groonga&quot;,
4012
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
4013
- # 10,
4014
- # &quot;Groonga&quot;
4885
+ # 10
4015
4886
  # ],
4016
4887
  # [
4017
4888
  # 3,
4018
- # &quot;Mroonga&quot;,
4019
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
4020
- # 15,
4021
- # &quot;Groonga&quot;
4889
+ # 15
4022
4890
  # ],
4023
4891
  # [
4024
4892
  # 4,
4025
- # &quot;Good-bye Senna&quot;,
4026
- # &quot;I migrated all Senna system!&quot;,
4027
- # 3,
4028
- # &quot;Senna&quot;
4893
+ # 3
4029
4894
  # ],
4030
4895
  # [
4031
4896
  # 5,
4032
- # &quot;Good-bye Tritonn&quot;,
4033
- # &quot;I also migrated all Tritonn system!&quot;,
4034
- # 3,
4035
- # &quot;Senna&quot;
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
- --output_column _id,n_likes \
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
  # &quot;UInt32&quot;
4098
4960
  # ],
4099
4961
  # [
4100
- # &quot;_key&quot;,
4101
- # &quot;ShortText&quot;
4102
- # ],
4103
- # [
4104
- # &quot;content&quot;,
4105
- # &quot;Text&quot;
4106
- # ],
4107
- # [
4108
4962
  # &quot;n_likes&quot;,
4109
4963
  # &quot;UInt32&quot;
4110
- # ],
4111
- # [
4112
- # &quot;tag&quot;,
4113
- # &quot;ShortText&quot;
4114
4964
  # ]
4115
4965
  # ],
4116
4966
  # [
4117
4967
  # 1,
4118
- # &quot;The first post!&quot;,
4119
- # &quot;Welcome! This is my first post!&quot;,
4120
- # 5,
4121
- # &quot;Hello&quot;
4968
+ # 5
4122
4969
  # ],
4123
4970
  # [
4124
4971
  # 2,
4125
- # &quot;Groonga&quot;,
4126
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
4127
- # 10,
4128
- # &quot;Groonga&quot;
4972
+ # 10
4129
4973
  # ],
4130
4974
  # [
4131
4975
  # 3,
4132
- # &quot;Mroonga&quot;,
4133
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
4134
- # 15,
4135
- # &quot;Groonga&quot;
4976
+ # 15
4136
4977
  # ],
4137
4978
  # [
4138
4979
  # 4,
4139
- # &quot;Good-bye Senna&quot;,
4140
- # &quot;I migrated all Senna system!&quot;,
4141
- # 3,
4142
- # &quot;Senna&quot;
4980
+ # 3
4143
4981
  # ],
4144
4982
  # [
4145
4983
  # 5,
4146
- # &quot;Good-bye Tritonn&quot;,
4147
- # &quot;I also migrated all Tritonn system!&quot;,
4148
- # 3,
4149
- # &quot;Senna&quot;
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.5.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>
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 &#39;_nsubrecs &gt; 1&#39; \
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
+ # &quot;_id&quot;,
5105
+ # &quot;UInt32&quot;
5106
+ # ],
5107
+ # [
5108
+ # &quot;tag&quot;,
5109
+ # &quot;ShortText&quot;
5110
+ # ]
5111
+ # ],
5112
+ # [
5113
+ # 1,
5114
+ # &quot;Hello&quot;
5115
+ # ],
5116
+ # [
5117
+ # 2,
5118
+ # &quot;Groonga&quot;
5119
+ # ],
5120
+ # [
5121
+ # 3,
5122
+ # &quot;Groonga&quot;
5123
+ # ],
5124
+ # [
5125
+ # 4,
5126
+ # &quot;Senna&quot;
5127
+ # ],
5128
+ # [
5129
+ # 5,
5130
+ # &quot;Senna&quot;
5131
+ # ]
5132
+ # ],
5133
+ # [
5134
+ # [
5135
+ # 2
5136
+ # ],
5137
+ # [
5138
+ # [
5139
+ # &quot;_key&quot;,
5140
+ # &quot;ShortText&quot;
5141
+ # ],
5142
+ # [
5143
+ # &quot;_nsubrecs&quot;,
5144
+ # &quot;Int32&quot;
5145
+ # ]
5146
+ # ],
5147
+ # [
5148
+ # &quot;Groonga&quot;,
5149
+ # 2
5150
+ # ],
5151
+ # [
5152
+ # &quot;Senna&quot;,
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.6. Advanced drilldown related parameters<a class="headerlink" href="#advanced-drilldown-related-parameters" title="Permalink to this headline">¶</a></h3>
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}].sortby</span></code></li>
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}].sortby</span></code>: <a class="reference internal" href="#select-drilldown-sortby"><span class="std std-ref">drilldown_sortby</span></a></li>
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-drilldown-label-keys"></span><h4>7.3.54.4.6.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>
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
- --output_column tag,n_likes \
4322
- --drilldown[tag.n_likes].keys tag,n_likes \
4323
- --drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
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
- # &quot;_id&quot;,
4338
- # &quot;UInt32&quot;
4339
- # ],
4340
- # [
4341
- # &quot;_key&quot;,
5301
+ # &quot;tag&quot;,
4342
5302
  # &quot;ShortText&quot;
4343
5303
  # ],
4344
5304
  # [
4345
- # &quot;content&quot;,
4346
- # &quot;Text&quot;
4347
- # ],
4348
- # [
4349
5305
  # &quot;n_likes&quot;,
4350
5306
  # &quot;UInt32&quot;
4351
- # ],
4352
- # [
4353
- # &quot;tag&quot;,
4354
- # &quot;ShortText&quot;
4355
5307
  # ]
4356
5308
  # ],
4357
5309
  # [
4358
- # 1,
4359
- # &quot;The first post!&quot;,
4360
- # &quot;Welcome! This is my first post!&quot;,
4361
- # 5,
4362
- # &quot;Hello&quot;
5310
+ # &quot;Hello&quot;,
5311
+ # 5
4363
5312
  # ],
4364
5313
  # [
4365
- # 2,
4366
5314
  # &quot;Groonga&quot;,
4367
- # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
4368
- # 10,
4369
- # &quot;Groonga&quot;
5315
+ # 10
4370
5316
  # ],
4371
5317
  # [
4372
- # 3,
4373
- # &quot;Mroonga&quot;,
4374
- # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
4375
- # 15,
4376
- # &quot;Groonga&quot;
5318
+ # &quot;Groonga&quot;,
5319
+ # 15
4377
5320
  # ],
4378
5321
  # [
4379
- # 4,
4380
- # &quot;Good-bye Senna&quot;,
4381
- # &quot;I migrated all Senna system!&quot;,
4382
- # 3,
4383
- # &quot;Senna&quot;
5322
+ # &quot;Senna&quot;,
5323
+ # 3
4384
5324
  # ],
4385
5325
  # [
4386
- # 5,
4387
- # &quot;Good-bye Tritonn&quot;,
4388
- # &quot;I also migrated all Tritonn system!&quot;,
4389
- # 3,
4390
- # &quot;Senna&quot;
5326
+ # &quot;Senna&quot;,
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-drilldown-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
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-drilldown-label-output-columns"></span><h4>7.3.54.4.6.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>
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-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>.</p>
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
- --output_column _id \
4464
- --drilldown[tag.n_likes].keys tag,n_likes \
4465
- --drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes
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
  # &quot;_id&quot;,
4480
5420
  # &quot;UInt32&quot;
4481
- # ],
4482
- # [
4483
- # &quot;_key&quot;,
4484
- # &quot;ShortText&quot;
4485
- # ],
4486
- # [
4487
- # &quot;content&quot;,
4488
- # &quot;Text&quot;
4489
- # ],
4490
- # [
4491
- # &quot;n_likes&quot;,
4492
- # &quot;UInt32&quot;
4493
- # ],
4494
- # [
4495
- # &quot;tag&quot;,
4496
- # &quot;ShortText&quot;
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-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>.</p>
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
- --output_column _id \
4548
- --drilldown[tag.n_likes].keys tag,n_likes \
4549
- --drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes
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
  # &quot;_id&quot;,
4564
5488
  # &quot;UInt32&quot;
4565
- # ],
4566
- # [
4567
- # &quot;_key&quot;,
4568
- # &quot;ShortText&quot;
4569
- # ],
4570
- # [
4571
- # &quot;content&quot;,
4572
- # &quot;Text&quot;
4573
- # ],
4574
- # [
4575
- # &quot;n_likes&quot;,
4576
- # &quot;UInt32&quot;
4577
- # ],
4578
- # [
4579
- # &quot;tag&quot;,
4580
- # &quot;ShortText&quot;
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-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>. So you can refer each group key
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-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a>. So you can't refer group key by
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 &#39;_nsubrecs &gt; 1&#39; \
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
+ # &quot;_id&quot;,
5616
+ # &quot;UInt32&quot;
5617
+ # ],
5618
+ # [
5619
+ # &quot;_key&quot;,
5620
+ # &quot;ShortText&quot;
5621
+ # ],
5622
+ # [
5623
+ # &quot;content&quot;,
5624
+ # &quot;Text&quot;
5625
+ # ],
5626
+ # [
5627
+ # &quot;n_likes&quot;,
5628
+ # &quot;UInt32&quot;
5629
+ # ],
5630
+ # [
5631
+ # &quot;tag&quot;,
5632
+ # &quot;ShortText&quot;
5633
+ # ]
5634
+ # ],
5635
+ # [
5636
+ # 1,
5637
+ # &quot;The first post!&quot;,
5638
+ # &quot;Welcome! This is my first post!&quot;,
5639
+ # 5,
5640
+ # &quot;Hello&quot;
5641
+ # ],
5642
+ # [
5643
+ # 2,
5644
+ # &quot;Groonga&quot;,
5645
+ # &quot;I started to use Groonga. It&#39;s very fast!&quot;,
5646
+ # 10,
5647
+ # &quot;Groonga&quot;
5648
+ # ],
5649
+ # [
5650
+ # 3,
5651
+ # &quot;Mroonga&quot;,
5652
+ # &quot;I also started to use Mroonga. It&#39;s also very fast! Really fast!&quot;,
5653
+ # 15,
5654
+ # &quot;Groonga&quot;
5655
+ # ],
5656
+ # [
5657
+ # 4,
5658
+ # &quot;Good-bye Senna&quot;,
5659
+ # &quot;I migrated all Senna system!&quot;,
5660
+ # 3,
5661
+ # &quot;Senna&quot;
5662
+ # ],
5663
+ # [
5664
+ # 5,
5665
+ # &quot;Good-bye Tritonn&quot;,
5666
+ # &quot;I also migrated all Tritonn system!&quot;,
5667
+ # 3,
5668
+ # &quot;Senna&quot;
5669
+ # ]
5670
+ # ],
5671
+ # {
5672
+ # &quot;tag&quot;: [
5673
+ # [
5674
+ # 2
5675
+ # ],
5676
+ # [
5677
+ # [
5678
+ # &quot;_key&quot;,
5679
+ # &quot;ShortText&quot;
5680
+ # ],
5681
+ # [
5682
+ # &quot;is_popular&quot;,
5683
+ # &quot;Bool&quot;
5684
+ # ],
5685
+ # [
5686
+ # &quot;_nsubrecs&quot;,
5687
+ # &quot;Int32&quot;
5688
+ # ]
5689
+ # ],
5690
+ # [
5691
+ # &quot;Groonga&quot;,
5692
+ # true,
5693
+ # 2
5694
+ # ],
5695
+ # [
5696
+ # &quot;Senna&quot;,
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-drilldown-label-output-format"></span><h4>7.3.54.4.6.3. 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>
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-drilldown-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
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-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> uses pairs of label and drilldown
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-drilldown-label-keys"><span class="std std-ref">drilldowns[${LABEL}].keys</span></a> uses the following output format:</p>
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.7. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
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.7.1. <code class="docutils literal"><span class="pre">cache</span></code><a class="headerlink" href="#cache" title="Permalink to this headline">¶</a></h4>
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.8. Score related parameters<a class="headerlink" href="#score-related-parameters" title="Permalink to this headline">¶</a></h3>
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.8.1. <code class="docutils literal"><span class="pre">adjuster</span></code><a class="headerlink" href="#adjuster" title="Permalink to this headline">¶</a></h4>
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-drilldown-label-output-format"><span class="std std-ref">Output format for drilldowns[${LABEL}] style</span></a> for
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="#drilldown-related-parameters">7.3.54.4.5. Drilldown related parameters</a><ul>
5285
- <li><a class="reference internal" href="#select-drilldown">7.3.54.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code></a></li>
5286
- <li><a class="reference internal" href="#drilldown-sortby">7.3.54.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code></a></li>
5287
- <li><a class="reference internal" href="#drilldown-sort-keys">7.3.54.4.5.3. <code class="docutils literal"><span class="pre">drilldown_sort_keys</span></code></a></li>
5288
- <li><a class="reference internal" href="#drilldown-output-columns">7.3.54.4.5.4. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code></a></li>
5289
- <li><a class="reference internal" href="#drilldown-offset">7.3.54.4.5.5. <code class="docutils literal"><span class="pre">drilldown_offset</span></code></a></li>
5290
- <li><a class="reference internal" href="#drilldown-limit">7.3.54.4.5.6. <code class="docutils literal"><span class="pre">drilldown_limit</span></code></a></li>
5291
- <li><a class="reference internal" href="#drilldown-calc-types">7.3.54.4.5.7. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code></a></li>
5292
- <li><a class="reference internal" href="#drilldown-calc-target">7.3.54.4.5.8. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code></a></li>
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="#advanced-drilldown-related-parameters">7.3.54.4.6. Advanced drilldown related parameters</a><ul>
5296
- <li><a class="reference internal" href="#drilldowns-label-keys">7.3.54.4.6.1. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].keys</span></code></a></li>
5297
- <li><a class="reference internal" href="#drilldowns-label-output-columns">7.3.54.4.6.2. <code class="docutils literal"><span class="pre">drilldowns[${LABEL}].output_columns</span></code></a></li>
5298
- <li><a class="reference internal" href="#output-format-for-drilldowns-label-style">7.3.54.4.6.3. Output format for <code class="docutils literal"><span class="pre">drilldowns[${LABEL}]</span></code> style</a></li>
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.7. Cache related parameter</a><ul>
5302
- <li><a class="reference internal" href="#cache">7.3.54.4.7.1. <code class="docutils literal"><span class="pre">cache</span></code></a></li>
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.8. Score related parameters</a><ul>
5306
- <li><a class="reference internal" href="#adjuster">7.3.54.4.8.1. <code class="docutils literal"><span class="pre">adjuster</span></code></a></li>
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 v6.1.3 documentation</a> &#187;</li>
6549
+ <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v7.0.1-160-gda23e59 documentation</a> &#187;</li>
5357
6550
  <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> &#187;</li>
5358
6551
  <li class="nav-item nav-item-2"><a href="../command.html" >7.3. Command</a> &#187;</li>
5359
6552
  </ul>