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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (745) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -0
  3. data/doc/text/news.md +28 -0
  4. data/ext/groonga/rb-grn-column.c +53 -32
  5. data/ext/groonga/rb-grn-context.c +1 -1
  6. data/ext/groonga/rb-grn-data-column.c +103 -0
  7. data/ext/groonga/rb-grn-default-cache.c +104 -0
  8. data/ext/groonga/rb-grn-index-column.c +93 -15
  9. data/ext/groonga/rb-grn-inverted-index-cursor.c +269 -0
  10. data/ext/groonga/rb-grn-object.c +1 -1
  11. data/ext/groonga/rb-grn-plugin.c +1 -1
  12. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  13. data/ext/groonga/rb-grn-table-key-support.c +6 -0
  14. data/ext/groonga/rb-grn-table.c +0 -3
  15. data/ext/groonga/rb-grn-utils.c +35 -7
  16. data/ext/groonga/rb-grn.h +13 -4
  17. data/ext/groonga/rb-groonga.c +2 -0
  18. data/lib/2.1/groonga.so +0 -0
  19. data/lib/2.2/groonga.so +0 -0
  20. data/lib/2.3/groonga.so +0 -0
  21. data/rroonga-build.rb +7 -7
  22. data/rroonga.gemspec +2 -1
  23. data/test/test-data-column.rb +71 -2
  24. data/test/test-default-cache.rb +43 -0
  25. data/test/test-double-array-trie.rb +7 -0
  26. data/test/test-fix-size-column.rb +12 -0
  27. data/test/test-hash.rb +7 -0
  28. data/test/test-index-column.rb +12 -0
  29. data/test/test-index-cursor.rb +93 -28
  30. data/test/test-patricia-trie.rb +7 -0
  31. data/test/test-variable-size-column.rb +19 -0
  32. data/vendor/local/bin/grndb.exe +0 -0
  33. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  34. data/vendor/local/bin/groonga-suggest-create-dataset.exe +0 -0
  35. data/vendor/local/bin/groonga.exe +0 -0
  36. data/vendor/local/bin/libgroonga-0.dll +0 -0
  37. data/vendor/local/bin/libmecab-2.dll +0 -0
  38. data/vendor/local/bin/libmsgpackc.dll +0 -0
  39. data/vendor/local/bin/libonigmo-6.dll +0 -0
  40. data/vendor/local/bin/libpcre-1.dll +0 -0
  41. data/vendor/local/bin/libpcrecpp-0.dll +0 -0
  42. data/vendor/local/bin/libpcreposix-0.dll +0 -0
  43. data/vendor/local/bin/lz4.exe +0 -0
  44. data/vendor/local/bin/lz4c.exe +0 -0
  45. data/vendor/local/bin/lz4cat +0 -0
  46. data/vendor/local/bin/mecab-config +2 -2
  47. data/vendor/local/bin/mecab.exe +0 -0
  48. data/vendor/local/bin/onigmo-config +2 -2
  49. data/vendor/local/bin/pcre-config +1 -1
  50. data/vendor/local/bin/pcregrep.exe +0 -0
  51. data/vendor/local/bin/pcretest.exe +0 -0
  52. data/vendor/local/bin/zlib1.dll +0 -0
  53. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +16 -3
  54. data/vendor/local/include/groonga/groonga.h +2 -1
  55. data/vendor/local/include/groonga/groonga/cache.h +49 -0
  56. data/vendor/local/include/groonga/groonga/column.h +1 -1
  57. data/vendor/local/include/groonga/groonga/groonga.h +26 -16
  58. data/vendor/local/include/groonga/groonga/ii.h +7 -1
  59. data/vendor/local/include/groonga/groonga/obj.h +8 -1
  60. data/vendor/local/include/groonga/groonga/plugin.h +6 -1
  61. data/vendor/local/include/groonga/groonga/table.h +5 -0
  62. data/vendor/local/include/groonga/groonga/util.h +4 -1
  63. data/vendor/local/include/groonga/groonga/window_function.h +5 -1
  64. data/vendor/local/include/onigmo.h +6 -5
  65. data/vendor/local/include/zconf.h +32 -9
  66. data/vendor/local/include/zlib.h +298 -154
  67. data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
  68. data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
  69. data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
  70. data/vendor/local/lib/groonga/plugins/functions/number.la +2 -2
  71. data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
  73. data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -0
  74. data/vendor/local/lib/groonga/plugins/functions/string.la +2 -2
  75. data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
  76. data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
  77. data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
  78. data/vendor/local/lib/groonga/plugins/functions/time.la +2 -2
  79. data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
  80. data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
  81. data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
  82. data/vendor/local/lib/groonga/plugins/functions/vector.la +2 -2
  83. data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
  84. data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
  85. data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
  86. data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
  87. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  88. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  89. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  90. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
  91. data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +2 -2
  92. data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +2 -2
  93. data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +2 -2
  94. data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +392 -53
  95. data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +1 -2
  96. data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +37 -14
  97. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  98. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  99. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  100. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  101. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
  102. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
  103. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
  104. data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
  105. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  106. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  107. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  108. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  109. data/vendor/local/lib/groonga/scripts/ruby/command.rb +0 -1
  110. data/vendor/local/lib/groonga/scripts/ruby/command_input.rb +15 -0
  111. data/vendor/local/lib/groonga/scripts/ruby/expression.rb +1 -0
  112. data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +2 -136
  113. data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +12 -1
  114. data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +1 -1
  115. data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
  116. data/vendor/local/lib/groonga/scripts/ruby/logger.rb +7 -8
  117. data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +234 -80
  118. data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +185 -0
  119. data/vendor/local/lib/groonga/scripts/ruby/table.rb +27 -2
  120. data/vendor/local/lib/libgroonga.a +0 -0
  121. data/vendor/local/lib/libgroonga.dll.a +0 -0
  122. data/vendor/local/lib/libgroonga.la +2 -2
  123. data/vendor/local/lib/liblz4.a +0 -0
  124. data/vendor/local/lib/liblz4.dll +0 -0
  125. data/vendor/local/lib/liblz4.dll.1 +0 -0
  126. data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
  127. data/vendor/local/lib/libmecab.a +0 -0
  128. data/vendor/local/lib/libmecab.dll.a +0 -0
  129. data/vendor/local/lib/libmecab.la +2 -2
  130. data/vendor/local/lib/libmsgpackc.a +0 -0
  131. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  132. data/vendor/local/lib/libonigmo.a +0 -0
  133. data/vendor/local/lib/libonigmo.dll.a +0 -0
  134. data/vendor/local/lib/libonigmo.la +3 -3
  135. data/vendor/local/lib/libpcre.a +0 -0
  136. data/vendor/local/lib/libpcre.dll.a +0 -0
  137. data/vendor/local/lib/libpcre.la +2 -2
  138. data/vendor/local/lib/libpcrecpp.a +0 -0
  139. data/vendor/local/lib/libpcrecpp.dll.a +0 -0
  140. data/vendor/local/lib/libpcrecpp.la +2 -2
  141. data/vendor/local/lib/libpcreposix.a +0 -0
  142. data/vendor/local/lib/libpcreposix.dll.a +0 -0
  143. data/vendor/local/lib/libpcreposix.la +2 -2
  144. data/vendor/local/lib/libz.a +0 -0
  145. data/vendor/local/lib/libz.dll.a +0 -0
  146. data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
  147. data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
  148. data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
  149. data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
  150. data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
  151. data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
  152. data/vendor/local/lib/pkgconfig/onigmo.pc +7 -7
  153. data/vendor/local/lib/pkgconfig/zlib.pc +4 -4
  154. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  155. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  156. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  157. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  158. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  159. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  160. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +11 -2
  161. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +13 -47
  162. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -5
  163. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
  164. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  165. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  166. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  167. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
  168. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  169. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +181 -891
  170. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +2 -1
  171. data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +11 -9
  172. data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +4 -4
  173. data/vendor/local/share/doc/groonga/en/html/_sources/news/5.x.txt +2 -2
  174. data/vendor/local/share/doc/groonga/en/html/_sources/news/6.x.txt +1086 -0
  175. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  176. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +1 -1
  177. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +45 -19
  178. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +632 -91
  179. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +514 -0
  180. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +902 -55
  181. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +5 -3
  182. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
  183. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +71 -23
  184. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
  185. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
  186. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +51 -25
  187. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_records.txt +195 -0
  188. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +100 -15
  189. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/string_length.txt +33 -0
  190. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_new.txt +38 -0
  191. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
  192. data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
  193. data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +6 -6
  194. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_function.txt +22 -0
  195. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/record_number.txt +28 -0
  196. data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/window_record_number.txt +25 -0
  197. data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions/record_number.txt → en/html/_sources/reference/window_functions/window_sum.txt} +5 -3
  198. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +3 -3
  199. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +102 -93
  212. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/genindex.html +326 -251
  222. data/vendor/local/share/doc/groonga/en/html/index.html +111 -104
  223. data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
  224. data/vendor/local/share/doc/groonga/en/html/install/centos.html +24 -65
  225. data/vendor/local/share/doc/groonga/en/html/install/debian.html +12 -11
  226. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
  227. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  228. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  229. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  230. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -9
  231. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  232. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/news.html +213 -898
  234. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +7 -6
  238. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +16 -14
  240. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +9 -9
  241. data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/news/5.x.html +7 -7
  243. data/vendor/local/share/doc/groonga/en/html/news/6.x.html +1148 -0
  244. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  246. data/vendor/local/share/doc/groonga/en/html/reference.html +90 -82
  247. data/vendor/local/share/doc/groonga/en/html/reference/alias.html +23 -23
  248. data/vendor/local/share/doc/groonga/en/html/reference/api.html +39 -39
  249. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +22 -22
  250. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +24 -24
  251. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +24 -24
  252. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +24 -24
  253. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +22 -22
  254. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +24 -24
  255. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +24 -24
  256. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +24 -24
  257. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +22 -22
  258. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +24 -24
  259. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +24 -24
  260. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +24 -24
  261. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +24 -24
  262. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +24 -24
  263. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +24 -24
  264. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +24 -24
  265. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +24 -24
  266. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -24
  267. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +24 -24
  268. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +24 -24
  269. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +24 -24
  270. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +24 -24
  271. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +20 -20
  272. data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +24 -24
  273. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +22 -22
  274. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  276. data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  278. data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
  279. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  280. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  281. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  282. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  283. data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
  284. data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
  285. data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +6 -6
  286. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  287. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  288. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  289. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  290. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
  291. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  292. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  293. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  294. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  295. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
  296. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
  297. data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
  298. data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
  299. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  300. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  301. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  302. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  303. data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
  304. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  305. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
  306. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
  307. data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
  308. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +61 -17
  309. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  310. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  311. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
  312. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
  313. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
  314. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +1727 -408
  315. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
  316. data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +5 -5
  317. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  318. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
  319. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
  320. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +526 -33
  321. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +5 -5
  322. data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
  323. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
  324. data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
  325. data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +5 -5
  326. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  327. data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
  328. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  329. data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
  330. data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
  331. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
  332. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
  333. data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
  334. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1685 -492
  335. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  336. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
  337. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  338. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +5 -5
  339. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  340. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  341. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  342. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +5 -5
  343. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +5 -5
  344. data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +5 -5
  345. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
  346. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
  347. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
  348. data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +19 -19
  349. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  350. data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
  351. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +14 -14
  352. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +32 -32
  353. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +75 -34
  354. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  355. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  356. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +24 -24
  357. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +23 -23
  358. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +107 -82
  359. data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -23
  360. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
  361. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  362. data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +5 -5
  363. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  364. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  365. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  366. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
  367. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
  368. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +10 -10
  369. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +355 -0
  370. data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +30 -30
  371. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +25 -25
  372. data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +23 -23
  373. data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +31 -31
  374. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +155 -55
  375. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +28 -28
  376. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +15 -15
  377. data/vendor/local/share/doc/groonga/en/html/reference/functions/{record_number.html → string_length.html} +36 -31
  378. data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +24 -24
  379. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
  380. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_day.html +23 -23
  381. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +23 -23
  382. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +23 -23
  383. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +23 -23
  384. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +23 -23
  385. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +23 -23
  386. data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +24 -24
  387. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +170 -0
  388. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +28 -28
  389. data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +24 -24
  390. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  391. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +36 -26
  392. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +27 -15
  393. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -21
  394. data/vendor/local/share/doc/groonga/en/html/reference/log.html +29 -29
  395. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  396. data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -17
  397. data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +20 -20
  398. data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +26 -26
  399. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  400. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  401. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  402. data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
  403. data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
  404. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
  405. data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
  406. data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +23 -23
  407. data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +33 -33
  408. data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +32 -32
  409. data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +28 -28
  410. data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +26 -26
  411. data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +28 -28
  412. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  413. data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
  414. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  415. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +35 -35
  416. data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
  417. data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +147 -0
  418. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +164 -0
  419. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +163 -0
  420. data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +163 -0
  421. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  422. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  423. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  424. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  425. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  426. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  427. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  428. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  429. data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
  430. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  431. data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
  432. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  433. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  434. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  435. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  436. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  437. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  438. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  439. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  440. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  441. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  442. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  443. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  444. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  445. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  446. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  447. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +8 -8
  448. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  450. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +11 -2
  451. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +13 -47
  452. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -5
  453. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
  454. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  455. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  456. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  457. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
  458. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  459. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +181 -891
  460. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +2 -1
  461. data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +11 -9
  462. data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +4 -4
  463. data/vendor/local/share/doc/groonga/ja/html/_sources/news/5.x.txt +2 -2
  464. data/vendor/local/share/doc/groonga/ja/html/_sources/news/6.x.txt +1086 -0
  465. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  466. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +1 -1
  467. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +45 -19
  468. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +632 -91
  469. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +514 -0
  470. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +902 -55
  471. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +5 -3
  472. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
  473. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +71 -23
  474. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
  475. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
  476. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +51 -25
  477. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_records.txt +195 -0
  478. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +100 -15
  479. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/string_length.txt +33 -0
  480. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_new.txt +38 -0
  481. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
  482. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
  483. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +6 -6
  484. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_function.txt +22 -0
  485. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/record_number.txt +28 -0
  486. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/window_record_number.txt +25 -0
  487. data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions/record_number.txt → ja/html/_sources/reference/window_functions/window_sum.txt} +5 -3
  488. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +3 -3
  489. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  490. data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
  491. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  492. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  493. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  494. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
  495. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
  496. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
  497. data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
  498. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  499. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  500. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  501. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +102 -93
  502. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  503. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  504. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  505. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  506. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  507. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  508. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  509. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  510. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  511. data/vendor/local/share/doc/groonga/ja/html/genindex.html +186 -118
  512. data/vendor/local/share/doc/groonga/ja/html/index.html +111 -104
  513. data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
  514. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +24 -61
  515. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +12 -11
  516. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
  517. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  518. data/vendor/local/share/doc/groonga/ja/html/install/others.html +9 -9
  519. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  520. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -9
  521. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  522. data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
  523. data/vendor/local/share/doc/groonga/ja/html/news.html +132 -761
  524. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  525. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  526. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  527. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +6 -6
  528. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  529. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +10 -10
  530. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +9 -9
  531. data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
  532. data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +6 -6
  533. data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +1064 -0
  534. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  535. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  536. data/vendor/local/share/doc/groonga/ja/html/reference.html +90 -82
  537. data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +23 -23
  538. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +39 -39
  539. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
  540. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
  541. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
  542. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
  543. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +22 -22
  544. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
  545. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
  546. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
  547. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
  548. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
  549. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
  550. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
  551. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
  552. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
  553. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
  554. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
  555. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
  556. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
  557. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
  558. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
  559. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +24 -24
  560. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
  561. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
  562. data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +24 -24
  563. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +22 -22
  564. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  565. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  566. data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
  567. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  568. data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
  569. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  570. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  571. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  572. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  573. data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
  574. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
  575. data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +6 -6
  576. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  577. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  578. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  579. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  580. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
  581. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  582. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  583. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  584. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  585. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
  586. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
  587. data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
  588. data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
  589. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  590. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  591. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  592. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  593. data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
  594. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  595. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
  596. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
  597. data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
  598. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +67 -17
  599. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  600. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  601. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
  602. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
  603. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
  604. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +1629 -383
  605. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
  606. data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +6 -6
  607. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  608. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
  609. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
  610. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +508 -33
  611. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +5 -5
  612. data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
  613. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
  614. data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
  615. data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +5 -5
  616. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  617. data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
  618. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  619. data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
  620. data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
  621. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  622. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
  623. data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
  624. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1606 -478
  625. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  626. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
  627. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  628. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +5 -5
  629. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  630. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  631. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  632. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +5 -5
  633. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +5 -5
  634. data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +5 -5
  635. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  636. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
  637. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
  638. data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +19 -19
  639. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  640. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
  641. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +14 -14
  642. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +32 -32
  643. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +76 -48
  644. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  645. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  646. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +24 -24
  647. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -23
  648. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +103 -82
  649. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -23
  650. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
  651. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  652. data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +5 -5
  653. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  654. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  655. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  656. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
  657. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
  658. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +10 -10
  659. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +370 -0
  660. data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +30 -30
  661. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +25 -25
  662. data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +23 -23
  663. data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +31 -31
  664. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +150 -52
  665. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +28 -28
  666. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +15 -15
  667. data/vendor/local/share/doc/groonga/ja/html/reference/functions/{record_number.html → string_length.html} +36 -31
  668. data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +24 -24
  669. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
  670. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_day.html +23 -23
  671. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +23 -23
  672. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +23 -23
  673. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +23 -23
  674. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +23 -23
  675. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +23 -23
  676. data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +24 -24
  677. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +171 -0
  678. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +28 -28
  679. data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +24 -24
  680. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  681. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +36 -26
  682. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +19 -7
  683. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
  684. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +25 -25
  685. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  686. data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -17
  687. data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +20 -20
  688. data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +26 -26
  689. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  690. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  691. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  692. data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
  693. data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
  694. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +6 -6
  695. data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
  696. data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +23 -23
  697. data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +33 -33
  698. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +32 -32
  699. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +28 -28
  700. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +26 -26
  701. data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +28 -28
  702. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  703. data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
  704. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  705. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +35 -35
  706. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  707. data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +146 -0
  708. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +165 -0
  709. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +164 -0
  710. data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +164 -0
  711. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  712. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  713. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  714. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  715. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  716. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  717. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  718. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  719. data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
  720. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  721. data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
  722. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  723. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  724. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  725. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  726. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  727. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  728. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  729. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  730. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  731. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  732. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  733. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  734. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  735. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  736. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  737. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -8
  738. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  739. data/vendor/local/share/groonga/mruby/LEGAL +4 -0
  740. data/vendor/local/share/license/mruby/AUTHORS +1 -0
  741. data/vendor/local/share/license/mruby/MITL +1 -1
  742. data/vendor/local/share/license/zlib/README +3 -3
  743. metadata +100 -67
  744. data/lib/2.4/groonga.so +0 -0
  745. data/vendor/local/sbin/groonga-httpd-restart +0 -105
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2014 Kouhei Sutou <kou@clear-code.com>
1
+ # Copyright (C) 2012-2017 Kouhei Sutou <kou@clear-code.com>
2
2
  #
