rroonga 1.2.7-x86-mingw32 → 1.3.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (548) hide show
  1. data/Gemfile +1 -0
  2. data/Rakefile +1 -0
  3. data/bin/grntest-log-analyze +123 -0
  4. data/bin/groonga-query-log-extract +117 -0
  5. data/ext/groonga/rb-grn-accessor.c +7 -5
  6. data/ext/groonga/rb-grn-array-cursor.c +1 -1
  7. data/ext/groonga/rb-grn-array.c +34 -44
  8. data/ext/groonga/rb-grn-column.c +74 -38
  9. data/ext/groonga/rb-grn-context.c +41 -16
  10. data/ext/groonga/rb-grn-database.c +50 -43
  11. data/ext/groonga/rb-grn-double-array-trie-cursor.c +40 -0
  12. data/ext/groonga/rb-grn-double-array-trie.c +530 -0
  13. data/ext/groonga/rb-grn-encoding-support.c +1 -1
  14. data/ext/groonga/rb-grn-encoding.c +1 -1
  15. data/ext/groonga/rb-grn-exception.c +1 -1
  16. data/ext/groonga/rb-grn-expression-builder.c +1 -1
  17. data/ext/groonga/rb-grn-expression.c +63 -51
  18. data/ext/groonga/rb-grn-fix-size-column.c +7 -7
  19. data/ext/groonga/rb-grn-hash-cursor.c +1 -1
  20. data/ext/groonga/rb-grn-hash.c +42 -39
  21. data/ext/groonga/rb-grn-index-column.c +35 -31
  22. data/ext/groonga/rb-grn-index-cursor.c +1 -1
  23. data/ext/groonga/rb-grn-logger.c +23 -18
  24. data/ext/groonga/rb-grn-object.c +69 -40
  25. data/ext/groonga/rb-grn-operator.c +1 -1
  26. data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
  27. data/ext/groonga/rb-grn-patricia-trie.c +122 -90
  28. data/ext/groonga/rb-grn-plugin.c +8 -7
  29. data/ext/groonga/rb-grn-posting.c +1 -1
  30. data/ext/groonga/rb-grn-procedure.c +1 -1
  31. data/ext/groonga/rb-grn-query.c +12 -12
  32. data/ext/groonga/rb-grn-record.c +1 -1
  33. data/ext/groonga/rb-grn-snippet.c +26 -19
  34. data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
  35. data/ext/groonga/rb-grn-table-cursor.c +4 -3
  36. data/ext/groonga/rb-grn-table-key-support.c +23 -23
  37. data/ext/groonga/rb-grn-table.c +280 -149
  38. data/ext/groonga/rb-grn-type.c +11 -7
  39. data/ext/groonga/rb-grn-utils.c +81 -9
  40. data/ext/groonga/rb-grn-variable-size-column.c +1 -1
  41. data/ext/groonga/rb-grn-variable.c +2 -2
  42. data/ext/groonga/rb-grn-view-accessor.c +1 -1
  43. data/ext/groonga/rb-grn-view-cursor.c +1 -1
  44. data/ext/groonga/rb-grn-view-record.c +1 -1
  45. data/ext/groonga/rb-grn-view.c +43 -34
  46. data/ext/groonga/rb-grn.h +10 -2
  47. data/ext/groonga/rb-groonga.c +1 -1
  48. data/lib/1.8/groonga.so +0 -0
  49. data/lib/1.9/groonga.so +0 -0
  50. data/lib/groonga/context.rb +16 -41
  51. data/lib/groonga/dumper.rb +41 -10
  52. data/lib/groonga/expression-builder-19.rb +40 -0
  53. data/lib/groonga/expression-builder.rb +56 -26
  54. data/lib/groonga/grntest-log.rb +206 -0
  55. data/lib/groonga/pagination.rb +21 -19
  56. data/lib/groonga/patricia-trie.rb +7 -10
  57. data/lib/groonga/posting.rb +1 -1
  58. data/lib/groonga/query-log.rb +348 -0
  59. data/lib/groonga/record.rb +47 -143
  60. data/lib/groonga/schema.rb +679 -406
  61. data/lib/groonga/view-record.rb +4 -10
  62. data/lib/groonga.rb +4 -2
  63. data/rroonga-build.rb +1 -1
  64. data/test/groonga-test-utils.rb +8 -0
  65. data/test/test-array.rb +25 -4
  66. data/test/test-column.rb +8 -8
  67. data/test/test-database.rb +2 -3
  68. data/test/test-double-array-trie.rb +164 -0
  69. data/test/test-expression-builder.rb +2 -2
  70. data/test/test-expression.rb +10 -9
  71. data/test/test-gqtp.rb +2 -2
  72. data/test/test-hash.rb +32 -8
  73. data/test/test-patricia-trie.rb +34 -10
  74. data/test/test-query-log.rb +258 -0
  75. data/test/test-record.rb +6 -5
  76. data/test/test-schema-create-table.rb +8 -0
  77. data/test/test-schema-dumper.rb +6 -0
  78. data/test/test-schema.rb +491 -234
  79. data/test/test-table-select.rb +9 -0
  80. data/test/test-table.rb +17 -24
  81. data/vendor/local/bin/grntest.exe +0 -0
  82. data/vendor/local/bin/groonga-query-log-analyzer +22 -17
  83. data/vendor/local/bin/groonga.exe +0 -0
  84. data/vendor/local/bin/libgroonga-0.dll +0 -0
  85. data/vendor/local/bin/libmecab-1.dll +0 -0
  86. data/vendor/local/bin/mecab-config +2 -2
  87. data/vendor/local/bin/mecab.exe +0 -0
  88. data/vendor/local/include/groonga/groonga.h +251 -5
  89. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  90. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  91. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  92. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  93. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  94. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  95. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  96. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  97. data/vendor/local/lib/libgroonga.a +0 -0
  98. data/vendor/local/lib/libgroonga.dll.a +0 -0
  99. data/vendor/local/lib/libgroonga.la +1 -1
  100. data/vendor/local/lib/libmecab.a +0 -0
  101. data/vendor/local/lib/libmecab.dll.a +0 -0
  102. data/vendor/local/lib/libmecab.la +1 -1
  103. data/vendor/local/lib/pkgconfig/groonga.pc +3 -2
  104. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  105. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  106. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  107. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  108. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  109. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  110. data/vendor/local/share/doc/groonga/en/html/_images/geo-points.png +0 -0
  111. data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +32 -31
  112. data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +7 -1
  113. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +6 -0
  114. data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +6 -6
  115. data/vendor/local/share/doc/groonga/en/html/_sources/geolocation_search.txt +52 -0
  116. data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
  117. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +31 -40
  118. data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +109 -0
  119. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +118 -0
  120. data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial03.txt → en/html/_sources/tutorial/data.txt} +5 -5
  121. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial05.txt → drilldown.txt} +8 -7
  122. data/vendor/local/share/doc/groonga/{source/tutorial/tutorial06.txt → en/html/_sources/tutorial/index.txt} +8 -8
  123. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +297 -0
  124. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
  125. data/vendor/local/share/doc/groonga/{source/tutorial/tutorial07.txt → en/html/_sources/tutorial/match_columns.txt} +4 -4
  126. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial10.txt → micro_blog.txt} +17 -17
  127. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +103 -0
  128. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial08.txt → patricia_trie.txt} +4 -4
  129. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +57 -0
  130. data/vendor/local/share/doc/groonga/{source/tutorial/tutorial04.txt → en/html/_sources/tutorial/search.txt} +17 -12
  131. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +11 -2
  132. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +9 -0
  133. data/vendor/local/share/doc/groonga/en/html/characteristic.html +46 -46
  134. data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
  135. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
  136. data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
  137. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
  138. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
  139. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
  140. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
  141. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
  142. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
  143. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
  144. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
  145. data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
  146. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
  147. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
  148. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
  149. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
  150. data/vendor/local/share/doc/groonga/en/html/commands/select.html +44 -39
  151. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
  152. data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
  153. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +47 -47
  154. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
  155. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
  156. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
  157. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
  158. data/vendor/local/share/doc/groonga/en/html/commands.html +41 -41
  159. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  161. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
  162. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  163. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  164. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
  165. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  166. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +13 -7
  167. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
  168. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
  169. data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
  170. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
  171. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +55 -55
  172. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +30 -30
  173. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +36 -36
  174. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +36 -36
  175. data/vendor/local/share/doc/groonga/en/html/executables.html +22 -22
  176. data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
  177. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
  178. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
  179. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
  180. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
  181. data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
  182. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
  183. data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
  184. data/vendor/local/share/doc/groonga/en/html/genindex.html +17 -17
  185. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +176 -0
  186. data/vendor/local/share/doc/groonga/en/html/index.html +149 -138
  187. data/vendor/local/share/doc/groonga/en/html/install.html +57 -65
  188. data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
  189. data/vendor/local/share/doc/groonga/en/html/log.html +26 -26
  190. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/news/senna.html +281 -0
  194. data/vendor/local/share/doc/groonga/en/html/news.html +219 -65
  195. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  196. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
  197. data/vendor/local/share/doc/groonga/en/html/reference.html +69 -69
  198. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  200. data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
  201. data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
  202. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +7 -7
  203. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
  204. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +12 -12
  206. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/suggest.html +10 -10
  208. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
  209. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
  210. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial03.html → data.html} +32 -32
  211. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
  212. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial06.html → index.html} +44 -44
  213. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +438 -0
  214. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
  215. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
  216. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
  217. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +236 -0
  218. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
  219. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +197 -0
  220. data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial04.html → search.html} +41 -35
  221. data/vendor/local/share/doc/groonga/en/html/tutorial.html +60 -55
  222. data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
  223. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  224. data/vendor/local/share/doc/groonga/ja/html/_images/geo-points.png +0 -0
  225. data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +32 -31
  226. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +7 -1
  227. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +6 -0
  228. data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +6 -6
  229. data/vendor/local/share/doc/groonga/ja/html/_sources/geolocation_search.txt +52 -0
  230. data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
  231. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +31 -40
  232. data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +109 -0
  233. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +118 -0
  234. data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial03.txt → ja/html/_sources/tutorial/data.txt} +5 -5
  235. data/vendor/local/share/doc/groonga/{source/tutorial/tutorial05.txt → ja/html/_sources/tutorial/drilldown.txt} +8 -7
  236. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial06.txt → index.txt} +8 -8
  237. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +297 -0
  238. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
  239. data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial07.txt → ja/html/_sources/tutorial/match_columns.txt} +4 -4
  240. data/vendor/local/share/doc/groonga/{source/tutorial/tutorial10.txt → ja/html/_sources/tutorial/micro_blog.txt} +17 -17
  241. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +103 -0
  242. data/vendor/local/share/doc/groonga/{source/tutorial/tutorial08.txt → ja/html/_sources/tutorial/patricia_trie.txt} +4 -4
  243. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +57 -0
  244. data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial04.txt → ja/html/_sources/tutorial/search.txt} +17 -12
  245. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +11 -2
  246. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +9 -0
  247. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +32 -32
  248. data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
  249. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
  250. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
  251. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
  252. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
  253. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
  254. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
  255. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
  256. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
  257. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
  258. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
  259. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
  260. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
  261. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
  262. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
  263. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
  264. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +44 -39
  265. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
  266. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
  267. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +47 -47
  268. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
  269. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
  270. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
  271. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
  272. data/vendor/local/share/doc/groonga/ja/html/commands.html +41 -41
  273. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  274. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  275. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
  276. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  277. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  278. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
  279. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  280. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +13 -8
  281. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
  282. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
  283. data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
  284. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
  285. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +55 -55
  286. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +30 -30
  287. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +36 -36
  288. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +36 -36
  289. data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -22
  290. data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
  291. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
  292. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
  293. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
  294. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
  295. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
  296. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
  297. data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
  298. data/vendor/local/share/doc/groonga/ja/html/genindex.html +17 -17
  299. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +165 -0
  300. data/vendor/local/share/doc/groonga/ja/html/index.html +144 -133
  301. data/vendor/local/share/doc/groonga/ja/html/install.html +52 -65
  302. data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
  303. data/vendor/local/share/doc/groonga/ja/html/log.html +26 -26
  304. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +282 -0
  308. data/vendor/local/share/doc/groonga/ja/html/news.html +203 -63
  309. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  310. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
  311. data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -69
  312. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  313. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  314. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
  315. data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
  316. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +7 -7
  317. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
  318. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  319. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +12 -12
  320. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  321. data/vendor/local/share/doc/groonga/ja/html/suggest.html +10 -10
  322. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
  323. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
  324. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial03.html → data.html} +31 -31
  325. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
  326. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial06.html → index.html} +44 -44
  327. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial01.html → introduction.html} +140 -129
  328. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
  329. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
  330. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
  331. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial02.html → network.html} +56 -58
  332. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
  333. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +198 -0
  334. data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial04.html → search.html} +41 -35
  335. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +59 -54
  336. data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
  337. data/vendor/local/share/doc/groonga/source/characteristic.txt +32 -31
  338. data/vendor/local/share/doc/groonga/source/commands/select.txt +7 -1
  339. data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +5 -0
  340. data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +5 -0
  341. data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +13 -0
  342. data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +15 -0
  343. data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +9 -0
  344. data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +5 -0
  345. data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +5 -0
  346. data/vendor/local/share/doc/groonga/source/conf.py +1 -1
  347. data/vendor/local/share/doc/groonga/source/contribution/documentation/i18n.txt +6 -0
  348. data/vendor/local/share/doc/groonga/source/example/completion-1.log +2 -2
  349. data/vendor/local/share/doc/groonga/source/example/correction-1.log +2 -2
  350. data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +2 -2
  351. data/vendor/local/share/doc/groonga/source/example/{tutorial03-1.log → tutorial/data-1.log} +0 -0
  352. data/vendor/local/share/doc/groonga/source/example/{tutorial03-2.log → tutorial/data-2.log} +0 -0
  353. data/vendor/local/share/doc/groonga/source/example/{tutorial03-3.log → tutorial/data-3.log} +0 -0
  354. data/vendor/local/share/doc/groonga/source/example/{tutorial05-1.log → tutorial/drilldown-1.log} +6 -6
  355. data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-2.log +5 -0
  356. data/vendor/local/share/doc/groonga/source/example/{tutorial05-3.log → tutorial/drilldown-3.log} +2 -2
  357. data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-4.log +5 -0
  358. data/vendor/local/share/doc/groonga/source/example/{tutorial05-5.log → tutorial/drilldown-5.log} +2 -2
  359. data/vendor/local/share/doc/groonga/source/example/{tutorial05-6.log → tutorial/drilldown-6.log} +2 -2
  360. data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +25 -0
  361. data/vendor/local/share/doc/groonga/source/example/{tutorial06-2.log → tutorial/index-2.log} +4 -4
  362. data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +21 -0
  363. data/vendor/local/share/doc/groonga/source/example/{tutorial06-4.log → tutorial/index-4.log} +3 -3
  364. data/vendor/local/share/doc/groonga/source/example/{tutorial06-5.log → tutorial/index-5.log} +2 -2
  365. data/vendor/local/share/doc/groonga/source/example/{tutorial06-6.log → tutorial/index-6.log} +5 -5
  366. data/vendor/local/share/doc/groonga/source/example/{tutorial06-7.log → tutorial/index-7.log} +2 -2
  367. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +18 -0
  368. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +5 -0
  369. data/vendor/local/share/doc/groonga/source/example/{tutorial01-11.log → tutorial/introduction-11.log} +2 -2
  370. data/vendor/local/share/doc/groonga/source/example/{tutorial01-12.log → tutorial/introduction-12.log} +2 -2
  371. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +5 -0
  372. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +9 -0
  373. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +5 -0
  374. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +5 -0
  375. data/vendor/local/share/doc/groonga/source/example/{tutorial01-17.log → tutorial/introduction-17.log} +2 -2
  376. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +10 -0
  377. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +10 -0
  378. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +7 -0
  379. data/vendor/local/share/doc/groonga/source/example/{tutorial01-5.log → tutorial/introduction-5.log} +2 -2
  380. data/vendor/local/share/doc/groonga/source/example/{tutorial01-6.log → tutorial/introduction-6.log} +2 -2
  381. data/vendor/local/share/doc/groonga/source/example/{tutorial01-7.log → tutorial/introduction-7.log} +2 -2
  382. data/vendor/local/share/doc/groonga/source/example/{tutorial01-8.log → tutorial/introduction-8.log} +2 -2
  383. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +5 -0
  384. data/vendor/local/share/doc/groonga/source/example/{tutorial07-1.log → tutorial/match_columns-1.log} +8 -8
  385. data/vendor/local/share/doc/groonga/source/example/{tutorial07-2.log → tutorial/match_columns-2.log} +4 -4
  386. data/vendor/local/share/doc/groonga/source/example/{tutorial07-3.log → tutorial/match_columns-3.log} +7 -7
  387. data/vendor/local/share/doc/groonga/source/example/{tutorial07-4.log → tutorial/match_columns-4.log} +4 -4
  388. data/vendor/local/share/doc/groonga/source/example/{tutorial10-1.log → tutorial/micro_blog-1.log} +2 -2
  389. data/vendor/local/share/doc/groonga/source/example/{tutorial10-10.log → tutorial/micro_blog-10.log} +2 -2
  390. data/vendor/local/share/doc/groonga/source/example/{tutorial10-2.log → tutorial/micro_blog-2.log} +2 -2
  391. data/vendor/local/share/doc/groonga/source/example/{tutorial10-3.log → tutorial/micro_blog-3.log} +2 -2
  392. data/vendor/local/share/doc/groonga/source/example/{tutorial10-4.log → tutorial/micro_blog-4.log} +2 -2
  393. data/vendor/local/share/doc/groonga/source/example/{tutorial10-5.log → tutorial/micro_blog-5.log} +2 -2
  394. data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +5 -0
  395. data/vendor/local/share/doc/groonga/source/example/{tutorial10-7.log → tutorial/micro_blog-7.log} +2 -2
  396. data/vendor/local/share/doc/groonga/source/example/{tutorial10-8.log → tutorial/micro_blog-8.log} +2 -2
  397. data/vendor/local/share/doc/groonga/source/example/{tutorial10-9.log → tutorial/micro_blog-9.log} +2 -2
  398. data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +8 -0
  399. data/vendor/local/share/doc/groonga/source/example/{tutorial02-2.log → tutorial/network-2.log} +1 -1
  400. data/vendor/local/share/doc/groonga/source/example/{tutorial02-3.log → tutorial/network-3.log} +3 -3
  401. data/vendor/local/share/doc/groonga/source/example/{tutorial08-1.log → tutorial/patricia_trie-1.log} +4 -4
  402. data/vendor/local/share/doc/groonga/source/example/{tutorial08-2.log → tutorial/patricia_trie-2.log} +6 -6
  403. data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +27 -0
  404. data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +7 -0
  405. data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +7 -0
  406. data/vendor/local/share/doc/groonga/source/example/{tutorial04-1.log → tutorial/search-1.log} +2 -2
  407. data/vendor/local/share/doc/groonga/source/example/tutorial/search-2.log +7 -0
  408. data/vendor/local/share/doc/groonga/source/example/tutorial/search-3.log +7 -0
  409. data/vendor/local/share/doc/groonga/source/example/{tutorial04-4.log → tutorial/search-4.log} +4 -4
  410. data/vendor/local/share/doc/groonga/source/example/{tutorial04-5.log → tutorial/search-5.log} +2 -2
  411. data/vendor/local/share/doc/groonga/source/example/tutorial/search-6.log +5 -0
  412. data/vendor/local/share/doc/groonga/source/example/{tutorial04-7.log → tutorial/search-7.log} +2 -2
  413. data/vendor/local/share/doc/groonga/source/executables/grntest.txt +6 -6
  414. data/vendor/local/share/doc/groonga/source/geolocation_search.txt +52 -0
  415. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.png +0 -0
  416. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.svg +188 -0
  417. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.png +0 -0
  418. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.svg +501 -0
  419. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.png +0 -0
  420. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.svg +275 -0
  421. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.png +0 -0
  422. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.svg +899 -0
  423. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.png +0 -0
  424. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.svg +249 -0
  425. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.png +0 -0
  426. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.svg +275 -0
  427. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.png +0 -0
  428. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.svg +743 -0
  429. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.png +0 -0
  430. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.svg +261 -0
  431. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.png +0 -0
  432. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.svg +228 -0
  433. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.png +0 -0
  434. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.svg +241 -0
  435. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.png +0 -0
  436. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.svg +879 -0
  437. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.png +0 -0
  438. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.svg +879 -0
  439. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.png +0 -0
  440. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.svg +879 -0
  441. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.png +0 -0
  442. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.svg +602 -0
  443. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.png +0 -0
  444. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.svg +600 -0
  445. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.png +0 -0
  446. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.svg +600 -0
  447. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.png +0 -0
  448. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.svg +600 -0
  449. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.png +0 -0
  450. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.svg +917 -0
  451. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.png +0 -0
  452. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.svg +600 -0
  453. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.png +0 -0
  454. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.svg +600 -0
  455. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.png +0 -0
  456. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.svg +600 -0
  457. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.png +0 -0
  458. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.svg +561 -0
  459. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.png +0 -0
  460. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.svg +389 -0
  461. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.png +0 -0
  462. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.svg +469 -0
  463. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.png +0 -0
  464. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.svg +514 -0
  465. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.png +0 -0
  466. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.svg +595 -0
  467. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.png +0 -0
  468. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.svg +600 -0
  469. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.png +0 -0
  470. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.svg +424 -0
  471. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.png +0 -0
  472. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.svg +549 -0
  473. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.png +0 -0
  474. data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.svg +241 -0
  475. data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.png +0 -0
  476. data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.svg +203 -0
  477. data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.png +0 -0
  478. data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.svg +264 -0
  479. data/vendor/local/share/doc/groonga/source/images/geo-in-rectangle.png +0 -0
  480. data/vendor/local/share/doc/groonga/source/images/geo-points-distance.png +0 -0
  481. data/vendor/local/share/doc/groonga/source/images/geo-points-distance.svg +317 -0
  482. data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.png +0 -0
  483. data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.svg +306 -0
  484. data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.png +0 -0
  485. data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.svg +304 -0
  486. data/vendor/local/share/doc/groonga/source/images/geo-points-sort.png +0 -0
  487. data/vendor/local/share/doc/groonga/source/images/geo-points-sort.svg +383 -0
  488. data/vendor/local/share/doc/groonga/source/images/geo-points.png +0 -0
  489. data/vendor/local/share/doc/groonga/source/images/geo-points.svg +296 -0
  490. data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.png +0 -0
  491. data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.svg +287 -0
  492. data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.png +0 -0
  493. data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.svg +174 -0
  494. data/vendor/local/share/doc/groonga/source/index.txt +1 -0
  495. data/vendor/local/share/doc/groonga/source/install.txt +31 -40
  496. data/vendor/local/share/doc/groonga/source/news/senna.txt +109 -0
  497. data/vendor/local/share/doc/groonga/source/news.txt +118 -0
  498. data/vendor/local/share/doc/groonga/source/tutorial/{tutorial03.txt → data.txt} +5 -5
  499. data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial05.txt → source/tutorial/drilldown.txt} +8 -7
  500. data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial06.txt → source/tutorial/index.txt} +8 -8
  501. data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +297 -0
  502. data/vendor/local/share/doc/groonga/source/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
  503. data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial07.txt → source/tutorial/match_columns.txt} +4 -4
  504. data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial10.txt → source/tutorial/micro_blog.txt} +17 -17
  505. data/vendor/local/share/doc/groonga/source/tutorial/network.txt +103 -0
  506. data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial08.txt → source/tutorial/patricia_trie.txt} +4 -4
  507. data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +57 -0
  508. data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial04.txt → source/tutorial/search.txt} +17 -12
  509. data/vendor/local/share/doc/groonga/source/tutorial.txt +11 -2
  510. data/vendor/local/share/man/ja/man1/groonga.1 +449 -772
  511. data/vendor/local/share/man/man1/groonga.1 +591 -875
  512. metadata +232 -124
  513. data/vendor/local/etc/groonga/init.d/redhat/groonga +0 -160
  514. data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +0 -8
  515. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +0 -296
  516. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial02.txt +0 -102
  517. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +0 -409
  518. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +0 -235
  519. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +0 -296
  520. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial02.txt +0 -102
  521. data/vendor/local/share/doc/groonga/source/example/tutorial01-1.log +0 -6
  522. data/vendor/local/share/doc/groonga/source/example/tutorial01-10.log +0 -5
  523. data/vendor/local/share/doc/groonga/source/example/tutorial01-13.log +0 -5
  524. data/vendor/local/share/doc/groonga/source/example/tutorial01-14.log +0 -9
  525. data/vendor/local/share/doc/groonga/source/example/tutorial01-15.log +0 -5
  526. data/vendor/local/share/doc/groonga/source/example/tutorial01-16.log +0 -5
  527. data/vendor/local/share/doc/groonga/source/example/tutorial01-2.log +0 -5
  528. data/vendor/local/share/doc/groonga/source/example/tutorial01-3.log +0 -5
  529. data/vendor/local/share/doc/groonga/source/example/tutorial01-4.log +0 -7
  530. data/vendor/local/share/doc/groonga/source/example/tutorial01-9.log +0 -5
  531. data/vendor/local/share/doc/groonga/source/example/tutorial02-1.log +0 -8
  532. data/vendor/local/share/doc/groonga/source/example/tutorial04-2.log +0 -7
  533. data/vendor/local/share/doc/groonga/source/example/tutorial04-3.log +0 -7
  534. data/vendor/local/share/doc/groonga/source/example/tutorial04-6.log +0 -5
  535. data/vendor/local/share/doc/groonga/source/example/tutorial05-2.log +0 -5
  536. data/vendor/local/share/doc/groonga/source/example/tutorial05-4.log +0 -5
  537. data/vendor/local/share/doc/groonga/source/example/tutorial06-1.log +0 -25
  538. data/vendor/local/share/doc/groonga/source/example/tutorial06-3.log +0 -21
  539. data/vendor/local/share/doc/groonga/source/example/tutorial10-6.log +0 -5
  540. data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +0 -296
  541. data/vendor/local/share/doc/groonga/source/tutorial/tutorial02.txt +0 -102
  542. data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -47
  543. data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -57
  544. data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -162
  545. data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -51
  546. data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -110
  547. data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -133
  548. data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -84
