rroonga 6.0.0-x86-mingw32 → 6.0.2-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (710) hide show
  1. checksums.yaml +4 -4
  2. data/doc/text/news.md +38 -1
  3. data/ext/groonga/extconf.rb +14 -1
  4. data/ext/groonga/rb-grn-array.c +1 -1
  5. data/ext/groonga/rb-grn-double-array-trie.c +1 -1
  6. data/ext/groonga/rb-grn-exception.c +18 -1
  7. data/ext/groonga/rb-grn-expression.c +0 -8
  8. data/ext/groonga/rb-grn-hash.c +15 -3
  9. data/ext/groonga/rb-grn-logger.c +22 -22
  10. data/ext/groonga/rb-grn-object.c +28 -6
  11. data/ext/groonga/rb-grn-patricia-trie.c +1 -1
  12. data/ext/groonga/rb-grn-request-canceler.c +164 -0
  13. data/ext/groonga/rb-grn-request-timer-id.c +64 -0
  14. data/ext/groonga/rb-grn-request-timer.c +155 -0
  15. data/ext/groonga/rb-grn-type.c +43 -1
  16. data/ext/groonga/rb-grn.h +17 -5
  17. data/ext/groonga/rb-groonga.c +3 -0
  18. data/lib/2.1/groonga.so +0 -0
  19. data/lib/2.2/groonga.so +0 -0
  20. data/lib/2.3/groonga.so +0 -0
  21. data/lib/groonga/expression-builder.rb +4 -13
  22. data/rroonga-build.rb +3 -3
  23. data/rroonga.gemspec +1 -2
  24. data/test/run-test.rb +2 -2
  25. data/test/test-expression-builder.rb +13 -1
  26. data/test/test-hash.rb +22 -3
  27. data/test/test-request-canceler.rb +46 -0
  28. data/test/test-request-timer.rb +40 -0
  29. data/test/test-table.rb +43 -7
  30. data/test/test-type.rb +104 -2
  31. data/vendor/local/bin/grndb.exe +0 -0
  32. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  33. data/vendor/local/bin/groonga.exe +0 -0
  34. data/vendor/local/bin/libgroonga-0.dll +0 -0
  35. data/vendor/local/bin/libmecab-2.dll +0 -0
  36. data/vendor/local/bin/libmsgpack-4.dll +0 -0
  37. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  38. data/vendor/local/bin/libonig-5.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 +8 -0
  45. data/vendor/local/include/groonga/groonga/dump.h +1 -1
  46. data/vendor/local/include/groonga/groonga/expr.h +1 -2
  47. data/vendor/local/include/groonga/groonga/groonga.h +18 -5
  48. data/vendor/local/include/groonga/groonga/obj.h +1 -0
  49. data/vendor/local/include/groonga/groonga/plugin.h +9 -0
  50. data/vendor/local/include/groonga/groonga/portability.h +8 -0
  51. data/vendor/local/include/groonga/groonga/request_canceler.h +1 -0
  52. data/vendor/local/include/groonga/groonga/request_timer.h +53 -0
  53. data/vendor/local/include/groonga/groonga/type.h +9 -0
  54. data/vendor/local/include/groonga/groonga.h +1 -0
  55. data/vendor/local/lib/groonga/plugins/expression_rewriters/optimizer.rb +131 -22
  56. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  57. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  58. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  59. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  60. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  61. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  62. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  63. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  64. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  65. data/vendor/local/lib/groonga/plugins/ruby/eval.rb +36 -0
  66. data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +8 -0
  67. data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +43 -8
  68. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  69. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  70. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  71. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  73. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  74. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  75. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  76. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  77. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  78. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  79. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  80. data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +14 -0
  81. data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +4 -0
  82. data/vendor/local/lib/groonga/scripts/ruby/eval_context.rb +5 -0
  83. data/vendor/local/lib/groonga/scripts/ruby/expression.rb +2 -0
  84. data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +11 -25
  85. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/binary_operation.rb +67 -0
  86. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/constant.rb +22 -0
  87. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +50 -0
  88. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/logical_operation.rb +33 -0
  89. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/variable.rb +18 -0
  90. data/vendor/local/lib/groonga/scripts/ruby/expression_tree.rb +5 -0
  91. data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +92 -0
  92. data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +35 -6
  93. data/vendor/local/lib/libgroonga.a +0 -0
  94. data/vendor/local/lib/libgroonga.dll.a +0 -0
  95. data/vendor/local/lib/liblz4.a +0 -0
  96. data/vendor/local/lib/liblz4.dll +0 -0
  97. data/vendor/local/lib/liblz4.dll.1 +0 -0
  98. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  99. data/vendor/local/lib/libmecab.a +0 -0
  100. data/vendor/local/lib/libmecab.dll.a +0 -0
  101. data/vendor/local/lib/libmsgpack.a +0 -0
  102. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  103. data/vendor/local/lib/libmsgpackc.a +0 -0
  104. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  105. data/vendor/local/lib/libonig.a +0 -0
  106. data/vendor/local/lib/libonig.dll.a +0 -0
  107. data/vendor/local/lib/libz.a +0 -0
  108. data/vendor/local/lib/libz.dll.a +0 -0
  109. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  110. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  111. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  112. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  113. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  114. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  115. data/vendor/local/sbin/groonga-httpd.exe +0 -0
  116. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  117. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +10 -1
  118. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +19 -13
  119. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/introduction.txt +9 -0
  120. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +4 -5
  121. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +17 -51
  122. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  123. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +13 -3
  124. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +9 -7
  125. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  126. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +5 -4
  127. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  128. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +4 -3
  129. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +224 -2
  130. data/vendor/local/share/doc/groonga/en/html/_sources/reference/alias.txt +8 -8
  131. data/vendor/local/share/doc/groonga/en/html/_sources/reference/columns/vector.txt +2 -2
  132. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +78 -0
  133. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/return_code.txt +6 -0
  134. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
  135. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_copy.txt +1 -1
  136. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_delete.txt +1 -1
  137. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt +1 -1
  138. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_set.txt +1 -1
  139. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/database_unmap.txt +2 -2
  140. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/io_flush.txt +1 -1
  141. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +1 -1
  142. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +2 -6
  143. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_parameters.txt +1 -5
  144. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +2 -6
  145. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +4 -8
  146. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_shard_list.txt +1 -5
  147. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +383 -24
  148. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +2 -2
  149. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_exist.txt +1 -1
  150. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +1 -1
  151. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_remove.txt +1 -1
  152. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +2 -2
  153. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/schema.txt +2 -2
  154. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +3 -3
  155. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/shutdown.txt +84 -10
  156. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +2 -2
  157. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +11 -1
  158. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +41 -15
  159. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +73 -2
  160. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +10 -0
  161. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/thread_limit.txt +1 -1
  162. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +2 -2
  163. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +1 -1
  164. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +349 -91
  165. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +49 -21
  166. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +2 -2
  167. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +1 -1
  168. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/prefix_rk_search.txt +6 -6
  169. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
  170. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +2 -2
  171. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +9 -9
  172. data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +1 -1
  173. data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_at_most.txt +4 -4
  174. data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_idf.txt +4 -4
  175. data/vendor/local/share/doc/groonga/en/html/_sources/reference/sharding.txt +0 -4
  176. data/vendor/local/share/doc/groonga/en/html/_sources/reference/suggest/completion.txt +2 -2
  177. data/vendor/local/share/doc/groonga/en/html/_sources/reference/types.txt +1 -1
  178. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +9 -0
  179. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
  180. data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
  181. data/vendor/local/share/doc/groonga/en/html/characteristic.html +7 -10
  182. data/vendor/local/share/doc/groonga/en/html/client.html +7 -10
  183. data/vendor/local/share/doc/groonga/en/html/community.html +6 -9
  184. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +8 -11
  185. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +9 -12
  186. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +8 -11
  187. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +6 -9
  188. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +6 -9
  189. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +6 -9
  190. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +6 -9
  191. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +31 -26
  192. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +6 -9
  193. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +6 -9
  194. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +6 -9
  195. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +6 -9
  196. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +40 -37
  197. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +15 -10
  198. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +6 -9
  199. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -10
  200. data/vendor/local/share/doc/groonga/en/html/contribution.html +17 -18
  201. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +6 -9
  202. data/vendor/local/share/doc/groonga/en/html/development.html +6 -9
  203. data/vendor/local/share/doc/groonga/en/html/genindex.html +21 -9
  204. data/vendor/local/share/doc/groonga/en/html/index.html +74 -77
  205. data/vendor/local/share/doc/groonga/en/html/install/centos.html +14 -18
  206. data/vendor/local/share/doc/groonga/en/html/install/debian.html +28 -72
  207. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +11 -14
  208. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +19 -13
  209. data/vendor/local/share/doc/groonga/en/html/install/others.html +25 -26
  210. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +10 -13
  211. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +12 -15
  212. data/vendor/local/share/doc/groonga/en/html/install/windows.html +18 -21
  213. data/vendor/local/share/doc/groonga/en/html/install.html +8 -12
  214. data/vendor/local/share/doc/groonga/en/html/limitations.html +10 -12
  215. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +9 -12
  216. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +24 -27
  217. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -10
  218. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +25 -28
  219. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +6 -9
  220. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +36 -39
  221. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +27 -30
  222. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +81 -84
  223. data/vendor/local/share/doc/groonga/en/html/news/senna.html +6 -9
  224. data/vendor/local/share/doc/groonga/en/html/news.html +510 -303
  225. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  226. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +20 -23
  227. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +6 -9
  228. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +17 -20
  229. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +11 -14
  230. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +6 -9
  231. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +7 -10
  232. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +8 -11
  233. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +6 -9
  234. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +6 -9
  235. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +12 -15
  236. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +6 -9
  237. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +6 -9
  238. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +6 -9
  239. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +6 -9
  240. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +6 -9
  241. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +6 -9
  242. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +6 -9
  243. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +6 -9
  244. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +6 -9
  245. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +6 -9
  246. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +6 -9
  247. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +8 -11
  248. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +6 -9
  249. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +6 -9
  250. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +6 -9
  251. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +6 -9
  252. data/vendor/local/share/doc/groonga/en/html/reference/api.html +6 -9
  253. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +6 -9
  254. data/vendor/local/share/doc/groonga/en/html/reference/column.html +6 -9
  255. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +6 -9
  256. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +6 -9
  257. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +6 -9
  258. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +19 -22
  259. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +6 -9
  260. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +8 -11
  261. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +7 -10
  262. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +13 -16
  263. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +208 -0
  264. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +32 -29
  265. data/vendor/local/share/doc/groonga/en/html/reference/command.html +66 -68
  266. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +33 -36
  267. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +26 -29
  268. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +30 -33
  269. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +50 -53
  270. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +27 -30
  271. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +36 -39
  272. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +26 -29
  273. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +35 -38
  274. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +43 -46
  275. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +43 -46
  276. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +45 -48
  277. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +34 -37
  278. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +29 -32
  279. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +26 -29
  280. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -35
  281. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +38 -41
  282. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +57 -60
  283. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +32 -35
  284. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +38 -41
  285. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +29 -32
  286. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +39 -42
  287. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +30 -33
  288. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +30 -33
  289. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +32 -35
  290. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +46 -53
  291. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +37 -44
  292. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +59 -66
  293. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +155 -162
  294. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +37 -44
  295. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +465 -67
  296. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +43 -46
  297. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +29 -32
  298. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +34 -37
  299. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +119 -122
  300. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +39 -42
  301. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +29 -32
  302. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +28 -31
  303. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +26 -29
  304. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +27 -30
  305. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +31 -34
  306. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +30 -33
  307. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +40 -43
  308. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +31 -34
  309. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +32 -35
  310. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +93 -96
  311. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +184 -187
  312. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +114 -36
  313. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +46 -49
  314. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +42 -35
  315. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +101 -79
  316. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +26 -29
  317. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +126 -47
  318. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +33 -36
  319. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +54 -49
  320. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +38 -41
  321. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +50 -53
  322. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +29 -32
  323. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +28 -31
  324. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +16 -19
  325. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +6 -9
  326. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +6 -9
  327. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +7 -10
  328. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +19 -22
  329. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +7 -10
  330. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +12 -15
  331. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +421 -121
  332. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +7 -10
  333. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +67 -39
  334. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -10
  335. data/vendor/local/share/doc/groonga/en/html/reference/function.html +8 -11
  336. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +7 -10
  337. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +6 -9
  338. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +12 -15
  339. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -9
  340. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -9
  341. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +10 -13
  342. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +11 -14
  343. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +8 -11
  344. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +6 -9
  345. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +10 -13
  346. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +21 -24
  347. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +23 -26
  348. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +6 -9
  349. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +10 -13
  350. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +11 -14
  351. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +6 -9
  352. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +17 -20
  353. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +26 -29
  354. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +18 -21
  355. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +6 -9
  356. data/vendor/local/share/doc/groonga/en/html/reference/log.html +8 -11
  357. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +10 -13
  358. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +6 -9
  359. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +12 -15
  360. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +6 -9
  361. data/vendor/local/share/doc/groonga/en/html/reference/output.html +6 -9
  362. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +7 -10
  363. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +6 -9
  364. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +21 -24
  365. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +13 -16
  366. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +11 -14
  367. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +12 -15
  368. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +19 -26
  369. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +12 -15
  370. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +8 -11
  371. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +6 -9
  372. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +7 -10
  373. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +6 -9
  374. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +8 -11
  375. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +9 -12
  376. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +34 -37
  377. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +9 -12
  378. data/vendor/local/share/doc/groonga/en/html/reference/types.html +15 -18
  379. data/vendor/local/share/doc/groonga/en/html/reference.html +68 -70
  380. data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
  381. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  382. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +12 -15
  383. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +34 -37
  384. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +6 -9
  385. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +6 -9
  386. data/vendor/local/share/doc/groonga/en/html/server/http.html +10 -13
  387. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +6 -9
  388. data/vendor/local/share/doc/groonga/en/html/server/package.html +13 -16
  389. data/vendor/local/share/doc/groonga/en/html/server.html +6 -9
  390. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +9 -12
  391. data/vendor/local/share/doc/groonga/en/html/spec/search.html +7 -10
  392. data/vendor/local/share/doc/groonga/en/html/spec.html +6 -9
  393. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +8 -11
  394. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +7 -10
  395. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -9
  396. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +18 -21
  397. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -9
  398. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +6 -9
  399. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +29 -32
  400. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +6 -9
  401. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +6 -9
  402. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +12 -15
  403. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +6 -9
  404. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +6 -9
  405. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +7 -10
  406. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -13
  407. data/vendor/local/share/doc/groonga/en/html/tutorial.html +6 -9
  408. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  409. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +10 -1
  410. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +19 -13
  411. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/introduction.txt +9 -0
  412. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +4 -5
  413. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +17 -51
  414. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  415. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +13 -3
  416. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +9 -7
  417. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  418. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +5 -4
  419. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  420. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +4 -3
  421. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +224 -2
  422. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/alias.txt +8 -8
  423. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/columns/vector.txt +2 -2
  424. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +78 -0
  425. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/return_code.txt +6 -0
  426. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
  427. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_copy.txt +1 -1
  428. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_delete.txt +1 -1
  429. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt +1 -1
  430. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_set.txt +1 -1
  431. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/database_unmap.txt +2 -2
  432. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/io_flush.txt +1 -1
  433. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +1 -1
  434. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +2 -6
  435. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_parameters.txt +1 -5
  436. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +2 -6
  437. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +4 -8
  438. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_shard_list.txt +1 -5
  439. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +383 -24
  440. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +2 -2
  441. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_exist.txt +1 -1
  442. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +1 -1
  443. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_remove.txt +1 -1
  444. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +2 -2
  445. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/schema.txt +2 -2
  446. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +3 -3
  447. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/shutdown.txt +84 -10
  448. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +2 -2
  449. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +11 -1
  450. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +41 -15
  451. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +73 -2
  452. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +10 -0
  453. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/thread_limit.txt +1 -1
  454. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +2 -2
  455. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +1 -1
  456. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +349 -91
  457. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +49 -21
  458. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +2 -2
  459. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +1 -1
  460. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/prefix_rk_search.txt +6 -6
  461. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
  462. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +2 -2
  463. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +9 -9
  464. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +1 -1
  465. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_at_most.txt +4 -4
  466. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_idf.txt +4 -4
  467. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/sharding.txt +0 -4
  468. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/suggest/completion.txt +2 -2
  469. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/types.txt +1 -1
  470. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +9 -0
  471. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
  472. data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
  473. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +7 -10
  474. data/vendor/local/share/doc/groonga/ja/html/client.html +7 -10
  475. data/vendor/local/share/doc/groonga/ja/html/community.html +6 -9
  476. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +8 -11
  477. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +9 -12
  478. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +8 -11
  479. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +6 -9
  480. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -9
  481. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -9
  482. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -9
  483. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +31 -26
  484. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -9
  485. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -9
  486. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -9
  487. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -9
  488. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +41 -37
  489. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +27 -32
  490. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +11 -14
  491. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -10
  492. data/vendor/local/share/doc/groonga/ja/html/contribution.html +20 -21
  493. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -9
  494. data/vendor/local/share/doc/groonga/ja/html/development.html +6 -9
  495. data/vendor/local/share/doc/groonga/ja/html/genindex.html +21 -9
  496. data/vendor/local/share/doc/groonga/ja/html/index.html +76 -79
  497. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +14 -18
  498. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +25 -67
  499. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +11 -14
  500. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +19 -13
  501. data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -24
  502. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +10 -13
  503. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +12 -15
  504. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +18 -21
  505. data/vendor/local/share/doc/groonga/ja/html/install.html +8 -12
  506. data/vendor/local/share/doc/groonga/ja/html/limitations.html +9 -12
  507. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +9 -12
  508. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +24 -27
  509. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -10
  510. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +25 -28
  511. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +6 -9
  512. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +35 -38
  513. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +27 -30
  514. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +71 -74
  515. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +6 -9
  516. data/vendor/local/share/doc/groonga/ja/html/news.html +479 -282
  517. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  518. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +17 -20
  519. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +7 -10
  520. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +20 -23
  521. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +18 -21
  522. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +7 -10
  523. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +7 -10
  524. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +21 -24
  525. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +12 -15
  526. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +9 -12
  527. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +15 -18
  528. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +10 -13
  529. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +10 -13
  530. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +6 -9
  531. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +8 -11
  532. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +10 -13
  533. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +8 -11
  534. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +29 -32
  535. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +9 -12
  536. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +7 -10
  537. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -27
  538. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +14 -17
  539. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +10 -13
  540. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +7 -10
  541. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +7 -10
  542. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +6 -9
  543. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +10 -13
  544. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +6 -9
  545. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -9
  546. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +6 -9
  547. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +6 -9
  548. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +6 -9
  549. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +6 -9
  550. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +17 -20
  551. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -9
  552. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +8 -11
  553. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +7 -10
  554. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +13 -16
  555. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +193 -0
  556. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +32 -29
  557. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +66 -68
  558. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +33 -36
  559. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +26 -29
  560. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +30 -33
  561. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +48 -51
  562. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +27 -30
  563. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +36 -39
  564. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +26 -29
  565. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +35 -38
  566. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +42 -45
  567. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +42 -45
  568. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +44 -47
  569. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +32 -35
  570. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +29 -32
  571. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +26 -29
  572. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -35
  573. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +38 -41
  574. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +55 -58
  575. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +31 -34
  576. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +38 -41
  577. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +29 -32
  578. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +38 -41
  579. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +30 -33
  580. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +30 -33
  581. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +32 -35
  582. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +46 -53
  583. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +36 -43
  584. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +59 -66
  585. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +137 -144
  586. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +36 -43
  587. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +419 -63
  588. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +43 -46
  589. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +29 -32
  590. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +33 -36
  591. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +117 -120
  592. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +38 -41
  593. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +29 -32
  594. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +28 -31
  595. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +26 -29
  596. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +27 -30
  597. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +31 -34
  598. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +30 -33
  599. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +39 -42
  600. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +31 -34
  601. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +32 -35
  602. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +91 -94
  603. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +172 -175
  604. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +104 -36
  605. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +44 -47
  606. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +42 -35
  607. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +95 -79
  608. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +26 -29
  609. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +116 -47
  610. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +33 -36
  611. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +54 -49
  612. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +35 -38
  613. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +50 -53
  614. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +29 -32
  615. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +28 -31
  616. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +14 -17
  617. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +6 -9
  618. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +10 -13
  619. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +11 -14
  620. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +17 -20
  621. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +7 -10
  622. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +12 -15
  623. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +397 -127
  624. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +9 -12
  625. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +97 -60
  626. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +8 -11
  627. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +8 -11
  628. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +7 -10
  629. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -9
  630. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +12 -15
  631. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -9
  632. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -9
  633. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +10 -13
  634. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +10 -13
  635. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +8 -11
  636. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +6 -9
  637. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +10 -13
  638. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +19 -22
  639. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +22 -25
  640. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -9
  641. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +8 -11
  642. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +11 -14
  643. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +6 -9
  644. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +17 -20
  645. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -20
  646. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +12 -15
  647. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -9
  648. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +24 -19
  649. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +8 -11
  650. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +6 -9
  651. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +11 -14
  652. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +6 -9
  653. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +6 -9
  654. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +7 -10
  655. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -9
  656. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +16 -19
  657. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +13 -16
  658. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +10 -13
  659. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +11 -14
  660. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +16 -23
  661. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +10 -13
  662. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +8 -11
  663. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +6 -9
  664. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +7 -10
  665. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +6 -9
  666. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +8 -11
  667. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +8 -11
  668. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +26 -29
  669. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +9 -12
  670. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +14 -17
  671. data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -71
  672. data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
  673. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  674. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +12 -15
  675. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +28 -31
  676. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -9
  677. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -9
  678. data/vendor/local/share/doc/groonga/ja/html/server/http.html +10 -13
  679. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +6 -9
  680. data/vendor/local/share/doc/groonga/ja/html/server/package.html +13 -16
  681. data/vendor/local/share/doc/groonga/ja/html/server.html +6 -9
  682. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +9 -12
  683. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -10
  684. data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -9
  685. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +8 -11
  686. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +7 -10
  687. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -9
  688. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +18 -21
  689. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -9
  690. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +6 -9
  691. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +29 -32
  692. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -9
  693. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -9
  694. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +12 -15
  695. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -9
  696. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -9
  697. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +7 -10
  698. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +10 -13
  699. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -9
  700. metadata +72 -76
  701. data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
  702. data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
  703. data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
  704. data/vendor/local/lib/groonga/plugins/ruby/eval.la +0 -41
  705. data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
  706. data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
  707. data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
  708. data/vendor/local/lib/groonga/plugins/ruby/load.la +0 -41
  709. data/vendor/local/share/man/ja/man1/groonga.1 +0 -52774
  710. data/vendor/local/share/man/man1/groonga.1 +0 -55612