3
3
  # This library is free software; you can redistribute it and/or
4
4
  # modify it under the terms of the GNU Lesser General Public
@@ -22,20 +22,62 @@ class IndexCursorTest < Test::Unit::TestCase
22
22
  setup_records
23
23
  end
24
24
 
25
- def test_open_cursor
26
- postings = []
27
- @terms.open_cursor do |table_cursor|
28
- index_cursor = nil
29
- @content_index.open_cursor(table_cursor) do |cursor|
30
- cursor.each do |posting|
31
- postings << posting.to_hash
25
+ sub_test_case("#open_cursor") do
26
+ def test_table_cursor
27
+ postings = []
28
+ @terms.open_cursor do |table_cursor|
29
+ index_cursor = nil
30
+ @content_index.open_cursor(table_cursor) do |cursor|
31
+ cursor.each do |posting|
32
+ postings << posting.to_hash
33
+ end
34
+ index_cursor = cursor
35
+ end
36
+ assert_predicate(index_cursor, :closed?)
37
+ end
38
+
39
+ assert_equal(expected_postings(:with_position => true),
40
+ postings)
41
+ end
42
+
43
+ def test_term_id_without_position
44
+ postings = []
45
+ @terms.open_cursor do |table_cursor|
46
+ table_cursor.each do |term|
47
+ index_cursor = nil
48
+ @content_index.open_cursor(term.id,
49
+ :with_position => false) do |cursor|
50
+ cursor.each do |posting|
51
+ postings << posting.to_hash
52
+ end
53
+ index_cursor = cursor
54
+ end
55
+ assert_predicate(index_cursor, :closed?)
32
56
  end
