rroonga 1.2.5-x86-mingw32 → 1.2.7-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (300) hide show
  1. data/Gemfile +30 -0
  2. data/Rakefile +24 -285
  3. data/ext/groonga/extconf.rb +4 -2
  4. data/ext/groonga/rb-grn-array.c +5 -4
  5. data/ext/groonga/rb-grn-context.c +7 -22
  6. data/ext/groonga/rb-grn-database.c +42 -1
  7. data/ext/groonga/rb-grn-index-column.c +5 -0
  8. data/ext/groonga/rb-grn-object.c +58 -26
  9. data/ext/groonga/rb-grn-patricia-trie.c +2 -1
  10. data/ext/groonga/rb-grn-record.c +11 -1
  11. data/ext/groonga/rb-grn-snippet.c +44 -1
  12. data/ext/groonga/rb-grn-table-key-support.c +21 -10
  13. data/ext/groonga/rb-grn-utils.c +3 -1
  14. data/ext/groonga/rb-grn-variable-size-column.c +47 -1
  15. data/ext/groonga/rb-grn.h +4 -1
  16. data/extconf.rb +1 -0
  17. data/lib/1.8/groonga.so +0 -0
  18. data/lib/1.9/groonga.so +0 -0
  19. data/lib/groonga/dumper.rb +3 -3
  20. data/lib/groonga/pagination.rb +1 -1
  21. data/lib/groonga/record.rb +10 -0
  22. data/rroonga-build.rb +1 -1
  23. data/test/test-accessor.rb +4 -0
  24. data/test/test-array.rb +9 -1
  25. data/test/test-database.rb +16 -0
  26. data/test/test-expression.rb +2 -0
  27. data/test/test-hash.rb +11 -2
  28. data/test/test-patricia-trie.rb +10 -1
  29. data/test/test-table-select.rb +31 -17
  30. data/test/test-type.rb +3 -3
  31. data/test/test-variable-size-column.rb +8 -1
  32. data/vendor/local/bin/grntest.exe +0 -0
  33. data/vendor/local/bin/groonga.exe +0 -0
  34. data/vendor/local/bin/libgroonga-0.dll +0 -0
  35. data/vendor/local/bin/libmecab-1.dll +0 -0
  36. data/vendor/local/bin/mecab-config +2 -2
  37. data/vendor/local/bin/mecab.exe +0 -0
  38. data/vendor/local/include/groonga/groonga.h +20 -4
  39. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  40. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  41. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  42. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
  43. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  44. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  45. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  46. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
  47. data/vendor/local/lib/libgroonga.a +0 -0
  48. data/vendor/local/lib/libgroonga.dll.a +0 -0
  49. data/vendor/local/lib/libgroonga.la +2 -2
  50. data/vendor/local/lib/libmecab.a +0 -0
  51. data/vendor/local/lib/libmecab.dll.a +0 -0
  52. data/vendor/local/lib/libmecab.la +1 -1
  53. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  54. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  55. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  56. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  57. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  58. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  59. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  60. data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +207 -35
  61. data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +1 -1
  62. data/vendor/local/share/doc/groonga/en/html/_sources/executables/{http.txt → groonga-http.txt} +1 -1
  63. data/vendor/local/share/doc/groonga/en/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
  64. data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
  65. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +14 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/log.txt +214 -0
  67. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
  68. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +35 -3
  69. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +195 -0
  70. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/correction.txt +148 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +94 -0
  72. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/suggestion.txt +115 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/suggest/tutorial.txt +8 -0
  74. data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +22 -0
  75. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +2 -1
  76. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +1 -0
  77. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  78. data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
  79. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
  80. data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
  81. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
  82. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
  83. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
  84. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
  85. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
  86. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
  87. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
  88. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
  89. data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
  90. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
  91. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
  92. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
  93. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
  94. data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
  95. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
  96. data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
  97. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +258 -72
  98. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
  99. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
  100. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
  101. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
  102. data/vendor/local/share/doc/groonga/en/html/commands.html +42 -42
  103. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  104. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  105. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
  106. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  107. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  108. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
  109. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  110. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
  111. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
  112. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
  113. data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
  114. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
  115. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +49 -49
  116. data/vendor/local/share/doc/groonga/en/html/executables/{http.html → groonga-http.html} +34 -34
  117. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +186 -0
  118. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +37 -37
  119. data/vendor/local/share/doc/groonga/en/html/executables.html +22 -21
  120. data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
  121. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
  122. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
  123. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
  124. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
  126. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
  127. data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
  128. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/index.html +105 -74
  130. data/vendor/local/share/doc/groonga/en/html/install.html +22 -11
  131. data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
  132. data/vendor/local/share/doc/groonga/en/html/log.html +345 -0
  133. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +6 -6
  135. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/news.html +94 -57
  137. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  138. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
  139. data/vendor/local/share/doc/groonga/en/html/reference.html +69 -68
  140. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  142. data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
  143. data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
  144. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +357 -0
  145. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +286 -0
  146. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +243 -0
  147. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +265 -0
  148. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +134 -0
  149. data/vendor/local/share/doc/groonga/en/html/suggest.html +166 -0
  150. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
  151. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
  152. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +6 -6
  153. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial03.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial04.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial05.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial06.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial07.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial08.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial09.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial10.html +10 -10
  162. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
  164. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  165. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +207 -35
  166. data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +1 -1
  167. data/vendor/local/share/doc/groonga/{source/executables/http.txt → ja/html/_sources/executables/groonga-http.txt} +1 -1
  168. data/vendor/local/share/doc/groonga/ja/html/_sources/executables/groonga-suggest-create-dataset.txt +50 -0
  169. data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
  170. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +14 -3
  171. data/vendor/local/share/doc/groonga/ja/html/_sources/log.txt +214 -0
  172. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
  173. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +35 -3
  174. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +195 -0
  175. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/correction.txt +148 -0
  176. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +94 -0
  177. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/suggestion.txt +115 -0
  178. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/tutorial.txt +8 -0
  179. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +22 -0
  180. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +2 -1
  181. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +1 -0
  182. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  183. data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
  184. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
  185. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
  186. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
  187. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
  188. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
  189. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
  190. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
  191. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
  192. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
  193. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
  194. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
  195. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
  196. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
  197. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
  198. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
  199. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
  200. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
  201. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
  202. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +237 -72
  203. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
  204. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
  205. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
  206. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
  207. data/vendor/local/share/doc/groonga/ja/html/commands.html +42 -42
  208. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  209. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  210. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
  211. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  212. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  213. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
  214. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  215. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
  216. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
  217. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
  218. data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
  219. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
  220. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +49 -49
  221. data/vendor/local/share/doc/groonga/ja/html/executables/{http.html → groonga-http.html} +34 -34
  222. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +187 -0
  223. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +37 -37
  224. data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -21
  225. data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
  226. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
  227. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
  228. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
  229. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
  230. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
  231. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
  232. data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
  233. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  234. data/vendor/local/share/doc/groonga/ja/html/index.html +105 -74
  235. data/vendor/local/share/doc/groonga/ja/html/install.html +24 -11
  236. data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
  237. data/vendor/local/share/doc/groonga/ja/html/log.html +346 -0
  238. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  239. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +6 -6
  240. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  241. data/vendor/local/share/doc/groonga/ja/html/news.html +87 -55
  242. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  243. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
  244. data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -68
  245. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  246. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  247. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
  248. data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
  249. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +327 -0
  250. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +254 -0
  251. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +225 -0
  252. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +248 -0
  253. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +135 -0
  254. data/vendor/local/share/doc/groonga/ja/html/suggest.html +166 -0
  255. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
  256. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
  257. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial01.html +6 -6
  258. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial02.html +5 -5
  259. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial03.html +5 -5
  260. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial04.html +5 -5
  261. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial05.html +5 -5
  262. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial06.html +5 -5
  263. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial07.html +5 -5
  264. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial08.html +5 -5
  265. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial09.html +5 -5
  266. data/vendor/local/share/doc/groonga/ja/html/tutorial/tutorial10.html +10 -10
  267. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  268. data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
  269. data/vendor/local/share/doc/groonga/source/commands/suggest.txt +207 -35
  270. data/vendor/local/share/doc/groonga/source/example/completion-1.log +5 -0
  271. data/vendor/local/share/doc/groonga/source/example/correction-1.log +5 -0
  272. data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +5 -0
  273. data/vendor/local/share/doc/groonga/source/executables/grntest.txt +1 -1
  274. data/vendor/local/share/doc/groonga/{ja/html/_sources/executables/http.txt → source/executables/groonga-http.txt} +1 -1
  275. data/vendor/local/share/doc/groonga/source/executables/groonga-suggest-create-dataset.txt +50 -0
  276. data/vendor/local/share/doc/groonga/source/index.txt +1 -0
  277. data/vendor/local/share/doc/groonga/source/install.txt +14 -3
  278. data/vendor/local/share/doc/groonga/source/log.txt +214 -0
  279. data/vendor/local/share/doc/groonga/source/news/1.0.x.txt +1 -1
  280. data/vendor/local/share/doc/groonga/source/news.txt +35 -3
  281. data/vendor/local/share/doc/groonga/source/suggest/completion.txt +195 -0
  282. data/vendor/local/share/doc/groonga/source/suggest/correction.txt +148 -0
  283. data/vendor/local/share/doc/groonga/source/suggest/introduction.txt +94 -0
  284. data/vendor/local/share/doc/groonga/source/suggest/suggestion.txt +115 -0
  285. data/vendor/local/share/doc/groonga/source/suggest/tutorial.txt +8 -0
  286. data/vendor/local/share/doc/groonga/source/suggest.txt +22 -0
  287. data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +2 -1
  288. data/vendor/local/share/doc/groonga/source/update_execution_example.py +46 -20
  289. data/vendor/local/share/license/groonga/AUTHORS +17 -0
  290. data/vendor/local/share/license/groonga/COPYING +504 -0
  291. data/vendor/local/share/license/mecab/AUTHORS +1 -0
  292. data/vendor/local/share/license/mecab/BSD +29 -0
  293. data/vendor/local/share/license/mecab/COPYING +4 -0
  294. data/vendor/local/share/license/mecab/GPL +340 -0
  295. data/vendor/local/share/license/mecab/LGPL +504 -0
  296. data/vendor/local/share/license/naist-jdic/AUTHORS +2 -0
  297. data/vendor/local/share/license/naist-jdic/COPYING +31 -0
  298. data/vendor/local/share/man/ja/man1/groonga.1 +1050 -45
  299. data/vendor/local/share/man/man1/groonga.1 +1174 -48
  300. metadata +62 -9