@@ -9,20 +9,23 @@ module Groonga
9
9
  "min_border",
10
10
  "max",
11
11
  "max_border",
12
+ "dependent",
12
13
  ])
13
14
 
14
15
  def run_body(input)
16
+ @dependent = (input[:dependent] == "yes")
17
+
15
18
  enumerator = LogicalEnumerator.new("logical_table_remove", input)
16
19
 
17
- succeess = true
20
+ success = true
18
21
  enumerator.each do |shard, shard_range|
19
- remove_table(shard, shard_range, enumerator.target_range)
22
+ remove_shard(shard, shard_range, enumerator.target_range)
20
23
  end
21
- writer.write(succeess)
24
+ writer.write(success)
22
25
  end
23
26
 
24
27
  private
25
- def remove_table(shard, shard_range, target_range)
28
+ def remove_shard(shard, shard_range, target_range)
26
29
  cover_type = target_range.cover_type(shard_range)
27
30
  return if cover_type == :none
28
31
 
@@ -40,22 +43,54 @@ module Groonga
40
43
 
41
44
  case cover_type
42
45
  when :all
43
- table.remove
46
+ remove_table(shard)
44
47
  when :partial_min
45
48
  remove_records(table) do |expression|
46
49
  expression_builder.build_partial_min(expression)