33
- index_cursor = cursor
34
57
  end
35
- assert_predicate(index_cursor, :closed?)
58
+
59
+ assert_equal(expected_postings(:with_position => false),
60
+ postings)
36
61
  end
37
62
 
38
- assert_equal(expected_postings, postings)
63
+ def test_term_id_with_position
64
+ postings = []
65
+ @terms.open_cursor do |table_cursor|
66
+ table_cursor.each do |term|
67
+ index_cursor = nil
68
+ @content_index.open_cursor(term.id) do |cursor|
69
+ cursor.each do |posting|
70
+ postings << posting.to_hash
71
+ end
72
+ index_cursor = cursor
73
+ end
74
+ assert_predicate(index_cursor, :closed?)
75
+ end
76
+ end
77
+
78
+ assert_equal(expected_postings(:with_position => true),
79
+ postings)
80
+ end
39
81
  end
40
82
 
41
83
  def test_enumerable
@@ -45,7 +87,8 @@ class IndexCursorTest < Test::Unit::TestCase
45
87
  postings = cursor.collect do |posting|
46
88
  posting.to_hash
47
89
  end
48
- assert_equal(expected_postings, postings)
90
+ assert_equal(expected_postings(:with_position => true),
91
+ postings)
49
92
  opened = true
50
93
  end