@@ -0,0 +1,50 @@
1
+ .. -*- rst -*-
2
+
3
+ .. highlightlang:: none
4
+
5
+ groonga-suggest-create-dataset
6
+ ==============================
7
+
8
+ NAME
9
+ ----
10
+
11
+ groonga-suggest-create-dataset - Defines schema for a suggestion dataset
12
+
13
+ SYNOPSTIS
14
+ ---------
15
+
16
+ ::
17
+
18
+ groonga-suggest-create-dataset [options] DATABASE DATASET
19
+
20
+ DESCTIPION
21
+ ----------
22
+
23
+ groonga-suggest-create-dataset creates a dataset for :doc:`/suggest`. A database has many datasets. This command just defines schea for a suggestion dataset.
24
+
25
+ OPTIONS
26
+ -------
27
+
28
+ None.
29
+
30
+ EXIT STATUS
31
+ -----------
32
+
33
+ TODO
34
+
35
+ FILES
36
+ -----
37
+
38
+ TODO
39
+
40
+ EXAMPLE
41
+ -------
42
+
43
+ TODO
44
+
45
+ SEE ALSO
46
+ --------
47
+
48
+ :doc:`/suggest`
49
+ .. : doc:`groonga-suggest-httpd`
50
+ .. : doc:`groonga-suggest-learner`
@@ -18,6 +18,7 @@ groonga ドキュメント
18
18
  install