47
50
  end
48
- table.remove if table.empty?
51
+ remove_table(shard) if table.empty?
49
52
  when :partial_max
50
53
  remove_records(table) do |expression|
51
54
  expression_builder.build_partial_max(expression)
52
55
  end
53
- table.remove if table.empty?
56
+ remove_table(shard) if table.empty?
54
57
  when :partial_min_and_max
55
58
  remove_records(table) do |expression|
56
59
  expression_builder.build_partial_min_and_max(expression)
57
60
  end
58
- table.remove if table.empty?
61
+ remove_table(shard) if table.empty?
62
+ end
63
+ end
64
+
65
+ def remove_table(shard)
66
+ table = shard.table
67
+ shard_suffix = shard.range_data.to_suffix
68
+
69
+ referenced_table_ids = []
70
+ if @dependent
71
+ table.columns.each do |column|
72
+ range = column.range
73
+ if range.is_a?(Table)
74
+ referenced_table_ids << range.id
75
+ range.indexes.each do |index_info|
76
+ referenced_table_ids << index_info.index.domain.id
77
+ end
78
+ end
79
+ column.indexes.each do |index_info|
80
+ referenced_table_ids << index_info.index.domain.id
81
+ end
82
+ end
83
+ end
84
+
85
+ table.remove(:dependent => @dependent)
86
+
87
+ context = Groonga::Context.instance
88
+ referenced_table_ids.each do |referenced_table_id|
89
+ referenced_table = context[referenced_table_id]
90
+ next if referenced_table.nil?
91
+ if referenced_table.name.end_with?(shard_suffix)
92
+ referenced_table.remove(:dependent => @dependent)
93
+ end
59
94
  end