51
94
  end
@@ -58,7 +101,8 @@ class IndexCursorTest < Test::Unit::TestCase
58
101
  @terms.open_cursor do |table_cursor|
59
102
  @content_index.open_cursor(table_cursor) do |cursor|
60
103
  postings = cursor.each.collect(&:to_hash)
61
- assert_equal(expected_postings, postings)
104
+ assert_equal(expected_postings(:with_position => true),
105
+ postings)
62
106
  opened = true
63
107
  end
64
108
  end
@@ -78,7 +122,8 @@ class IndexCursorTest < Test::Unit::TestCase
78
122
  end
79
123
  assert_equal([posting_object_ids.first] * posting_object_ids.size,
80
124
  posting_object_ids)
81
- assert_equal(expected_postings, postings)
125
+ assert_equal(expected_postings(:with_position => true),
126
+ postings)
82
127
  opened = true
83
128
  end
84
129
  end
@@ -149,20 +194,40 @@ class IndexCursorTest < Test::Unit::TestCase
149
194
  @articles.add("3", :content => "hello")
150
195
  end
151
196
 
152
- def expected_postings
153
- parameters = [:record_id, :section_id, :term_id, :position,
154
- :term_frequency, :weight, :n_rest_postings]
155
-
156
- expected = [
157
- [1, 1, 1, 0, 1, 0, 0],
158
- [2, 1, 1, 1, 1, 0, 0],
159
- [2, 1, 2, 0, 1, 0, 0],
160
- [3, 1, 2, 2, 1, 0, 0],
161
- [3, 1, 3, 0, 1, 0, 0],
162
- [3, 1, 4, 1, 1, 0, 0],
163
- [3, 1, 5, 3, 1, 0, 0],
164
- [3, 1, 6, 4, 1, 0, 0]
165
- ]
197
+ def expected_postings(options={})
198
+ parameters = [
199
+ :record_id,
200
+ :section_id,
201
+ :term_id,
202
+ :position,
203
+ :term_frequency,
204
+ :weight,
205
+ :n_rest_postings,
206
+ ]
207
+
208
+ if options[:with_position]
209
+ expected = [
210
+ [1, 1, 1, 0, 1, 0, 0],
211
+ [2, 1, 1, 1, 1, 0, 0],
212
+ [2, 1, 2, 0, 1, 0, 0],
213
+ [3, 1, 2, 2, 1, 0, 0],
214
+ [3, 1, 3, 0, 1, 0, 0],
215
+ [3, 1, 4, 1, 1, 0, 0],
216
+ [3, 1, 5, 3, 1, 0, 0],
217
+ [3, 1, 6, 4, 1, 0, 0]
218
+ ]
219
+ else
220
+ expected = [
221
+ [1, 1, 1, 0, 1, 0, 1],
222
+ [2, 1, 1, 0, 1, 0, 1],
223
+ [2, 1, 2, 0, 1, 0, 1],
224
+ [3, 1, 2, 0, 1, 0, 1],
225
+ [3, 1, 3, 0, 1, 0, 0],
226
+ [3, 1, 4, 1, 1, 0, 0],
227
+ [3, 1, 5, 3, 1, 0, 0],
228
+ [3, 1, 6, 4, 1, 0, 0]
229
+ ]
230
+ end
166
231
 
