rroonga 5.0.9-x64-mingw32 → 5.1.1-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (629) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +2 -1
  3. data/ext/groonga/{rb-grn-conf.c → rb-grn-config.c} +18 -13
  4. data/ext/groonga/rb-grn-database.c +83 -0
  5. data/ext/groonga/rb-grn-fix-size-column.c +85 -0
  6. data/ext/groonga/rb-grn-index-column.c +82 -0
  7. data/ext/groonga/rb-grn-object.c +67 -1
  8. data/ext/groonga/rb-grn-table-key-support.c +87 -1
  9. data/ext/groonga/rb-grn-table.c +2 -2
  10. data/ext/groonga/rb-grn-variable-size-column.c +84 -1
  11. data/ext/groonga/rb-grn.h +5 -5
  12. data/ext/groonga/rb-groonga.c +27 -1
  13. data/lib/2.0/groonga.so +0 -0
  14. data/lib/2.1/groonga.so +0 -0
  15. data/lib/2.2/groonga.so +0 -0
  16. data/lib/2.3/groonga.so +0 -0
  17. data/lib/groonga/context.rb +12 -3
  18. data/lib/groonga/expression-builder.rb +2 -1
  19. data/rroonga-build.rb +6 -6
  20. data/test/test-accessor.rb +30 -0
  21. data/test/{test-conf.rb → test-config.rb} +5 -5
  22. data/test/test-database.rb +41 -0
  23. data/test/test-fix-size-column.rb +84 -0
  24. data/test/test-index-column.rb +71 -1
  25. data/test/test-package-label.rb +20 -0
  26. data/test/test-table-key-support.rb +42 -0
  27. data/test/test-table.rb +13 -0
  28. data/test/test-variable-size-column.rb +71 -1
  29. data/vendor/local/bin/grndb.exe +0 -0
  30. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  31. data/vendor/local/bin/groonga.exe +0 -0
  32. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  33. data/vendor/local/bin/libgroonga-0.dll +0 -0
  34. data/vendor/local/bin/libmecab-1.dll +0 -0
  35. data/vendor/local/bin/libmsgpack-4.dll +0 -0
  36. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  37. data/vendor/local/bin/libonig-5.dll +0 -0
  38. data/vendor/local/bin/libstdc++-6.dll +0 -0
  39. data/vendor/local/bin/lz4.exe +0 -0
  40. data/vendor/local/bin/lz4c.exe +0 -0
  41. data/vendor/local/bin/lz4cat +0 -0
  42. data/vendor/local/bin/mecab.exe +0 -0
  43. data/vendor/local/bin/zlib1.dll +0 -0
  44. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +9 -9
  45. data/vendor/local/include/groonga/groonga/file_reader.h +40 -0
  46. data/vendor/local/include/groonga/groonga/groonga.h +1 -0
  47. data/vendor/local/include/groonga/groonga/obj.h +7 -42
  48. data/vendor/local/include/groonga/groonga/portability.h +4 -4
  49. data/vendor/local/include/groonga/groonga.h +1 -0
  50. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  51. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  52. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  53. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  54. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  55. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  56. data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
  57. data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
  58. data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
  59. data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
  60. data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
  61. data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
  62. data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +70 -38
  63. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  64. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  65. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  66. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  67. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  68. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  69. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  70. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  71. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  73. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  74. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  75. data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +21 -0
  76. data/vendor/local/lib/groonga/scripts/ruby/id.rb +12 -0
  77. data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +2 -0
  78. data/vendor/local/lib/groonga/scripts/ruby/logger.rb +3 -1
  79. data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +6 -0
  80. data/vendor/local/lib/libgroonga.a +0 -0
  81. data/vendor/local/lib/libgroonga.dll.a +0 -0
  82. data/vendor/local/lib/liblz4.a +0 -0
  83. data/vendor/local/lib/liblz4.dll +0 -0
  84. data/vendor/local/lib/liblz4.dll.1 +0 -0
  85. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  86. data/vendor/local/lib/libmecab.a +0 -0
  87. data/vendor/local/lib/libmecab.dll.a +0 -0
  88. data/vendor/local/lib/libmsgpack.a +0 -0
  89. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  90. data/vendor/local/lib/libmsgpackc.a +0 -0
  91. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  92. data/vendor/local/lib/libonig.a +0 -0
  93. data/vendor/local/lib/libonig.dll.a +0 -0
  94. data/vendor/local/lib/libz.a +0 -0
  95. data/vendor/local/lib/libz.dll.a +0 -0
  96. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  97. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  98. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  99. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  100. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  101. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  102. data/vendor/local/sbin/groonga-httpd.exe +0 -0
  103. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  104. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +7 -2
  105. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
  106. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  107. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  108. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  109. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  110. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  111. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +4 -3
  112. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  113. data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +1 -1
  114. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +122 -1
  115. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/pretty_print.txt +45 -0
  116. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
  117. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +1 -1
  118. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/reindex.txt +142 -0
  119. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +10 -23
  120. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +4 -4
  121. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +2 -2
  122. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +2 -2
  123. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +2 -2
  124. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +3 -3
  125. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/prefix_rk_search.txt +158 -0
  126. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
  127. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +2 -2
  128. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +2 -2
  129. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_size.txt +3 -3
  130. data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations/geolocation_search.txt +1 -2
  131. data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations/prefix_rk_search.txt +76 -0
  132. data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +3 -2
  133. data/vendor/local/share/doc/groonga/en/html/_sources/reference/suggest/completion.txt +2 -7
  134. data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +1 -2
  135. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +37 -8
  136. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  137. data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/community.html +12 -6
  139. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
  143. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  145. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  146. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  147. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  153. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/index.html +72 -68
  160. data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
  161. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  162. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
  163. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  164. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  165. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  166. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +9 -8
  167. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  168. data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  171. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  173. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  174. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  175. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +7 -7
  178. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/news.html +187 -76
  180. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  181. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
  186. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
  187. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
  212. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +10 -10
  215. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +183 -0
  216. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +22 -22
  217. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +21 -21
  218. data/vendor/local/share/doc/groonga/en/html/reference/command.html +58 -56
  219. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +29 -29
  220. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +25 -25
  221. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +27 -27
  222. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +41 -41
  223. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +25 -25
  224. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +31 -31
  225. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +25 -25
  226. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +33 -33
  227. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +29 -29
  228. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +27 -27
  229. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +25 -25
  230. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +29 -29
  231. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +37 -37
  232. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +33 -33
  233. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +29 -29
  234. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +28 -27
  235. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +27 -27
  236. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +27 -27
  237. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +29 -29
  238. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +39 -39
  239. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +31 -31
  240. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +57 -57
  241. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +105 -105
  242. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +33 -33
  243. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +37 -37
  244. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +37 -37
  245. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +25 -25
  246. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +29 -29
  247. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +25 -25
  248. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +25 -25
  249. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +25 -25
  250. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +25 -25
  251. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +26 -26
  252. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +279 -0
  253. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +32 -32
  254. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +29 -29
  255. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +29 -29
  256. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +107 -107
  257. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +25 -25
  258. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +29 -29
  259. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +27 -27
  260. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +49 -49
  261. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +25 -25
  262. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +35 -35
  263. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +31 -31
  264. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +39 -39
  265. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +31 -31
  266. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +43 -43
  267. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +25 -25
  268. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +25 -25
  269. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
  270. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  271. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
  272. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  273. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  274. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
  276. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
  278. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  279. data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -17
  280. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +14 -8
  281. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +7 -7
  282. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +7 -7
  283. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
  284. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
  285. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +8 -8
  286. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +9 -9
  287. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +9 -9
  288. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +8 -8
  289. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +11 -11
  290. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +434 -0
  291. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +42 -42
  292. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +27 -27
  293. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +27 -27
  294. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
  295. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +23 -23
  296. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  297. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  298. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  299. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
  300. data/vendor/local/share/doc/groonga/en/html/reference/log.html +9 -9
  301. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  302. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +12 -12
  303. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +203 -0
  304. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +15 -17
  305. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  306. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  307. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  308. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
  309. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
  310. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
  311. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
  312. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +15 -15
  313. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +7 -11
  314. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
  315. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
  316. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
  317. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +10 -10
  318. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  319. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
  320. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  321. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
  322. data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
  323. data/vendor/local/share/doc/groonga/en/html/reference.html +72 -68
  324. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  325. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  326. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  327. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  328. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  329. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  330. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  331. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
  332. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  333. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  334. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  335. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  336. data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
  337. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  338. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  339. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  340. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  341. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  342. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  343. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  344. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  345. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  346. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  347. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  348. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  349. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  350. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  351. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  352. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  353. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +7 -2
  354. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
  355. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  356. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  357. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  358. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  359. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  360. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +4 -3
  361. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  362. data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +1 -1
  363. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +122 -1
  364. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/pretty_print.txt +45 -0
  365. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
  366. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +1 -1
  367. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/reindex.txt +142 -0
  368. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +10 -23
  369. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +4 -4
  370. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +2 -2
  371. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +2 -2
  372. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +2 -2
  373. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +3 -3
  374. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/prefix_rk_search.txt +158 -0
  375. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
  376. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +2 -2
  377. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +2 -2
  378. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_size.txt +3 -3
  379. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations/geolocation_search.txt +1 -2
  380. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations/prefix_rk_search.txt +76 -0
  381. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +3 -2
  382. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/suggest/completion.txt +2 -7
  383. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +1 -2
  384. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +37 -8
  385. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
  387. data/vendor/local/share/doc/groonga/ja/html/community.html +14 -6
  388. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
  389. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
  390. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
  391. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
  392. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  393. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  394. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  395. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  396. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  397. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  398. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  399. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  400. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  401. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  402. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  403. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  404. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  405. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  406. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  407. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  408. data/vendor/local/share/doc/groonga/ja/html/index.html +71 -67
  409. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
  410. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  411. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
  412. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  413. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  414. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  415. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +9 -8
  416. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  417. data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
  418. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  420. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  422. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  424. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
  425. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
  426. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +6 -6
  427. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  428. data/vendor/local/share/doc/groonga/ja/html/news.html +188 -76
  429. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  430. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
  431. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
  432. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
  433. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
  434. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
  435. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
  436. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
  437. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
  438. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  439. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
  440. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
  441. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
  442. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
  443. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
  444. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
  446. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
  447. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
  448. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
  450. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
  451. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
  452. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
  453. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
  454. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
  455. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  456. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  457. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  458. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
  459. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  460. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
  461. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  462. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  463. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +12 -11
  464. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +183 -0
  465. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +28 -33
  466. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +21 -21
  467. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +58 -56
  468. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +29 -29
  469. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +25 -25
  470. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +27 -27
  471. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +41 -41
  472. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +25 -25
  473. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +31 -31
  474. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +25 -25
  475. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +33 -33
  476. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +29 -29
  477. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +27 -27
  478. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +25 -25
  479. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +29 -29
  480. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +37 -37
  481. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +33 -33
  482. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +31 -31
  483. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +33 -37
  484. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +27 -27
  485. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +27 -27
  486. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +29 -29
  487. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +39 -39
  488. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +31 -31
  489. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +57 -57
  490. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +105 -105
  491. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +33 -33
  492. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +37 -37
  493. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +37 -37
  494. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +25 -25
  495. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +29 -29
  496. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +25 -25
  497. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +25 -25
  498. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +25 -25
  499. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +25 -25
  500. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +26 -26
  501. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +267 -0
  502. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +32 -32
  503. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +29 -29
  504. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +29 -29
  505. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +107 -107
  506. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +25 -25
  507. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +29 -29
  508. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +31 -31
  509. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +49 -49
  510. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +25 -25
  511. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +35 -35
  512. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +31 -31
  513. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +39 -39
  514. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +31 -31
  515. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +43 -43
  516. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +25 -25
  517. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +25 -25
  518. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
  519. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  520. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
  521. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
  522. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  523. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  524. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +5 -5
  525. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
  526. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  527. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  528. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -17
  529. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +13 -7
  530. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +7 -7
  531. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +7 -7
  532. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
  533. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
  534. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +8 -8
  535. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +9 -9
  536. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +9 -9
  537. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +8 -8
  538. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +11 -11
  539. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +422 -0
  540. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +42 -42
  541. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +27 -27
  542. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +27 -27
  543. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
  544. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +23 -23
  545. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  546. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  547. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  548. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
  549. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +9 -9
  550. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  551. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +10 -10
  552. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +190 -0
  553. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +11 -13
  554. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  555. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  556. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  557. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
  558. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
  559. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +5 -5
  560. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
  561. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +15 -15
  562. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -7
  563. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
  564. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
  565. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
  566. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +10 -10
  567. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  568. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
  569. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  570. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
  571. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +9 -9
  572. data/vendor/local/share/doc/groonga/ja/html/reference.html +71 -67
  573. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  574. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  575. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  576. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  577. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  578. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  579. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  580. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
  581. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  582. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  583. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  584. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  585. data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
  586. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  587. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  588. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  589. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  590. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  591. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  592. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  593. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  594. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  595. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  596. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  597. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  598. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  599. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  600. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  601. data/vendor/local/share/groonga/html/admin/404.html +26 -2
  602. data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
  603. data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +272 -213
  604. data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  605. data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
  606. data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
  607. data/vendor/local/share/groonga/html/admin/index.html +39 -5
  608. data/vendor/local/share/groonga/html/admin/scripts/oldieshim.572be7b4.js +2337 -0
  609. data/vendor/local/share/groonga/html/admin/scripts/scripts.a1c295fa.js +1749 -0
  610. data/vendor/local/share/groonga/html/admin/scripts/vendor.2c228d46.js +50748 -0
  611. data/vendor/local/share/groonga/html/admin/styles/main.d9de008c.css +12602 -0
  612. data/vendor/local/share/groonga/html/admin/styles/vendor.7f75f6e0.css +130 -0
  613. data/vendor/local/share/groonga/html/admin/views/columns/new.html +64 -1
  614. data/vendor/local/share/groonga/html/admin/views/columns/show.html +70 -1
  615. data/vendor/local/share/groonga/html/admin/views/tables/index.html +53 -1
  616. data/vendor/local/share/groonga/html/admin/views/tables/new.html +54 -2
  617. data/vendor/local/share/groonga/html/admin/views/tables/search.html +236 -1
  618. data/vendor/local/share/groonga/html/admin/views/tables/show.html +111 -1
  619. data/vendor/local/share/groonga/html/admin/views/top.html +20 -1
  620. data/vendor/local/share/license/groonga-admin/README.md +2 -2
  621. data/vendor/local/share/man/ja/man1/groonga.1 +955 -3334
  622. data/vendor/local/share/man/man1/groonga.1 +937 -3373
  623. metadata +78 -57
  624. data/vendor/local/share/groonga/html/admin/images/yeoman.d2754b85.png +0 -0
  625. data/vendor/local/share/groonga/html/admin/scripts/oldieshim.a466b7b1.js +0 -1
  626. data/vendor/local/share/groonga/html/admin/scripts/scripts.87083bfd.js +0 -1
  627. data/vendor/local/share/groonga/html/admin/scripts/vendor.fa48c0ac.js +0 -13
  628. data/vendor/local/share/groonga/html/admin/styles/main.0390285b.css +0 -1
  629. data/vendor/local/share/groonga/html/admin/styles/vendor.f4ae649a.css +0 -10
@@ -1,6 +1,6 @@
1
1
  .\" Man page generated from reStructuredText.
2
2
  .
3
- .TH "GROONGA" "1" "October 28, 2015" "5.0.9" "Groonga"
3
+ .TH "GROONGA" "1" "December 28, 2015" "5.1.1" "Groonga"
4
4
  .SH NAME
5
5
  groonga \- Groonga documentation
6
6
  .
@@ -110,7 +110,7 @@ packages.groonga.org:
110
110
  .INDENT 3.5
111
111
  .INDENT 0.0