60
95
  end
61
96
 
@@ -161,6 +161,7 @@ module Groonga
161
161
  context = Context.instance
162
162
  cursor.each do |id|
163
163
  next if ID.builtin?(id)
164
+ next if builtin_object_name?(cursor.key)
164
165
  next if context[id]
165
166
  failed_to_open(cursor.key)
166
167
  end
@@ -208,6 +209,8 @@ module Groonga
208
209
  end
209
210
 
210
211
  def check_object_recursive(target)
212
+ return if @checked.key?(target.id)
213
+
211
214
  check_object(target)
212
215
  case target
213
216
  when Table
@@ -285,6 +288,17 @@ module Groonga
285
288
  TableCursor.open(@database, :flags => flags, &block)
286
289
  end
287
290
 
291
+ def builtin_object_name?(name)
292
+ case name
293
+ when "inspect"
294
+ # Just for compatibility. It's needed for users who used
295
+ # Groonga master at between 2016-02-03 and 2016-02-26.
296
+ true
297
+ else
298
+ false
299
+ end
300
+ end
301
+
288
302
  def failed(message)
289
303
  @on_failure.call(message)
290
304
  end
@@ -182,6 +182,10 @@ module Groonga
182
182
  register(:command_error, -74, CommandError)
183
183
  PLUGIN_ERROR =