167
232
  create_hashes(parameters, expected)
168
233
  end
@@ -124,6 +124,13 @@ class PatriciaTrieTest < Test::Unit::TestCase
124
124
  end
125
125
  end
126
126
 
127
+ def test_key?
128
+ users = Groonga::PatriciaTrie.create(:name => "Users")
129
+ assert_false(users.key?("morita"))
130
+ users.add("morita")
131
+ assert_true(users.key?("morita"))
132
+ end
133
+
127
134
  def test_has_key?
128
135
  users = Groonga::PatriciaTrie.create(:name => "Users")
129
136
  assert_false(users.has_key?("morita"))
@@ -46,6 +46,13 @@ class VariableSizeColumnTest < Test::Unit::TestCase
46
46
  @users.define_column("nick_names", "ShortText",
47
47
  :type => :vector,
48
48
  :path => @users_nick_names_column_path.to_s)
49
+
50
+ @users_tags_column_path = @columns_dir + "tags"
51
+ @tags =
52
+ @users.define_column("tags", "ShortText",
53
+ :type => :vector,
54
+ :with_weight => true,
55
+ :path => @users_tags_column_path.to_s)
49
56
  end
50
57
 
51
58
  def setup_users
@@ -62,10 +69,22 @@ class VariableSizeColumnTest < Test::Unit::TestCase
62
69
  assert_predicate(@nick_names, :vector?)