@@ -1,4 +1,4 @@
1
- /* -*- c-file-style: "ruby" -*- */
1
+ /* -*- coding: utf-8; c-file-style: "ruby" -*- */
2
2
  /*
3
3
  Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
4
4
 
@@ -228,27 +228,28 @@ rb_grn_table_inspect (VALUE self)
228
228
  * table.define_column(name, value_type, options={}) ->
229
229
  * Groonga::FixSizeColumnかGroonga::VariableSizeColumn
230
230
  *
231
- * テーブルに名前が_name_で型が_value_type_のカラムを定義
231
+ * テーブルに名前が _name_ で型が _value_type_ のカラムを定義
232
232
  * し、新しく定義されたカラムを返す。
233
233
  *
234
- * _options_に指定可能な値は以下の通り。
235
- *
236
- * [+:path+]
234
+ * _options_ に指定可能な値は以下の通り。
235
+ * @param options [::Hash] The name and value
236
+ * pairs. Omitted names are initialized as the default value.
237
+ * @option options :path The path
237
238
  * カラムを保存するパス。
238
239
  *
239
- * [+:persistent+]
240
- * +true+を指定すると永続カラムとなる。省略した場合は永
241
- * 続カラムとなる。+:path+を省略した場合は自動的にパスが
240
+ * @option options :persistent (永続カラム) The persistent
241
+ * +true+ を指定すると永続カラムとなる。省略した場合は永
242
+ * 続カラムとなる。 +:path+ を省略した場合は自動的にパスが
242
243
  * 付加される。
243
244
  *
244
- * [+:type+]
245
+ * @option options :type (:scalar) The type
245
246
  * カラムの値の格納方法について指定する。省略した場合は、
246
- * +:scalar+になる。
247
+ * +:scalar+ になる。
247
248
  *
248
249
  * [+:scalar+] スカラ値(単独の値)を格納する。
249
250
  * [+:vector+] 値の配列を格納する。
250
251
  *
251
- * [+:compress+]
252
+ * @param options :compress The compress
252
253
  * 値の圧縮方法を指定する。省略した場合は、圧縮しない。
253
254
  *
254
255
  * [+:zlib+] 値をzlib圧縮して格納する。
@@ -366,33 +367,34 @@ n_gram_tokenizer_p(grn_ctx *context, grn_obj *tokenizer)
366
367
  * call-seq:
367
368
  * table.define_index_column(name, value_type, options={}) -> Groonga::IndexColumn
368
369
  *
369
- * テーブルに名前が_name_で型が_value_type_のインデックスカ
370
+ * テーブルに名前が _name_ で型が _value_type_ のインデックスカ
370
371
  * ラムを定義し、新しく定義されたカラムを返す。
371
372
  *
372
- * _options_に指定可能な値は以下の通り。
373
- *
374
- * [+:path+]
373
+ * _options_ に指定可能な値は以下の通り。
374
+ * @param options [::Hash] The name and value
375
+ * pairs. Omitted names are initialized as the default value.
376
+ * @option options :path The path
375
377
  * カラムを保存するパス。
376
378
  *
377
- * [+:persistent+]
378
- * +true+を指定すると永続カラムとなる。省略した場合は永
379
- * 続カラムとなる。+:path+を省略した場合は自動的にパスが
379
+ * @option options :persistent (永続カラム) The persistent
380
+ * +true+ を指定すると永続カラムとなる。省略した場合は永
381
+ * 続カラムとなる。 +:path+ を省略した場合は自動的にパスが
380
382
  * 付加される。
381
383
  *
382
- * [+:with_section+]
384
+ * @option options :with_section The with_section
383
385
  * 転置索引にsection(段落情報)を合わせて格納する。
384
386
  *
385
- * [+:with_weight+]
387
+ * @option options :with_weight The with_weight
386
388
  * 転置索引にweight情報を合わせて格納する。
387
389
  *
388
- * [+:with_position+]
390
+ * @option options :with_position The with_position
389
391
  * 転置索引に出現位置情報を合わせて格納する。
390
392
  *
391
- * [+:source+]
392
- * インデックス対象となるカラムを指定する。+:sources+との併用はできない。
393
+ * @option options :source The source
394
+ * インデックス対象となるカラムを指定する。 +:sources+ との併用はできない。
393
395
  *
394
- * [+:sources+]
395
- * インデックス対象となる複数のカラムを指定する。+:source+との併用はできない。
396
+ * @option options :sources The sources
397
+ * インデックス対象となる複数のカラムを指定する。 +:source+ との併用はできない。
396
398
  */