184
184
  register(:plugin_error, -75, PluginError)
185
+ SCORER_ERROR =
186
+ register(:scorer_error, -76, ScorerError)
187
+ CANCEL =
188
+ register(:cancel, -77, Cancel)
185
189
 
186
190
  GroongaError.rc = UNKNOWN_ERROR
187
191
  end
@@ -1,5 +1,10 @@
1
1
  module Groonga
2
2
  class EvalContext
3
+ def eval(script)
4
+ proc = compile(script)
5
+ instance_eval(&proc)
6
+ end
7
+
3
8
  def method_missing(id, *args, &block)
4
9
  return super unless args.empty?
5
10
  return super if block_given?
@@ -1,6 +1,8 @@
1
1
  require "expression_rewriter"
2
2
  require "expression_rewriters"
3
3
 
4
+ require "expression_tree_builder"
5
+
4
6
  require "scan_info"
5
7
  require "scan_info_builder"
6
8
 
@@ -74,10 +74,7 @@ module Groonga
74
74
  Operator::GREATER_EQUAL
75
75
  size = estimate_range(data, index_column)
76
76
  when Operator::CALL
77
- procedure = data.args.first
78
- if procedure.is_a?(Procedure) and procedure.name == "between"
79
- size = estimate_between(data, index_column)
80
- end
77
+ size = estimate_call(data, index_column)
81
78
  end