63
70
  end
64
71
 
72
+ def test_weigth_vector?
73
+ assert do
74
+ @tags.weight_vector?
75
+ end
76
+ end
77
+
65
78
  def test_scalar?
66
79
  assert_not_predicate(@nick_names, :scalar?)
67
80
  end
68
81
 
82
+ def test_data?
83
+ assert do
84
+ @nick_names.data?
85
+ end
86
+ end
87
+
69
88
  def test_compressed?
70
89
  description = @users.define_column("description", "ShortText",
71
90
  :compress => :zlib)
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
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- prefix=/vagrant/dist-x86
3
+ prefix=/build/dist-x86
4
4
  exec_prefix=${prefix}
5
5
  exec_prefix_set=no
6
6
 
@@ -107,7 +107,7 @@ while test $# -gt 0; do
107
107
  ;;
108
108
 
109
109
  --libexecdir)
110
- echo /vagrant/dist-x86/libexec/mecab
110
+ echo /build/dist-x86/libexec/mecab
111
111
  ;;
112
112
 
113
113
  --sysconfdir)
Binary file
@@ -1,7 +1,7 @@
1
1
  #!/bin/sh
2
2
  # Copyright (C) 2006 K.Kosako (sndgk393 AT ybb DOT ne DOT jp)
3
3
 
4
- ONIGMO_VERSION=6.0.0
4
+ ONIGMO_VERSION=6.1.1
5
5
 
6
6
  show_usage()