112
112
  .IP \(bu 2
113
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.0.9\-x86.exe\fP
113
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x86.exe\fP
114
114
  .UNINDENT
115
115
  .UNINDENT
116
116
  .UNINDENT
@@ -123,7 +123,7 @@ packages.goronga.org:
123
123
  .INDENT 3.5
124
124
  .INDENT 0.0
125
125
  .IP \(bu 2
126
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.0.9\-x64.exe\fP
126
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x64.exe\fP
127
127
  .UNINDENT
128
128
  .UNINDENT
129
129
  .UNINDENT
@@ -140,7 +140,7 @@ packages.groonga.org:
140
140
  .INDENT 3.5
141
141
  .INDENT 0.0
142
142
  .IP \(bu 2
143
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.0.9\-x86.zip\fP
143
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x86.zip\fP
144
144
  .UNINDENT
145
145
  .UNINDENT
146
146
  .UNINDENT
@@ -153,7 +153,7 @@ packages.groonga.org:
153
153
  .INDENT 3.5
154
154
  .INDENT 0.0
155
155
  .IP \(bu 2
156
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.0.9\-x64.zip\fP
156
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-5.1.1\-x64.zip\fP
157
157
  .UNINDENT
158
158
  .UNINDENT
159
159
  .UNINDENT
@@ -181,7 +181,7 @@ Download zipped source from packages.groonga.org:
181
181
  .INDENT 3.5
182
182
  .INDENT 0.0
183
183
  .IP \(bu 2
184
- \fI\%http://packages.groonga.org/source/groonga/groonga\-5.0.9.zip\fP
184
+ \fI\%http://packages.groonga.org/source/groonga/groonga\-5.1.1.zip\fP
185
185
  .UNINDENT
186
186
  .UNINDENT
187
187
  .UNINDENT
@@ -194,7 +194,7 @@ Move to the Groonga\(aqs source folder:
194
194
  .sp
195
195
  .nf
196
196
  .ft C
197
- > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-5.0.9
197
+ > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-5.1.1
198
198
  .ft P
199
199
  .fi
200
200
  .UNINDENT
@@ -208,7 +208,7 @@ parameter instead:
208
208
  .sp
209
209
  .nf
210
210
  .ft C
211
- groonga\-5.0.9> cmake . \-G "Visual Studio 12 2013 Win64" \-DCMAKE_INSTALL_PREFIX=C:\eGroonga
211
+ groonga\-5.1.1> cmake . \-G "Visual Studio 12 2013 Win64" \-DCMAKE_INSTALL_PREFIX=C:\eGroonga
212
212
  .ft P
213
213
  .fi
214
214
  .UNINDENT
@@ -220,7 +220,7 @@ Build:
220
220
  .sp
221
221
  .nf
222
222
  .ft C
223
- groonga\-5.0.9> cmake \-\-build . \-\-config Release
223
+ groonga\-5.1.1> cmake \-\-build . \-\-config Release
224
224
  .ft P
225
225
  .fi
226
226
  .UNINDENT
@@ -232,7 +232,7 @@ Install:
232
232
  .sp
233
233
  .nf
234
234
  .ft C
235
- groonga\-5.0.9> cmake \-\-build . \-\-config Release \-\-target Install
235
+ groonga\-5.1.1> cmake \-\-build . \-\-config Release \-\-target Install
236
236
  .ft P
237
237
  .fi
238
238
  .UNINDENT
@@ -294,9 +294,9 @@ Download source:
294
294
  .sp
295
295
  .nf
296
296
  .ft C
297
- % curl \-O http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
298
- % tar xvzf groonga\-5.0.9.tar.gz
299
- % cd groonga\-5.0.9
297
+ % curl \-O http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
298
+ % tar xvzf groonga\-5.1.1.tar.gz
299
+ % cd groonga\-5.1.1
300
300
  .ft P
301
301
  .fi
302
302
  .UNINDENT
@@ -592,9 +592,9 @@ Download source:
592
592
  .sp
593
593
  .nf
594
594
  .ft C
595
- % wget http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
596
- % tar xvzf groonga\-5.0.9.tar.gz
597
- % cd groonga\-5.0.9
595
+ % wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
596
+ % tar xvzf groonga\-5.1.1.tar.gz
597
+ % cd groonga\-5.1.1
598
598
  .ft P
599
599
  .fi
600
600
  .UNINDENT
@@ -660,6 +660,8 @@ Here are supported Ubuntu versions:
660
660
  14.04 LTS Trusty Tahr
661
661
  .IP \(bu 2
662
662
  15.04 Vivid Vervet
663
+ .IP \(bu 2
664
+ 15.10 Wily Werewolf
663
665
  .UNINDENT
664
666
  .UNINDENT
665
667
  .UNINDENT
@@ -801,9 +803,9 @@ Download source:
801
803
  .sp
802
804
  .nf
803
805
  .ft C
804
- % wget http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
805
- % tar xvzf groonga\-5.0.9.tar.gz
806
- % cd groonga\-5.0.9
806
+ % wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
807
+ % tar xvzf groonga\-5.1.1.tar.gz
808
+ % cd groonga\-5.1.1
807
809
  .ft P
808
810
  .fi
809
811
  .UNINDENT
@@ -1208,9 +1210,9 @@ Download source:
1208
1210
  .sp
1209
1211
  .nf
1210
1212
  .ft C
1211
- % wget http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
1212
- % tar xvzf groonga\-5.0.9.tar.gz
1213
- % cd groonga\-5.0.9
1213
+ % wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
1214
+ % tar xvzf groonga\-5.1.1.tar.gz
1215
+ % cd groonga\-5.1.1
1214
1216
  .ft P
1215
1217
  .fi
1216
1218
  .UNINDENT
@@ -1411,9 +1413,9 @@ Download source:
1411
1413
  .sp
1412
1414
  .nf
1413
1415
  .ft C
1414
- % wget http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
1415
- % tar xvzf groonga\-5.0.9.tar.gz
1416
- % cd groonga\-5.0.9
1416
+ % wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
1417
+ % tar xvzf groonga\-5.1.1.tar.gz
1418
+ % cd groonga\-5.1.1
1417
1419
  .ft P
1418
1420
  .fi
1419
1421
  .UNINDENT
@@ -1478,9 +1480,9 @@ Download source:
1478
1480
  .sp
1479
1481
  .nf
1480
1482
  .ft C
1481
- % wget http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
1482
- % gtar xvzf groonga\-5.0.9.tar.gz
1483
- % cd groonga\-5.0.9
1483
+ % wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
1484
+ % gtar xvzf groonga\-5.1.1.tar.gz
1485
+ % cd groonga\-5.1.1
1484
1486
  .ft P
1485
1487
  .fi
1486
1488
  .UNINDENT
@@ -1620,9 +1622,9 @@ steps:
1620
1622
  .sp
1621
1623
  .nf
1622
1624
  .ft C
1623
- % wget http://packages.groonga.org/source/groonga/groonga\-5.0.9.tar.gz
1624
- % tar xvzf groonga\-5.0.9.tar.gz
1625
- % cd groonga\-5.0.9
1625
+ % wget http://packages.groonga.org/source/groonga/groonga\-5.1.1.tar.gz
1626
+ % tar xvzf groonga\-5.1.1.tar.gz
1627
+ % cd groonga\-5.1.1
1626
1628
  % ./configure
1627
1629
  % make
1628
1630
  % sudo make install
@@ -1914,7 +1916,15 @@ There are mailing lists for discussion about Groonga.
1914
1916
  .UNINDENT
1915
1917
  .SS Chat room
1916
1918
  .sp
1917
- You can join \fI\%groonga/public chat room on Gitter\fP\&.
1919
+ There are chat rooms for discussion about Groonga.
1920
+ .INDENT 0.0
1921
+ .TP
1922
+ .B For English speakers
1923
+ \fI\%groonga/en chat room on Gitter\fP
1924
+ .TP
1925
+ .B For Japanese speakers
1926
+ \fI\%groonga/ja chat room on Gitter\fP
1927
+ .UNINDENT
1918
1928
  .SS Twitter
1919
1929
  .sp
1920
1930
  \fI\%@groonga\fP tweets Groonga related
@@ -11668,6 +11678,59 @@ TODO
11668
11678
  .IP \(bu 2
11669
11679
  \fBreturn_code\fP describes about return code.
11670
11680
  .UNINDENT
11681
+ .SS Pretty print
11682
+ .SS Summary
11683
+ .sp
11684
+ New in version 5.1.0.
11685
+
11686
+ .sp
11687
+ Groonga supports pretty print when you choose JSON for
11688
+ \fBoutput_format\fP\&.
11689
+ .SS Usage
11690
+ .sp
11691
+ Just specify \fByes\fP to \fBoutput_pretty\fP parameter:
11692
+ .INDENT 0.0
11693
+ .INDENT 3.5
11694
+ .sp
11695
+ .nf
11696
+ .ft C
11697
+ > status \-\-output_pretty yes
11698
+ [
11699
+ [
11700
+ 0,
11701
+ 1448344438.43783,
11702
+ 5.29289245605469e\-05
11703
+ ],
11704
+ {
11705
+ "alloc_count": 233,
11706
+ "starttime": 1448344437,
11707
+ "start_time": 1448344437,
11708
+ "uptime": 1,
11709
+ "version": "5.0.9\-135\-g0763d91",
11710
+ "n_queries": 0,
11711
+ "cache_hit_rate": 0.0,
11712
+ "command_version": 1,
11713
+ "default_command_version": 1,
11714
+ "max_command_version": 2
11715
+ }
11716
+ ]
11717
+ .ft P
11718
+ .fi
11719
+ .UNINDENT
11720
+ .UNINDENT
11721
+ .sp
11722
+ Here is a result without \fBoutput_pretty\fP parameter:
11723
+ .INDENT 0.0
11724
+ .INDENT 3.5
11725
+ .sp
11726
+ .nf
11727
+ .ft C
11728
+ > status
11729
+ [[0,1448344438.43783,5.29289245605469e\-05],{"alloc_count":233,"starttime":1448344437,...}]
11730
+ .ft P
11731
+ .fi
11732
+ .UNINDENT
11733
+ .UNINDENT
11671
11734
  .SS Request ID
11672
11735
  .SS Summary
11673
11736
  .sp
@@ -15561,6 +15624,8 @@ If you don\(aqt specify it, database is used for the target object.
15561
15624
  .sp
15562
15625
  The default is none. It means that the target object is database.
15563
15626
  .SS Return value
15627
+ .sp
15628
+ \fBlock_clear\fP command returns whether lock is acquired or not:
15564
15629
  .INDENT 0.0
15565
15630
  .INDENT 3.5
15566
15631
  .sp
@@ -19637,6 +19702,198 @@ See \fB/reference/command/output_format\fP for \fBHEADER\fP\&.
19637
19702
  .IP \(bu 2
19638
19703
  \fBplugin_unregister\fP
19639
19704
  .UNINDENT
19705
+ .SS \fBreindex\fP
19706
+ .SS Summary
19707
+ .sp
19708
+ New in version 5.1.0.
19709
+
19710
+ .sp
19711
+ \fBreindex\fP command recreates one or more index columns.
19712
+ .sp
19713
+ If you specify a database as target object, all index columns are
19714
+ recreated.
19715
+ .sp
19716
+ If you specify a table as target object, all index columns in the
19717
+ table are recreated.
19718
+ .sp
19719
+ If you specify a data column as target object, all index columns for
19720
+ the data column are recreated.
19721
+ .sp
19722
+ If you specify an index column as target object, the index column is
19723
+ recreated.
19724
+ .sp
19725
+ This command is a useful when your index column is broken.
19726
+ The target object is one of database, table and column.
19727
+ .sp
19728
+ \fBNOTE:\fP
19729
+ .INDENT 0.0
19730
+ .INDENT 3.5
19731
+ You can\(aqt use target index columns while \fBreindex\fP command is
19732
+ running. If you use the same database from multiple processes, all
19733
+ processes except running \fBreindex\fP should reopen the
19734
+ database. You can use \fBdatabase_unmap\fP for reopening database.
19735
+ .UNINDENT
19736
+ .UNINDENT
19737
+ .SS Syntax
19738
+ .sp
19739
+ This command takes only one optional parameter:
19740
+ .INDENT 0.0
19741
+ .INDENT 3.5
19742
+ .sp
19743
+ .nf
19744
+ .ft C
19745
+ reindex [target_name=null]
19746
+ .ft P
19747
+ .fi
19748
+ .UNINDENT
19749
+ .UNINDENT
19750
+ .sp
19751
+ If \fBtarget_name\fP parameters is omitted, database is used for the
19752
+ target object. It means that all index columns in the database are
19753
+ recreated.
19754
+ .SS Usage
19755
+ .sp
19756
+ Here is an example to recreate all index columns in the database:
19757
+ .sp
19758
+ Execution example:
19759
+ .INDENT 0.0
19760
+ .INDENT 3.5
19761
+ .sp
19762
+ .nf
19763
+ .ft C
19764
+ reindex
19765
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19766
+ .ft P
19767
+ .fi
19768
+ .UNINDENT
19769
+ .UNINDENT
19770
+ .sp
19771
+ Here is an example to recreate all index columns
19772
+ (\fBLexicon.entry_key\fP and \fBLexicon.entry_body\fP) in \fBLexicon\fP
19773
+ table:
19774
+ .sp
19775
+ Execution example:
19776
+ .INDENT 0.0
19777
+ .INDENT 3.5
19778
+ .sp
19779
+ .nf
19780
+ .ft C
19781
+ table_create Entry TABLE_HASH_KEY ShortText
19782
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19783
+ column_create Entry body COLUMN_SCALAR Text
19784
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19785
+ table_create Lexicon TABLE_PAT_KEY ShortText \e
19786
+ \-\-default_tokenizer TokenBigram \e
19787
+ \-\-normalizer NormalizerAuto
19788
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19789
+ column_create Lexicon entry_key COLUMN_INDEX|WITH_POSITION \e
19790
+ Entry _key
19791
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19792
+ column_create Lexicon entry_body COLUMN_INDEX|WITH_POSITION \e
19793
+ Entry body
19794
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19795
+ reindex Lexicon
19796
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19797
+ .ft P
19798
+ .fi
19799
+ .UNINDENT
19800
+ .UNINDENT
19801
+ .sp
19802
+ Here is an example to recreate all index columns
19803
+ (\fBBigramLexicon.site_title\fP and \fBRegexpLexicon.site_title\fP) of
19804
+ \fBSite.title\fP data column:
19805
+ .sp
19806
+ Execution example:
19807
+ .INDENT 0.0
19808
+ .INDENT 3.5
19809
+ .sp
19810
+ .nf
19811
+ .ft C
19812
+ table_create Site TABLE_HASH_KEY ShortText
19813
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19814
+ column_create Site title COLUMN_SCALAR ShortText
19815
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19816
+ table_create BigramLexicon TABLE_PAT_KEY ShortText \e
19817
+ \-\-default_tokenizer TokenBigram \e
19818
+ \-\-normalizer NormalizerAuto
19819
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19820
+ column_create BigramLexicon site_title COLUMN_INDEX|WITH_POSITION \e
19821
+ Site title
19822
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19823
+ table_create RegexpLexicon TABLE_PAT_KEY ShortText \e
19824
+ \-\-default_tokenizer TokenRegexp \e
19825
+ \-\-normalizer NormalizerAuto
19826
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19827
+ column_create RegexpLexicon site_title COLUMN_INDEX|WITH_POSITION \e
19828
+ Site title
19829
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19830
+ reindex Site.title
19831
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19832
+ .ft P
19833
+ .fi
19834
+ .UNINDENT
19835
+ .UNINDENT
19836
+ .sp
19837
+ Here is an example to recreate an index column (\fBTimestamp.index\fP):
19838
+ .sp
19839
+ Execution example:
19840
+ .INDENT 0.0
19841
+ .INDENT 3.5
19842
+ .sp
19843
+ .nf
19844
+ .ft C
19845
+ table_create Logs TABLE_NO_KEY
19846
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19847
+ column_create Logs timestamp COLUMN_SCALAR Time
19848
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19849
+ table_create Timestamp TABLE_PAT_KEY Time
19850
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19851
+ column_create Timestamp logs_timestamp COLUMN_INDEX Logs timestamp
19852
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19853
+ reindex Timestamp.logs_timestamp
19854
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
19855
+ .ft P
19856
+ .fi
19857
+ .UNINDENT
19858
+ .UNINDENT
19859
+ .SS Parameters
19860
+ .sp
19861
+ This section describes all parameters.
19862
+ .SS \fBtarget_name\fP
19863
+ .sp
19864
+ Specifies the name of table or column.
19865
+ .sp
19866
+ If you don\(aqt specify it, database is used for the target object.
19867
+ .sp
19868
+ The default is none. It means that the target object is database.
19869
+ .SS Return value
19870
+ .sp
19871
+ \fBreindex\fP command returns whether recreation is succeeded or not:
19872
+ .INDENT 0.0
19873
+ .INDENT 3.5
19874
+ .sp
19875
+ .nf
19876
+ .ft C
19877
+ [HEADER, SUCCEEDED_OR_NOT]
19878
+ .ft P
19879
+ .fi
19880
+ .UNINDENT
19881
+ .UNINDENT
19882
+ .sp
19883
+ \fBHEADER\fP
19884
+ .INDENT 0.0
19885
+ .INDENT 3.5
19886
+ See \fB/reference/command/output_format\fP about \fBHEADER\fP\&.
19887
+ .UNINDENT
19888
+ .UNINDENT
19889
+ .sp
19890
+ \fBSUCCEEDED_OR_NOT\fP
19891
+ .INDENT 0.0
19892
+ .INDENT 3.5
19893
+ If command succeeded, it returns true, otherwise it returns false on
19894
+ error.
19895
+ .UNINDENT
19896
+ .UNINDENT
19640
19897
  .SS \fBrequest_cancel\fP
19641
19898
  .SS Summary
19642
19899
  .sp
@@ -40041,7 +40298,7 @@ options of \fBcommands/select\fP\&.
40041
40298
  This section describes about function and built\-in functions.
40042
40299
  .sp
40043
40300
  TODO: Add documentations about function.
40044
- .SS between
40301
+ .SS \fBbetween\fP
40045
40302
  .SS Summary
40046
40303
  .sp
40047
40304
  \fBbetween\fP is used for checking the specified value exists in the specific range.
@@ -40061,16 +40318,22 @@ between(column_or_value, min, min_border, max, max_border)
40061
40318
  .UNINDENT
40062
40319
  .SS Usage
40063
40320
  .sp
40064
- Here are a schema definition and sample data to show usage.:
40321
+ Here are a schema definition and sample data to show usage:
40322
+ .sp
40323
+ Execution example:
40065
40324
  .INDENT 0.0
40066
40325
  .INDENT 3.5
40067
40326
  .sp
40068
40327
  .nf
40069
40328
  .ft C
40070
40329
  table_create Users TABLE_HASH_KEY ShortText
40330
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
40071
40331
  column_create Users age COLUMN_SCALAR Int32
40332
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
40072
40333
  table_create Ages TABLE_HASH_KEY Int32
40334
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
40073
40335
  column_create Ages user_age COLUMN_INDEX Users age
40336
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
40074
40337
  load \-\-table Users
40075
40338
  [
40076
40339
  {"_key": "Alice", "age": 12},
@@ -40080,6 +40343,7 @@ load \-\-table Users
40080
40343
  {"_key": "Eric", "age": 20}
40081
40344
  {"_key": "Frank", "age": 21}
40082
40345
  ]
40346
+ # [[0, 1337566253.89858, 0.000355720520019531], 6]
40083
40347
  .ft P
40084
40348
  .fi
40085
40349
  .UNINDENT
@@ -40297,7 +40561,7 @@ edit_distance(title, "hoge")
40297
40561
  .fi
40298
40562
  .UNINDENT
40299
40563
  .UNINDENT
40300
- .SS geo_distance
40564
+ .SS \fBgeo_distance\fP
40301
40565
  .SS Summary
40302
40566
  .sp
40303
40567
  \fBgeo_distance\fP calculates the value of distance between specified two points.
@@ -41058,7 +41322,7 @@ true
41058
41322
  脚注
41059
41323
  .IP [1] 5
41060
41324
  TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
41061
- .SS highlight_full
41325
+ .SS \fBhighlight_full\fP
41062
41326
  .sp
41063
41327
  \fBCAUTION:\fP
41064
41328
  .INDENT 0.0
@@ -41247,7 +41511,7 @@ You can specify multiple close tags for each three arguments.
41247
41511
  .IP \(bu 2
41248
41512
  \fB/reference/functions/highlight_html\fP
41249
41513
  .UNINDENT
41250
- .SS highlight_html
41514
+ .SS \fBhighlight_html\fP
41251
41515
  .sp
41252
41516
  \fBCAUTION:\fP
41253
41517
  .INDENT 0.0
@@ -41420,7 +41684,7 @@ There is no optional parameters.
41420
41684
  .IP \(bu 2
41421
41685
  \fB/reference/functions/highlight_full\fP
41422
41686
  .UNINDENT
41423
- .SS html_untag
41687
+ .SS \fBhtml_untag\fP
41424
41688
  .SS Summary
41425
41689
  .sp
41426
41690
  \fBhtml_untag\fP strips HTML tags from HTML and outputs plain text.
@@ -41537,7 +41801,7 @@ Specifies HTML text to be untagged.
41537
41801
  .SS Return value
41538
41802
  .sp
41539
41803
  \fBhtml_untag\fP returns plain text which is stripped HTML tags from HTML text.
41540
- .SS in_values
41804
+ .SS \fBin_values\fP
41541
41805
  .SS Summary
41542
41806
  .sp
41543
41807
  New in version 4.0.7.
@@ -41708,7 +41972,367 @@ now()
41708
41972
  .fi
41709
41973
  .UNINDENT
41710
41974
  .UNINDENT
41711
- .SS query
41975
+ .SS \fBprefix_rk_search()\fP
41976
+ .SS Summary
41977
+ .sp
41978
+ \fBprefix_rk_search()\fP selects records by
41979
+ \fB/reference/operations/prefix_rk_search\fP\&.
41980
+ .sp
41981
+ You need to create table\-pat\-key table for prefix RK search.
41982
+ .sp
41983
+ You can\(aqt use \fBprefix_rk_search()\fP for sequential scan. It\(aqs a
41984
+ selector only procedure.
41985
+ .SS Syntax
41986
+ .sp
41987
+ \fBprefix_rk_search()\fP requires two arguments. They are \fBcolumn\fP and
41988
+ \fBquery\fP:
41989
+ .INDENT 0.0
41990
+ .INDENT 3.5
41991
+ .sp
41992
+ .nf
41993
+ .ft C
41994
+ prefix_rk_search(column, query)
41995
+ .ft P
41996
+ .fi
41997
+ .UNINDENT
41998
+ .UNINDENT
41999
+ .sp
42000
+ \fBcolumn\fP must be \fB_key\fP for now.
42001
+ .sp
42002
+ \fBquery\fP must be string.
42003
+ .SS Usage
42004
+ .sp
42005
+ Here are a schema definition and sample data to show usage:
42006
+ .sp
42007
+ Execution example:
42008
+ .INDENT 0.0
42009
+ .INDENT 3.5
42010
+ .sp
42011
+ .nf
42012
+ .ft C
42013
+ table_create Readings TABLE_PAT_KEY ShortText \-\-normalizer NormalizerAuto
42014
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42015
+ load \-\-table Readings
42016
+ [
42017
+ {"_key": "ニホン"},
42018
+ {"_key": "ニッポン"},
42019
+ {"_key": "ローマジ"}
42020
+ ]
42021
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
42022
+ .ft P
42023
+ .fi
42024
+ .UNINDENT
42025
+ .UNINDENT
42026
+ .sp
42027
+ Here is the simple usage of \fBprefix_rk_search()\fP function which
42028
+ selects \fBニホン\fP and \fBニッポン\fP by \fBni\fP:
42029
+ .sp
42030
+ Execution example:
42031
+ .INDENT 0.0
42032
+ .INDENT 3.5
42033
+ .sp
42034
+ .nf
42035
+ .ft C
42036
+ select Readings \-\-filter \(aqprefix_rk_search(_key, "ni")\(aq
42037
+ # [
42038
+ # [
42039
+ # 0,
42040
+ # 1337566253.89858,
42041
+ # 0.000355720520019531
42042
+ # ],
42043
+ # [
42044
+ # [
42045
+ # [
42046
+ # 2
42047
+ # ],
42048
+ # [
42049
+ # [
42050
+ # "_id",
42051
+ # "UInt32"
42052
+ # ],
42053
+ # [
42054
+ # "_key",
42055
+ # "ShortText"
42056
+ # ]
42057
+ # ],
42058
+ # [
42059
+ # 2,
42060
+ # "ニッポン"
42061
+ # ],
42062
+ # [
42063
+ # 1,
42064
+ # "ニホン"
42065
+ # ]
42066
+ # ]
42067
+ # ]
42068
+ # ]
42069
+ .ft P
42070
+ .fi
42071
+ .UNINDENT
42072
+ .UNINDENT
42073
+ .sp
42074
+ You can implement \fB/reference/suggest/completion\fP like feature by
42075
+ combining \fBsub_filter\fP\&.
42076
+ .sp
42077
+ Create a table that has candidates of completion as records. Each
42078
+ records have zero or more readings. They are stored into \fBReadings\fP
42079
+ table. Don\(aqt forget define an index column for \fBItems.readings\fP in
42080
+ \fBReadings\fP table. The index column is needed for \fBsub_filter\fP:
42081
+ .sp
42082
+ Execution example:
42083
+ .INDENT 0.0
42084
+ .INDENT 3.5
42085
+ .sp
42086
+ .nf
42087
+ .ft C
42088
+ table_create Items TABLE_HASH_KEY ShortText
42089
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42090
+ column_create Items readings COLUMN_VECTOR Readings
42091
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42092
+ column_create Readings items_index COLUMN_INDEX Items readings
42093
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42094
+ load \-\-table Items
42095
+ [
42096
+ {"_key": "日本", "readings": ["ニホン", "ニッポン"]},
42097
+ {"_key": "ローマ字", "readings": ["ローマジ"]},
42098
+ {"_key": "漢字", "readings": ["カンジ"]}
42099
+ ]
42100
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
42101
+ .ft P
42102
+ .fi
42103
+ .UNINDENT
42104
+ .UNINDENT
42105
+ .sp
42106
+ You can find \fB日本\fP record in \fBItems\fP table by \fBniho\fP\&. Because
42107
+ prefix RK search with \fBniho\fP selects \fBニホン\fP reading and \fBニホン\fP
42108
+ reading is one of readings of \fB日本\fP record:
42109
+ .sp
42110
+ Execution example:
42111
+ .INDENT 0.0
42112
+ .INDENT 3.5
42113
+ .sp
42114
+ .nf
42115
+ .ft C
42116
+ select Items \e
42117
+ \-\-filter \(aqsub_filter(readings, "prefix_rk_search(_key, \e\e"niho\e\e")")\(aq
42118
+ # [
42119
+ # [
42120
+ # 0,
42121
+ # 1337566253.89858,
42122
+ # 0.000355720520019531
42123
+ # ],
42124
+ # [
42125
+ # [
42126
+ # [
42127
+ # 1
42128
+ # ],
42129
+ # [
42130
+ # [
42131
+ # "_id",
42132
+ # "UInt32"
42133
+ # ],
42134
+ # [
42135
+ # "_key",
42136
+ # "ShortText"
42137
+ # ],
42138
+ # [
42139
+ # "readings",
42140
+ # "Readings"
42141
+ # ]
42142
+ # ],
42143
+ # [
42144
+ # 1,
42145
+ # "日本",
42146
+ # [
42147
+ # "ニホン",
42148
+ # "ニッポン"
42149
+ # ]
42150
+ # ]
42151
+ # ]
42152
+ # ]
42153
+ # ]
42154
+ .ft P
42155
+ .fi
42156
+ .UNINDENT
42157
+ .UNINDENT
42158
+ .sp
42159
+ You need to combine script\-syntax\-prefix\-search\-operator to
42160
+ support no reading completion targets.
42161
+ .sp
42162
+ Add one no reading completion target:
42163
+ .sp
42164
+ Execution example:
42165
+ .INDENT 0.0
42166
+ .INDENT 3.5
42167
+ .sp
42168
+ .nf
42169
+ .ft C
42170
+ load \-\-table Items
42171
+ [
42172
+ {"_key": "nihon", "readings": []}
42173
+ ]
42174
+ # [[0, 1337566253.89858, 0.000355720520019531], 1]
42175
+ .ft P
42176
+ .fi
42177
+ .UNINDENT
42178
+ .UNINDENT
42179
+ .sp
42180
+ Combine script\-syntax\-prefix\-search\-operator to
42181
+ support no reading completion targets:
42182
+ .sp
42183
+ Execution example:
42184
+ .INDENT 0.0
42185
+ .INDENT 3.5
42186
+ .sp
42187
+ .nf
42188
+ .ft C
42189
+ select Items \e
42190
+ \-\-filter \(aqsub_filter(readings, "prefix_rk_search(_key, \e\e"niho\e\e")") || \e
42191
+ _key @^ "niho"\(aq
42192
+ # [
42193
+ # [
42194
+ # 0,
42195
+ # 1337566253.89858,
42196
+ # 0.000355720520019531
42197
+ # ],
42198
+ # [
42199
+ # [
42200
+ # [
42201
+ # 2
42202
+ # ],
42203
+ # [
42204
+ # [
42205
+ # "_id",
42206
+ # "UInt32"
42207
+ # ],
42208
+ # [
42209
+ # "_key",
42210
+ # "ShortText"
42211
+ # ],
42212
+ # [
42213
+ # "readings",
42214
+ # "Readings"
42215
+ # ]
42216
+ # ],
42217
+ # [
42218
+ # 1,
42219
+ # "日本",
42220
+ # [
42221
+ # "ニホン",
42222
+ # "ニッポン"
42223
+ # ]
42224
+ # ],
42225
+ # [
42226
+ # 4,
42227
+ # "nihon",
42228
+ # []
42229
+ # ]
42230
+ # ]
42231
+ # ]
42232
+ # ]
42233
+ .ft P
42234
+ .fi
42235
+ .UNINDENT
42236
+ .UNINDENT
42237
+ .sp
42238
+ Normally, you want to use case insensitive search for completion. Use
42239
+ \fB\-\-normalizer NormalizerAuto\fP and \fBlabel\fP column for the case:
42240
+ .sp
42241
+ Execution example:
42242
+ .INDENT 0.0
42243
+ .INDENT 3.5
42244
+ .sp
42245
+ .nf
42246
+ .ft C
42247
+ table_create LooseItems TABLE_HASH_KEY ShortText \-\-normalizer NormalizerAuto
42248
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42249
+ column_create LooseItems label COLUMN_SCALAR ShortText
42250
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42251
+ column_create LooseItems readings COLUMN_VECTOR Readings
42252
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42253
+ column_create Readings loose_items_index COLUMN_INDEX LooseItems readings
42254
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
42255
+ load \-\-table LooseItems
42256
+ [
42257
+ {"_key": "日本", "label": "日本", "readings": ["ニホン", "ニッポン"]},
42258
+ {"_key": "ローマ字", "label": "ローマ字", "readings": ["ローマジ"]},
42259
+ {"_key": "漢字", "label": "漢字", "readings": ["カンジ"]},
42260
+ {"_key": "Nihon", "label": "日本", "readings": []}
42261
+ ]
42262
+ # [[0, 1337566253.89858, 0.000355720520019531], 4]
42263
+ .ft P
42264
+ .fi
42265
+ .UNINDENT
42266
+ .UNINDENT
42267
+ .sp
42268
+ Use \fBLooseItems.label\fP for display:
42269
+ .sp
42270
+ Execution example:
42271
+ .INDENT 0.0
42272
+ .INDENT 3.5
42273
+ .sp
42274
+ .nf
42275
+ .ft C
42276
+ select LooseItems \e
42277
+ \-\-filter \(aqsub_filter(readings, "prefix_rk_search(_key, \e\e"nIhO\e\e")") || \e
42278
+ _key @^ "nIhO"\(aq \e
42279
+ \-\-output_columns \(aq_key,label\(aq
42280
+ # [
42281
+ # [
42282
+ # 0,
42283
+ # 1337566253.89858,
42284
+ # 0.000355720520019531
42285
+ # ],
42286
+ # [
42287
+ # [
42288
+ # [
42289
+ # 2
42290
+ # ],
42291
+ # [
42292
+ # [
42293
+ # "_key",
42294
+ # "ShortText"
42295
+ # ],
42296
+ # [
42297
+ # "label",
42298
+ # "ShortText"
42299
+ # ]
42300
+ # ],
42301
+ # [
42302
+ # "日本",
42303
+ # "日本"
42304
+ # ],
42305
+ # [
42306
+ # "nihon",
42307
+ # "日本"
42308
+ # ]
42309
+ # ]
42310
+ # ]
42311
+ # ]
42312
+ .ft P
42313
+ .fi
42314
+ .UNINDENT
42315
+ .UNINDENT
42316
+ .SS Parameters
42317
+ .sp
42318
+ There are two required parameter, \fBcolumn\fP and \fBquery\fP\&.
42319
+ .SS \fBcolumn\fP
42320
+ .sp
42321
+ Always specifies \fB_key\fP for now.
42322
+ .SS \fBquery\fP
42323
+ .sp
42324
+ Specifies a query in romaji, katakana or hiragana as string.
42325
+ .SS Return value
42326
+ .sp
42327
+ \fBprefix_rk_search()\fP function returns matched records.
42328
+ .SS See also
42329
+ .INDENT 0.0
42330
+ .IP \(bu 2
42331
+ \fB/reference/operations/prefix_rk_search\fP
42332
+ .IP \(bu 2
42333
+ \fB/reference/functions/sub_filter\fP
42334
+ .UNINDENT
42335
+ .SS \fBquery\fP
41712
42336
  .SS Summary
41713
42337
  .sp
41714
42338
  \fBquery\fP provides \fB\-\-match_columns\fP and \fB\-\-query\fP parameters of
@@ -42078,7 +42702,7 @@ rand(10)
42078
42702
  .fi
42079
42703
  .UNINDENT
42080
42704
  .UNINDENT
42081
- .SS snippet_html
42705
+ .SS \fBsnippet_html\fP
42082
42706
  .sp
42083
42707
  \fBCAUTION:\fP
42084
42708
  .INDENT 0.0
@@ -42288,7 +42912,7 @@ Support options by object literal.
42288
42912
  .IP \(bu 2
42289
42913
  \fB/reference/commands/select\fP
42290
42914
  .UNINDENT
42291
- .SS sub_filter
42915
+ .SS \fBsub_filter\fP
42292
42916
  .SS Summary
42293
42917
  .sp
42294
42918
  \fBsub_filter\fP evaluates \fBfilter_string\fP in \fBscope\fP context.
@@ -42508,7 +43132,7 @@ more records are matched, it returns \fBtrue\fP\&. Otherwise, it returns
42508
43132
  .IP \(bu 2
42509
43133
  \fB/reference/grn_expr/script_syntax\fP
42510
43134
  .UNINDENT
42511
- .SS vector_size
43135
+ .SS \fBvector_size\fP
42512
43136
  .SS Summary
42513
43137
  .sp
42514
43138
  New in version 5.0.3.
@@ -42650,7 +43274,7 @@ Specifies a vector column of table that is specified by \fBtable\fP parameter in
42650
43274
  .sp
42651
43275
  Groonga has the multiple search operations. This section describes
42652
43276
  about search operations.
42653
- .SS Geolocation Search
43277
+ .SS Geolocation search
42654
43278
  .sp
42655
43279
  Groonga supports geolocation search. It uses index for
42656
43280
  search. It means that you can search by geolocation fast
@@ -42704,6 +43328,81 @@ are treated.
42704
43328
  [image]
42705
43329
  .sp
42706
43330
  Coming soon...
43331
+ .SS Prefix RK search
43332
+ .SS Summary
43333
+ .sp
43334
+ Groonga supports prefix RK search. RK means Romaji and Kana (reading).
43335
+ Prefix RK search can find registered text in katakana by query in
43336
+ romaji, hiragana or katakana. Found registered texts are started with
43337
+ query.
43338
+ .sp
43339
+ Prefix RK search is useful for completing Japanese text. Because
43340
+ romaji is widely used to input Japanese on computer. See also
43341
+ \fI\%Japanese input methods on Wikipedia\fP\&.
43342
+ .sp
43343
+ If users can search Japanese text in romaji, users doesn\(aqt need to
43344
+ convert romaji to hiragana, katakana or kanji by themselves. For
43345
+ example, if you register a reading for "日本" as "ニホン", users can
43346
+ find "日本" by "ni", "に" or "二".
43347
+ .sp
43348
+ The feature is helpful because it reduces one or more operations of
43349
+ users.
43350
+ .sp
43351
+ This feature is used in \fB/reference/suggest/completion\fP\&.
43352
+ .sp
43353
+ You can use this feature in select\-filter by
43354
+ \fB/reference/functions/prefix_rk_search\fP\&.
43355
+ .SS Usage
43356
+ .sp
43357
+ You need table\-pat\-key table for using prefix RK search.
43358
+ .sp
43359
+ You need to put reading in katakana to \fBTABLE_PAT_KEY\fP as key:
43360
+ .sp
43361
+ Execution example:
43362
+ .INDENT 0.0
43363
+ .INDENT 3.5
43364
+ .sp
43365
+ .nf
43366
+ .ft C
43367
+ table_create Readings TABLE_PAT_KEY ShortText \-\-normalizer NormalizerAuto
43368
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
43369
+ load \-\-table Readings
43370
+ [
43371
+ {"_key": "ニホン"},
43372
+ {"_key": "ニッポン"},
43373
+ {"_key": "ローマジ"}
43374
+ ]
43375
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
43376
+ .ft P
43377
+ .fi
43378
+ .UNINDENT
43379
+ .UNINDENT
43380
+ .sp
43381
+ You can finds \fBニホン\fP and \fBニッポン\fP by prefix RK search with
43382
+ \fBni\fP as query from the \fBReadings\fP table.
43383
+ .sp
43384
+ You can finds \fBローマジ\fP by prefix RK search with \fBr\fP as query
43385
+ from the \fBReadings\fP table.
43386
+ .SS How to convert romaji to reading
43387
+ .sp
43388
+ Prefix RK search is based on JIS X 4063:2000 specification.
43389
+ .sp
43390
+ The specification was obsoleted. See \fI\%ローマ字入力 on Japanese
43391
+ Wikipedia\fP
43392
+ for JIS X 4063:2000.
43393
+ .sp
43394
+ Normally, you can get converted results as expected.
43395
+ .SS See also
43396
+ .INDENT 0.0
43397
+ .INDENT 3.5
43398
+ .INDENT 0.0
43399
+ .IP \(bu 2
43400
+ \fB/reference/suggest/completion\fP
43401
+ .IP \(bu 2
43402
+ \fB/reference/functions/prefix_rk_search\fP
43403
+ .UNINDENT
43404
+ .UNINDENT
43405
+ .UNINDENT
42707
43406
  .SS Suggest
42708
43407
  .sp
42709
43408
  Groonga has the suggest feature. This section describes how to use it and how it works.
@@ -42867,13 +43566,8 @@ Prefix search against registered words. (optional)
42867
43566
  .UNINDENT
42868
43567
  .SS Prefix RK search
42869
43568
  .sp
42870
- RK means Romaji and Katakana. Prefix RK search can find
42871
- registered words that start with user\(aqs input by romaji,
42872
- katakana or hiragana. It\(aqs useful for searching in Japanese.
42873
- .sp
42874
- For example, there is a registered word "日本". And "ニホン"
42875
- (it must be katakana) is registered as its reading. An user
42876
- can find "日本" by "ni", "二" or "に".
43569
+ See \fB/reference/operations/prefix_rk_search\fP for prefix RK
43570
+ search.
42877
43571
  .sp
42878
43572
  If you create dataset which is named as \fBexample\fP by
42879
43573
  \fB/reference/executables/groonga\-suggest\-create\-dataset\fP
@@ -44218,3462 +44912,332 @@ _
44218
44912
  .sp
44219
44913
  TODO
44220
44914
  .SS Commands
44221
- .SS \fBlogical_count\fP
44222
- .SS Summary
44223
- .sp
44224
- \fBNOTE:\fP
44225
- .INDENT 0.0
44226
- .INDENT 3.5
44227
- This command is an experimental feature.
44228
- .UNINDENT
44229
- .UNINDENT
44230
- .sp
44231
- New in version 5.0.0.
44232
-
44233
- .sp
44234
- \fBlogical_count\fP is a command to count matched records even though actual records are stored into parted tables. It is useful for users because there is less need to care about maximum records of table \fB/limitations\fP\&.
44915
+ .SS Log
44235
44916
  .sp
44236
- Note that this feature is not matured yet, so there are some limitations.
44237
- .INDENT 0.0
44238
- .IP \(bu 2
44239
- Create parted tables which contains "_YYYYMMDD" postfix. It is hardcoded, so you must create tables by each day.
44240
- .IP \(bu 2
44241
- Load proper data into parted tables on your own.
44242
- .UNINDENT
44243
- .SS Syntax
44917
+ Groonga has two log files. They are process log and query
44918
+ log. Process log is for all of \fBexecutables/groonga\fP
44919
+ works. Query log is just for query processing.
44920
+ .SS Process log
44244
44921
  .sp
44245
- This command takes many parameters.
44922
+ Process log is enabled by default. Log path can be
44923
+ customized by \fB\-\-log\-path\fP option. Each log has its
44924
+ log level. If a log is smaller than groonga process\(aq log
44925
+ level, it\(aqs not logged. Log level can be customized by
44926
+ \fB\-l\fP or \fBcommands/log_level\fP\&.
44927
+ .SS Format
44246
44928
  .sp
44247
- The required parameters are \fBlogical_table\fP and \fBshard_key\fP:
44929
+ Process log uses the following format:
44248
44930
  .INDENT 0.0
44249
44931
  .INDENT 3.5
44250
44932
  .sp
44251
44933
  .nf
44252
44934
  .ft C
44253
- logical_count logical_table
44254
- shard_key
44255
- [min]
44256
- [min_border]
44257
- [max]
44258
- [max_border]
44259
- [filter]
44935
+ #{TIME_STAMP}|#{L}| #{MESSAGE}
44260
44936
  .ft P
44261
44937
  .fi
44262
44938
  .UNINDENT
44263
44939
  .UNINDENT
44264
- .SS Usage
44265
- .sp
44266
- Register \fBsharding\fP plugin to use \fBlogical_count\fP command in advance.
44267
- .sp
44268
- Note that \fBlogical_count\fP is implemented as an experimental plugin, and the specification may be changed in the future.
44269
- .sp
44270
- Here is the simple example which shows how to use this feature. Let\(aqs consider to count specified logs which are stored into multiple tables.
44271
- .sp
44272
- Here is the schema and data.
44273
- .sp
44274
- Execution example:
44275
44940
  .INDENT 0.0
44941
+ .TP
44942
+ .B TIME_STAMP
44943
+ It\(aqs time stamp uses the following format:
44944
+ .INDENT 7.0
44276
44945
  .INDENT 3.5
44277
44946
  .sp
44278
44947
  .nf
44279
44948
  .ft C
44280
- table_create Logs_20150203 TABLE_NO_KEY
44281
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44282
- column_create Logs_20150203 timestamp COLUMN_SCALAR Time
44283
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44284
- column_create Logs_20150203 message COLUMN_SCALAR Text
44285
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44286
- table_create Logs_20150204 TABLE_NO_KEY
44287
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44288
- column_create Logs_20150204 timestamp COLUMN_SCALAR Time
44289
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44290
- column_create Logs_20150204 message COLUMN_SCALAR Text
44291
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44292
- table_create Logs_20150205 TABLE_NO_KEY
44293
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44294
- column_create Logs_20150205 timestamp COLUMN_SCALAR Time
44295
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44296
- column_create Logs_20150205 message COLUMN_SCALAR Text
44297
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44949
+ YYYY\-MM\-DD hh:mm:ss.SSSSSS
44298
44950
  .ft P
44299
44951
  .fi
44300
44952
  .UNINDENT
44301
44953
  .UNINDENT
44954
+ .INDENT 7.0
44955
+ .TP
44956
+ .B YYYY
44957
+ Year with four digits.
44958
+ .TP
44959
+ .B MM
44960
+ Month with two digits.
44961
+ .TP
44962
+ .B DD
44963
+ Day with two digits.
44964
+ .TP
44965
+ .B hh
44966
+ Hour with two digits.
44967
+ .TP
44968
+ .B mm
44969
+ Minute with two digits.
44970
+ .TP
44971
+ .B ss
44972
+ Second with two digits.
44973
+ .TP
44974
+ .B SSSSSS
44975
+ Microsecond with six digits.
44976
+ .UNINDENT
44302
44977
  .sp
44303
- Execution example:
44304
- .INDENT 0.0
44978
+ Example:
44979
+ .INDENT 7.0
44305
44980
  .INDENT 3.5
44306
44981
  .sp
44307
44982
  .nf
44308
44983
  .ft C
44309
- load \-\-table Logs_20150203
44310
- [
44311
- {"timestamp": "2015\-02\-03 23:59:58", "message": "Start"},
44312
- {"timestamp": "2015\-02\-03 23:59:58", "message": "Shutdown"},
44313
- {"timestamp": "2015\-02\-03 23:59:59", "message": "Start"},
44314
- {"timestamp": "2015\-02\-03 23:59:59", "message": "Shutdown"}
44315
- ]
44316
- # [[0, 1337566253.89858, 0.000355720520019531], 4]
44317
- load \-\-table Logs_20150204
44318
- [
44319
- {"timestamp": "2015\-02\-04 00:00:00", "message": "Start"},
44320
- {"timestamp": "2015\-02\-04 00:00:00", "message": "Shutdown"},
44321
- {"timestamp": "2015\-02\-04 00:00:01", "message": "Start"},
44322
- {"timestamp": "2015\-02\-04 00:00:01", "message": "Shutdown"},
44323
- {"timestamp": "2015\-02\-04 23:59:59", "message": "Start"},
44324
- {"timestamp": "2015\-02\-04 23:59:59", "message": "Shutdown"}
44325
- ]
44326
- # [[0, 1337566253.89858, 0.000355720520019531], 6]
44327
- load \-\-table Logs_20150205
44328
- [
44329
- {"timestamp": "2015\-02\-05 00:00:00", "message": "Start"},
44330
- {"timestamp": "2015\-02\-05 00:00:00", "message": "Shutdown"},
44331
- {"timestamp": "2015\-02\-05 00:00:01", "message": "Start"},
44332
- {"timestamp": "2015\-02\-05 00:00:01", "message": "Shutdown"}
44333
- ]
44334
- # [[0, 1337566253.89858, 0.000355720520019531], 4]
44984
+ 2011\-07\-05 06:25:18.345734
44335
44985
  .ft P
44336
44986
  .fi
44337
44987
  .UNINDENT
44338
44988
  .UNINDENT
44339
- .sp
44340
- There are three tables which are mapped each day from 2015 Feb 03 to 2015 Feb 05.
44341
- .INDENT 0.0
44342
- .IP \(bu 2
44343
- Logs_20150203
44344
- .IP \(bu 2
44345
- Logs_20150204
44346
- .IP \(bu 2
44347
- Logs_20150205
44989
+ .TP
44990
+ .B L
44991
+ Log level with a character. Here is a character and log
44992
+ level map.
44993
+ .INDENT 7.0
44994
+ .TP
44995
+ .B E
44996
+ Emergency
44997
+ .TP
44998
+ .B A
44999
+ Alert
45000
+ .TP
45001
+ .B C
45002
+ Critical
45003
+ .TP
45004
+ .B e
45005
+ Error
45006
+ .TP
45007
+ .B w
45008
+ Warning
45009
+ .TP
45010
+ .B n
45011
+ Notification
45012
+ .TP
45013
+ .B i
45014
+ Information
45015
+ .TP
45016
+ .B d
45017
+ Debug
45018
+ .TP
45019
+ .B \-
45020
+ Dump
44348
45021
  .UNINDENT
44349
45022
  .sp
44350
- Then, it loads data into each table which correspond to.
44351
- .sp
44352
- Let\(aqs count logs which contains "Shutdown" in \fBmessage\fP column and the value of timestamp is "2015\-02\-04 00:00:00" or later.
44353
- .sp
44354
- Here is the query to achieve above purpose.
44355
- .sp
44356
- Execution example:
44357
- .INDENT 0.0
45023
+ Example:
45024
+ .INDENT 7.0
44358
45025
  .INDENT 3.5
44359
45026
  .sp
44360
45027
  .nf
44361
45028
  .ft C
44362
- logical_count Logs timestamp \-\-filter \(aqmessage == "Shutdown"\(aq \-\-min "2015\-02\-04 00:00:00" \-\-min_border "include"
44363
- # [[0, 1337566253.89858, 0.000355720520019531], 5]
45029
+ E
44364
45030
  .ft P
44365
45031
  .fi
44366
45032
  .UNINDENT
44367
45033
  .UNINDENT
45034
+ .TP
45035
+ .B MESSAGE
45036
+ Details about the log with free format.
44368
45037
  .sp
44369
- There is a well known limitation about the number of records. By sharding feature, you can overcome such limitations because such a limitation is applied per table.
44370
- .sp
44371
- \fBNOTE:\fP
44372
- .INDENT 0.0
44373
- .INDENT 3.5
44374
- There is no convenient query such as \fBPARTITIONING BY\fP in SQL. Thus, you must create table by \fBtable_create\fP for each tables which contains "_YYYYMMDD" postfix in table name.
44375
- .UNINDENT
44376
- .UNINDENT
44377
- .SS Parameters
44378
- .sp
44379
- This section describes parameters of \fBlogical_count\fP\&.
44380
- .SS Required parameter
44381
- .sp
44382
- There are required parameters, \fBlogical_table\fP and \fBshard_key\fP\&.
44383
- .SS \fBlogical_table\fP
44384
- .sp
44385
- Specifies logical table name. It means table name without "_YYYYMMDD" postfix.
44386
- If you use actual table such as "Logs_20150203", "Logs_20150203" and so on, logical table name is "Logs".
44387
- .SS \fBshard_key\fP
44388
- .sp
44389
- Specifies column name which is treated as shared key in each parted table.
44390
- .SS Optional parameters
44391
- .sp
44392
- There are optional parameters.
44393
- .SS \fBmin\fP
44394
- .sp
44395
- Specifies the min value of \fBshard_key\fP
44396
- .SS \fBmin_border\fP
44397
- .sp
44398
- Specifies whether the min value of borderline must be include or not.
44399
- Specify \fBinclude\fP or \fBexclude\fP as the value of this parameter.
44400
- .SS \fBmax\fP
44401
- .sp
44402
- Specifies the max value of \fBshard_key\fP\&.
44403
- .SS \fBmax_border\fP
44404
- .sp
44405
- Specifies whether the max value of borderline must be include or not.
44406
- Specify \fBinclude\fP or \fBexclude\fP as the value of this parameter.
44407
- .SS \fBfilter\fP
44408
- .SS Return value
44409
- .sp
44410
- TODO
44411
- .INDENT 0.0
45038
+ Example:
45039
+ .INDENT 7.0
44412
45040
  .INDENT 3.5
44413
45041
  .sp
44414
45042
  .nf
44415
45043
  .ft C
44416
- [HEADER, LOGICAL_COUNT]
45044
+ log opened.
44417
45045
  .ft P
44418
45046
  .fi
44419
45047
  .UNINDENT
44420
45048
  .UNINDENT
44421
- .SS \fBlogical_parameters\fP
44422
- .SS Summary
44423
- .sp
44424
- \fBNOTE:\fP
44425
- .INDENT 0.0
44426
- .INDENT 3.5
44427
- This command is an experimental feature.
44428
- .UNINDENT
44429
45049
  .UNINDENT
44430
45050
  .sp
44431
- New in version 5.0.6.
44432
-
44433
- .sp
44434
- \fBlogical_parameters\fP is a command for test. Normally, you don\(aqt need
44435
- to use this command.
44436
- .sp
44437
- \fBlogical_parameters\fP provides the following two features:
45051
+ Example:
44438
45052
  .INDENT 0.0
44439
45053
  .INDENT 3.5
44440
- .INDENT 0.0
44441
- .IP \(bu 2
44442
- It returns the current parameters for \fBlogical_*\fP commands.
44443
- .IP \(bu 2
44444
- It sets new parameters for \fBlogical_*\fP commands.
44445
- .UNINDENT
44446
- .UNINDENT
44447
- .UNINDENT
44448
45054
  .sp
44449
- Here is a list of parameters:
44450
- .INDENT 0.0
44451
- .INDENT 3.5
44452
- .INDENT 0.0
44453
- .IP \(bu 2
44454
- \fI\%range_index\fP
44455
- .UNINDENT
45055
+ .nf
45056
+ .ft C
45057
+ 2011\-07\-05 08:35:09.276421|n| grn_init
45058
+ 2011\-07\-05 08:35:09.276553|n| RLIMIT_NOFILE(4096,4096)
45059
+ .ft P
45060
+ .fi
44456
45061
  .UNINDENT
44457
45062
  .UNINDENT
45063
+ .SS Query log
44458
45064
  .sp
44459
- \fBNOTE:\fP
44460
- .INDENT 0.0
44461
- .INDENT 3.5
44462
- The parameters are independent in each thread. (To be exact, each
44463
- \fBgrn_ctx\fP\&.) If you want to control the parameters
44464
- perfectly, you should reduce the max number of threads to \fB1\fP by
44465
- \fB/reference/commands/thread_limit\fP while you\(aqre using the
44466
- parameters.
44467
- .UNINDENT
44468
- .UNINDENT
44469
- .SS Syntax
45065
+ Query log is disabled by default. It can be enabled by
45066
+ \fB\-\-query\-log\-path\fP option.
45067
+ .SS Format
44470
45068
  .sp
44471
- This command takes only one optional parameter:
45069
+ Query log uses the following formats:
44472
45070
  .INDENT 0.0
44473
45071
  .INDENT 3.5
44474
45072
  .sp
44475
45073
  .nf
44476
45074
  .ft C
44477
- logical_parameters [range_index=null]
45075
+ #{TIME_STAMP}|#{MESSAGE}
45076
+ #{TIME_STAMP}|#{ID}|>#{QUERY}
45077
+ #{TIME_STAMP}|#{ID}|:#{ELAPSED_TIME} #{PROGRESS}
45078
+ #{TIME_STAMP}|#{ID}|<#{ELAPSED_TIME} #{RETURN_CODE}
44478
45079
  .ft P
44479
45080
  .fi
44480
45081
  .UNINDENT
44481
45082
  .UNINDENT
44482
- .SS Usage
44483
- .sp
44484
- You need to register \fBsharding\fP plugin to use this command:
44485
- .sp
44486
- Execution example:
44487
45083
  .INDENT 0.0
45084
+ .TP
45085
+ .B TIME_STAMP
45086
+ It\(aqs time stamp uses the following format:
45087
+ .INDENT 7.0
44488
45088
  .INDENT 3.5
44489
45089
  .sp
44490
45090
  .nf
44491
45091
  .ft C
44492
- plugin_register sharding
44493
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45092
+ YYYY\-MM\-DD hh:mm:ss.SSSSSS
44494
45093
  .ft P
44495
45094
  .fi
44496
45095
  .UNINDENT
44497
45096
  .UNINDENT
45097
+ .INDENT 7.0
45098
+ .TP
45099
+ .B YYYY
45100
+ Year with four digits.
45101
+ .TP
45102
+ .B MM
45103
+ Month with two digits.
45104
+ .TP
45105
+ .B DD
45106
+ Day with two digits.
45107
+ .TP
45108
+ .B hh
45109
+ Hour with two digits.
45110
+ .TP
45111
+ .B mm
45112
+ Minute with two digits.
45113
+ .TP
45114
+ .B ss
45115
+ Second with two digits.
45116
+ .TP
45117
+ .B SSSSSS
45118
+ Microsecond with six digits.
45119
+ .UNINDENT
44498
45120
  .sp
44499
- You can get the all current parameter values by calling without
44500
- parameters:
44501
- .sp
44502
- Execution example:
44503
- .INDENT 0.0
45121
+ Example:
45122
+ .INDENT 7.0
44504
45123
  .INDENT 3.5
44505
45124
  .sp
44506
45125
  .nf
44507
45126
  .ft C
44508
- logical_parameters
44509
- # [[0, 1337566253.89858, 0.000355720520019531], {"range_index": "auto"}]
45127
+ 2011\-07\-05 06:25:18.345734
44510
45128
  .ft P
44511
45129
  .fi
44512
45130
  .UNINDENT
44513
45131
  .UNINDENT
45132
+ .TP
45133
+ .B ID
45134
+ ID of a thread. Groonga process creates threads to process
45135
+ requests concurrently. Each thread outputs some logs for a
45136
+ request. This ID can be used to extract a log sequence by
45137
+ a thread.
44514
45138
  .sp
44515
- You can set new values by calling with parameters:
44516
- .sp
44517
- Execution example:
44518
- .INDENT 0.0
45139
+ Example:
45140
+ .INDENT 7.0
44519
45141
  .INDENT 3.5
44520
45142
  .sp
44521
45143
  .nf
44522
45144
  .ft C
44523
- logical_parameters \-\-range_index never
44524
- # [[0, 1337566253.89858, 0.000355720520019531], {"range_index": "auto"}]
45145
+ 45ea3034
44525
45146
  .ft P
44526
45147
  .fi
44527
45148
  .UNINDENT
44528
45149
  .UNINDENT
44529
- .sp
44530
- \fBlogical_parameters\fP returns the parameter values before new values
44531
- are set when you set new values.
44532
- .SS Parameters
44533
- .sp
44534
- This section describes parameters.
44535
- .SS Required parameters
44536
- .sp
44537
- There is no required parameters.
44538
- .SS Optional parameters
44539
- .sp
44540
- There is one optional parameter.
44541
- .SS \fBrange_index\fP
44542
- .sp
44543
- Specifies how to use range index in \fBlogical_range_filter\fP by
44544
- keyword.
44545
- .sp
44546
- Here are available keywords:
44547
- .INDENT 0.0
44548
- .INDENT 3.5
44549
- .INDENT 0.0
44550
- .IP \(bu 2
44551
- \fBauto\fP (default)
44552
- .IP \(bu 2
44553
- \fBalways\fP
44554
- .IP \(bu 2
44555
- \fBnever\fP
44556
45150
  .UNINDENT
45151
+ .INDENT 0.0
45152
+ .TP
45153
+ .B >
45154
+ A character that indicates query is started.
44557
45155
  .UNINDENT
45156
+ .INDENT 0.0
45157
+ .TP
45158
+ .B :
45159
+ A character that indicates query is processing.
44558
45160
  .UNINDENT
44559
- .sp
44560
- If \fBauto\fP is specified, range index is used only when it\(aqll be
44561
- efficient. This is the default value.
44562
- .sp
44563
- Execution example:
44564
45161
  .INDENT 0.0
45162
+ .TP
45163
+ .B <
45164
+ A character that indicates query is finished.
45165
+ .TP
45166
+ .B MESSAGE
45167
+ Details about the log with free format.
45168
+ .sp
45169
+ Example:
45170
+ .INDENT 7.0
44565
45171
  .INDENT 3.5
44566
45172
  .sp
44567
45173
  .nf
44568
45174
  .ft C
44569
- logical_parameters \-\-range_index auto
44570
- # [[0, 1337566253.89858, 0.000355720520019531], {"range_index": "never"}]
45175
+ query log opened.
44571
45176
  .ft P
44572
45177
  .fi
44573
45178
  .UNINDENT
44574
45179
  .UNINDENT
45180
+ .TP
45181
+ .B QUERY
45182
+ A query to be processed.
44575
45183
  .sp
44576
- If \fBalways\fP is specified, range index is always used. It\(aqll be
44577
- useful for testing a case that range index is used.
44578
- .sp
44579
- Execution example:
44580
- .INDENT 0.0
45184
+ Example:
45185
+ .INDENT 7.0
44581
45186
  .INDENT 3.5
44582
45187
  .sp
44583
45188
  .nf
44584
45189
  .ft C
44585
- logical_parameters \-\-range_index always
44586
- # [[0, 1337566253.89858, 0.000355720520019531], {"range_index": "auto"}]
45190
+ select users \-\-match_columns hobby \-\-query music
44587
45191
  .ft P
44588
45192
  .fi
44589
45193
  .UNINDENT
44590
45194
  .UNINDENT
45195
+ .TP
45196
+ .B ELAPSED_TIME
45197
+ Elapsed time in nanoseconds since query is started.
44591
45198
  .sp
44592
- If \fBnever\fP is specified, range index is never used. It\(aqll be useful
44593
- for testing a case that range index isn\(aqt used.
44594
- .sp
44595
- Execution example:
44596
- .INDENT 0.0
45199
+ Example:
45200
+ .INDENT 7.0
44597
45201
  .INDENT 3.5
44598
45202
  .sp
44599
45203
  .nf
44600
45204
  .ft C
44601
- logical_parameters \-\-range_index never
44602
- # [[0, 1337566253.89858, 0.000355720520019531], {"range_index": "always"}]
45205
+ 000000000075770
45206
+ (It means 75,770 nanoseconds.)
44603
45207
  .ft P
44604
45208
  .fi
44605
45209
  .UNINDENT
44606
45210
  .UNINDENT
44607
- .SS Return value
45211
+ .TP
45212
+ .B PROGRESS
45213
+ A processed work at the time.
44608
45214
  .sp
44609
- The command returns the current parameters for \fBlogical_*\fP command:
44610
- .INDENT 0.0
45215
+ Example:
45216
+ .INDENT 7.0
44611
45217
  .INDENT 3.5
44612
45218
  .sp
44613
45219
  .nf
44614
45220
  .ft C
44615
- [
44616
- HEADER,
44617
- {"range_index": HOW_TO_USE_RANGE_INDEX}
44618
- ]
45221
+ select(313401)
45222
+ (It means that \(aqselect\(aq is processed and 313,401 records are remained.)
44619
45223
  .ft P
44620
45224
  .fi
44621
45225
  .UNINDENT
44622
45226
  .UNINDENT
45227
+ .TP
45228
+ .B RETURN_CODE
45229
+ A return code for the query.
44623
45230
  .sp
44624
- \fBHOW_TO_USE_RANGE_INDEX\fP value is one of the followings:
44625
- .INDENT 0.0
45231
+ Example:
45232
+ .INDENT 7.0
44626
45233
  .INDENT 3.5
44627
- .INDENT 0.0
44628
- .IP \(bu 2
44629
- \fB"auto"\fP
44630
- .IP \(bu 2
44631
- \fB"always"\fP
44632
- .IP \(bu 2
44633
- \fB"never"\fP
44634
- .UNINDENT
44635
- .UNINDENT
44636
- .UNINDENT
44637
- .sp
44638
- See \fB/reference/command/output_format\fP for \fBHEADER\fP\&.
44639
- .SS \fBlogical_range_filter\fP
44640
- .SS Summary
44641
- .sp
44642
- \fBNOTE:\fP
44643
- .INDENT 0.0
44644
- .INDENT 3.5
44645
- This command is an experimental feature.
44646
- .UNINDENT
44647
- .UNINDENT
44648
- .sp
44649
- New in version 5.0.0.
44650
-
44651
- .sp
44652
- TODO: Write summary
44653
- .SS Syntax
44654
- .sp
44655
- This command takes many parameters.
44656
- .sp
44657
- The required parameters are \fBlogical_table\fP and \fBshard_key\fP:
44658
- .INDENT 0.0
44659
- .INDENT 3.5
44660
- .sp
44661
- .nf
44662
- .ft C
44663
- logical_range_filter
44664
- logical_table
44665
- shard_key
44666
- [min=null]
44667
- [min_border=null]
44668
- [max=null]
44669
- [max_border=null]
44670
- [order=ascending]
44671
- [filter=null]
44672
- [offset=0]
44673
- [limit=10]
44674
- [output_columns=_key,*]
44675
- [use_range_index=null]
44676
- .ft P
44677
- .fi
44678
- .UNINDENT
44679
- .UNINDENT
44680
- .sp
44681
- There are some parameters that can be only used as named
44682
- parameters. You can\(aqt use these parameters as ordered parameters. You
44683
- must specify parameter name.
44684
- .sp
44685
- Here are parameters that can be only used as named parameters:
44686
- .INDENT 0.0
44687
- .INDENT 3.5
44688
- .INDENT 0.0
44689
- .IP \(bu 2
44690
- \fBcache=no\fP
44691
- .UNINDENT
44692
- .UNINDENT
44693
- .UNINDENT
44694
- .SS Usage
44695
- .sp
44696
- Register \fBsharding\fP plugin to use \fBlogical_range_filter\fP command in advance.
44697
- .sp
44698
- TODO: Add examples
44699
- .SS Parameters
44700
- .sp
44701
- This section describes parameters of \fBlogical_range_filter\fP\&.
44702
- .SS Required parameter
44703
- .sp
44704
- There are required parameters, \fBlogical_table\fP and \fBshard_key\fP\&.
44705
- .SS \fBlogical_table\fP
44706
- .sp
44707
- Specifies logical table name. It means table name without "_YYYYMMDD" postfix.
44708
- If you use actual table such as "Logs_20150203", "Logs_20150203" and so on, logical table name is "Logs".
44709
- .sp
44710
- TODO: Add examples
44711
- .SS \fBshard_key\fP
44712
- .sp
44713
- Specifies column name which is treated as shared key in each parted table.
44714
- .sp
44715
- TODO: Add examples
44716
- .SS Optional parameters
44717
- .sp
44718
- There are optional parameters.
44719
- .SS \fBmin\fP
44720
- .sp
44721
- Specifies the min value of \fBshard_key\fP
44722
- .sp
44723
- TODO: Add examples
44724
- .SS \fBmin_border\fP
44725
- .sp
44726
- Specifies whether the min value of borderline must be include or not.
44727
- Specify \fBinclude\fP or \fBexclude\fP as the value of this parameter.
44728
- .sp
44729
- TODO: Add examples
44730
- .SS \fBmax\fP
44731
- .sp
44732
- Specifies the max value of \fBshard_key\fP\&.
44733
- .sp
44734
- TODO: Add examples
44735
- .SS \fBmax_border\fP
44736
- .sp
44737
- Specifies whether the max value of borderline must be include or not.
44738
- Specify \fBinclude\fP or \fBexclude\fP as the value of this parameter.
44739
- .sp
44740
- TODO: Add examples
44741
- .SS \fBorder\fP
44742
- .sp
44743
- TODO
44744
- .SS \fBfilter\fP
44745
- .sp
44746
- TODO
44747
- .SS \fBoffset\fP
44748
- .sp
44749
- TODO
44750
- .SS \fBlimit\fP
44751
- .sp
44752
- TODO
44753
- .SS \fBoutput_columns\fP
44754
- .sp
44755
- TODO
44756
- .SS \fBuse_range_index\fP
44757
- .sp
44758
- Specifies whether range_index is used or not.
44759
- Note that it\(aqs a parameter for test. It should not be used for production.
44760
- .sp
44761
- TODO: Add examples
44762
- .SS Cache related parameter
44763
- .SS \fBcache\fP
44764
- .sp
44765
- Specifies whether caching the result of this query or not.
44766
- .sp
44767
- If the result of this query is cached, the next same query returns
44768
- response quickly by using the cache.
44769
- .sp
44770
- It doesn\(aqt control whether existing cached result is used or not.
44771
- .sp
44772
- Here are available values:
44773
- .TS
44774
- center;
44775
- |l|l|.
44776
- _
44777
- T{
44778
- Value
44779
- T} T{
44780
- Description
44781
- T}
44782
- _
44783
- T{
44784
- \fBno\fP
44785
- T} T{
44786
- Don\(aqt cache the output of this query.
44787
- T}
44788
- _
44789
- T{
44790
- \fByes\fP
44791
- T} T{
44792
- Cache the output of this query.
44793
- It\(aqs the default value.
44794
- T}
44795
- _
44796
- .TE
44797
- .sp
44798
- TODO: Add examples
44799
- .sp
44800
- The default value is \fByes\fP\&.
44801
- .SS Return value
44802
- .sp
44803
- TODO
44804
- .INDENT 0.0
44805
- .INDENT 3.5
44806
- .sp
44807
- .nf
44808
- .ft C
44809
- [HEADER, LOGICAL_FILTERED]
44810
- .ft P
44811
- .fi
44812
- .UNINDENT
44813
- .UNINDENT
44814
- .SS \fBlogical_select\fP
44815
- .SS Summary
44816
- .sp
44817
- \fBNOTE:\fP
44818
- .INDENT 0.0
44819
- .INDENT 3.5
44820
- This command is an experimental feature.
44821
- .UNINDENT
44822
- .UNINDENT
44823
- .sp
44824
- New in version 5.0.5.
44825
-
44826
- .sp
44827
- \fBlogical_select\fP is a sharding version of
44828
- \fBselect\fP\&. \fBlogical_select\fP searches records from multiple
44829
- tables and outputs them.
44830
- .sp
44831
- You need to \fBplugin_register\fP \fBsharding\fP plugin because
44832
- \fBlogical_select\fP is included in \fBsharding\fP plugin.
44833
- .SS Syntax
44834
- .sp
44835
- This command takes many parameters.
44836
- .sp
44837
- The required parameters are \fBlogical_table\fP and \fBshard_key\fP\&. Other
44838
- parameters are optional:
44839
- .INDENT 0.0
44840
- .INDENT 3.5
44841
- .sp
44842
- .nf
44843
- .ft C
44844
- logical_select logical_table
44845
- shard_key
44846
- [min=null]
44847
- [min_border="include"]
44848
- [max=null]
44849
- [max_border="include"]
44850
- [filter=null]
44851
- [sortby=null]
44852
- [output_columns="_id, _key, *"]
44853
- [offset=0]
44854
- [limit=10]
44855
- [drilldown=null]
44856
- [drilldown_sortby=null]
44857
- [drilldown_output_columns="_key, _nsubrecs"]
44858
- [drilldown_offset=0]
44859
- [drilldown_limit=10]
44860
- [drilldown_calc_types=NONE]
44861
- [drilldown_calc_target=null]
44862
- .ft P
44863
- .fi
44864
- .UNINDENT
44865
- .UNINDENT
44866
- .sp
44867
- \fBlogical_select\fP has the following named parameters for advanced
44868
- drilldown:
44869
- .INDENT 0.0
44870
- .INDENT 3.5
44871
- .INDENT 0.0
44872
- .IP \(bu 2
44873
- \fBdrilldown[${LABEL}].keys=null\fP
44874
- .IP \(bu 2
44875
- \fBdrilldown[${LABEL}].sortby=null\fP
44876
- .IP \(bu 2
44877
- \fBdrilldown[${LABEL}].output_columns="_key, _nsubrecs"\fP
44878
- .IP \(bu 2
44879
- \fBdrilldown[${LABEL}].offset=0\fP
44880
- .IP \(bu 2
44881
- \fBdrilldown[${LABEL}].limit=10\fP
44882
- .IP \(bu 2
44883
- \fBdrilldown[${LABEL}].calc_types=NONE\fP
44884
- .IP \(bu 2
44885
- \fBdrilldown[${LABEL}].calc_target=null\fP
44886
- .UNINDENT
44887
- .UNINDENT
44888
- .UNINDENT
44889
- .sp
44890
- You can use one or more alphabets, digits, \fB_\fP and \fB\&.\fP for
44891
- \fB${LABEL}\fP\&. For example, \fBparent.sub1\fP is a valid \fB${LABEL}\fP\&.
44892
- .sp
44893
- Parameters that have the same \fB${LABEL}\fP are grouped.
44894
- .sp
44895
- For example, the following parameters specify one drilldown:
44896
- .INDENT 0.0
44897
- .INDENT 3.5
44898
- .INDENT 0.0
44899
- .IP \(bu 2
44900
- \fB\-\-drilldown[label].keys column\fP
44901
- .IP \(bu 2
44902
- \fB\-\-drilldown[label].sortby \-_nsubrecs\fP
44903
- .UNINDENT
44904
- .UNINDENT
44905
- .UNINDENT
44906
- .sp
44907
- The following parameters specify two drilldowns:
44908
- .INDENT 0.0
44909
- .INDENT 3.5
44910
- .INDENT 0.0
44911
- .IP \(bu 2
44912
- \fB\-\-drilldown[label1].keys column1\fP
44913
- .IP \(bu 2
44914
- \fB\-\-drilldown[label1].sortby \-_nsubrecs\fP
44915
- .IP \(bu 2
44916
- \fB\-\-drilldown[label2].keys column2\fP
44917
- .IP \(bu 2
44918
- \fB\-\-drilldown[label2].sortby _key\fP
44919
- .UNINDENT
44920
- .UNINDENT
44921
- .UNINDENT
44922
- .SS Differences from \fBselect\fP
44923
- .sp
44924
- Most of \fBlogical_select\fP features can be used like corresponding
44925
- \fBselect\fP features. For example, parameter name is same, output
44926
- format is same and so on.
44927
- .sp
44928
- But there are some differences from \fBselect\fP:
44929
- .INDENT 0.0
44930
- .INDENT 3.5
44931
- .INDENT 0.0
44932
- .IP \(bu 2
44933
- \fBlogical_table\fP and \fBshard_key\fP parameters are required
44934
- instead of \fBtable\fP parameter.
44935
- .IP \(bu 2
44936
- \fBsortby\fP isn\(aqt supported when multiple shards are used. (Only
44937
- one shard is used, they are supported.)
44938
- .IP \(bu 2
44939
- \fB_value.${KEY_NAME}\fP in \fBdrilldown[${LABEL}].sortby\fP doesn\(aqt
44940
- work with multiple shards. It works with one shard. \fB_key\fP in
44941
- \fBdrilldown[${LABEL}].sortby\fP work with multiple shards.
44942
- .IP \(bu 2
44943
- \fBmatch_columns\fP and \fBquery\fP aren\(aqt supported yet.
44944
- .IP \(bu 2
44945
- \fBcache\fP isn\(aqt supported yet.
44946
- .IP \(bu 2
44947
- \fBmatch_escalation_threshold\fP isn\(aqt supported yet.
44948
- .IP \(bu 2
44949
- \fBquery_flags\fP isn\(aqt supported yet.
44950
- .IP \(bu 2
44951
- \fBquery_expander\fP isn\(aqt supported yet.
44952
- .IP \(bu 2
44953
- \fBadjuster\fP isn\(aqt supported yet.
44954
- .UNINDENT
44955
- .UNINDENT
44956
- .UNINDENT
44957
- .SS Usage
44958
- .sp
44959
- Let\(aqs learn about \fBlogical_select\fP usage with examples. This section
44960
- shows many popular usages.
44961
- .sp
44962
- You need to register \fBsharding\fP plugin because \fBlogical_select\fP is
44963
- included in \fBsharding\fP plugin.
44964
- .sp
44965
- Execution example:
44966
- .INDENT 0.0
44967
- .INDENT 3.5
44968
- .sp
44969
- .nf
44970
- .ft C
44971
- plugin_register sharding
44972
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44973
- .ft P
44974
- .fi
44975
- .UNINDENT
44976
- .UNINDENT
44977
- .sp
44978
- Here are a schema definition and sample data to show usage.
44979
- .sp
44980
- Execution example:
44981
- .INDENT 0.0
44982
- .INDENT 3.5
44983
- .sp
44984
- .nf
44985
- .ft C
44986
- table_create Entries_20150708 TABLE_HASH_KEY ShortText
44987
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44988
- column_create Entries_20150708 created_at COLUMN_SCALAR Time
44989
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44990
- column_create Entries_20150708 content COLUMN_SCALAR Text
44991
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44992
- column_create Entries_20150708 n_likes COLUMN_SCALAR UInt32
44993
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44994
- column_create Entries_20150708 tag COLUMN_SCALAR ShortText
44995
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44996
- table_create Entries_20150709 TABLE_HASH_KEY ShortText
44997
- # [[0, 1337566253.89858, 0.000355720520019531], true]
44998
- column_create Entries_20150709 created_at COLUMN_SCALAR Time
44999
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45000
- column_create Entries_20150709 content COLUMN_SCALAR Text
45001
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45002
- column_create Entries_20150709 n_likes COLUMN_SCALAR UInt32
45003
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45004
- column_create Entries_20150709 tag COLUMN_SCALAR ShortText
45005
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45006
- table_create Terms TABLE_PAT_KEY ShortText \e
45007
- \-\-default_tokenizer TokenBigram \e
45008
- \-\-normalizer NormalizerAuto
45009
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45010
- column_create Terms entries_key_index_20150708 \e
45011
- COLUMN_INDEX|WITH_POSITION Entries_20150708 _key
45012
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45013
- column_create Terms entries_content_index_20150708 \e
45014
- COLUMN_INDEX|WITH_POSITION Entries_20150708 content
45015
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45016
- column_create Terms entries_key_index_20150709 \e
45017
- COLUMN_INDEX|WITH_POSITION Entries_20150709 _key
45018
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45019
- column_create Terms entries_content_index_20150709 \e
45020
- COLUMN_INDEX|WITH_POSITION Entries_20150709 content
45021
- # [[0, 1337566253.89858, 0.000355720520019531], true]
45022
- load \-\-table Entries_20150708
45023
- [
45024
- {"_key": "The first post!",
45025
- "created_at": "2015/07/08 00:00:00",
45026
- "content": "Welcome! This is my first post!",
45027
- "n_likes": 5,
45028
- "tag": "Hello"},
45029
- {"_key": "Groonga",
45030
- "created_at": "2015/07/08 01:00:00",
45031
- "content": "I started to use Groonga. It\(aqs very fast!",
45032
- "n_likes": 10,
45033
- "tag": "Groonga"},
45034
- {"_key": "Mroonga",
45035
- "created_at": "2015/07/08 02:00:00",
45036
- "content": "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45037
- "n_likes": 15,
45038
- "tag": "Groonga"}
45039
- ]
45040
- # [[0, 1337566253.89858, 0.000355720520019531], 3]
45041
- load \-\-table Entries_20150709
45042
- [
45043
- {"_key": "Good\-bye Senna",
45044
- "created_at": "2015/07/09 00:00:00",
45045
- "content": "I migrated all Senna system!",
45046
- "n_likes": 3,
45047
- "tag": "Senna"},
45048
- {"_key": "Good\-bye Tritonn",
45049
- "created_at": "2015/07/09 01:00:00",
45050
- "content": "I also migrated all Tritonn system!",
45051
- "n_likes": 3,
45052
- "tag": "Senna"}
45053
- ]
45054
- # [[0, 1337566253.89858, 0.000355720520019531], 2]
45055
- .ft P
45056
- .fi
45057
- .UNINDENT
45058
- .UNINDENT
45059
- .sp
45060
- There are two tables, \fBEntries_20150708\fP and \fBEntries_20150709\fP,
45061
- for blog entries.
45062
- .sp
45063
- \fBNOTE:\fP
45064
- .INDENT 0.0
45065
- .INDENT 3.5
45066
- You need to use \fB${LOGICAL_TABLE_NAME}_${YYYYMMDD}\fP naming rule
45067
- for table names. In this example, \fBLOGICAL_TABLE_NAME\fP is
45068
- \fBEntries\fP and \fBYYYYMMDD\fP is \fB20150708\fP or \fB20150709\fP\&.
45069
- .UNINDENT
45070
- .UNINDENT
45071
- .sp
45072
- An entry has title, created time, content, the number of likes for the
45073
- entry and tag. Title is key of \fBEntries_YYYYMMDD\fP\&. Created time is
45074
- value of \fBEntries_YYYYMMDD.created_at\fP column. Content is value of
45075
- \fBEntries_YYYYMMDD.content\fP column. The number of likes is value of
45076
- \fBEntries_YYYYMMDD.n_likes\fP column. Tag is value of
45077
- \fBEntries_YYYYMMDD.tag\fP column.
45078
- .sp
45079
- \fBEntries_YYYYMMDD._key\fP column and \fBEntries_YYYYMMDD.content\fP
45080
- column are indexed using \fBTokenBigram\fP tokenizer. So both
45081
- \fBEntries_YYYYMMDD._key\fP and \fBEntries_YYYYMMDD.content\fP are
45082
- fulltext search ready.
45083
- .sp
45084
- OK. The schema and data for examples are ready.
45085
- .SS Simple usage
45086
- .sp
45087
- TODO
45088
- .SS Parameters
45089
- .sp
45090
- This section describes parameters of \fBlogical_select\fP\&.
45091
- .SS Required parameter
45092
- .sp
45093
- There are required parameters, \fBlogical_table\fP and \fBshard_key\fP\&.
45094
- .SS \fBlogical_table\fP
45095
- .sp
45096
- Specifies logical table name. It means table name without
45097
- \fB_YYYYMMDD\fP postfix. If you use actual table such as
45098
- \fBEntries_20150708\fP, \fBEntries_20150709\fP and so on, logical table
45099
- name is \fBEntries\fP\&.
45100
- .sp
45101
- You can show 10 records by specifying \fBlogical_table\fP and
45102
- \fBshard_key\fP parameters. They are required parameters.
45103
- .sp
45104
- Execution example:
45105
- .INDENT 0.0
45106
- .INDENT 3.5
45107
- .sp
45108
- .nf
45109
- .ft C
45110
- logical_select \-\-logical_table Entries \-\-shard_key created_at
45111
- # [
45112
- # [
45113
- # 0,
45114
- # 1337566253.89858,
45115
- # 0.000355720520019531
45116
- # ],
45117
- # [
45118
- # [
45119
- # [
45120
- # 5
45121
- # ],
45122
- # [
45123
- # [
45124
- # "_id",
45125
- # "UInt32"
45126
- # ],
45127
- # [
45128
- # "_key",
45129
- # "ShortText"
45130
- # ],
45131
- # [
45132
- # "content",
45133
- # "Text"
45134
- # ],
45135
- # [
45136
- # "created_at",
45137
- # "Time"
45138
- # ],
45139
- # [
45140
- # "n_likes",
45141
- # "UInt32"
45142
- # ],
45143
- # [
45144
- # "tag",
45145
- # "ShortText"
45146
- # ]
45147
- # ],
45148
- # [
45149
- # 1,
45150
- # "The first post!",
45151
- # "Welcome! This is my first post!",
45152
- # 1436281200.0,
45153
- # 5,
45154
- # "Hello"
45155
- # ],
45156
- # [
45157
- # 2,
45158
- # "Groonga",
45159
- # "I started to use Groonga. It\(aqs very fast!",
45160
- # 1436284800.0,
45161
- # 10,
45162
- # "Groonga"
45163
- # ],
45164
- # [
45165
- # 3,
45166
- # "Mroonga",
45167
- # "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45168
- # 1436288400.0,
45169
- # 15,
45170
- # "Groonga"
45171
- # ],
45172
- # [
45173
- # 1,
45174
- # "Good\-bye Senna",
45175
- # "I migrated all Senna system!",
45176
- # 1436367600.0,
45177
- # 3,
45178
- # "Senna"
45179
- # ],
45180
- # [
45181
- # 2,
45182
- # "Good\-bye Tritonn",
45183
- # "I also migrated all Tritonn system!",
45184
- # 1436371200.0,
45185
- # 3,
45186
- # "Senna"
45187
- # ]
45188
- # ]
45189
- # ]
45190
- # ]
45191
- .ft P
45192
- .fi
45193
- .UNINDENT
45194
- .UNINDENT
45195
- .sp
45196
- If nonexistent table is specified, an error is returned.
45197
- .sp
45198
- Execution example:
45199
- .INDENT 0.0
45200
- .INDENT 3.5
45201
- .sp
45202
- .nf
45203
- .ft C
45204
- logical_select \-\-logical_table Nonexistent \-\-shard_key created_at
45205
- # [
45206
- # [
45207
- # \-22,
45208
- # 1337566253.89858,
45209
- # 0.000355720520019531,
45210
- # "[logical_select] no shard exists: logical_table: <Nonexistent>: shard_key: <created_at>",
45211
- # [
45212
- # [
45213
- # "Groonga::Context.set_groonga_error",
45214
- # "lib/mrb/scripts/context.rb",
45215
- # 27
45216
- # ]
45217
- # ]
45218
- # ]
45219
- # ]
45220
- .ft P
45221
- .fi
45222
- .UNINDENT
45223
- .UNINDENT
45224
- .SS \fBshard_key\fP
45225
- .sp
45226
- Specifies column name which is treated as shared key. Shard key is a
45227
- column that stores data that is used for distributing records to
45228
- suitable shards.
45229
- .sp
45230
- Shard key must be \fBTime\fP type for now.
45231
- .sp
45232
- See \fI\%logical_table\fP how to specify \fBshard_key\fP\&.
45233
- .SS Optional parameters
45234
- .sp
45235
- There are optional parameters.
45236
- .SS \fBmin\fP
45237
- .sp
45238
- Specifies the minimum value of \fBshard_key\fP column. If shard doesn\(aqt
45239
- have any matched records, the shard isn\(aqt searched.
45240
- .sp
45241
- For example, \fBmin\fP is \fB"2015/07/09 00:00:00"\fP, \fBEntry_20150708\fP
45242
- isn\(aqt searched. Because \fBEntry_20150708\fP has only records for
45243
- \fB"2015/07/08"\fP\&.
45244
- .sp
45245
- The following example only uses \fBEntry_20150709\fP
45246
- table. \fBEntry_20150708\fP isn\(aqt used.
45247
- .sp
45248
- Execution example:
45249
- .INDENT 0.0
45250
- .INDENT 3.5
45251
- .sp
45252
- .nf
45253
- .ft C
45254
- logical_select \e
45255
- \-\-logical_table Entries \e
45256
- \-\-shard_key created_at \e
45257
- \-\-min "2015/07/09 00:00:00"
45258
- # [
45259
- # [
45260
- # 0,
45261
- # 1337566253.89858,
45262
- # 0.000355720520019531
45263
- # ],
45264
- # [
45265
- # [
45266
- # [
45267
- # 2
45268
- # ],
45269
- # [
45270
- # [
45271
- # "_id",
45272
- # "UInt32"
45273
- # ],
45274
- # [
45275
- # "_key",
45276
- # "ShortText"
45277
- # ],
45278
- # [
45279
- # "content",
45280
- # "Text"
45281
- # ],
45282
- # [
45283
- # "created_at",
45284
- # "Time"
45285
- # ],
45286
- # [
45287
- # "n_likes",
45288
- # "UInt32"
45289
- # ],
45290
- # [
45291
- # "tag",
45292
- # "ShortText"
45293
- # ]
45294
- # ],
45295
- # [
45296
- # 1,
45297
- # "Good\-bye Senna",
45298
- # "I migrated all Senna system!",
45299
- # 1436367600.0,
45300
- # 3,
45301
- # "Senna"
45302
- # ],
45303
- # [
45304
- # 2,
45305
- # "Good\-bye Tritonn",
45306
- # "I also migrated all Tritonn system!",
45307
- # 1436371200.0,
45308
- # 3,
45309
- # "Senna"
45310
- # ]
45311
- # ]
45312
- # ]
45313
- # ]
45314
- .ft P
45315
- .fi
45316
- .UNINDENT
45317
- .UNINDENT
45318
- .SS \fBmin_border\fP
45319
- .sp
45320
- Specifies whether the minimum value is include or not. Here is
45321
- available values.
45322
- .TS
45323
- center;
45324
- |l|l|.
45325
- _
45326
- T{
45327
- Value
45328
- T} T{
45329
- Description
45330
- T}
45331
- _
45332
- T{
45333
- \fBinclude\fP
45334
- T} T{
45335
- Includes \fBmin\fP value. This is the default.
45336
- T}
45337
- _
45338
- T{
45339
- \fBexclude\fP
45340
- T} T{
45341
- Doesn\(aqt include \fBmin\fP value.
45342
- T}
45343
- _
45344
- .TE
45345
- .sp
45346
- Here is an example for \fBexclude\fP\&. The result doesn\(aqt include the
45347
- \fB"Good\-bye Senna"\fP record because its \fBcreated_at\fP value is
45348
- \fB"2015/07/09 00:00:00"\fP\&.
45349
- .sp
45350
- Execution example:
45351
- .INDENT 0.0
45352
- .INDENT 3.5
45353
- .sp
45354
- .nf
45355
- .ft C
45356
- logical_select \e
45357
- \-\-logical_table Entries \e
45358
- \-\-shard_key created_at \e
45359
- \-\-min "2015/07/09 00:00:00" \e
45360
- \-\-min_border "exclude"
45361
- # [
45362
- # [
45363
- # 0,
45364
- # 1337566253.89858,
45365
- # 0.000355720520019531
45366
- # ],
45367
- # [
45368
- # [
45369
- # [
45370
- # 1
45371
- # ],
45372
- # [
45373
- # [
45374
- # "_id",
45375
- # "UInt32"
45376
- # ],
45377
- # [
45378
- # "_key",
45379
- # "ShortText"
45380
- # ],
45381
- # [
45382
- # "content",
45383
- # "Text"
45384
- # ],
45385
- # [
45386
- # "created_at",
45387
- # "Time"
45388
- # ],
45389
- # [
45390
- # "n_likes",
45391
- # "UInt32"
45392
- # ],
45393
- # [
45394
- # "tag",
45395
- # "ShortText"
45396
- # ]
45397
- # ],
45398
- # [
45399
- # 2,
45400
- # "Good\-bye Tritonn",
45401
- # "I also migrated all Tritonn system!",
45402
- # 1436371200.0,
45403
- # 3,
45404
- # "Senna"
45405
- # ]
45406
- # ]
45407
- # ]
45408
- # ]
45409
- .ft P
45410
- .fi
45411
- .UNINDENT
45412
- .UNINDENT
45413
- .SS \fBmax\fP
45414
- .sp
45415
- Specifies the maximum value of \fBshard_key\fP column. If shard doesn\(aqt
45416
- have any matched records, the shard isn\(aqt searched.
45417
- .sp
45418
- For example, \fBmax\fP is \fB"2015/07/08 23:59:59"\fP, \fBEntry_20150709\fP
45419
- isn\(aqt searched. Because \fBEntry_20150709\fP has only records for
45420
- \fB""2015/07/09"\fP\&.
45421
- .sp
45422
- The following example only uses \fBEntry_20150708\fP
45423
- table. \fBEntry_20150709\fP isn\(aqt used.
45424
- .sp
45425
- Execution example:
45426
- .INDENT 0.0
45427
- .INDENT 3.5
45428
- .sp
45429
- .nf
45430
- .ft C
45431
- logical_select \e
45432
- \-\-logical_table Entries \e
45433
- \-\-shard_key created_at \e
45434
- \-\-max "2015/07/08 23:59:59"
45435
- # [
45436
- # [
45437
- # 0,
45438
- # 1337566253.89858,
45439
- # 0.000355720520019531
45440
- # ],
45441
- # [
45442
- # [
45443
- # [
45444
- # 3
45445
- # ],
45446
- # [
45447
- # [
45448
- # "_id",
45449
- # "UInt32"
45450
- # ],
45451
- # [
45452
- # "_key",
45453
- # "ShortText"
45454
- # ],
45455
- # [
45456
- # "content",
45457
- # "Text"
45458
- # ],
45459
- # [
45460
- # "created_at",
45461
- # "Time"
45462
- # ],
45463
- # [
45464
- # "n_likes",
45465
- # "UInt32"
45466
- # ],
45467
- # [
45468
- # "tag",
45469
- # "ShortText"
45470
- # ]
45471
- # ],
45472
- # [
45473
- # 1,
45474
- # "The first post!",
45475
- # "Welcome! This is my first post!",
45476
- # 1436281200.0,
45477
- # 5,
45478
- # "Hello"
45479
- # ],
45480
- # [
45481
- # 2,
45482
- # "Groonga",
45483
- # "I started to use Groonga. It\(aqs very fast!",
45484
- # 1436284800.0,
45485
- # 10,
45486
- # "Groonga"
45487
- # ],
45488
- # [
45489
- # 3,
45490
- # "Mroonga",
45491
- # "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45492
- # 1436288400.0,
45493
- # 15,
45494
- # "Groonga"
45495
- # ]
45496
- # ]
45497
- # ]
45498
- # ]
45499
- .ft P
45500
- .fi
45501
- .UNINDENT
45502
- .UNINDENT
45503
- .SS \fBmax_border\fP
45504
- .sp
45505
- Specifies whether the maximum value is include or not. Here is
45506
- available values.
45507
- .TS
45508
- center;
45509
- |l|l|.
45510
- _
45511
- T{
45512
- Value
45513
- T} T{
45514
- Description
45515
- T}
45516
- _
45517
- T{
45518
- \fBinclude\fP
45519
- T} T{
45520
- Includes \fBmax\fP value. This is the default.
45521
- T}
45522
- _
45523
- T{
45524
- \fBexclude\fP
45525
- T} T{
45526
- Doesn\(aqt include \fBmax\fP value.
45527
- T}
45528
- _
45529
- .TE
45530
- .sp
45531
- Here is an example for \fBexclude\fP\&. The result doesn\(aqt include the
45532
- \fB"Good\-bye Senna"\fP record because its \fBcreated_at\fP value is
45533
- \fB"2015/07/09 00:00:00"\fP\&.
45534
- .sp
45535
- Execution example:
45536
- .INDENT 0.0
45537
- .INDENT 3.5
45538
- .sp
45539
- .nf
45540
- .ft C
45541
- logical_select \e
45542
- \-\-logical_table Entries \e
45543
- \-\-shard_key created_at \e
45544
- \-\-max "2015/07/09 00:00:00" \e
45545
- \-\-max_border "exclude"
45546
- # [
45547
- # [
45548
- # 0,
45549
- # 1337566253.89858,
45550
- # 0.000355720520019531
45551
- # ],
45552
- # [
45553
- # [
45554
- # [
45555
- # 3
45556
- # ],
45557
- # [
45558
- # [
45559
- # "_id",
45560
- # "UInt32"
45561
- # ],
45562
- # [
45563
- # "_key",
45564
- # "ShortText"
45565
- # ],
45566
- # [
45567
- # "content",
45568
- # "Text"
45569
- # ],
45570
- # [
45571
- # "created_at",
45572
- # "Time"
45573
- # ],
45574
- # [
45575
- # "n_likes",
45576
- # "UInt32"
45577
- # ],
45578
- # [
45579
- # "tag",
45580
- # "ShortText"
45581
- # ]
45582
- # ],
45583
- # [
45584
- # 1,
45585
- # "The first post!",
45586
- # "Welcome! This is my first post!",
45587
- # 1436281200.0,
45588
- # 5,
45589
- # "Hello"
45590
- # ],
45591
- # [
45592
- # 2,
45593
- # "Groonga",
45594
- # "I started to use Groonga. It\(aqs very fast!",
45595
- # 1436284800.0,
45596
- # 10,
45597
- # "Groonga"
45598
- # ],
45599
- # [
45600
- # 3,
45601
- # "Mroonga",
45602
- # "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45603
- # 1436288400.0,
45604
- # 15,
45605
- # "Groonga"
45606
- # ]
45607
- # ]
45608
- # ]
45609
- # ]
45610
- .ft P
45611
- .fi
45612
- .UNINDENT
45613
- .UNINDENT
45614
- .SS Search related parameters
45615
- .sp
45616
- \fBlogical_select\fP provides \fBselect\fP compatible search related
45617
- parameters.
45618
- .sp
45619
- \fBmatch_columns\fP and \fBquery\fP aren\(aqt supported yet. \fBfilter\fP is
45620
- only supported for now.
45621
- .SS \fBmatch_columns\fP
45622
- .sp
45623
- Not implemented yet.
45624
- .SS \fBquery\fP
45625
- .sp
45626
- Not implemented yet.
45627
- .SS \fBfilter\fP
45628
- .sp
45629
- Corresponds to select\-filter in \fBselect\fP\&. See
45630
- select\-filter for details.
45631
- .sp
45632
- Here is an example:
45633
- .sp
45634
- Execution example:
45635
- .INDENT 0.0
45636
- .INDENT 3.5
45637
- .sp
45638
- .nf
45639
- .ft C
45640
- logical_select \e
45641
- \-\-logical_table Entries \e
45642
- \-\-shard_key created_at \e
45643
- \-\-filter "n_likes <= 5"
45644
- # [
45645
- # [
45646
- # 0,
45647
- # 1337566253.89858,
45648
- # 0.000355720520019531
45649
- # ],
45650
- # [
45651
- # [
45652
- # [
45653
- # 3
45654
- # ],
45655
- # [
45656
- # [
45657
- # "_id",
45658
- # "UInt32"
45659
- # ],
45660
- # [
45661
- # "_key",
45662
- # "ShortText"
45663
- # ],
45664
- # [
45665
- # "content",
45666
- # "Text"
45667
- # ],
45668
- # [
45669
- # "created_at",
45670
- # "Time"
45671
- # ],
45672
- # [
45673
- # "n_likes",
45674
- # "UInt32"
45675
- # ],
45676
- # [
45677
- # "tag",
45678
- # "ShortText"
45679
- # ]
45680
- # ],
45681
- # [
45682
- # 1,
45683
- # "The first post!",
45684
- # "Welcome! This is my first post!",
45685
- # 1436281200.0,
45686
- # 5,
45687
- # "Hello"
45688
- # ],
45689
- # [
45690
- # 1,
45691
- # "Good\-bye Senna",
45692
- # "I migrated all Senna system!",
45693
- # 1436367600.0,
45694
- # 3,
45695
- # "Senna"
45696
- # ],
45697
- # [
45698
- # 2,
45699
- # "Good\-bye Tritonn",
45700
- # "I also migrated all Tritonn system!",
45701
- # 1436371200.0,
45702
- # 3,
45703
- # "Senna"
45704
- # ]
45705
- # ]
45706
- # ]
45707
- # ]
45708
- .ft P
45709
- .fi
45710
- .UNINDENT
45711
- .UNINDENT
45712
- .SS Advanced search parameters
45713
- .sp
45714
- \fBlogical_select\fP doesn\(aqt implement advanced search parameters yet.
45715
- .SS \fBmatch_escalation_threshold\fP
45716
- .sp
45717
- Not implemented yet.
45718
- .SS \fBquery_flags\fP
45719
- .sp
45720
- Not implemented yet.
45721
- .SS \fBquery_expander\fP
45722
- .sp
45723
- Not implemented yet.
45724
- .SS Output related parameters
45725
- .SS \fBoutput_columns\fP
45726
- .sp
45727
- Corresponds to select\-output\-columns in \fBselect\fP\&. See
45728
- select\-output\-columns for details.
45729
- .sp
45730
- Here is an example:
45731
- .sp
45732
- Execution example:
45733
- .INDENT 0.0
45734
- .INDENT 3.5
45735
- .sp
45736
- .nf
45737
- .ft C
45738
- logical_select \e
45739
- \-\-logical_table Entries \e
45740
- \-\-shard_key created_at \e
45741
- \-\-output_columns \(aq_key, *\(aq
45742
- # [
45743
- # [
45744
- # 0,
45745
- # 1337566253.89858,
45746
- # 0.000355720520019531
45747
- # ],
45748
- # [
45749
- # [
45750
- # [
45751
- # 5
45752
- # ],
45753
- # [
45754
- # [
45755
- # "_key",
45756
- # "ShortText"
45757
- # ],
45758
- # [
45759
- # "content",
45760
- # "Text"
45761
- # ],
45762
- # [
45763
- # "created_at",
45764
- # "Time"
45765
- # ],
45766
- # [
45767
- # "n_likes",
45768
- # "UInt32"
45769
- # ],
45770
- # [
45771
- # "tag",
45772
- # "ShortText"
45773
- # ]
45774
- # ],
45775
- # [
45776
- # "The first post!",
45777
- # "Welcome! This is my first post!",
45778
- # 1436281200.0,
45779
- # 5,
45780
- # "Hello"
45781
- # ],
45782
- # [
45783
- # "Groonga",
45784
- # "I started to use Groonga. It\(aqs very fast!",
45785
- # 1436284800.0,
45786
- # 10,
45787
- # "Groonga"
45788
- # ],
45789
- # [
45790
- # "Mroonga",
45791
- # "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45792
- # 1436288400.0,
45793
- # 15,
45794
- # "Groonga"
45795
- # ],
45796
- # [
45797
- # "Good\-bye Senna",
45798
- # "I migrated all Senna system!",
45799
- # 1436367600.0,
45800
- # 3,
45801
- # "Senna"
45802
- # ],
45803
- # [
45804
- # "Good\-bye Tritonn",
45805
- # "I also migrated all Tritonn system!",
45806
- # 1436371200.0,
45807
- # 3,
45808
- # "Senna"
45809
- # ]
45810
- # ]
45811
- # ]
45812
- # ]
45813
- .ft P
45814
- .fi
45815
- .UNINDENT
45816
- .UNINDENT
45817
- .SS \fBsortby\fP
45818
- .sp
45819
- Corresponds to select\-sortby in \fBselect\fP\&. See
45820
- select\-sortby for details.
45821
- .sp
45822
- \fBsortby\fP has a limitation. It works only when the number of search
45823
- target shards is one. If the number of search target shards is larger
45824
- than one, \fBsortby\fP doesn\(aqt work.
45825
- .sp
45826
- Here is an example that uses only one shard:
45827
- .sp
45828
- Execution example:
45829
- .INDENT 0.0
45830
- .INDENT 3.5
45831
- .sp
45832
- .nf
45833
- .ft C
45834
- logical_select \e
45835
- \-\-logical_table Entries \e
45836
- \-\-shard_key created_at \e
45837
- \-\-min "2015/07/08 00:00:00" \e
45838
- \-\-min_border "include" \e
45839
- \-\-max "2015/07/09 00:00:00" \e
45840
- \-\-max_border "exclude" \e
45841
- \-\-sortby _key
45842
- # [
45843
- # [
45844
- # 0,
45845
- # 1337566253.89858,
45846
- # 0.000355720520019531
45847
- # ],
45848
- # [
45849
- # [
45850
- # [
45851
- # 3
45852
- # ],
45853
- # [
45854
- # [
45855
- # "_id",
45856
- # "UInt32"
45857
- # ],
45858
- # [
45859
- # "_key",
45860
- # "ShortText"
45861
- # ],
45862
- # [
45863
- # "content",
45864
- # "Text"
45865
- # ],
45866
- # [
45867
- # "created_at",
45868
- # "Time"
45869
- # ],
45870
- # [
45871
- # "n_likes",
45872
- # "UInt32"
45873
- # ],
45874
- # [
45875
- # "tag",
45876
- # "ShortText"
45877
- # ]
45878
- # ],
45879
- # [
45880
- # 2,
45881
- # "Groonga",
45882
- # "I started to use Groonga. It\(aqs very fast!",
45883
- # 1436284800.0,
45884
- # 10,
45885
- # "Groonga"
45886
- # ],
45887
- # [
45888
- # 3,
45889
- # "Mroonga",
45890
- # "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45891
- # 1436288400.0,
45892
- # 15,
45893
- # "Groonga"
45894
- # ],
45895
- # [
45896
- # 1,
45897
- # "The first post!",
45898
- # "Welcome! This is my first post!",
45899
- # 1436281200.0,
45900
- # 5,
45901
- # "Hello"
45902
- # ]
45903
- # ]
45904
- # ]
45905
- # ]
45906
- .ft P
45907
- .fi
45908
- .UNINDENT
45909
- .UNINDENT
45910
- .SS \fBoffset\fP
45911
- .sp
45912
- Corresponds to select\-offset in \fBselect\fP\&. See
45913
- select\-offset for details.
45914
- .sp
45915
- Here is an example:
45916
- .sp
45917
- Execution example:
45918
- .INDENT 0.0
45919
- .INDENT 3.5
45920
- .sp
45921
- .nf
45922
- .ft C
45923
- logical_select \e
45924
- \-\-logical_table Entries \e
45925
- \-\-shard_key created_at \e
45926
- \-\-offset 2
45927
- # [
45928
- # [
45929
- # 0,
45930
- # 1337566253.89858,
45931
- # 0.000355720520019531
45932
- # ],
45933
- # [
45934
- # [
45935
- # [
45936
- # 5
45937
- # ],
45938
- # [
45939
- # [
45940
- # "_id",
45941
- # "UInt32"
45942
- # ],
45943
- # [
45944
- # "_key",
45945
- # "ShortText"
45946
- # ],
45947
- # [
45948
- # "content",
45949
- # "Text"
45950
- # ],
45951
- # [
45952
- # "created_at",
45953
- # "Time"
45954
- # ],
45955
- # [
45956
- # "n_likes",
45957
- # "UInt32"
45958
- # ],
45959
- # [
45960
- # "tag",
45961
- # "ShortText"
45962
- # ]
45963
- # ],
45964
- # [
45965
- # 3,
45966
- # "Mroonga",
45967
- # "I also started to use Mroonga. It\(aqs also very fast! Really fast!",
45968
- # 1436288400.0,
45969
- # 15,
45970
- # "Groonga"
45971
- # ],
45972
- # [
45973
- # 1,
45974
- # "Good\-bye Senna",
45975
- # "I migrated all Senna system!",
45976
- # 1436367600.0,
45977
- # 3,
45978
- # "Senna"
45979
- # ],
45980
- # [
45981
- # 2,
45982
- # "Good\-bye Tritonn",
45983
- # "I also migrated all Tritonn system!",
45984
- # 1436371200.0,
45985
- # 3,
45986
- # "Senna"
45987
- # ]
45988
- # ]
45989
- # ]
45990
- # ]
45991
- .ft P
45992
- .fi
45993
- .UNINDENT
45994
- .UNINDENT
45995
- .SS \fBlimit\fP
45996
- .sp
45997
- Corresponds to select\-limit in \fBselect\fP\&. See
45998
- select\-limit for details.
45999
- .sp
46000
- Here is an example:
46001
- .sp
46002
- Execution example:
46003
- .INDENT 0.0
46004
- .INDENT 3.5
46005
- .sp
46006
- .nf
46007
- .ft C
46008
- logical_select \e
46009
- \-\-logical_table Entries \e
46010
- \-\-shard_key created_at \e
46011
- \-\-limit 2
46012
- # [
46013
- # [
46014
- # 0,
46015
- # 1337566253.89858,
46016
- # 0.000355720520019531
46017
- # ],
46018
- # [
46019
- # [
46020
- # [
46021
- # 5
46022
- # ],
46023
- # [
46024
- # [
46025
- # "_id",
46026
- # "UInt32"
46027
- # ],
46028
- # [
46029
- # "_key",
46030
- # "ShortText"
46031
- # ],
46032
- # [
46033
- # "content",
46034
- # "Text"
46035
- # ],
46036
- # [
46037
- # "created_at",
46038
- # "Time"
46039
- # ],
46040
- # [
46041
- # "n_likes",
46042
- # "UInt32"
46043
- # ],
46044
- # [
46045
- # "tag",
46046
- # "ShortText"
46047
- # ]
46048
- # ],
46049
- # [
46050
- # 1,
46051
- # "The first post!",
46052
- # "Welcome! This is my first post!",
46053
- # 1436281200.0,
46054
- # 5,
46055
- # "Hello"
46056
- # ],
46057
- # [
46058
- # 2,
46059
- # "Groonga",
46060
- # "I started to use Groonga. It\(aqs very fast!",
46061
- # 1436284800.0,
46062
- # 10,
46063
- # "Groonga"
46064
- # ]
46065
- # ]
46066
- # ]
46067
- # ]
46068
- .ft P
46069
- .fi
46070
- .UNINDENT
46071
- .UNINDENT
46072
- .SS \fBscorer\fP
46073
- .sp
46074
- Not implemented yet.
46075
- .SS Drilldown related parameters
46076
- .sp
46077
- All drilldown related parameters in \fBselect\fP are supported. See
46078
- select\-drilldown\-related\-parameters for details.
46079
- .SS \fBdrilldown\fP
46080
- .sp
46081
- Corresponds to select\-drilldown in \fBselect\fP\&. See
46082
- select\-drilldown for details.
46083
- .sp
46084
- Here is an example:
46085
- .sp
46086
- Execution example:
46087
- .INDENT 0.0
46088
- .INDENT 3.5
46089
- .sp
46090
- .nf
46091
- .ft C
46092
- logical_select \e
46093
- \-\-logical_table Entries \e
46094
- \-\-shard_key created_at \e
46095
- \-\-output_columns _key,tag \e
46096
- \-\-drilldown tag
46097
- # [
46098
- # [
46099
- # 0,
46100
- # 1337566253.89858,
46101
- # 0.000355720520019531
46102
- # ],
46103
- # [
46104
- # [
46105
- # [
46106
- # 5
46107
- # ],
46108
- # [
46109
- # [
46110
- # "_key",
46111
- # "ShortText"
46112
- # ],
46113
- # [
46114
- # "tag",
46115
- # "ShortText"
46116
- # ]
46117
- # ],
46118
- # [
46119
- # "The first post!",
46120
- # "Hello"
46121
- # ],
46122
- # [
46123
- # "Groonga",
46124
- # "Groonga"
46125
- # ],
46126
- # [
46127
- # "Mroonga",
46128
- # "Groonga"
46129
- # ],
46130
- # [
46131
- # "Good\-bye Senna",
46132
- # "Senna"
46133
- # ],
46134
- # [
46135
- # "Good\-bye Tritonn",
46136
- # "Senna"
46137
- # ]
46138
- # ],
46139
- # [
46140
- # [
46141
- # 3
46142
- # ],
46143
- # [
46144
- # [
46145
- # "_key",
46146
- # "ShortText"
46147
- # ],
46148
- # [
46149
- # "_nsubrecs",
46150
- # "Int32"
46151
- # ]
46152
- # ],
46153
- # [
46154
- # "Hello",
46155
- # 1
46156
- # ],
46157
- # [
46158
- # "Groonga",
46159
- # 2
46160
- # ],
46161
- # [
46162
- # "Senna",
46163
- # 2
46164
- # ]
46165
- # ]
46166
- # ]
46167
- # ]
46168
- .ft P
46169
- .fi
46170
- .UNINDENT
46171
- .UNINDENT
46172
- .SS \fBdrilldown_sortby\fP
46173
- .sp
46174
- Corresponds to select\-drilldown\-sortby in \fBselect\fP\&. See
46175
- select\-drilldown\-sortby for details.
46176
- .sp
46177
- Here is an example:
46178
- .sp
46179
- Execution example:
46180
- .INDENT 0.0
46181
- .INDENT 3.5
46182
- .sp
46183
- .nf
46184
- .ft C
46185
- logical_select \e
46186
- \-\-logical_table Entries \e
46187
- \-\-shard_key created_at \e
46188
- \-\-limit 0 \e
46189
- \-\-output_columns _id \e
46190
- \-\-drilldown tag \e
46191
- \-\-drilldown_sortby \-_nsubrecs,_key
46192
- # [
46193
- # [
46194
- # 0,
46195
- # 1337566253.89858,
46196
- # 0.000355720520019531
46197
- # ],
46198
- # [
46199
- # [
46200
- # [
46201
- # 5
46202
- # ],
46203
- # [
46204
- # [
46205
- # "_id",
46206
- # "UInt32"
46207
- # ]
46208
- # ]
46209
- # ],
46210
- # [
46211
- # [
46212
- # 3
46213
- # ],
46214
- # [
46215
- # [
46216
- # "_key",
46217
- # "ShortText"
46218
- # ],
46219
- # [
46220
- # "_nsubrecs",
46221
- # "Int32"
46222
- # ]
46223
- # ],
46224
- # [
46225
- # "Groonga",
46226
- # 2
46227
- # ],
46228
- # [
46229
- # "Senna",
46230
- # 2
46231
- # ],
46232
- # [
46233
- # "Hello",
46234
- # 1
46235
- # ]
46236
- # ]
46237
- # ]
46238
- # ]
46239
- .ft P
46240
- .fi
46241
- .UNINDENT
46242
- .UNINDENT
46243
- .SS \fBdrilldown_output_columns\fP
46244
- .sp
46245
- Corresponds to select\-drilldown\-output\-columns in
46246
- \fBselect\fP\&. See select\-drilldown\-output\-columns for details.
46247
- .sp
46248
- Here is an example:
46249
- .sp
46250
- Execution example:
46251
- .INDENT 0.0
46252
- .INDENT 3.5
46253
- .sp
46254
- .nf
46255
- .ft C
46256
- logical_select \e
46257
- \-\-logical_table Entries \e
46258
- \-\-shard_key created_at \e
46259
- \-\-limit 0 \e
46260
- \-\-output_columns _id \e
46261
- \-\-drilldown tag \e
46262
- \-\-drilldown_output_columns _key
46263
- # [
46264
- # [
46265
- # 0,
46266
- # 1337566253.89858,
46267
- # 0.000355720520019531
46268
- # ],
46269
- # [
46270
- # [
46271
- # [
46272
- # 5
46273
- # ],
46274
- # [
46275
- # [
46276
- # "_id",
46277
- # "UInt32"
46278
- # ]
46279
- # ]
46280
- # ],
46281
- # [
46282
- # [
46283
- # 3
46284
- # ],
46285
- # [
46286
- # [
46287
- # "_key",
46288
- # "ShortText"
46289
- # ]
46290
- # ],
46291
- # [
46292
- # "Hello"
46293
- # ],
46294
- # [
46295
- # "Groonga"
46296
- # ],
46297
- # [
46298
- # "Senna"
46299
- # ]
46300
- # ]
46301
- # ]
46302
- # ]
46303
- .ft P
46304
- .fi
46305
- .UNINDENT
46306
- .UNINDENT
46307
- .SS \fBdrilldown_offset\fP
46308
- .sp
46309
- Corresponds to select\-drilldown\-offset in \fBselect\fP\&. See
46310
- select\-drilldown\-offset for details.
46311
- .sp
46312
- Here is an example:
46313
- .sp
46314
- Execution example:
46315
- .INDENT 0.0
46316
- .INDENT 3.5
46317
- .sp
46318
- .nf
46319
- .ft C
46320
- logical_select \e
46321
- \-\-logical_table Entries \e
46322
- \-\-shard_key created_at \e
46323
- \-\-limit 0 \e
46324
- \-\-output_columns _id \e
46325
- \-\-drilldown tag \e
46326
- \-\-drilldown_offset 1
46327
- # [
46328
- # [
46329
- # 0,
46330
- # 1337566253.89858,
46331
- # 0.000355720520019531
46332
- # ],
46333
- # [
46334
- # [
46335
- # [
46336
- # 5
46337
- # ],
46338
- # [
46339
- # [
46340
- # "_id",
46341
- # "UInt32"
46342
- # ]
46343
- # ]
46344
- # ],
46345
- # [
46346
- # [
46347
- # 3
46348
- # ],
46349
- # [
46350
- # [
46351
- # "_key",
46352
- # "ShortText"
46353
- # ],
46354
- # [
46355
- # "_nsubrecs",
46356
- # "Int32"
46357
- # ]
46358
- # ],
46359
- # [
46360
- # "Groonga",
46361
- # 2
46362
- # ],
46363
- # [
46364
- # "Senna",
46365
- # 2
46366
- # ]
46367
- # ]
46368
- # ]
46369
- # ]
46370
- .ft P
46371
- .fi
46372
- .UNINDENT
46373
- .UNINDENT
46374
- .SS \fBdrilldown_limit\fP
46375
- .sp
46376
- Corresponds to select\-drilldown\-limit in \fBselect\fP\&. See
46377
- select\-drilldown\-limit for details.
46378
- .sp
46379
- Here is an example:
46380
- .sp
46381
- Execution example:
46382
- .INDENT 0.0
46383
- .INDENT 3.5
46384
- .sp
46385
- .nf
46386
- .ft C
46387
- logical_select \e
46388
- \-\-logical_table Entries \e
46389
- \-\-shard_key created_at \e
46390
- \-\-limit 0 \e
46391
- \-\-output_columns _id \e
46392
- \-\-drilldown tag \e
46393
- \-\-drilldown_limit 2
46394
- # [
46395
- # [
46396
- # 0,
46397
- # 1337566253.89858,
46398
- # 0.000355720520019531
46399
- # ],
46400
- # [
46401
- # [
46402
- # [
46403
- # 5
46404
- # ],
46405
- # [
46406
- # [
46407
- # "_id",
46408
- # "UInt32"
46409
- # ]
46410
- # ]
46411
- # ],
46412
- # [
46413
- # [
46414
- # 3
46415
- # ],
46416
- # [
46417
- # [
46418
- # "_key",
46419
- # "ShortText"
46420
- # ],
46421
- # [
46422
- # "_nsubrecs",
46423
- # "Int32"
46424
- # ]
46425
- # ],
46426
- # [
46427
- # "Hello",
46428
- # 1
46429
- # ],
46430
- # [
46431
- # "Groonga",
46432
- # 2
46433
- # ]
46434
- # ]
46435
- # ]
46436
- # ]
46437
- .ft P
46438
- .fi
46439
- .UNINDENT
46440
- .UNINDENT
46441
- .SS \fBdrilldown_calc_types\fP
46442
- .sp
46443
- Corresponds to select\-drilldown\-calc\-types in
46444
- \fBselect\fP\&. See select\-drilldown\-calc\-types for details.
46445
- .sp
46446
- Here is an example:
46447
- .sp
46448
- Execution example:
46449
- .INDENT 0.0
46450
- .INDENT 3.5
46451
- .sp
46452
- .nf
46453
- .ft C
46454
- logical_select \e
46455
- \-\-logical_table Entries \e
46456
- \-\-shard_key created_at \e
46457
- \-\-limit \-1 \e
46458
- \-\-output_columns tag,n_likes \e
46459
- \-\-drilldown tag \e
46460
- \-\-drilldown_calc_types MAX,MIN,SUM,AVG \e
46461
- \-\-drilldown_calc_target n_likes \e
46462
- \-\-drilldown_output_columns _key,_nsubrecs,_max,_min,_sum,_avg
46463
- # [
46464
- # [
46465
- # 0,
46466
- # 1337566253.89858,
46467
- # 0.000355720520019531
46468
- # ],
46469
- # [
46470
- # [
46471
- # [
46472
- # 5
46473
- # ],
46474
- # [
46475
- # [
46476
- # "tag",
46477
- # "ShortText"
46478
- # ],
46479
- # [
46480
- # "n_likes",
46481
- # "UInt32"
46482
- # ]
46483
- # ],
46484
- # [
46485
- # "Hello",
46486
- # 5
46487
- # ],
46488
- # [
46489
- # "Groonga",
46490
- # 10
46491
- # ],
46492
- # [
46493
- # "Groonga",
46494
- # 15
46495
- # ],
46496
- # [
46497
- # "Senna",
46498
- # 3
46499
- # ],
46500
- # [
46501
- # "Senna",
46502
- # 3
46503
- # ]
46504
- # ],
46505
- # [
46506
- # [
46507
- # 3
46508
- # ],
46509
- # [
46510
- # [
46511
- # "_key",
46512
- # "ShortText"
46513
- # ],
46514
- # [
46515
- # "_nsubrecs",
46516
- # "Int32"
46517
- # ],
46518
- # [
46519
- # "_max",
46520
- # "Int64"
46521
- # ],
46522
- # [
46523
- # "_min",
46524
- # "Int64"
46525
- # ],
46526
- # [
46527
- # "_sum",
46528
- # "Int64"
46529
- # ],
46530
- # [
46531
- # "_avg",
46532
- # "Float"
46533
- # ]
46534
- # ],
46535
- # [
46536
- # "Hello",
46537
- # 1,
46538
- # 5,
46539
- # 5,
46540
- # 5,
46541
- # 5.0
46542
- # ],
46543
- # [
46544
- # "Groonga",
46545
- # 2,
46546
- # 15,
46547
- # 10,
46548
- # 25,
46549
- # 12.5
46550
- # ],
46551
- # [
46552
- # "Senna",
46553
- # 2,
46554
- # 3,
46555
- # 3,
46556
- # 6,
46557
- # 3.0
46558
- # ]
46559
- # ]
46560
- # ]
46561
- # ]
46562
- .ft P
46563
- .fi
46564
- .UNINDENT
46565
- .UNINDENT
46566
- .SS \fBdrilldown_calc_target\fP
46567
- .sp
46568
- Corresponds to select\-drilldown\-calc\-target in
46569
- \fBselect\fP\&. See select\-drilldown\-calc\-target for details.
46570
- .sp
46571
- See also \fI\%drilldown_calc_types\fP for an example.
46572
- .SS Advanced drilldown related parameters
46573
- .sp
46574
- All advanced drilldown related parameters in \fBselect\fP are
46575
- supported. See select\-advanced\-drilldown\-related\-parameters for
46576
- details.
46577
- .sp
46578
- There are some limitations:
46579
- .INDENT 0.0
46580
- .INDENT 3.5
46581
- .INDENT 0.0
46582
- .IP \(bu 2
46583
- \fB_value.${KEY_NAME}\fP in \fBdrilldown[${LABEL}].sortby\fP doesn\(aqt
46584
- work with multiple shards. It works with one shard. \fB_key\fP in
46585
- \fBdrilldown[${LABEL}].sortby\fP work with multiple shards.
46586
- .UNINDENT
46587
- .UNINDENT
46588
- .UNINDENT
46589
- .SS \fBdrilldown[${LABEL}].keys\fP
46590
- .sp
46591
- Corresponds to select\-drilldown\-label\-keys in
46592
- \fBselect\fP\&. See select\-drilldown\-label\-keys for details.
46593
- .sp
46594
- Here is an example:
46595
- .sp
46596
- Execution example:
46597
- .INDENT 0.0
46598
- .INDENT 3.5
46599
- .sp
46600
- .nf
46601
- .ft C
46602
- logical_select \e
46603
- \-\-logical_table Entries \e
46604
- \-\-shard_key created_at \e
46605
- \-\-limit 0 \e
46606
- \-\-output_columns _id \e
46607
- \-\-drilldown[tag.n_likes].keys tag,n_likes \e
46608
- \-\-drilldown[tag.n_likes].output_columns _value.tag,_value.n_likes,_nsubrecs
46609
- # [
46610
- # [
46611
- # 0,
46612
- # 1337566253.89858,
46613
- # 0.000355720520019531
46614
- # ],
46615
- # [
46616
- # [
46617
- # [
46618
- # 5
46619
- # ],
46620
- # [
46621
- # [
46622
- # "_id",
46623
- # "UInt32"
46624
- # ]
46625
- # ]
46626
- # ],
46627
- # {
46628
- # "tag.n_likes": [
46629
- # [
46630
- # 4
46631
- # ],
46632
- # [
46633
- # [
46634
- # "tag",
46635
- # "ShortText"
46636
- # ],
46637
- # [
46638
- # "n_likes",
46639
- # "UInt32"
46640
- # ],
46641
- # [
46642
- # "_nsubrecs",
46643
- # "Int32"
46644
- # ]
46645
- # ],
46646
- # [
46647
- # "Hello",
46648
- # 5,
46649
- # 1
46650
- # ],
46651
- # [
46652
- # "Groonga",
46653
- # 10,
46654
- # 1
46655
- # ],
46656
- # [
46657
- # "Groonga",
46658
- # 15,
46659
- # 1
46660
- # ],
46661
- # [
46662
- # "Senna",
46663
- # 3,
46664
- # 2
46665
- # ]
46666
- # ]
46667
- # }
46668
- # ]
46669
- # ]
46670
- .ft P
46671
- .fi
46672
- .UNINDENT
46673
- .UNINDENT
46674
- .SS \fBdrilldown[${LABEL}].output_columns\fP
46675
- .sp
46676
- Corresponds to select\-drilldown\-label\-output\-columns in
46677
- \fBselect\fP\&. See select\-drilldown\-label\-output\-columns for
46678
- details.
46679
- .sp
46680
- Here is an example:
46681
- .sp
46682
- Execution example:
46683
- .INDENT 0.0
46684
- .INDENT 3.5
46685
- .sp
46686
- .nf
46687
- .ft C
46688
- logical_select \e
46689
- \-\-logical_table Entries \e
46690
- \-\-shard_key created_at \e
46691
- \-\-limit 0 \e
46692
- \-\-output_columns _id \e
46693
- \-\-drilldown[tag].keys tag \e
46694
- \-\-drilldown[tag].output_columns _key,_nsubrecs
46695
- # [
46696
- # [
46697
- # 0,
46698
- # 1337566253.89858,
46699
- # 0.000355720520019531
46700
- # ],
46701
- # [
46702
- # [
46703
- # [
46704
- # 5
46705
- # ],
46706
- # [
46707
- # [
46708
- # "_id",
46709
- # "UInt32"
46710
- # ]
46711
- # ]
46712
- # ],
46713
- # {
46714
- # "tag": [
46715
- # [
46716
- # 3
46717
- # ],
46718
- # [
46719
- # [
46720
- # "_key",
46721
- # "ShortText"
46722
- # ],
46723
- # [
46724
- # "_nsubrecs",
46725
- # "Int32"
46726
- # ]
46727
- # ],
46728
- # [
46729
- # "Hello",
46730
- # 1
46731
- # ],
46732
- # [
46733
- # "Groonga",
46734
- # 2
46735
- # ],
46736
- # [
46737
- # "Senna",
46738
- # 2
46739
- # ]
46740
- # ]
46741
- # }
46742
- # ]
46743
- # ]
46744
- .ft P
46745
- .fi
46746
- .UNINDENT
46747
- .UNINDENT
46748
- .SS \fBdrilldown[${LABEL}].sortby\fP
46749
- .sp
46750
- Corresponds to \fI\%drilldown_sortby\fP in not labeled
46751
- drilldown.
46752
- .sp
46753
- \fBdrilldown[${LABEL}].sortby\fP has a limitation.
46754
- .sp
46755
- \fB_value.${KEY_NAME}\fP in \fBdrilldown[${LABEL}].sortby\fP doesn\(aqt work
46756
- with multiple shards. It works with one shard. \fB_key\fP in
46757
- \fBdrilldown[${LABEL}].sortby\fP work with multiple shards.
46758
- .sp
46759
- Here is an example that uses \fB_value.${KEY_NAME}\fP with only one
46760
- shard:
46761
- .sp
46762
- Execution example:
46763
- .INDENT 0.0
46764
- .INDENT 3.5
46765
- .sp
46766
- .nf
46767
- .ft C
46768
- logical_select \e
46769
- \-\-logical_table Entries \e
46770
- \-\-shard_key created_at \e
46771
- \-\-min "2015/07/08 00:00:00" \e
46772
- \-\-min_border "include" \e
46773
- \-\-max "2015/07/09 00:00:00" \e
46774
- \-\-max_border "exclude" \e
46775
- \-\-limit 0 \e
46776
- \-\-output_columns _id \e
46777
- \-\-drilldown[tag.n_likes].keys tag,n_likes \e
46778
- \-\-drilldown[tag.n_likes].output_columns _nsubrecs,_value.n_likes,_value.tag \e
46779
- \-\-drilldown[tag.n_likes].sortby \-_nsubrecs,_value.n_likes,_value.tag
46780
- # [
46781
- # [
46782
- # 0,
46783
- # 1337566253.89858,
46784
- # 0.000355720520019531
46785
- # ],
46786
- # [
46787
- # [
46788
- # [
46789
- # 3
46790
- # ],
46791
- # [
46792
- # [
46793
- # "_id",
46794
- # "UInt32"
46795
- # ]
46796
- # ]
46797
- # ],
46798
- # {
46799
- # "tag.n_likes": [
46800
- # [
46801
- # 3
46802
- # ],
46803
- # [
46804
- # [
46805
- # "_nsubrecs",
46806
- # "Int32"
46807
- # ],
46808
- # [
46809
- # "n_likes",
46810
- # "UInt32"
46811
- # ],
46812
- # [
46813
- # "tag",
46814
- # "ShortText"
46815
- # ]
46816
- # ],
46817
- # [
46818
- # 1,
46819
- # 5,
46820
- # "Hello"
46821
- # ],
46822
- # [
46823
- # 1,
46824
- # 10,
46825
- # "Groonga"
46826
- # ],
46827
- # [
46828
- # 1,
46829
- # 15,
46830
- # "Groonga"
46831
- # ]
46832
- # ]
46833
- # }
46834
- # ]
46835
- # ]
46836
- .ft P
46837
- .fi
46838
- .UNINDENT
46839
- .UNINDENT
46840
- .SS \fBdrilldown[${LABEL}].offset\fP
46841
- .sp
46842
- Corresponds to \fI\%drilldown_offset\fP in not labeled
46843
- drilldown.
46844
- .sp
46845
- Here is an example:
46846
- .sp
46847
- Execution example:
46848
- .INDENT 0.0
46849
- .INDENT 3.5
46850
- .sp
46851
- .nf
46852
- .ft C
46853
- logical_select \e
46854
- \-\-logical_table Entries \e
46855
- \-\-shard_key created_at \e
46856
- \-\-limit 0 \e
46857
- \-\-output_columns _id \e
46858
- \-\-drilldown[tag.n_likes].keys tag \e
46859
- \-\-drilldown[tag.n_likes].offset 1
46860
- # [
46861
- # [
46862
- # 0,
46863
- # 1337566253.89858,
46864
- # 0.000355720520019531
46865
- # ],
46866
- # [
46867
- # [
46868
- # [
46869
- # 5
46870
- # ],
46871
- # [
46872
- # [
46873
- # "_id",
46874
- # "UInt32"
46875
- # ]
46876
- # ]
46877
- # ],
46878
- # {
46879
- # "tag.n_likes": [
46880
- # [
46881
- # 3
46882
- # ],
46883
- # [
46884
- # [
46885
- # "_key",
46886
- # "ShortText"
46887
- # ],
46888
- # [
46889
- # "_nsubrecs",
46890
- # "Int32"
46891
- # ]
46892
- # ],
46893
- # [
46894
- # "Groonga",
46895
- # 2
46896
- # ],
46897
- # [
46898
- # "Senna",
46899
- # 2
46900
- # ]
46901
- # ]
46902
- # }
46903
- # ]
46904
- # ]
46905
- .ft P
46906
- .fi
46907
- .UNINDENT
46908
- .UNINDENT
46909
- .SS \fBdrilldown[${LABEL}].limit\fP
46910
- .sp
46911
- Corresponds to \fI\%drilldown_limit\fP in not labeled
46912
- drilldown.
46913
- .sp
46914
- Here is an example:
46915
- .sp
46916
- Execution example:
46917
- .INDENT 0.0
46918
- .INDENT 3.5
46919
- .sp
46920
- .nf
46921
- .ft C
46922
- logical_select \e
46923
- \-\-logical_table Entries \e
46924
- \-\-shard_key created_at \e
46925
- \-\-limit 0 \e
46926
- \-\-output_columns _id \e
46927
- \-\-drilldown[tag.n_likes].keys tag \e
46928
- \-\-drilldown[tag.n_likes].limit 2
46929
- # [
46930
- # [
46931
- # 0,
46932
- # 1337566253.89858,
46933
- # 0.000355720520019531
46934
- # ],
46935
- # [
46936
- # [
46937
- # [
46938
- # 5
46939
- # ],
46940
- # [
46941
- # [
46942
- # "_id",
46943
- # "UInt32"
46944
- # ]
46945
- # ]
46946
- # ],
46947
- # {
46948
- # "tag.n_likes": [
46949
- # [
46950
- # 3
46951
- # ],
46952
- # [
46953
- # [
46954
- # "_key",
46955
- # "ShortText"
46956
- # ],
46957
- # [
46958
- # "_nsubrecs",
46959
- # "Int32"
46960
- # ]
46961
- # ],
46962
- # [
46963
- # "Hello",
46964
- # 1
46965
- # ],
46966
- # [
46967
- # "Groonga",
46968
- # 2
46969
- # ]
46970
- # ]
46971
- # }
46972
- # ]
46973
- # ]
46974
- .ft P
46975
- .fi
46976
- .UNINDENT
46977
- .UNINDENT
46978
- .SS \fBdrilldown[${LABEL}].calc_types\fP
46979
- .sp
46980
- Corresponds to \fI\%drilldown_calc_types\fP in not
46981
- labeled drilldown.
46982
- .sp
46983
- Here is an example:
46984
- .sp
46985
- Execution example:
46986
- .INDENT 0.0
46987
- .INDENT 3.5
46988
- .sp
46989
- .nf
46990
- .ft C
46991
- logical_select \e
46992
- \-\-logical_table Entries \e
46993
- \-\-shard_key created_at \e
46994
- \-\-limit 0 \e
46995
- \-\-output_columns _id \e
46996
- \-\-drilldown[tag].keys tag \e
46997
- \-\-drilldown[tag].calc_types MAX,MIN,SUM,AVG \e
46998
- \-\-drilldown[tag].calc_target n_likes \e
46999
- \-\-drilldown[tag].output_columns _key,_nsubrecs,_max,_min,_sum,_avg
47000
- # [
47001
- # [
47002
- # 0,
47003
- # 1337566253.89858,
47004
- # 0.000355720520019531
47005
- # ],
47006
- # [
47007
- # [
47008
- # [
47009
- # 5
47010
- # ],
47011
- # [
47012
- # [
47013
- # "_id",
47014
- # "UInt32"
47015
- # ]
47016
- # ]
47017
- # ],
47018
- # {
47019
- # "tag": [
47020
- # [
47021
- # 3
47022
- # ],
47023
- # [
47024
- # [
47025
- # "_key",
47026
- # "ShortText"
47027
- # ],
47028
- # [
47029
- # "_nsubrecs",
47030
- # "Int32"
47031
- # ],
47032
- # [
47033
- # "_max",
47034
- # "Int64"
47035
- # ],
47036
- # [
47037
- # "_min",
47038
- # "Int64"
47039
- # ],
47040
- # [
47041
- # "_sum",
47042
- # "Int64"
47043
- # ],
47044
- # [
47045
- # "_avg",
47046
- # "Float"
47047
- # ]
47048
- # ],
47049
- # [
47050
- # "Hello",
47051
- # 1,
47052
- # 5,
47053
- # 5,
47054
- # 5,
47055
- # 5.0
47056
- # ],
47057
- # [
47058
- # "Groonga",
47059
- # 2,
47060
- # 15,
47061
- # 10,
47062
- # 25,
47063
- # 12.5
47064
- # ],
47065
- # [
47066
- # "Senna",
47067
- # 2,
47068
- # 3,
47069
- # 3,
47070
- # 6,
47071
- # 3.0
47072
- # ]
47073
- # ]
47074
- # }
47075
- # ]
47076
- # ]
47077
- .ft P
47078
- .fi
47079
- .UNINDENT
47080
- .UNINDENT
47081
- .SS \fBdrilldown[${LABEL}].calc_target\fP
47082
- .sp
47083
- Corresponds to \fI\%drilldown_calc_target\fP in not
47084
- labeled drilldown.
47085
- .sp
47086
- See also \fI\%drilldown[${LABEL}].calc_types\fP
47087
- for an example.
47088
- .SS Return value
47089
- .sp
47090
- The return value format of \fBlogical_select\fP is compatible with
47091
- \fBselect\fP\&. See select\-return\-value for details.
47092
- .SS \fBlogical_shard_list\fP
47093
- .SS Summary
47094
- .sp
47095
- \fBNOTE:\fP
47096
- .INDENT 0.0
47097
- .INDENT 3.5
47098
- This command is an experimental feature.
47099
- .UNINDENT
47100
- .UNINDENT
47101
- .sp
47102
- New in version 5.0.7.
47103
-
47104
- .sp
47105
- \fBlogical_shard_list\fP returns all existing shard names against the
47106
- specified logical table name.
47107
- .SS Syntax
47108
- .sp
47109
- This command takes only one required parameter:
47110
- .INDENT 0.0
47111
- .INDENT 3.5
47112
- .sp
47113
- .nf
47114
- .ft C
47115
- logical_shard_list logical_table
47116
- .ft P
47117
- .fi
47118
- .UNINDENT
47119
- .UNINDENT
47120
- .SS Usage
47121
- .sp
47122
- You need to register \fBsharding\fP plugin to use this command:
47123
- .sp
47124
- Execution example:
47125
- .INDENT 0.0
47126
- .INDENT 3.5
47127
- .sp
47128
- .nf
47129
- .ft C
47130
- plugin_register sharding
47131
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47132
- .ft P
47133
- .fi
47134
- .UNINDENT
47135
- .UNINDENT
47136
- .sp
47137
- Here are sample shards:
47138
- .sp
47139
- Execution example:
47140
- .INDENT 0.0
47141
- .INDENT 3.5
47142
- .sp
47143
- .nf
47144
- .ft C
47145
- table_create Logs_20150801 TABLE_HASH_KEY ShortText
47146
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47147
- column_create Logs_20150801 timestamp COLUMN_SCALAR Time
47148
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47149
- table_create Logs_20150802 TABLE_HASH_KEY ShortText
47150
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47151
- column_create Logs_20150802 timestamp COLUMN_SCALAR Time
47152
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47153
- table_create Logs_20150930 TABLE_HASH_KEY ShortText
47154
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47155
- column_create Logs_20150930 timestamp COLUMN_SCALAR Time
47156
- # [[0, 1337566253.89858, 0.000355720520019531], true]
47157
- .ft P
47158
- .fi
47159
- .UNINDENT
47160
- .UNINDENT
47161
- .sp
47162
- You can get the all shard names in ascending order by specifying
47163
- \fBLogs\fP as the logical table name:
47164
- .sp
47165
- Execution example:
47166
- .INDENT 0.0
47167
- .INDENT 3.5
47168
- .sp
47169
- .nf
47170
- .ft C
47171
- logical_shard_list \-\-logical_table Logs
47172
- # [
47173
- # [
47174
- # 0,
47175
- # 1337566253.89858,
47176
- # 0.000355720520019531
47177
- # ],
47178
- # [
47179
- # {
47180
- # "name": "Logs_20150801"
47181
- # },
47182
- # {
47183
- # "name": "Logs_20150802"
47184
- # },
47185
- # {
47186
- # "name": "Logs_20150930"
47187
- # }
47188
- # ]
47189
- # ]
47190
- .ft P
47191
- .fi
47192
- .UNINDENT
47193
- .UNINDENT
47194
- .SS Parameters
47195
- .sp
47196
- This section describes parameters.
47197
- .SS Required parameters
47198
- .sp
47199
- There is one required parameter.
47200
- .SS \fBlogical_table\fP
47201
- .sp
47202
- Specifies the logical table name. \fBlogical_shard_list\fP returns a
47203
- list of shard name of the logical table:
47204
- .sp
47205
- Execution example:
47206
- .INDENT 0.0
47207
- .INDENT 3.5
47208
- .sp
47209
- .nf
47210
- .ft C
47211
- logical_shard_list \-\-logical_table Logs
47212
- # [
47213
- # [
47214
- # 0,
47215
- # 1337566253.89858,
47216
- # 0.000355720520019531
47217
- # ],
47218
- # [
47219
- # {
47220
- # "name": "Logs_20150801"
47221
- # },
47222
- # {
47223
- # "name": "Logs_20150802"
47224
- # },
47225
- # {
47226
- # "name": "Logs_20150930"
47227
- # }
47228
- # ]
47229
- # ]
47230
- .ft P
47231
- .fi
47232
- .UNINDENT
47233
- .UNINDENT
47234
- .sp
47235
- The list is sorted by shard name in ascending order.
47236
- .SS Optional parameters
47237
- .sp
47238
- There is no optional parameters.
47239
- .SS Return value
47240
- .sp
47241
- The command returns a list of shard names in ascending order:
47242
- .INDENT 0.0
47243
- .INDENT 3.5
47244
- .sp
47245
- .nf
47246
- .ft C
47247
- [
47248
- HEADER,
47249
- [
47250
- {"name": "SHARD_NAME_1"},
47251
- {"name": "SHARD_NAME_2"},
47252
- ...
47253
- {"name": "SHARD_NAME_N"}
47254
- ]
47255
- ]
47256
- .ft P
47257
- .fi
47258
- .UNINDENT
47259
- .UNINDENT
47260
- .sp
47261
- See \fB/reference/command/output_format\fP for \fBHEADER\fP\&.
47262
- .SS See also
47263
- .INDENT 0.0
47264
- .INDENT 3.5
47265
- .INDENT 0.0
47266
- .IP \(bu 2
47267
- \fB/reference/sharding\fP
47268
- .UNINDENT
47269
- .UNINDENT
47270
- .UNINDENT
47271
- .SS \fBlogical_table_remove\fP
47272
- .SS Summary
47273
- .sp
47274
- \fBNOTE:\fP
47275
- .INDENT 0.0
47276
- .INDENT 3.5
47277
- This command is an experimental feature.
47278
- .UNINDENT
47279
- .UNINDENT
47280
- .sp
47281
- New in version 5.0.5.
47282
-
47283
- .sp
47284
- TODO
47285
- .SS Syntax
47286
- .sp
47287
- This command takes many parameters.
47288
- .sp
47289
- The required parameters are \fBlogical_table\fP and \fBshard_key\fP:
47290
- .INDENT 0.0
47291
- .INDENT 3.5
47292
- .sp
47293
- .nf
47294
- .ft C
47295
- logical_table_remove logical_table
47296
- shard_key
47297
- [min]
47298
- [min_border]
47299
- [max]
47300
- [max_border]
47301
- .ft P
47302
- .fi
47303
- .UNINDENT
47304
- .UNINDENT
47305
- .SS Usage
47306
- .sp
47307
- TODO
47308
- .SS Parameters
47309
- .sp
47310
- This section describes parameters of \fBlogical_table_remove\fP\&.
47311
- .SS Required parameter
47312
- .sp
47313
- There are required parameters, \fBlogical_table\fP and \fBshard_key\fP\&.
47314
- .SS \fBlogical_table\fP
47315
- .sp
47316
- Specifies logical table name. It means table name without "_YYYYMMDD" postfix.
47317
- If you use actual table such as "Logs_20150203", "Logs_20150203" and so on, logical table name is "Logs".
47318
- .SS \fBshard_key\fP
47319
- .sp
47320
- Specifies column name which is treated as shared key in each parted table.
47321
- .SS Optional parameters
47322
- .sp
47323
- There are optional parameters.
47324
- .SS \fBmin\fP
47325
- .sp
47326
- Specifies the min value of \fBshard_key\fP
47327
- .SS \fBmin_border\fP
47328
- .sp
47329
- Specifies whether the min value of borderline must be include or not.
47330
- Specify \fBinclude\fP or \fBexclude\fP as the value of this parameter.
47331
- .SS \fBmax\fP
47332
- .sp
47333
- Specifies the max value of \fBshard_key\fP\&.
47334
- .SS \fBmax_border\fP
47335
- .sp
47336
- Specifies whether the max value of borderline must be include or not.
47337
- Specify \fBinclude\fP or \fBexclude\fP as the value of this parameter.
47338
- .SS Return value
47339
- .sp
47340
- TODO
47341
- .INDENT 0.0
47342
- .INDENT 3.5
47343
- .sp
47344
- .nf
47345
- .ft C
47346
- [HEADER, true]
47347
- .ft P
47348
- .fi
47349
- .UNINDENT
47350
- .UNINDENT
47351
- .SS Log
47352
- .sp
47353
- Groonga has two log files. They are process log and query
47354
- log. Process log is for all of \fBexecutables/groonga\fP
47355
- works. Query log is just for query processing.
47356
- .SS Process log
47357
- .sp
47358
- Process log is enabled by default. Log path can be
47359
- customized by \fB\-\-log\-path\fP option. Each log has its
47360
- log level. If a log is smaller than groonga process\(aq log
47361
- level, it\(aqs not logged. Log level can be customized by
47362
- \fB\-l\fP or \fBcommands/log_level\fP\&.
47363
- .SS Format
47364
- .sp
47365
- Process log uses the following format:
47366
- .INDENT 0.0
47367
- .INDENT 3.5
47368
- .sp
47369
- .nf
47370
- .ft C
47371
- #{TIME_STAMP}|#{L}| #{MESSAGE}
47372
- .ft P
47373
- .fi
47374
- .UNINDENT
47375
- .UNINDENT
47376
- .INDENT 0.0
47377
- .TP
47378
- .B TIME_STAMP
47379
- It\(aqs time stamp uses the following format:
47380
- .INDENT 7.0
47381
- .INDENT 3.5
47382
- .sp
47383
- .nf
47384
- .ft C
47385
- YYYY\-MM\-DD hh:mm:ss.SSSSSS
47386
- .ft P
47387
- .fi
47388
- .UNINDENT
47389
- .UNINDENT
47390
- .INDENT 7.0
47391
- .TP
47392
- .B YYYY
47393
- Year with four digits.
47394
- .TP
47395
- .B MM
47396
- Month with two digits.
47397
- .TP
47398
- .B DD
47399
- Day with two digits.
47400
- .TP
47401
- .B hh
47402
- Hour with two digits.
47403
- .TP
47404
- .B mm
47405
- Minute with two digits.
47406
- .TP
47407
- .B ss
47408
- Second with two digits.
47409
- .TP
47410
- .B SSSSSS
47411
- Microsecond with six digits.
47412
- .UNINDENT
47413
- .sp
47414
- Example:
47415
- .INDENT 7.0
47416
- .INDENT 3.5
47417
- .sp
47418
- .nf
47419
- .ft C
47420
- 2011\-07\-05 06:25:18.345734
47421
- .ft P
47422
- .fi
47423
- .UNINDENT
47424
- .UNINDENT
47425
- .TP
47426
- .B L
47427
- Log level with a character. Here is a character and log
47428
- level map.
47429
- .INDENT 7.0
47430
- .TP
47431
- .B E
47432
- Emergency
47433
- .TP
47434
- .B A
47435
- Alert
47436
- .TP
47437
- .B C
47438
- Critical
47439
- .TP
47440
- .B e
47441
- Error
47442
- .TP
47443
- .B w
47444
- Warning
47445
- .TP
47446
- .B n
47447
- Notification
47448
- .TP
47449
- .B i
47450
- Information
47451
- .TP
47452
- .B d
47453
- Debug
47454
- .TP
47455
- .B \-
47456
- Dump
47457
- .UNINDENT
47458
- .sp
47459
- Example:
47460
- .INDENT 7.0
47461
- .INDENT 3.5
47462
- .sp
47463
- .nf
47464
- .ft C
47465
- E
47466
- .ft P
47467
- .fi
47468
- .UNINDENT
47469
- .UNINDENT
47470
- .TP
47471
- .B MESSAGE
47472
- Details about the log with free format.
47473
- .sp
47474
- Example:
47475
- .INDENT 7.0
47476
- .INDENT 3.5
47477
- .sp
47478
- .nf
47479
- .ft C
47480
- log opened.
47481
- .ft P
47482
- .fi
47483
- .UNINDENT
47484
- .UNINDENT
47485
- .UNINDENT
47486
- .sp
47487
- Example:
47488
- .INDENT 0.0
47489
- .INDENT 3.5
47490
- .sp
47491
- .nf
47492
- .ft C
47493
- 2011\-07\-05 08:35:09.276421|n| grn_init
47494
- 2011\-07\-05 08:35:09.276553|n| RLIMIT_NOFILE(4096,4096)
47495
- .ft P
47496
- .fi
47497
- .UNINDENT
47498
- .UNINDENT
47499
- .SS Query log
47500
- .sp
47501
- Query log is disabled by default. It can be enabled by
47502
- \fB\-\-query\-log\-path\fP option.
47503
- .SS Format
47504
- .sp
47505
- Query log uses the following formats:
47506
- .INDENT 0.0
47507
- .INDENT 3.5
47508
- .sp
47509
- .nf
47510
- .ft C
47511
- #{TIME_STAMP}|#{MESSAGE}
47512
- #{TIME_STAMP}|#{ID}|>#{QUERY}
47513
- #{TIME_STAMP}|#{ID}|:#{ELAPSED_TIME} #{PROGRESS}
47514
- #{TIME_STAMP}|#{ID}|<#{ELAPSED_TIME} #{RETURN_CODE}
47515
- .ft P
47516
- .fi
47517
- .UNINDENT
47518
- .UNINDENT
47519
- .INDENT 0.0
47520
- .TP
47521
- .B TIME_STAMP
47522
- It\(aqs time stamp uses the following format:
47523
- .INDENT 7.0
47524
- .INDENT 3.5
47525
- .sp
47526
- .nf
47527
- .ft C
47528
- YYYY\-MM\-DD hh:mm:ss.SSSSSS
47529
- .ft P
47530
- .fi
47531
- .UNINDENT
47532
- .UNINDENT
47533
- .INDENT 7.0
47534
- .TP
47535
- .B YYYY
47536
- Year with four digits.
47537
- .TP
47538
- .B MM
47539
- Month with two digits.
47540
- .TP
47541
- .B DD
47542
- Day with two digits.
47543
- .TP
47544
- .B hh
47545
- Hour with two digits.
47546
- .TP
47547
- .B mm
47548
- Minute with two digits.
47549
- .TP
47550
- .B ss
47551
- Second with two digits.
47552
- .TP
47553
- .B SSSSSS
47554
- Microsecond with six digits.
47555
- .UNINDENT
47556
- .sp
47557
- Example:
47558
- .INDENT 7.0
47559
- .INDENT 3.5
47560
- .sp
47561
- .nf
47562
- .ft C
47563
- 2011\-07\-05 06:25:18.345734
47564
- .ft P
47565
- .fi
47566
- .UNINDENT
47567
- .UNINDENT
47568
- .TP
47569
- .B ID
47570
- ID of a thread. Groonga process creates threads to process
47571
- requests concurrently. Each thread outputs some logs for a
47572
- request. This ID can be used to extract a log sequence by
47573
- a thread.
47574
- .sp
47575
- Example:
47576
- .INDENT 7.0
47577
- .INDENT 3.5
47578
- .sp
47579
- .nf
47580
- .ft C
47581
- 45ea3034
47582
- .ft P
47583
- .fi
47584
- .UNINDENT
47585
- .UNINDENT
47586
- .UNINDENT
47587
- .INDENT 0.0
47588
- .TP
47589
- .B >
47590
- A character that indicates query is started.
47591
- .UNINDENT
47592
- .INDENT 0.0
47593
- .TP
47594
- .B :
47595
- A character that indicates query is processing.
47596
- .UNINDENT
47597
- .INDENT 0.0
47598
- .TP
47599
- .B <
47600
- A character that indicates query is finished.
47601
- .TP
47602
- .B MESSAGE
47603
- Details about the log with free format.
47604
- .sp
47605
- Example:
47606
- .INDENT 7.0
47607
- .INDENT 3.5
47608
- .sp
47609
- .nf
47610
- .ft C
47611
- query log opened.
47612
- .ft P
47613
- .fi
47614
- .UNINDENT
47615
- .UNINDENT
47616
- .TP
47617
- .B QUERY
47618
- A query to be processed.
47619
- .sp
47620
- Example:
47621
- .INDENT 7.0
47622
- .INDENT 3.5
47623
- .sp
47624
- .nf
47625
- .ft C
47626
- select users \-\-match_columns hobby \-\-query music
47627
- .ft P
47628
- .fi
47629
- .UNINDENT
47630
- .UNINDENT
47631
- .TP
47632
- .B ELAPSED_TIME
47633
- Elapsed time in nanoseconds since query is started.
47634
- .sp
47635
- Example:
47636
- .INDENT 7.0
47637
- .INDENT 3.5
47638
- .sp
47639
- .nf
47640
- .ft C
47641
- 000000000075770
47642
- (It means 75,770 nanoseconds.)
47643
- .ft P
47644
- .fi
47645
- .UNINDENT
47646
- .UNINDENT
47647
- .TP
47648
- .B PROGRESS
47649
- A processed work at the time.
47650
- .sp
47651
- Example:
47652
- .INDENT 7.0
47653
- .INDENT 3.5
47654
- .sp
47655
- .nf
47656
- .ft C
47657
- select(313401)
47658
- (It means that \(aqselect\(aq is processed and 313,401 records are remained.)
47659
- .ft P
47660
- .fi
47661
- .UNINDENT
47662
- .UNINDENT
47663
- .TP
47664
- .B RETURN_CODE
47665
- A return code for the query.
47666
- .sp
47667
- Example:
47668
- .INDENT 7.0
47669
- .INDENT 3.5
47670
- .sp
47671
- .nf
47672
- .ft C
47673
- rc=0
47674
- (It means return code is 0. 0 means GRN_SUCCESS.)
47675
- .ft P
47676
- .fi
45234
+ .sp
45235
+ .nf
45236
+ .ft C
45237
+ rc=0
45238
+ (It means return code is 0. 0 means GRN_SUCCESS.)
45239
+ .ft P
45240
+ .fi
47677
45241
  .UNINDENT
47678
45242
  .UNINDENT
47679
45243
  .UNINDENT
@@ -47846,7 +45410,7 @@ following command:
47846
45410
  .sp
47847
45411
  .nf
47848
45412
  .ft C
47849
- % sudo sysctl \-p
45413
+ % sudo sysctl \-\-system
47850
45414
  .ft P
47851
45415
  .fi
47852
45416
  .UNINDENT