82
79
  size || @table_size
83
80
  end
@@ -137,28 +134,17 @@ module Groonga
137
134
  end
138
135
  end
139
136
 
140
- def estimate_between(data, index_column)
141
- lexicon = index_column.lexicon
142
- _, _, min, min_border, max, max_border = data.args
143
- options = {
144
- :min => min,
145
- :max => max,
146
- :flags => 0,
147
- }
148
- if min_border == "include"
149
- options[:flags] |= TableCursorFlags::LT
150
- else
151
- options[:flags] |= TableCursorFlags::LE
152
- end
153
- if max_border == "include"
154
- options[:flags] |= TableCursorFlags::GT
155
- else
156
- options[:flags] |= TableCursorFlags::GE
157
- end
158
-
159
- TableCursor.open(lexicon, options) do |cursor|
160
- index_column.estimate_size(:lexicon_cursor => cursor)
137
+ def estimate_call(data, index_column)
138
+ procedure = data.args[0]
139
+ arguments = data.args[1..-1].collect do |arg|
140
+ if arg.is_a?(::Groonga::Object)
141
+ ExpressionTree::Variable.new(arg)
142
+ else
143
+ ExpressionTree::Constant.new(arg)
144
+ end
161
145
  end
146
+ node = ExpressionTree::FunctionCall.new(procedure, arguments)
147
+ node.estimate_size(@table)
162
148
  end
163
149
  end
164
150
  end