397
399
  static VALUE
398
400
  rb_grn_table_define_index_column (int argc, VALUE *argv, VALUE self)
@@ -521,8 +523,8 @@ ruby_object_to_column_name (VALUE rb_name,
521
523
  * call-seq:
522
524
  * table.column(name) -> Groonga::Column or nil
523
525
  *
524
- * テーブルの_name_に対応するカラムを返す。カラムが存在しな
525
- * い場合は+nil+を返す。
526
+ * テーブルの _name_ に対応するカラムを返す。カラムが存在しな
527
+ * い場合は +nil+ を返す。
526
528
  */
527
529
  VALUE
528
530
  rb_grn_table_get_column (VALUE self, VALUE rb_name)
@@ -602,8 +604,8 @@ rb_grn_table_get_column_surely (VALUE self, VALUE rb_name)
602
604
  * call-seq:
603
605
  * table.columns(name=nil) -> Groonga::Columnの配列
604
606
  *
605
- * テーブルの全てのカラムを返す。_name_が指定された場合はカ
606
- * ラム名の先頭が_name_で始まるカラムを返す。
607
+ * テーブルの全てのカラムを返す。 _name_ が指定された場合はカ
608
+ * ラム名の先頭が _name_ で始まるカラムを返す。
607
609
  */
608
610
  static VALUE
609
611
  rb_grn_table_get_columns (int argc, VALUE *argv, VALUE self)
@@ -670,7 +672,7 @@ rb_grn_table_get_columns (int argc, VALUE *argv, VALUE self)
670
672
  * call-seq:
671
673
  * table.have_column?(name) -> true/false
672
674
  *
673
- * テーブルが_name_カラムを持っている場合は+true+を返す。
675
+ * テーブルが _name_ カラムを持っている場合は +true+ を返す。
674
676
  */
675
677
  static VALUE
676
678
  rb_grn_table_have_column (VALUE self, VALUE rb_name)
@@ -769,43 +771,44 @@ rb_grn_table_open_grn_cursor (int argc, VALUE *argv, VALUE self,
769
771
  * カーソルが破棄される。
770
772
  *
771
773
  * _options_に指定可能な値は以下の通り。
772
- *
773
- * [+:min+]
774
+ * @param options [::Hash] The name and value
775
+ * pairs. Omitted names are initialized as the default value.
776
+ * @option options :min The min
774
777
  * キーの下限
775
778
  *
776
- * [+:max+]
779
+ * @option options :max The max
777
780
  * キーの上限
778
781
  *
779
- * [+:offset+]
780
- * 該当する範囲のレコードのうち、(0ベースで)_:offset_番目
782
+ * @option options :offset The offset
783
+ * 該当する範囲のレコードのうち、(0ベースで) _:offset_ 番目
781
784
  * からレコードを取り出す。
782
785
  *
783
- * [+:limit+]
784
- * 該当する範囲のレコードのうち、_:limit_件のみを取り出す。
786
+ * @option options :limit The limit
787
+ * 該当する範囲のレコードのうち、 _:limit_ 件のみを取り出す。
785
788
  * 省略された場合または-1が指定された場合は、全件が指定され
786
789
  * たものとみなす。
787
790
  *
788
- * [+:order+]
789
- * +:asc+または+:ascending+を指定すると昇順にレコードを取
791
+ * @option options :order (asc) The order
792
+ * +:asc+ または +:ascending+ を指定すると昇順にレコードを取
790
793
  * り出す。(デフォルト)
791
794
  *
792
- * +:desc+または+:descending+を指定すると降順にレコードを
795
+ * +:desc+ または +:descending+ を指定すると降順にレコードを
793
796
  * 取り出す。
794
797
  *
795
- * [+:order_by+]
796
- * +:id+を指定するとID順にレコードを取り出す。(Arrayと
798
+ * @option options :order_by The order_by
799
+ * +:id+ を指定するとID順にレコードを取り出す。(Arrayと
797
800
  * Hashのデフォルト)
798
801
  *
799
- * +:key+指定するとキー順にレコードを取り出す。ただし、
802
+ * +:key+ 指定するとキー順にレコードを取り出す。ただし、
800
803
  * Groonga::PatriciaTrieにしか使えない。(PatriciaTrieのデ
801
804
  * フォルト)
802
805
  *
803
- * [+:greater_than+]
804
- * +true+を指定すると+:min+で指定した値に一致した[+key+]を
806
+ * @option options :greater_than The greater_than
807
+ * +true+ を指定すると +:min+ で指定した値に一致した [ +key+ ]
805
808
  * 範囲に含まない。
806
809
  *
807
- * [+:less_than+]
808
- * +true+を指定すると+:max+で指定した値に一致した[+key+]を
810
+ * @option options :less_than The less_than
811
+ * +true+ を指定すると +:max+ で指定した値に一致した [ +key+ ]
809
812
  * 範囲に含まない。
810
813
  */
811
814
  static VALUE
@@ -874,7 +877,7 @@ rb_grn_table_get_size (VALUE self)
874
877
  * call-seq:
875
878
  * table.empty? -> true/false
876
879
  *
877
- * テーブルにレコードが登録されていなければ+true+を返す。
880
+ * テーブルにレコードが登録されていなければ +true+ を返す。
878
881
  */
879
882
  static VALUE
880
883
  rb_grn_table_empty_p (VALUE self)
@@ -888,7 +891,7 @@ rb_grn_table_empty_p (VALUE self)
888
891
  NULL, NULL, NULL,
889
892
  NULL);
890
893
  size = grn_table_size(context, table);
891
- return size == 0;
894
+ return CBOOL2RVAL(size == 0);
892
895
  }
893
896
 
894
897
  /*
@@ -953,7 +956,7 @@ rb_grn_table_each (VALUE self)
953
956
  * call-seq:
954
957
  * table.delete(id)
955
958
  *
956
- * テーブルの_id_に対応するレコードを削除する。
959
+ * テーブルの _id_ に対応するレコードを削除する。
957
960
  */
958
961
  VALUE
959
962
  rb_grn_table_delete (VALUE self, VALUE rb_id)
@@ -982,41 +985,50 @@ rb_grn_table_delete (VALUE self, VALUE rb_id)
982
985
  * テーブルに登録されているレコードを_keys_で指定されたルー
983
986
  * ルに従ってソートしたレコードの配列を返す。
984
987
  *
985
- * _order_には+:asc+, +:ascending+, +:desc+, +:descending+の
988
+ * _order_ には +:asc+ , +:ascending+ , +:desc+ , +:descending+ の
986
989
  * いずれを指定する。
987
990
  *
988
- * [ハッシュの配列で指定する方法]
989
- * オーソドックスな指定方法。
990
- *
991
- * [
992
- * {:key => "第1ソートキー", :order => order},
993
- * {:key => "第2ソートキー", :order => order},
994
- * ...,
995
- * ]
996
- *
997
- * [配列の配列で指定する方法]
998
- * 少し簡単化した指定方法。
999
- *
1000
- * [
1001
- * ["第1ソートキー", order],
1002
- * ["第2ソートキー", order],
1003
- * ...,
1004
- * ]
1005
- *
1006
- * [ソートキーの配列で指定する方法]
1007
- * _order_は常に昇順(+:ascending+)になるが、最も簡単
1008
- * に指定できる。
1009
- *
1010
- * ["第1ソートキー", "第2ソートキー", ...]
1011
- *
1012
- * _options_に指定可能な値は以下の通り。
1013
- *
1014
- * [+:offset+]
1015
- * ソートされたレコードのうち、(0ベースで)_:offset_番目
991
+ * - ハッシュの配列で指定する方法 :=
992
+ * オーソドックスな指定方法。
993
+ *
994
+ * <pre lang="ruby">
995
+ * [
996
+ * {:key => "第1ソートキー", :order => order},
997
+ * {:key => "第2ソートキー", :order => order},
998
+ * ...,
999
+ * ]
1000
+ * </pre>
1001
+ * =:
1002
+ *
1003
+ * - 配列の配列で指定する方法 :=
1004
+ * 少し簡単化した指定方法。
1005
+ *
1006
+ * <pre lang="ruby">
1007
+ * [
1008
+ * ["第1ソートキー", order],
1009
+ * ["第2ソートキー", order],
1010
+ * ...,
1011
+ * ]
1012
+ * </pre>
1013
+ * =:
1014
+ *
1015
+ * - ソートキーの配列で指定する方法 :=
1016
+ * _order_ は常に昇順( +:ascending+ )になるが、最も簡単
1017
+ * に指定できる。
1018
+ *
1019
+ * <pre lang="ruby">
1020
+ * ["第1ソートキー", "第2ソートキー", ...]
1021
+ * </pre>
1022
+ * =:
1023
+ *
1024
+ * @param options [::Hash] The name and value
1025
+ * pairs. Omitted names are initialized as the default value.
1026
+ * @option options :offset The offset
1027
+ * ソートされたレコードのうち、(0ベースで) _:offset_ 番目
1016
1028
  * からレコードを取り出す。
1017
1029
  *
1018
- * [+:limit+]
1019
- * ソートされたレコードのうち、_:limit_件のみを取り出す。
1030
+ * @option options :limit The limit
1031
+ * ソートされたレコードのうち、 _:limit_ 件のみを取り出す。
1020
1032
  * 省略された場合または-1が指定された場合は、全件が指定され
1021
1033
  * たものとみなす。
1022
1034
  */
@@ -1143,7 +1155,7 @@ rb_grn_table_sort (int argc, VALUE *argv, VALUE self)
1143
1155
  * table.group([key1, key2, ...], options={}) -> [Groonga::Hash, ...]
1144
1156
  * table.group(key, options={}) -> Groonga::Hash
1145
1157
  *
1146
- * _table_のレコードを_key1_, _key2_, _..._で指定したキーの
1158
+ * _table_ のレコードを _key1_ , _key2_ , _..._ で指定したキーの
1147
1159
  * 値でグループ化する。多くの場合、キーにはカラムを指定する。
1148
1160
  * カラムはカラム名(文字列)でも指定可能。
1149
1161
  */
@@ -1244,7 +1256,7 @@ rb_grn_table_group (int argc, VALUE *argv, VALUE self)
1244
1256
  * call-seq:
1245
1257
  * table[id] -> Groonga::Record
1246
1258
  *
1247
- * _table_の_id_に対応するGroonga::Recordを返す。
1259
+ * _table_ _id_ に対応するGroonga::Recordを返す。
1248
1260
  *
1249
1261
  * 0.9.0から値ではなくGroonga::Recordを返すようになった。
1250
1262
  */
@@ -1287,7 +1299,7 @@ rb_grn_table_get_value (VALUE self, VALUE rb_id)
1287
1299
  * table.value(id) -> 値
1288
1300
  * table.value(id, :id => true) -> 値
1289
1301
  *
1290
- * _table_の_id_に対応する値を返す。
1302
+ * _table_ _id_ に対応する値を返す。
1291
1303
  *
1292
1304
  * <tt>:id => true</tt>が指定できるのは利便性のため。
1293
1305
  * Groonga::ArrayでもGroonga::HashやGroonga::PatriciaTrieと
@@ -1347,7 +1359,7 @@ rb_grn_table_set_value (VALUE self, VALUE rb_id, VALUE rb_value)
1347
1359
  * table.set_value(id, value)
1348
1360
  * table.set_value(id, value, :id => true)
1349
1361
  *
1350
- * _table_の_id_に対応する値として_value_設定する。既存の値は
1362
+ * _table_ _id_ に対応する値として _value_ 設定する。既存の値は
1351
1363
  * 上書きされる。
1352
1364
  *
1353
1365
  * <tt>:id => true</tt>が指定できるのは利便性のため。
@@ -1400,7 +1412,7 @@ rb_grn_table_get_column_value (VALUE self, VALUE rb_id, VALUE rb_name)
1400
1412
  * table.column_value(id, name) -> 値
1401
1413
  * table.column_value(id, name, :id => true) -> 値
1402
1414
  *
1403
- * _table_の_id_に対応するカラム_name_の値を返す。
1415
+ * _table_ _id_ に対応するカラム _name_ の値を返す。
1404
1416
  *
1405
1417
  * <tt>:id => true</tt>が指定できるのは利便性のため。
1406
1418
  * Groonga::ArrayでもGroonga::HashやGroonga::PatriciaTrieと
@@ -1456,7 +1468,7 @@ rb_grn_table_set_column_value (VALUE self, VALUE rb_id,
1456
1468
  * table.set_column_value(id, name, value)
1457
1469
  * table.set_column_value(id, name, value, :id => true)
1458
1470
  *
1459
- * _table_の_id_に対応するカラム_name_の値として_value_設定す
1471
+ * _table_ _id_ に対応するカラム _name_ の値として _value_ 設定す
1460
1472
  * る。既存の値は上書きされる。
1461
1473
  *
1462
1474
  * <tt>:id => true</tt>が指定できるのは利便性のため。
@@ -1492,12 +1504,12 @@ rb_grn_table_set_column_value_convenience (int argc, VALUE *argv, VALUE self)
1492
1504
  * call-seq:
1493
1505
  * table.unlock(options={})
1494
1506
  *
1495
- * _table_のロックを解除する。
1507
+ * _table_ のロックを解除する。
1496
1508
  *
1497
1509
  * 利用可能なオプションは以下の通り。
1498
1510
  *
1499
- * [_:id_]
1500
- * _:id_で指定したレコードのロックを解除する。(注:
1511
+ * [ _:id_ ]
1512
+ * _:id_ で指定したレコードのロックを解除する。(注:
1501
1513
  * groonga側が未実装のため、現在は無視される)
1502
1514
  */
1503
1515
  static VALUE
@@ -1543,19 +1555,23 @@ rb_grn_table_unlock_ensure (VALUE self)
1543
1555
  * table.lock(options={})
1544
1556
  * table.lock(options={}) {}
1545
1557
  *
1546
- * _table_をロックする。ロックに失敗した場合は
1558
+ * _table_ をロックする。ロックに失敗した場合は
1547
1559
  * Groonga::ResourceDeadlockAvoided例外が発生する。
1548
1560
  *
1549
1561
  * ブロックを指定した場合はブロックを抜けたときにunlockする。
1550
1562
  *
1551
1563
  * 利用可能なオプションは以下の通り。
1564
+ * @param options [::Hash] The name and value
1565
+ * pairs. Omitted names are initialized as the default value.
1566
+ * @option options :timeout The timeout
1552
1567
  *
1553
- * [_:timeout_]
1554
- * ロックを獲得できなかった場合は_:timeout_秒間ロックの獲
1555
- * 得を試みる。_:timeout_秒以内にロックを獲得できなかった
1568
+ * ロックを獲得できなかった場合は _:timeout_ 秒間ロックの獲
1569
+ * 得を試みる。 _:timeout_ 秒以内にロックを獲得できなかった
1556
1570
  * 場合は例外が発生する。
1557
- * [_:id_]
1558
- * _:id_で指定したレコードをロックする。(注: groonga側が
1571
+ *
1572
+ * @option options :id The id
1573
+ *
1574
+ * _:id_ で指定したレコードをロックする。(注: groonga側が
1559
1575
  * 未実装のため、現在は無視される)
1560
1576
  */
1561
1577
  static VALUE
@@ -1603,12 +1619,14 @@ rb_grn_table_lock (int argc, VALUE *argv, VALUE self)
1603
1619
  * call-seq:
1604
1620
  * table.clear_lock(options={})
1605
1621
  *
1606
- * _table_のロックを強制的に解除する。
1622
+ * _table_ のロックを強制的に解除する。
1607
1623
  *
1608
1624
  * 利用可能なオプションは以下の通り。
1625
+ * @param options [::Hash] The name and value
1626
+ * pairs. Omitted names are initialized as the default value.
1627
+ * @option options :id The id
1609
1628
  *
1610
- * [_:id_]
1611
- * _:id_で指定したレコードのロックを強制的に解除する。
1629
+ * _:id_ で指定したレコードのロックを強制的に解除する。
1612
1630
  * (注: groonga側が未実装のため、現在は無視される。実装さ
1613
1631
  * れるのではないかと思っているが、実装されないかもしれな
1614
1632
  * い。)
@@ -1646,12 +1664,14 @@ rb_grn_table_clear_lock (int argc, VALUE *argv, VALUE self)
1646
1664
  * call-seq:
1647
1665
  * table.locked?(options={})
1648
1666
  *
1649
- * _table_がロックされていれば+true+を返す。
1667
+ * _table_ がロックされていれば +true+ を返す。
1650
1668
  *
1651
1669
  * 利用可能なオプションは以下の通り。
1670
+ * @param options [options] The name and value
1671
+ * pairs. Omitted names are initialized as the default value.
1672
+ * @option options :id The id
1652
1673
  *
1653
- * [_:id_]
1654
- * _:id_で指定したレコードがロックされていれば+true+を返す。
1674
+ * _:id_ で指定したレコードがロックされていれば +true+ を返す。
1655
1675
  * (注: groonga側が未実装のため、現在は無視される。実装さ
1656
1676
  * れるのではないかと思っているが、実装されないかもしれな
1657
1677
  * い。)
@@ -1687,14 +1707,14 @@ rb_grn_table_is_locked (int argc, VALUE *argv, VALUE self)
1687
1707
  * table.select(query, options) -> Groonga::Hash
1688
1708
  * table.select(expression, options) -> Groonga::Hash
1689
1709
  *
1690
- * _table_からブロックまたは文字列で指定した条件にマッチする
1691
- * レコードを返す。返されたテーブルには+expression+という特
1710
+ * _table_ からブロックまたは文字列で指定した条件にマッチする
1711
+ * レコードを返す。返されたテーブルには +expression+ という特
1692
1712
  * 異メソッドがあり、指定した条件を表している
1693
1713
  * Groonga::Expressionを取得できる。
1694
1714
  * Groonga::Expression#snippetを使うことにより、指定した条件
1695
1715
  * 用のスニペットを簡単に生成できる。
1696
- *
1697
- * results = table.select do |record|
1716
+ * <pre>
1717
+ * ==results = table.select do |record|
1698
1718
  * record["description"] =~ "groonga"
1699
1719
  * end
1700
1720
  * snippet = results.expression.snippet([["<em>", "</em>"]])
@@ -1705,49 +1725,72 @@ rb_grn_table_is_locked (int argc, VALUE *argv, VALUE self)
1705
1725
  * puts "#{snippet}..."
1706
1726
  * puts "---"
1707
1727
  * end
1708
- * end
1709
- *
1728
+ * end==
1729
+ * </pre>
1710
1730
  * 出力例
1711
1731
  * Ruby/groongaの説明文の中で「groonga」が含まれる部分
1712
1732
  * ---
1713
1733
  * Ruby/<em>groonga</em>は<em>groonga</em>のいわゆるDB-APIの層の...
1714
1734
  * ---
1715
1735
  *
1716
- * _query_には「[カラム名]:[演算子][値]」という書式で条件を
1736
+ * _query_ には「[カラム名]:[演算子][値]」という書式で条件を
1717
1737
  * 指定する。演算子は以下の通り。
1718
- *
1719
- * [なし]
1720
- * \[カラム値] == [値]
1721
- * [<tt>!</tt>]
1722
- * \[カラム値] != [値]
1723
- * [<tt><</tt>]
1724
- * \[カラム値] < [値]
1725
- * [<tt>></tt>]
1726
- * \[カラム値] > [値]
1727
- * [<tt><=</tt>]
1728
- * \[カラム値] <= [値]
1729
- * [<tt>>=</tt>]
1730
- * \[カラム値] >= [値]
1731
- * [<tt>@</tt>]
1732
- * \[カラム値]が[値]を含んでいるかどうか
1738
+ * <pre>
1739
+ * [なし]
1740
+ * \[カラム値] == [値]
1741
+ * [<tt>!</tt>]
1742
+ * \[カラム値] != [値]
1743
+ * [<tt><</tt>]
1744
+ * \[カラム値] < [値]
1745
+ * [<tt>></tt>]
1746
+ * \[カラム値] > [値]
1747
+ * [<tt><=</tt>]
1748
+ * \[カラム値] <= [値]
1749
+ * [<tt>>=</tt>]
1750
+ * \[カラム値] >= [値]
1751
+ * [<tt>@</tt>]
1752
+ * \[カラム値]が[値]を含んでいるかどうか
1753
+ * </pre>
1733
1754
  *
1734
1755
  * 例:
1735
- * "name:daijiro" # "name"カラムの値が"daijiro"のレコードにマッチ
1756
+ * <pre>
1757
+ * =="name:daijiro" # "name"カラムの値が"daijiro"のレコードにマッチ
1736
1758
  * "description:@groonga" # "description"カラムが
1737
- * # "groonga"を含んでいるレコードにマッチ
1759
+ * # "groonga"を含んでいるレコードにマッチ==
1760
+ * </pre>
1738
1761
  *
1739
- * _expression_には既に作成済みのGroonga::Expressionを渡す
1762
+ * _expression_ には既に作成済みのGroonga::Expressionを渡す
1740
1763
  *
1741
1764
  * ブロックで条件を指定する場合は
1742
1765
  * Groonga::RecordExpressionBuilderを参照。
1743
1766
  *
1744
- * _options_に指定可能な値は以下の通り。
1767
+ * Ruby1.9以降では、ブロックで条件を指定する際に
1768
+ * Groonga::ColumnExpressionBuilderの他に"!="も使用可能。
1769
+ *
1770
+ * 例:
1771
+ * <pre>
1772
+ * ==comments = Groonga::Array.create(:name => "Comments")
1773
+ * comments.define_column("content", "Text")
1774
+ * comments.add(:content => "Hello Good-bye!")
1775
+ * comments.add(:content => "Hello World")
1776
+ * comments.add(:content => "test")
1777
+ * result = comments.select do |record|
1778
+ * record.content != "test"
1779
+ * end
1780
+ * p result.collect {|record| record.content}
1781
+ * # => ["Hello Good-bye!", "Hello World"]==
1782
+ * </pre>
1783
+ *
1784
+ * _options_ に指定可能な値は以下の通り。
1785
+ * @param options [::Hash] The name and value
1786
+ * pairs. Omitted names are initialized as the default value.
1787
+ * @option options :default_column
1745
1788
  *
1746
- * [+:default_column+]
1747
1789
  * "column_name:hoge"ではなく"hoge"のようにcolumn_nameが指
1748
1790
  * 定されない条件の検索対象となるカラムを指定する。
1749
1791
  *
1750
- * [+:operator+]
1792
+ * @option options :operator (Groonga::Operator::OR) The operator
1793
+ *
1751
1794
  * マッチしたレコードをどのように扱うか。指定可能な値は以
1752
1795
  * 下の通り。省略した場合はGroonga::Operator::OR。
1753
1796
  *
@@ -1761,31 +1804,37 @@ rb_grn_table_is_locked (int argc, VALUE *argv, VALUE self)
1761
1804
  * [Groonga::Operator::ADJUST] マッチしたレコードのスコア
1762
1805
  * を増加。
1763
1806
  *
1764
- * [+:result+]
1807
+ * @option options :result The result
1808
+ *
1765
1809
  * 検索結果を格納するテーブル。マッチしたレコードが追加さ
1766
1810
  * れていく。省略した場合は新しくテーブルを作成して返す。
1767
1811
  *
1768
- * [+:name+]
1812
+ * @option options :name The name
1813
+ *
1769
1814
  * 条件の名前。省略した場合は名前を付けない。
1770
1815
  *
1771
- * [+:syntax+]
1772
- * _query_の構文。省略した場合は+:query+。
1816
+ * @option options :syntax The syntax
1817
+ *
1818
+ * _query_ の構文。省略した場合は +:query+ 。
1773
1819
  *
1774
1820
  * 参考: Groonga::Expression#parse.
1775
1821
  *
1776
- * [+:allow_pragma+]
1822
+ * @option options :allow_pragma The allow_pragma
1823
+ *
1777
1824
  * query構文時にプラグマを利用するかどうか。省略した場合は
1778
1825
  * 利用する。
1779
1826
  *
1780
1827
  * 参考: Groonga::Expression#parse.
1781
1828
  *
1782
- * [+:allow_column+]
1829
+ * @option options :allow_column The allow_column
1830
+ *
1783
1831
  * query構文時にカラム指定を利用するかどうか。省略した場合
1784
1832
  * は利用する。
1785
1833
  *
1786
1834
  * 参考: Groonga::Expression#parse.
1787
1835
  *
1788
- * [+:allow_update+]
1836
+ * @option options :allow_update The allow_update
1837
+ *
1789
1838
  * script構文時に更新操作を利用するかどうか。省略した場合
1790
1839
  * は利用する。
1791
1840
  *
@@ -1902,8 +1951,8 @@ rb_grn_table_set_operation_bang (VALUE self, VALUE rb_other,
1902
1951
  * call-seq:
1903
1952
  * table.union!(other) -> Groonga::Table
1904
1953
  *
1905
- * キーを比較し、_table_には登録されていない_other_のレコー
1906
- * ドを_table_に作成する。
1954
+ * キーを比較し、 _table_ には登録されていない _other_ のレコー
1955
+ * ドを _table_ に作成する。
1907
1956
  *
1908
1957
  */
1909
1958
  static VALUE
@@ -1917,8 +1966,8 @@ rb_grn_table_union_bang (VALUE self, VALUE rb_other)
1917
1966
  * call-seq:
1918
1967
  * table.intersection!(other) -> Groonga::Table
1919
1968
  *
1920
- * キーを比較し、_other_には登録されていないレコードを
1921
- * _table_から削除する。
1969
+ * キーを比較し、 _other_ には登録されていないレコードを
1970
+ * _table_ から削除する。
1922
1971
  *
1923
1972
  */
1924
1973
  static VALUE
@@ -1931,7 +1980,7 @@ rb_grn_table_intersection_bang (VALUE self, VALUE rb_other)
1931
1980
  * call-seq:
1932
1981
  * table.difference!(other) -> Groonga::Table
1933
1982
  *
1934
- * キーを比較し、_other_にも登録されているレコードを_table_
1983
+ * キーを比較し、 _other_ にも登録されているレコードを _table_
1935
1984
  * から削除する。
1936
1985
  *
1937
1986
  */
@@ -1945,8 +1994,8 @@ rb_grn_table_difference_bang (VALUE self, VALUE rb_other)
1945
1994
  * call-seq:
1946
1995
  * table.merge!(other) -> Groonga::Table
1947
1996
  *
1948
- * キーを比較し、_other_にも登録されている_table_のレコード
1949
- * のスコアを_other_のスコアと同値にする。
1997
+ * キーを比較し、 _other_ にも登録されている _table_ のレコード
1998
+ * のスコアを _other_ のスコアと同値にする。
1950
1999
  *
1951
2000
  */
1952
2001
  static VALUE
@@ -1959,8 +2008,8 @@ rb_grn_table_merge_bang (VALUE self, VALUE rb_other)
1959
2008
  * call-seq:
1960
2009
  * table.support_key? -> true/false
1961
2010
  *
1962
- * _table_に主キーが設定されていれば+true+、されていなければ
1963
- * +false+を返す。
2011
+ * _table_ に主キーが設定されていれば +true+ 、されていなければ
2012
+ * +false+ を返す。
1964
2013
  */
1965
2014
  static VALUE
1966
2015
  rb_grn_table_support_key_p (VALUE self)
@@ -1973,7 +2022,7 @@ rb_grn_table_support_key_p (VALUE self)
1973
2022
  * table.support_sub_records? -> true/false
1974
2023
  *
1975
2024
  * グループ化したとき、テーブルにグループに含まれるレコード
1976
- * 数を格納できる場合は+true+、格納できない場合は+false+を返
2025
+ * 数を格納できる場合は +true+ 、格納できない場合は +false+ を返
1977
2026
  * す。
1978
2027
  */
1979
2028
  static VALUE
@@ -1992,8 +2041,8 @@ rb_grn_table_support_sub_records_p (VALUE self)
1992
2041
  * call-seq:
1993
2042
  * table.exist?(id) -> true/false
1994
2043
  *
1995
- * _table_に_id_で指定したIDのレコードが存在する場合は+true+、
1996
- * 存在しない場合は+false+を返す。
2044
+ * _table_ _id_ で指定したIDのレコードが存在する場合は +true+ 、
2045
+ * 存在しない場合は +false+ を返す。
1997
2046
  *
1998
2047
  * 注意: 実行には相応のコストがかかるのであまり頻繁に呼ばな
1999
2048
  * いようにして下さい。
@@ -2011,6 +2060,83 @@ rb_grn_table_exist_p (VALUE self, VALUE id)
2011
2060
  return CBOOL2RVAL(grn_table_at(context, table, NUM2UINT(id)));
2012
2061
  }
2013
2062
 
2063
+ /*
2064
+ * Document-method: defrag
2065
+ *
2066
+ * call-seq:
2067
+ * table.defrag(options={}) -> n_segments
2068
+ *
2069
+ * Defrags all variable size columns in the table.
2070
+ *
2071
+ * @return [Integer] the number of defraged segments
2072
+ * @option options [Integer] :threshold (0) the threshold to
2073
+ * determine whether a segment is defraged. Available
2074
+ * values are -4..22. -4 means all segments are defraged.
2075
+ * 22 means no segment is defraged.
2076
+ * @since 1.3.0
2077
+ */
2078
+ static VALUE
2079
+ rb_grn_table_defrag (int argc, VALUE *argv, VALUE self)
2080
+ {
2081
+ grn_ctx *context;
2082
+ grn_obj *table;
2083
+ int n_segments;
2084
+ VALUE options, rb_threshold;
2085
+ int threshold = 0;
2086
+
2087
+ rb_scan_args(argc, argv, "01", &options);
2088
+ rb_grn_scan_options(options,
2089
+ "threshold", &rb_threshold,
2090
+ NULL);
2091
+ if (!NIL_P(rb_threshold)) {
2092
+ threshold = NUM2INT(rb_threshold);
2093
+ }
2094
+
2095
+ rb_grn_table_deconstruct(SELF(self), &table, &context,
2096
+ NULL, NULL, NULL,
2097
+ NULL, NULL,
2098
+ NULL);
2099
+ n_segments = grn_obj_defrag(context, table, threshold);
2100
+ rb_grn_context_check(context, self);
2101
+
2102
+ return INT2NUM(n_segments);
2103
+ }
2104
+
2105
+ /*
2106
+ * Document-method: rename
2107
+ *
2108
+ * call-seq:
2109
+ * table.rename(name)
2110
+ *
2111
+ * Renames the table to name.
2112
+ *
2113
+ * @param name [String] the new name
2114
+ * @since 1.3.0
2115
+ */
2116
+ static VALUE
2117
+ rb_grn_table_rename (VALUE self, VALUE rb_name)
2118
+ {
2119
+ int rc;
2120
+ grn_ctx *context;
2121
+ grn_obj *table;
2122
+ char *name;
2123
+ int name_size;
2124
+
2125
+ rb_grn_table_deconstruct(SELF(self), &table, &context,
2126
+ NULL, NULL, NULL,
2127
+ NULL, NULL,
2128
+ NULL);
2129
+
2130
+ name = StringValueCStr(rb_name);
2131
+ name_size = RSTRING_LEN(rb_name);
2132
+
2133
+ rc = grn_table_rename(context, table, name, name_size);
2134
+ rb_grn_context_check(context, self);
2135
+ rb_grn_rc_check(rc, self);
2136
+
2137
+ return self;
2138
+ }
2139
+
2014
2140
  void
2015
2141
  rb_grn_init_table (VALUE mGrn)
2016
2142
  {
@@ -2085,9 +2211,14 @@ rb_grn_init_table (VALUE mGrn)
2085
2211
 
2086
2212
  rb_define_method(rb_cGrnTable, "exist?", rb_grn_table_exist_p, 1);
2087
2213
 
2214
+ rb_define_method(rb_cGrnTable, "defrag", rb_grn_table_defrag, -1);
2215
+
2216
+ rb_define_method(rb_cGrnTable, "rename", rb_grn_table_rename, 1);
2217
+
2088
2218
  rb_grn_init_table_key_support(mGrn);
2089
2219
  rb_grn_init_array(mGrn);
2090
2220
  rb_grn_init_hash(mGrn);
2091
2221
  rb_grn_init_patricia_trie(mGrn);
2222
+ rb_grn_init_double_array_trie(mGrn);
2092
2223
  rb_grn_init_view(mGrn);
2093
2224
  }