19
19
  community
20
20
  tutorial
21
+ suggest
21
22
  reference
22
23
  spec
23
24
  limitations
@@ -151,8 +151,19 @@ Install::
151
151
 
152
152
  % brew install groonga
153
153
 
154
- Windows
155
- -------
154
+ Windows (Installer)
155
+ -------------------
156
+
157
+ .. note::
158
+
159
+ We only distribute the package for x64.
160
+
161
+ You just download installer (.exe file) from
162
+ `packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
163
+ and execute it.
164
+
165
+ Windows (zip)
166
+ -------------
156
167
 
157
168
  .. note::
158
169
 
@@ -160,7 +171,7 @@ Windows
160
171
 
161
172
  You just download zip-file from
162
173
  `packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
163
- and extract it. We doesn't distribute installer for now. Sorry.
174
+ and extract it.
164
175
 
165
176
  Others
166
177
  ------
@@ -0,0 +1,214 @@
1
+ .. -*- rst -*-
2
+
3
+ .. highlightlang:: none
4
+
5
+ Log
6
+ ===
7
+
8
+ Groonga has two log files. They are process log and query
9
+ log. Process log is for all of :doc:`executables/groonga`
10
+ works. Query log is just for query processing.
11
+
12
+ Process log
13
+ -----------
14
+
15
+ Process log is enabled by default. Log path can be
16
+ customized by :option:`--log-path` option. Each log has its
17
+ log level. If a log is smaller than groonga process' log
18
+ level, it's not logged. Log level can be customized by
19
+ :option:`-l` or :doc:`commands/log_level`.
20
+
21
+ Format
22
+ ^^^^^^
23
+
24
+ Process log uses the following format::
25
+
26
+ #{TIME_STAMP}|#{L}| #{MESSAGE}
27
+
28
+ TIME_STAMP
29
+ It's time stamp uses the following format::
30
+
31
+ YYYY-MM-DD hh:mm:ss.SSSSSS
32
+
33
+ YYYY
34
+ Year with four digits.
35
+
36
+ MM
37
+ Month with two digits.
38
+
39
+ DD
40
+ Day with two digits.
41
+
42
+ hh
43
+ Hour with two digits.
44
+
45
+ mm
46
+ Minute with two digits.
47
+
48
+ ss
49
+ Second with two digits.
50
+
51
+ SSSSSS
52
+ Microsecond with six digits.
53
+
54
+ Example::
55
+
56
+ 2011-07-05 06:25:18.345734
57
+
58
+ L
59
+ Log level with a character. Here is a character and log
60
+ level map.
61
+
62
+ E
63
+ Emergency
64
+
65
+ A
66
+ Alert
67
+
68
+ C
69
+ Critical
70
+
71
+ e
72
+ Error
73
+
74
+ w
75
+ Warning
76
+
77
+ n
78
+ Notification
79
+
80
+ i
81
+ Information
82
+
83
+ d
84
+ Debug
85
+
86
+ \-
87
+ Dump
88
+
89
+ Example::
90
+
91
+ E
92
+
93
+ MESSAGE
94
+ Details about the log with free format.
95
+
96
+ Example::
97
+
98
+ log opened.
99
+
100
+ Example::
101
+
102
+ 2011-07-05 08:35:09.276421|n| grn_init
103
+ 2011-07-05 08:35:09.276553|n| RLIMIT_NOFILE(4096,4096)
104
+
105
+ Query log
106
+ ---------
107
+
108
+ Query log is disabled by default. It can be enabled by
109
+ :option:`--query-log-path` option.
110
+
111
+ Format
112
+ ^^^^^^
113
+
114
+ Query log uses the following formats::
115
+
116
+ #{TIME_STAMP}|#{MESSAGE}
117
+ #{TIME_STAMP}|#{ID}|>#{QUERY}
118
+ #{TIME_STAMP}|#{ID}|:#{ELAPSED_TIME} #{PROGRESS}
119
+ #{TIME_STAMP}|#{ID}|<#{ELAPSED_TIME} #{RETURN_CODE}
120
+
121
+ TIME_STAMP
122
+ It's time stamp uses the following format::
123
+
124
+ YYYY-MM-DD hh:mm:ss.SSSSSS
125
+
126
+ YYYY
127
+ Year with four digits.
128
+
129
+ MM
130
+ Month with two digits.
131
+
132
+ DD
133
+ Day with two digits.
134
+
135
+ hh
136
+ Hour with two digits.
137
+
138
+ mm
139
+ Minute with two digits.
140
+
141
+ ss
142
+ Second with two digits.
143
+
144
+ SSSSSS
145
+ Microsecond with six digits.
146
+
147
+ Example::
148
+
149
+ 2011-07-05 06:25:18.345734
150
+
151
+ ID
152
+ ID of a thread. Groonga process creates threads to process
153
+ requests concurrently. Each thread outputs some logs for a
154
+ request. This ID can be used to extract a log sequence by
155
+ a thread.
156
+
157
+ Example::
158
+
159
+ 45ea3034
160
+
161
+ >
162
+ A character that indicates query is started.
163
+
164
+ :
165
+ A character that indicates query is processing.
166
+
167
+ <
168
+ A character that indicates query is finished.
169
+
170
+ MESSAGE
171
+ Details about the log with free format.
172
+
173
+ Example::
174
+
175
+ query log opened.
176
+
177
+ QUERY
178
+ A query to be processed.
179
+
180
+ Example::
181
+
182
+ select users --match_columns hobby --query music
183
+
184
+ ELAPSED_TIME
185
+ Elapsed time in nanoseconds since query is started.
186
+
187
+ Example::
188
+
189
+ 000000000075770
190
+ (It means 75,770 nanoseconds.)
191
+
192
+ PROGRESS
193
+ A processed work at the time.
194
+
195
+ Example::
196
+
197
+ select(313401)
198
+ (It means that 'select' is processed and 313,401 records are remained.)
199
+
200
+ RETURN_CODE
201
+ A return code for the query.
202
+
203
+ Example::
204
+
205
+ rc=0
206
+ (It means return code is 0. 0 means GRN_SUCCESS.)
207
+
208
+ Example::
209
+
210
+ 2011-07-05 06:25:19.458756|45ea3034|>select Properties --limit 0
211
+ 2011-07-05 06:25:19.458829|45ea3034|:000000000072779 select(19)
212
+ 2011-07-05 06:25:19.458856|45ea3034|:000000000099998 output(0)
213
+ 2011-07-05 06:25:19.458875|45ea3034|<000000000119062 rc=0
214
+ 2011-07-05 06:25:19.458986|45ea3034|>quit
@@ -117,7 +117,7 @@
117
117
  * すべてのモジュールで同じ名前の関数をエクスポートするようにした。#624