@@ -0,0 +1,67 @@
1
+ module Groonga
2
+ module ExpressionTree
3
+ class BinaryOperation
4
+ attr_reader :operator
5
+ attr_reader :left
6
+ attr_reader :right
7
+ def initialize(operator, left, right)
8
+ @operator = operator
9
+ @left = left
10
+ @right = right
11
+ end
12
+
13
+ def build(expression)
14
+ @left.build(expression)
15
+ @right.build(expression)
16
+ expression.append_operator(@operator, 2)
17
+ end
18
+
19
+ RANGE_OPERATORS = [
20
+ Operator::LESS,
21
+ Operator::GREATER,
22
+ Operator::LESS_EQUAL,
23
+ Operator::GREATER_EQUAL,
24
+ ]
25
+ def estimate_size(table)
26
+ case @operator
27
+ when *RANGE_OPERATORS
28
+ estimate_size_range(table)
29
+ else
30
+ table.size
31
+ end
32
+ end
33
+
34
+ private
35
+ def estimate_size_range(table)
36
+ return table.size unless @left.is_a?(Variable)
37
+ return table.size unless @right.is_a?(Constant)
38
+
39
+ column = @left.column
40
+ value = @right.value
41
+ index_info = column.find_index(@operator)
42
+ return table.size if index_info.nil?
43
+
44
+ index_column = index_info.index
45
+ lexicon = index_column.lexicon
46
+ options = {}
47
+ case @operator
48
+ when Operator::LESS
49
+ options[:max] = value
50
+ options[:flags] = TableCursorFlags::LT
51
+ when Operator::LESS_EQUAL
52
+ options[:max] = value
53
+ options[:flags] = TableCursorFlags::LE
54
+ when Operator::GREATER
55
+ options[:min] = value
56
+ options[:flags] = TableCursorFlags::GT
57
+ when Operator::GREATER_EQUAL
58
+ options[:min] = value
59
+ options[:flags] = TableCursorFlags::GE
60
+ end
61
+ TableCursor.open(lexicon, options) do |cursor|
62
+ index_column.estimate_size(:lexicon_cursor => cursor)
63
+ end
64
+ end
65
+ end
66
+ end
67
+ end
@@ -0,0 +1,22 @@
1
+ module Groonga
2
+ module ExpressionTree
3
+ class Constant
4
+ attr_reader :value
5
+ def initialize(value)
6
+ @value = value
7
+ end
8
+
9
+ def build(expression)
10
+ expression.append_constant(@value, Operator::PUSH, 1)
11
+ end
12
+
13
+ def estimate_size(table)
14
+ if Bulk.true?(@value)
15
+ table.size
16
+ else
17
+ 0
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,50 @@
1
+ module Groonga
2
+ module ExpressionTree
3
+ class FunctionCall
4
+ attr_reader :procedure
5
+ attr_reader :arguments
6
+ def initialize(procedure, arguments)
7
+ @procedure = procedure
8
+ @arguments = arguments
9
+ end
10
+
11
+ def build(expression)
12
+ expression.append_object(@procedure, Operator::PUSH, 1)
13
+ @arguments.each do |argument|
14
+ argument.build(expression)
15
+ end
16
+ expression.append_operator(Operator::CALL, @arguments.size)
17
+ end
18
+
19
+ def estimate_size(table)
20
+ return table.size unless @procedure.name == "between"
21
+
22
+ column, min, min_border, max, max_border = @arguments
23
+ index_info = column.column.find_index(Operator::CALL)
24
+ return table.size if index_info.nil?
25
+
26
+ index_column = index_info.index
27
+ lexicon = index_column.lexicon
28
+ options = {
29
+ :min => min.value,
30
+ :max => max.value,
31
+ :flags => 0,
32
+ }
33
+ if min_border.value == "include"
34
+ options[:flags] |= TableCursorFlags::LT
35
+ else
36
+ options[:flags] |= TableCursorFlags::LE
37
+ end
38
+ if max_border.value == "include"
39
+ options[:flags] |= TableCursorFlags::GT
40
+ else
41
+ options[:flags] |= TableCursorFlags::GE
42
+ end
43
+
44
+ TableCursor.open(lexicon, options) do |cursor|
45
+ index_column.estimate_size(:lexicon_cursor => cursor)
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,33 @@
1
+ module Groonga
2
+ module ExpressionTree
3
+ class LogicalOperation
4
+ attr_reader :operator
5
+ attr_reader :nodes
6
+ def initialize(operator, nodes)
7
+ @operator = operator
8
+ @nodes = nodes
9
+ end
10
+
11
+ def build(expression)
12
+ @nodes.each_with_index do |node, i|
13
+ node.build(expression)
14
+ expression.append_operator(@operator, 2) if i > 0
15
+ end
16
+ end
17
+
18
+ def estimate_size(table)
19
+ estimated_sizes = @nodes.collect do |node|
20
+ node.estimate_size(table)
21
+ end
22
+ case @operator
23
+ when Operator::AND
24
+ estimated_sizes.min
25
+ when Operator::OR
26
+ estimated_sizes.max
27
+ else
28
+ estimated_sizes.first
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,18 @@
1
+ module Groonga
2
+ module ExpressionTree
3
+ class Variable
4
+ attr_reader :column
5
+ def initialize(column)
6
+ @column = column
7
+ end
8
+
9
+ def build(expression)
10
+ expression.append_object(@column, Operator::GET_VALUE, 1)
11
+ end
12
+
13
+ def estimate_size(table)
14
+ table.size
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,5 @@
1
+ require "expression_tree/constant"
2
+ require "expression_tree/binary_operation"
3
+ require "expression_tree/function_call"
4
+ require "expression_tree/logical_operation"
5
+ require "expression_tree/variable"
@@ -0,0 +1,92 @@
1
+ require "expression_tree"
2
+
3
+ module Groonga
4
+ class ExpressionTreeBuilder
5
+ RELATION_OPERATORS = [
6
+ Operator::MATCH,
7
+ Operator::NEAR,
8
+ Operator::NEAR2,
9
+ Operator::SIMILAR,
10
+ Operator::PREFIX,
11
+ Operator::SUFFIX,
12
+ Operator::EQUAL,
13
+ Operator::NOT_EQUAL,
14
+ Operator::LESS,
15
+ Operator::GREATER,
16
+ Operator::LESS_EQUAL,
17
+ Operator::GREATER_EQUAL,
18
+ Operator::GEO_WITHINP5,
19
+ Operator::GEO_WITHINP6,
20
+ Operator::GEO_WITHINP8,
21
+ Operator::TERM_EXTRACT,
22
+ Operator::REGEXP,
23
+ Operator::FUZZY,
24
+ ]
25
+
26
+ ARITHMETIC_OPERATORS = [
27
+ Operator::BITWISE_OR,
28
+ Operator::BITWISE_XOR,
29
+ Operator::BITWISE_AND,
30
+ Operator::BITWISE_NOT,
31
+ Operator::SHIFTL,
32
+ Operator::SHIFTR,
33
+ Operator::SHIFTRR,
34
+ Operator::PLUS,
35
+ Operator::MINUS,
36
+ Operator::STAR,
37
+ Operator::MOD,
38
+ ]
39
+
40
+ LOGICAL_OPERATORS = [
41
+ Operator::AND,
42
+ Operator::OR,
43
+ Operator::AND_NOT,
44
+ Operator::ADJUST,
45
+ ]
46
+
47
+ def initialize(expression)
48
+ @expression = expression
49
+ end
50
+
51
+ def build
52
+ stack = []
53
+ codes = @expression.codes
54
+ codes.each do |code|
55
+ case code.op
56
+ when *LOGICAL_OPERATORS
57
+ right = stack.pop
58
+ left = stack.pop
59
+ nodes = []
60
+ add_logical_operation_node(code.op, nodes, left)
61
+ add_logical_operation_node(code.op, nodes, right)
62
+ node = ExpressionTree::LogicalOperation.new(code.op, nodes)
63
+ stack.push(node)
64
+ when *RELATION_OPERATORS, *ARITHMETIC_OPERATORS
65
+ right = stack.pop
66
+ left = stack.pop
67
+ node = ExpressionTree::BinaryOperation.new(code.op, left, right)
68
+ stack.push(node)
69
+ when Operator::GET_VALUE
70
+ node = ExpressionTree::Variable.new(code.value)
71
+ stack.push(node)
72
+ when Operator::PUSH
73
+ node = ExpressionTree::Constant.new(code.value.value)
74
+ stack.push(node)
75
+ else
76
+ raise "unknown operator: #{code.inspect}"
77
+ end
78
+ end
79
+ stack.pop
80
+ end
81
+
82
+ private
83
+ def add_logical_operation_node(operator, nodes, node)
84
+ if node.is_a?(ExpressionTree::LogicalOperation) and
85
+ node.operator == operator
86
+ nodes.concat(node.nodes)
87
+ else
88
+ nodes << node
89
+ end
90
+ end
91
+ end
92
+ end
@@ -76,6 +76,12 @@ module Groonga
76
76
  @data_list << data