7
7
  {
@@ -27,7 +27,7 @@ if test $# -eq 0; then
27
27
  show_usage
28
28
  fi
29
29
 
30
- prefix=/vagrant/dist-x86
30
+ prefix=/build/dist-x86
31
31
  exec_prefix=${prefix}
32
32
  is_set_exec_prefix=no
33
33
 
@@ -1,6 +1,6 @@
1
1
  #!/bin/sh
2
2
 
3
- prefix=/vagrant/dist-x86
3
+ prefix=/build/dist-x86
4
4
  exec_prefix=${prefix}
5
5
  exec_prefix_set=no
6
6
 
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  worker_processes 1;
2
- pid /vagrant/dist-x86/var/run/groonga-httpd.pid;
2
+ pid /build/dist-x86/var/run/groonga-httpd.pid;
3
3
 
4
4
  # Match this to the file owner of Groonga database files if groonga-httpd is
5
5
  # run as root.
@@ -23,7 +23,7 @@ http {
23
23
  keepalive_timeout 65;
24
24
 
25
25
  # The default Groonga database path.
26
- groonga_database /vagrant/dist-x86/var/lib/groonga/db/db;
26
+ groonga_database /build/dist-x86/var/lib/groonga/db/db;
27
27
 
28
28
  # Create a Groonga database automatically if the Groonga database doesn't
29
29
  # exist.
@@ -38,6 +38,19 @@ http {
38
38
  # for each worker. It can't be set for each Groonga database.
39
39
  # groonga_cache_limit 100;
40
40
 
41
+ # The base path where Groonga cache data are stored. If you specify
42
+ # base path, there are the following merits:
43
+ #
44
+ # * All workers share cache data.
45
+ # It means that cache hit rate will be increased.
46
+ #
47
+ # * Cache data aren't cleared after groonga-httpd restart.
48
+ # It means that you don't need to warm up cache after
49
+ # groonga-httpd restart.
50
+ #
51
+ # You must specify base path on memory file system for performance.
52
+ # groonga_cache_base_path /dev/shm/groonga-httpd-cache;
53
+
41
54
  server {
42
55
  listen 10041;
43
56
  server_name localhost;
@@ -56,7 +69,7 @@ http {
56
69
  }
57
70
 
58
71
  location / {
59
- root /vagrant/dist-x86/share/groonga/html/admin;
72
+ root /build/dist-x86/share/groonga/html/admin;
60
73
  index index.html;
61
74
  }
62
75
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright(C) 2014-2016 Brazil
2
+ Copyright(C) 2014-2017 Brazil
3
3
 
4
4
  This library is free software; you can redistribute it and/or
5
5
  modify it under the terms of the GNU Lesser General Public
@@ -23,6 +23,7 @@
23
23
 
24
24
  #include "groonga/accessor.h"
25
25
  #include "groonga/array.h"
26
+ #include "groonga/cache.h"
26
27
  #include "groonga/column.h"
27
28
  #include "groonga/config.h"
28
29
  #include "groonga/dat.h"
@@ -0,0 +1,49 @@
1
+ /*
2
+ Copyright(C) 2013-2017 Brazil
3
+
4
+ This library is free software; you can redistribute it and/or
5
+ modify it under the terms of the GNU Lesser General Public
6
+ License as published by the Free Software Foundation; either
7
+ version 2.1 of the License, or (at your option) any later version.
8
+
9
+ This library is distributed in the hope that it will be useful,
10
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ Lesser General Public License for more details.
13
+
14
+ You should have received a copy of the GNU Lesser General Public
15
+ License along with this library; if not, write to the Free Software
16
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
+ */
18
+
19
+ #pragma once
20
+
21
+ #ifdef __cplusplus
22
+ extern "C" {
23
+ #endif
24
+
25
+ #define GRN_CACHE_DEFAULT_MAX_N_ENTRIES 100
26
+ typedef struct _grn_cache grn_cache;
27
+
28
+ GRN_API void grn_set_default_cache_base_path(const char *base_path);
29
+ GRN_API const char *grn_get_default_cache_base_path(void);
30
+
31
+ GRN_API grn_cache *grn_cache_open(grn_ctx *ctx);
32
+ GRN_API grn_cache *grn_persistent_cache_open(grn_ctx *ctx,
33
+ const char *base_path);
34
+ GRN_API grn_rc grn_cache_close(grn_ctx *ctx, grn_cache *cache);
35
+
36
+ GRN_API grn_rc grn_cache_current_set(grn_ctx *ctx, grn_cache *cache);
37
+ GRN_API grn_cache *grn_cache_current_get(grn_ctx *ctx);
38
+
39
+ GRN_API grn_rc grn_cache_default_reopen(void);
40
+
41
+ GRN_API grn_rc grn_cache_set_max_n_entries(grn_ctx *ctx,
42
+ grn_cache *cache,
43
+ unsigned int n);
44
+ GRN_API unsigned int grn_cache_get_max_n_entries(grn_ctx *ctx,
45
+ grn_cache *cache);
46
+
47
+ #ifdef __cplusplus
48
+ }
49
+ #endif
@@ -1,5 +1,5 @@
1
1
  /*
2
- Copyright(C) 2009-2016 Brazil
2
+ Copyright(C) 2009-2017 Brazil
3
3
 
4
4
  This library is free software; you can redistribute it and/or
5
5
  modify it under the terms of the GNU Lesser General Public
@@ -275,22 +275,6 @@ GRN_API grn_rc grn_set_default_match_escalation_threshold(long long int threshol
275
275
  GRN_API int grn_get_lock_timeout(void);
276
276
  GRN_API grn_rc grn_set_lock_timeout(int timeout);
277
277
 
278
- /* cache */
279
- #define GRN_CACHE_DEFAULT_MAX_N_ENTRIES 100
280
- typedef struct _grn_cache grn_cache;
281
-
282
- GRN_API grn_cache *grn_cache_open(grn_ctx *ctx);
283
- GRN_API grn_rc grn_cache_close(grn_ctx *ctx, grn_cache *cache);
284
-
285
- GRN_API grn_rc grn_cache_current_set(grn_ctx *ctx, grn_cache *cache);
286
- GRN_API grn_cache *grn_cache_current_get(grn_ctx *ctx);
287
-
288
- GRN_API grn_rc grn_cache_set_max_n_entries(grn_ctx *ctx,
289
- grn_cache *cache,
290
- unsigned int n);
291
- GRN_API unsigned int grn_cache_get_max_n_entries(grn_ctx *ctx,
292
- grn_cache *cache);
293
-
294
278
  /* grn_encoding */
295
279
 
296
280
  GRN_API const char *grn_encoding_to_string(grn_encoding encoding);
@@ -1302,6 +1286,10 @@ GRN_API void grn_ctx_recv_handler_set(grn_ctx *,
1302
1286
  #define GRN_TEXT_VALUE(obj) GRN_BULK_HEAD(obj)
1303
1287
  #define GRN_TEXT_LEN(obj) GRN_BULK_VSIZE(obj)
1304
1288
 
1289
+ #define GRN_TEXT_EQUAL_CSTRING(bulk, string)\
1290
+ (GRN_TEXT_LEN(bulk) == strlen(string) &&\
1291
+ memcmp(GRN_TEXT_VALUE(bulk), string, GRN_TEXT_LEN(bulk)) == 0)
1292
+
1305
1293
  #define GRN_BOOL_INIT(obj,flags) \
1306
1294
  GRN_VALUE_FIX_SIZE_INIT(obj, flags, GRN_DB_BOOL)
1307
1295
  #define GRN_INT8_INIT(obj,flags) \
@@ -1537,6 +1525,28 @@ GRN_API void grn_ctx_recv_handler_set(grn_ctx *,
1537
1525
  grn_bulk_write((ctx), (obj), (char *)&_val, sizeof(grn_obj *));\
1538
1526
  } while (0)
1539
1527
 
1528
+ #define GRN_BULK_POP(obj, value, type, default) do {\
1529
+ if (GRN_BULK_VSIZE(obj) >= sizeof(type)) {\
1530
+ GRN_BULK_INCR_LEN((obj), -(sizeof(type)));\
1531
+ value = *(type *)(GRN_BULK_CURR(obj));\
1532
+ } else {\
1533
+ value = default;\
1534
+ }\
1535
+ } while (0)
1536
+ #define GRN_BOOL_POP(obj, value) GRN_BULK_POP(obj, value, unsigned char, 0)
1537
+ #define GRN_INT8_POP(obj, value) GRN_BULK_POP(obj, value, int8_t, 0)
1538
+ #define GRN_UINT8_POP(obj, value) GRN_BULK_POP(obj, value, uint8_t, 0)
1539
+ #define GRN_INT16_POP(obj, value) GRN_BULK_POP(obj, value, int16_t, 0)
1540
+ #define GRN_UINT16_POP(obj, value) GRN_BULK_POP(obj, value, uint16_t, 0)
1541
+ #define GRN_INT32_POP(obj, value) GRN_BULK_POP(obj, value, int32_t, 0)
1542
+ #define GRN_UINT32_POP(obj, value) GRN_BULK_POP(obj, value, uint32_t, 0)
1543
+ #define GRN_INT64_POP(obj, value) GRN_BULK_POP(obj, value, int64_t, 0)
1544
+ #define GRN_UINT64_POP(obj, value) GRN_BULK_POP(obj, value, uint64_t, 0)
1545
+ #define GRN_FLOAT_POP(obj, value) GRN_BULK_POP(obj, value, double, 0.0)
1546
+ #define GRN_TIME_POP GRN_INT64_POP
1547
+ #define GRN_RECORD_POP(obj, value) GRN_BULK_POP(obj, value, grn_id, GRN_ID_NIL)
1548
+ #define GRN_PTR_POP(obj, value) GRN_BULK_POP(obj, value, grn_obj *, NULL)
1549
+
1540
1550
  /* grn_str: deprecated. use grn_string instead. */
1541
1551
 
1542
1552
  typedef struct {