118
118
  * 不正な名前を指定したときに指定された名前も報告するようにした。
119
119
  * :doc:`/commands/select` の--filter内での数値比較演算をサポート。 (@s3kiさんが報告)
120
- * :doc:`/grntest` の一行あたりの最大バイト数の制限を撤廃。 #608, #690
120
+ * :doc:`/executables/grntest` の一行あたりの最大バイト数の制限を撤廃。 #608, #690
121
121
  * Int8/UInt8/Int16/UInt16の等値比較にC言語の比較演算子を使用。 #660
122
122
  * HTTP経由で存在しないパスにアクセスした時に存在しないパスを報告するように
123
123
  した。
@@ -5,6 +5,38 @@
5
5
  News
6
6
  ====
7
7
 
8
+ .. _release-1-2-5:
9
+
10
+ Release 1.2.5 - 2011/08/29
11
+ --------------------------
12
+
13
+ Improvements
14
+ ^^^^^^^^^^^^
15
+
16
+ * Added experimental Windows installer support.
17
+ * Accepted "#" and "-" as a valid name characters. #1043
18
+ * Accepted all valid characters except "_" as the first character. #1043
19
+ * Supported `--each` for `[...]` form :doc:`/commands/load`. #1044
20
+ * Added documentation for :doc:`/suggest`.
21
+ * Supported threshold as `--frequency_threshold` and
22
+ `--conditional_probability_threshold` options in all
23
+ :doc:`/commands/suggest` types. #1042
24
+ * [groonga-suggest-httpd] Supported log reopen by SIGUSR1. #1048
25
+ * Supported string input for reference vector column value. #1051
26
+ * [groonga-suggest-httpd] Added `--n-lines-per-log-file`
27
+ option that changes log line limitation for a file.
28
+ * [groonga-suggest-httpd] Added `p` parameter for
29
+ `--conditional_probability_threshold`.
30
+ * Added GRN_CTX_PER_DB flag for grn_ctx_init() and grn_ctx_open(). #1053
31
+ * Exported grn_ctx_close(). #1035
32
+
33
+ Fixes
34
+ ^^^^^
35
+
36
+ * Fixed a crash bug that invalid value is passed as match expression
37
+ argument in :doc:`/commands/select`. #1047
38
+ * Fixed a bug that hash table cursor returns garbage records.
39
+
8
40
  .. _release-1-2-4:
9
41
 
10
42
  Release 1.2.4 - 2011/07/29
@@ -16,8 +48,8 @@ Improvements
16
48
  * Re-supported *BSD. (Reported by OBATA Akio)
17
49
  * Improved sed related portability. (Suggested by OBATA Akio)
18
50
  * Re-supported Visual C++ 2008.
19
- * Supported :doc:`commands/check` for hash table.
20
- * Ignored invalid _score in --sortby of :doc:`commands/select`
51
+ * Supported :doc:`/commands/check` for hash table.
52
+ * Ignored invalid _score in --sortby of :doc:`/commands/select`
21
53
  for convenience. #1030
22
54
  * Added document about :doc:`log`.
23
55
  * Supported ~/.editrc.
@@ -52,7 +84,7 @@ Improvements
52
84
  * Added groonga-query-log-analyzer that analyze query log.
53
85
  * groonga command shows failed command on error.
54
86
  * groonga command shows file name and line no on error.
55
- * Improved error message of :doc:`commands/column_create`. #952
87
+ * Improved error message of :doc:`/commands/column_create`. #952
56
88
  * Added GRN_OBJ_TABLE_DAT_KEY, double array trie, table. (experimental)
57
89
 
58
90
  Fixes
@@ -0,0 +1,195 @@
1
+ .. -*- rst -*-
2
+
3
+ .. highlightlang:: none
4
+
5
+ .. groonga-command
6
+ .. % groonga-suggest-create-dataset /tmp/groonga-databases/completion query
7
+ .. database: completion
8
+
9
+ Completion
10
+ ==========
11
+
12
+ This section describes about the following completion
13
+ features:
14
+
15
+ * How it works
16
+ * How to use
17
+ * How to learn
18
+
19
+ How it works
20
+ ------------
21
+
22
+ The completion feature uses three searches to compute
23
+ completed words:
24
+
25
+ 1. Prefix RK search against registered words.
26
+ 2. Cooccurrence search against learned data.
27
+ 3. Prefix search against registered words. (optional)
28
+
29
+ Prefix RK search
30
+ ^^^^^^^^^^^^^^^^
31
+
32
+ RK means Romaji and Katakana. Prefix RK search can find
33
+ registered words that start with user's input by romaji,
34
+ katakana or hiragana. It's useful for searching in Japanese.
35
+
36
+ For example, there is a registered word "日本". And "ニホン"
37
+ (it must be katakana) is registered as its reading. An user
38
+ can find "日本" by "ni", "二" or "に".
39
+
40
+ Cooccurrence search
41
+ ^^^^^^^^^^^^^^^^^^^
42
+
43
+ Cooccurrence search can find registered words from user's
44
+ partial input. It uses user input sequences that will be
45
+ learned from query logs, access logs and so on.
46
+
47
+ For example, there is the following user input sequence:
48
+
49
+ +----------+----------+
50
+ | input | submit |
51
+ +==========+==========+
52
+ |s |no |
53
+ +----------+----------+
54
+ |se |no |
55
+ +----------+----------+
56
+ |sea |no |
57
+ +----------+----------+
58
+ |sear |no |
59
+ +----------+----------+
60
+ |searc |no |
61
+ +----------+----------+
62
+ |search |yes |
63
+ +----------+----------+
64
+ |e |no |
65
+ +----------+----------+
66
+ |en |no |
67
+ +----------+----------+
68
+ |eng |no |
69
+ +----------+----------+
70
+ |engi |no |
71
+ +----------+----------+
72
+ |engin |no |
73
+ +----------+----------+
74
+ |engine |no |
75
+ +----------+----------+
76
+ |enginen |no (typo!)|
77
+ +----------+----------+
78
+ |engine |yes |
79
+ +----------+----------+
80
+
81
+ Groonga creates the following completion pairs:
82
+
83
+ +----------+--------------------+
84
+ | input | completed word |
85
+ +==========+====================+
86
+ |s |search |
87
+ +----------+--------------------+
88
+ |se |search |
89
+ +----------+--------------------+
90
+ |sea |search |
91
+ +----------+--------------------+
92
+ |sear |search |
93
+ +----------+--------------------+
94
+ |searc |search |
95
+ +----------+--------------------+
96
+ |e |engine |
97
+ +----------+--------------------+
98
+ |en |engine |
99
+ +----------+--------------------+
100
+ |eng |engine |
101
+ +----------+--------------------+
102
+ |engi |engine |
103
+ +----------+--------------------+
104
+ |engin |engine |
105
+ +----------+--------------------+
106
+ |engine |engine |
107
+ +----------+--------------------+
108
+ |enginen |engine |
109
+ +----------+--------------------+
110
+
111
+ All user not-submitted inputs (e.g. "s", "se" and so on)
112
+ before each an user submission maps to the submitted input
113
+ (e.g. "search").
114
+
115
+ To be precise, this description isn't correct because it
116
+ omits about time stamp. Groonga doesn't case about "all user
117
+ not-submitted inputs before each an user
118
+ submission". Groonga just case about "all user not-submitted
119
+ inputs within a minute from an user submission before each
120
+ an user submission". Groonga doesn't treat user inputs
121
+ before a minute ago.
122
+
123
+ If an user inputs "sea" and cooccurrence search returns
124
+ "search" because "sea" is in input column and corresponding
125
+ completed word column value is "search".
126
+
127
+ Prefix search
128
+ ^^^^^^^^^^^^^
129
+
130
+ Prefix search can find registered word that start with
131
+ user's input. This search doesn't care about romaji,
132
+ katakana and hiragana not like Prefix RK search.
133
+
134
+ This search isn't always ran. It's just ran when it's
135
+ requested explicitly or both prefix RK search and
136
+ cooccurrence search return nothing.
137
+
138
+ For example, there is a registered word "search". An user
139
+ can find "search" by "s", "se", "sea", "sear", "searc" and
140
+ "search".
141
+
142
+ How to use
143
+ ----------
144
+
145
+ .. groonga-command
146
+ .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
147
+ .. [
148
+ .. {"sequence": "1", "time": 1312950803.86057, "item": "e"},
149
+ .. {"sequence": "1", "time": 1312950803.96857, "item": "en"},
150
+ .. {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
151
+ .. {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
152
+ .. {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
153
+ .. {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
154
+ .. ]
155
+
156
+ Groonga provides :doc:`/commands/suggest` command to use
157
+ completion. `--type complete` option requests completion.
158
+
159
+ For example, here is an command to get completion results by
160
+ "en":
161
+
162
+ .. groonga-command
163
+ .. include:: ../example/completion-1.log
164
+ .. suggest --table item_query --column kana --types complete --frequency_threshold 1 --query en
165
+
166
+ How it learns
167
+ -------------
168
+
169
+ Cooccurrence search uses learned data. They are based on
170
+ query logs, access logs and so on. To create learned data,
171
+ groonga needs user input sequence with time stamp and user
172
+ submit input with time stamp.
173
+
174
+ For example, an user wants to search by "engine". The user
175
+ inputs the query with the following sequence:
176
+
177
+ 1. 2011-08-10T13:33:23+09:00: e
178
+ 2. 2011-08-10T13:33:23+09:00: en
179
+ 3. 2011-08-10T13:33:24+09:00: eng
180
+ 4. 2011-08-10T13:33:24+09:00: engi
181
+ 5. 2011-08-10T13:33:24+09:00: engin
182
+ 6. 2011-08-10T13:33:25+09:00: engine (submit!)
183
+
184
+ Groonga can be learned from the input sequence by the
185
+ following command::
186
+
187
+ load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
188
+ [
189
+ {"sequence": "1", "time": 1312950803.86057, "item": "e"},
190
+ {"sequence": "1", "time": 1312950803.96857, "item": "en"},
191
+ {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
192
+ {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
193
+ {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
194
+ {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
195
+ ]