77
77
  data = nil
78
78
  when *LOGICAL_OPERATORS
79
+ if status == Status::CONST
80
+ data.op = Operator::PUSH
81
+ data.end = data.start
82
+ @data_list << data
83
+ data = nil
84
+ end
79
85
  put_logical_op(code.op, i)
80
86
  # TODO: rescue and return nil
81
87
  status = Status::START
@@ -90,6 +96,14 @@ module Groonga
90
96
  end
91
97
  status = Status::CONST
92
98
  end
99
+ if code.modify > 0 and
100
+ LOGICAL_OPERATORS.include?(codes[i + code.modify].op)
101
+ data.op = Operator::PUSH
102
+ data.end = data.start
103
+ @data_list << data
104
+ data = nil
105
+ status = Status::START
106
+ end
93
107
  when Operator::GET_VALUE
94
108
  case status
95
109
  when Status::START
@@ -169,14 +183,29 @@ module Groonga
169
183
  status = Status::START
170
184
  return false if n_relation_expressions != (n_logical_expressions + 1)
171
185
  when *LOGICAL_OPERATORS
172
- return false if status != Status::START
173
- n_logical_expressions += 1
174
- return false if n_logical_expressions >= n_relation_expressions
186
+ case status
187
+ when Status::START
188
+ n_logical_expressions += 1
189
+ return false if n_logical_expressions >= n_relation_expressions
190
+ when Status::CONST
191
+ n_logical_expressions += 1
192
+ n_relation_expressions += 1
193
+ return false if n_logical_expressions >= n_relation_expressions
194
+ status = Status::START
195
+ else
196
+ return false
197
+ end
175
198
  when Operator::PUSH
176
- if code.value == variable
177
- status = Status::VAR
199
+ if code.modify > 0 and
200
+ LOGICAL_OPERATORS.include?(codes[i + code.modify].op)
201
+ n_relation_expressions += 1
202
+ status = Status::START
178
203
  else
179
- status = Status::CONST
204
+ if code.value == variable
205
+ status = Status::VAR
206
+ else
207
+ status = Status::CONST
208
+ end
180
209
  end
181
210
  when Operator::GET_VALUE
182
211
  case status
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -11,10 +11,10 @@ pluginsdir=${libdir}/groonga/plugins
11
11
  groonga=${bindir}/groonga.exe
12
12
  groonga_httpd=${sbindir}/groonga-httpd.exe
13
13
  groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
14
- groonga_version=6.0.0
14
+ groonga_version=6.0.2
15
15
 
16
16
  Name: Groonga
17
17
  Description: An Embeddable Fulltext Search Engine
18
- Version: 6.0.0
18
+ Version: 6.0.2
19
19
  Libs: -L${libdir} -lgroonga
20
20
  Cflags: -I${includedir}/groonga
Binary file
@@ -1,4 +1,4 @@
1
1
  # Sphinx build info version 1
2
2
  # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3
- config: 854339bcc6ea7ba27acbbd757eeb3f0a
3
+ config: bfc9d3724004ca2676fddac668bf3138
4
4
  tags: 645f666f9bcd5a90fca523b33c5a78b7