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
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.9. 全文検索の語彙表に対する追加情報 &mdash; groonga v1.2.4ドキュメント</title>
12
+ <title>4.9. 全文検索の語彙表に対する追加情報 &mdash; groonga v1.2.5ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '1.2.4',
20
+ VERSION: '1.2.5',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,7 +28,7 @@
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="../_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.4ドキュメント" href="../index.html" />
31
+ <link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
32
32
  <link rel="up" title="4. チュートリアル" href="../tutorial.html" />
33
33
  <link rel="next" title="4.10. マイクロブログ検索システムの作成" href="tutorial10.html" />
34
34
  <link rel="prev" title="4.8. 主キーによる前方一致検索" href="tutorial08.html" />
@@ -63,7 +63,7 @@
63
63
  <li class="right" >
64
64
  <a href="tutorial08.html" title="4.8. 主キーによる前方一致検索"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li><a href="../index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
66
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
67
67
  <li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> &raquo;</li>
68
68
  </ul>
69
69
  </div>
@@ -125,7 +125,7 @@
125
125
  <li class="right" >
126
126
  <a href="tutorial08.html" title="4.8. 主キーによる前方一致検索"
127
127
  >前へ</a> |</li>
128
- <li><a href="../index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
128
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
129
129
  <li><a href="../tutorial.html" >4. チュートリアル</a> &raquo;</li>
130
130
  </ul>
131
131
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.10. マイクロブログ検索システムの作成 &mdash; groonga v1.2.4ドキュメント</title>
12
+ <title>4.10. マイクロブログ検索システムの作成 &mdash; groonga v1.2.5ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '1.2.4',
20
+ VERSION: '1.2.5',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,9 +28,9 @@
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="../_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.4ドキュメント" href="../index.html" />
31
+ <link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
32
32
  <link rel="up" title="4. チュートリアル" href="../tutorial.html" />
33
- <link rel="next" title="5. リファレンスマニュアル" href="../reference.html" />
33
+ <link rel="next" title="5. サジェスト" href="../suggest.html" />
34
34
  <link rel="prev" title="4.9. 全文検索の語彙表に対する追加情報" href="tutorial09.html" />
35
35
  </head>
36
36
  <body>
@@ -58,12 +58,12 @@
58
58
  <a href="../genindex.html" title="総合索引"
59
59
  accesskey="I">索引</a></li>
60
60
  <li class="right" >
61
- <a href="../reference.html" title="5. リファレンスマニュアル"
61
+ <a href="../suggest.html" title="5. サジェスト"
62
62
  accesskey="N">次へ</a> |</li>
63
63
  <li class="right" >
64
64
  <a href="tutorial09.html" title="4.9. 全文検索の語彙表に対する追加情報"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li><a href="../index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
66
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
67
67
  <li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> &raquo;</li>
68
68
  </ul>
69
69
  </div>
@@ -433,8 +433,8 @@ load --table Comments
433
433
  <p class="topless"><a href="tutorial09.html"
434
434
  title="前の章へ">4.9. 全文検索の語彙表に対する追加情報</a></p>
435
435
  <h4>次のトピックへ</h4>
436
- <p class="topless"><a href="../reference.html"
437
- title="次の章へ">5. リファレンスマニュアル</a></p>
436
+ <p class="topless"><a href="../suggest.html"
437
+ title="次の章へ">5. サジェスト</a></p>
438
438
  <h3>このページ</h3>
439
439
  <ul class="this-page-menu">
440
440
  <li><a href="../_sources/tutorial/tutorial10.txt"
@@ -464,12 +464,12 @@ load --table Comments
464
464
  <a href="../genindex.html" title="総合索引"
465
465
  >索引</a></li>
466
466
  <li class="right" >
467
- <a href="../reference.html" title="5. リファレンスマニュアル"
467
+ <a href="../suggest.html" title="5. サジェスト"
468
468
  >次へ</a> |</li>
469
469
  <li class="right" >
470
470
  <a href="tutorial09.html" title="4.9. 全文検索の語彙表に対する追加情報"
471
471
  >前へ</a> |</li>
472
- <li><a href="../index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
472
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
473
473
  <li><a href="../tutorial.html" >4. チュートリアル</a> &raquo;</li>
474
474
  </ul>
475
475
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4. チュートリアル &mdash; groonga v1.2.4ドキュメント</title>
12
+ <title>4. チュートリアル &mdash; groonga v1.2.5ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '',
20
- VERSION: '1.2.4',
20
+ VERSION: '1.2.5',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,7 +28,7 @@
28
28
  <script type="text/javascript" src="_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.4ドキュメント" href="index.html" />
31
+ <link rel="top" title="groonga v1.2.5ドキュメント" href="index.html" />
32
32
  <link rel="next" title="4.1. 基本的な操作" href="tutorial/tutorial01.html" />
33
33
  <link rel="prev" title="3. コミュニティ" href="community.html" />
34
34
  </head>
@@ -62,7 +62,7 @@
62
62
  <li class="right" >
63
63
  <a href="community.html" title="3. コミュニティ"
64
64
  accesskey="P">前へ</a> |</li>
65
- <li><a href="index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
65
+ <li><a href="index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
66
66
  </ul>
67
67
  </div>
68
68
 
@@ -186,7 +186,7 @@
186
186
  <li class="right" >
187
187
  <a href="community.html" title="3. コミュニティ"
188
188
  >前へ</a> |</li>
189
- <li><a href="index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
189
+ <li><a href="index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
190
190
  </ul>
191
191
  </div>
192
192
  <div class="footer">
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>5.3. データ型 &mdash; groonga v1.2.4ドキュメント</title>
12
+ <title>6.3. データ型 &mdash; groonga v1.2.5ドキュメント</title>
13
13
 
14
14
  <link rel="stylesheet" href="_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '',
20
- VERSION: '1.2.4',
20
+ VERSION: '1.2.5',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -28,10 +28,10 @@
28
28
  <script type="text/javascript" src="_static/doctools.js"></script>
29
29
  <script type="text/javascript" src="_static/translations.js"></script>
30
30
  <link rel="shortcut icon" href="_static/favicon.ico"/>
31
- <link rel="top" title="groonga v1.2.4ドキュメント" href="index.html" />
32
- <link rel="up" title="5. リファレンスマニュアル" href="reference.html" />
33
- <link rel="next" title="5.4. 疑似カラム (pseudo_column)" href="pseudo_column.html" />
34
- <link rel="prev" title="5.2.24. view_add" href="commands/view_add.html" />
31
+ <link rel="top" title="groonga v1.2.5ドキュメント" href="index.html" />
32
+ <link rel="up" title="6. リファレンスマニュアル" href="reference.html" />
33
+ <link rel="next" title="6.4. 疑似カラム (pseudo_column)" href="pseudo_column.html" />
34
+ <link rel="prev" title="6.2.24. view_add" href="commands/view_add.html" />
35
35
  </head>
36
36
  <body>
37
37
  <div class="header">
@@ -58,13 +58,13 @@
58
58
  <a href="genindex.html" title="総合索引"
59
59
  accesskey="I">索引</a></li>
60
60
  <li class="right" >
61
- <a href="pseudo_column.html" title="5.4. 疑似カラム (pseudo_column)"
61
+ <a href="pseudo_column.html" title="6.4. 疑似カラム (pseudo_column)"
62
62
  accesskey="N">次へ</a> |</li>
63
63
  <li class="right" >
64
- <a href="commands/view_add.html" title="5.2.24. view_add"
64
+ <a href="commands/view_add.html" title="6.2.24. view_add"
65
65
  accesskey="P">前へ</a> |</li>
66
- <li><a href="index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
67
- <li><a href="reference.html" accesskey="U">5. リファレンスマニュアル</a> &raquo;</li>
66
+ <li><a href="index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
67
+ <li><a href="reference.html" accesskey="U">6. リファレンスマニュアル</a> &raquo;</li>
68
68
  </ul>
69
69
  </div>
70
70
 
@@ -74,13 +74,13 @@
74
74
  <div class="body">
75
75
 
76
76
  <div class="section" id="id1">
77
- <h1>5.3. データ型<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
77
+ <h1>6.3. データ型<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
78
  <div class="section" id="id2">
79
- <h2>5.3.1. 名前<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
79
+ <h2>6.3.1. 名前<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
80
80
  <p>groonga データ型</p>
81
81
  </div>
82
82
  <div class="section" id="id3">
83
- <h2>5.3.2. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
83
+ <h2>6.3.2. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
84
84
  <p>groonga は、格納するデータの型を区別します。</p>
85
85
  <p>groongaのデータベースでは、テーブルの主キーや、カラムの値はいずれも何らかの型に属します。また通常は、一つのテーブルの中の全てのレコードについて、カラムの値は共通となります。</p>
86
86
  <p>主キーの型とカラムの型には、groongaで予め定義済みの型か、ユーザが定義する型、またはユーザが定義したテーブルを指定することができます。</p>
@@ -88,7 +88,7 @@
88
88
  <p>カラムの型に他のテーブルを指定する場合は、そのカラムは、カラムの型となるテーブルの参照キーとなります。</p>
89
89
  </div>
90
90
  <div class="section" id="id4">
91
- <h2>5.3.3. 組込型<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
91
+ <h2>6.3.3. 組込型<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
92
92
  <p>以下の型が組込型としてあらかじめ定義されています。</p>
93
93
  <p><tt class="docutils literal"><span class="pre">Object</span></tt></p>
94
94
  <blockquote>
@@ -147,13 +147,13 @@
147
147
  度分秒形式であれば、x度y分z秒は(((x * 60) + y) * 60 + z) * 1000という計算式で変換した値を代入します。</div></blockquote>
148
148
  </div>
149
149
  <div class="section" id="id6">
150
- <h2>5.3.4. 型に関する制限事項<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
150
+ <h2>6.3.4. 型に関する制限事項<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
151
151
  <div class="section" id="id7">
152
- <h3>5.3.4.1. テーブルの主キーに指定できない型<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h3>
152
+ <h3>6.3.4.1. テーブルの主キーに指定できない型<a class="headerlink" href="#id7" title="このヘッドラインへのパーマリンク">¶</a></h3>
153
153
  <p>Text型とLongText型については、テーブルの主キーに指定することはできません。</p>
154
154
  </div>
155
155
  <div class="section" id="id8">
156
- <h3>5.3.4.2. ベクトルとして格納できない型<a class="headerlink" href="#id8" title="このヘッドラインへのパーマリンク">¶</a></h3>
156
+ <h3>6.3.4.2. ベクトルとして格納できない型<a class="headerlink" href="#id8" title="このヘッドラインへのパーマリンク">¶</a></h3>
157
157
  <p>groongaのカラムは、ある型のベクトルを保存することができます。しかし、ShortText, Text, LongTextの3つの型についてはベクトルとして保存することはできません。</p>
158
158
  <p>テーブル型は、ベクトルとして格納することができます。よって、ShortTextのベクトルを保存したい場合には、主キーがShortText型のテーブルを別途作成し、そのテーブルを型として利用します。</p>
159
159
  <p class="rubric">脚注</p>
@@ -175,13 +175,13 @@
175
175
  <div class="sphinxsidebarwrapper">
176
176
  <h3><a href="index.html">目次</a></h3>
177
177
  <ul>
178
- <li><a class="reference internal" href="#">5.3. データ型</a><ul>
179
- <li><a class="reference internal" href="#id2">5.3.1. 名前</a></li>
180
- <li><a class="reference internal" href="#id3">5.3.2. 説明</a></li>
181
- <li><a class="reference internal" href="#id4">5.3.3. 組込型</a></li>
182
- <li><a class="reference internal" href="#id6">5.3.4. 型に関する制限事項</a><ul>
183
- <li><a class="reference internal" href="#id7">5.3.4.1. テーブルの主キーに指定できない型</a></li>
184
- <li><a class="reference internal" href="#id8">5.3.4.2. ベクトルとして格納できない型</a></li>
178
+ <li><a class="reference internal" href="#">6.3. データ型</a><ul>
179
+ <li><a class="reference internal" href="#id2">6.3.1. 名前</a></li>
180
+ <li><a class="reference internal" href="#id3">6.3.2. 説明</a></li>
181
+ <li><a class="reference internal" href="#id4">6.3.3. 組込型</a></li>
182
+ <li><a class="reference internal" href="#id6">6.3.4. 型に関する制限事項</a><ul>
183
+ <li><a class="reference internal" href="#id7">6.3.4.1. テーブルの主キーに指定できない型</a></li>
184
+ <li><a class="reference internal" href="#id8">6.3.4.2. ベクトルとして格納できない型</a></li>
185
185
  </ul>
186
186
  </li>
187
187
  </ul>
@@ -190,10 +190,10 @@
190
190
 
191
191
  <h4>前のトピックへ</h4>
192
192
  <p class="topless"><a href="commands/view_add.html"
193
- title="前の章へ">5.2.24. view_add</a></p>
193
+ title="前の章へ">6.2.24. view_add</a></p>
194
194
  <h4>次のトピックへ</h4>
195
195
  <p class="topless"><a href="pseudo_column.html"
196
- title="次の章へ">5.4. 疑似カラム (pseudo_column)</a></p>
196
+ title="次の章へ">6.4. 疑似カラム (pseudo_column)</a></p>
197
197
  <h3>このページ</h3>
198
198
  <ul class="this-page-menu">
199
199
  <li><a href="_sources/type.txt"
@@ -223,13 +223,13 @@
223
223
  <a href="genindex.html" title="総合索引"
224
224
  >索引</a></li>
225
225
  <li class="right" >
226
- <a href="pseudo_column.html" title="5.4. 疑似カラム (pseudo_column)"
226
+ <a href="pseudo_column.html" title="6.4. 疑似カラム (pseudo_column)"
227
227
  >次へ</a> |</li>
228
228
  <li class="right" >
229
- <a href="commands/view_add.html" title="5.2.24. view_add"
229
+ <a href="commands/view_add.html" title="6.2.24. view_add"
230
230
  >前へ</a> |</li>
231
- <li><a href="index.html">groonga v1.2.4ドキュメント</a> &raquo;</li>
232
- <li><a href="reference.html" >5. リファレンスマニュアル</a> &raquo;</li>
231
+ <li><a href="index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
232
+ <li><a href="reference.html" >6. リファレンスマニュアル</a> &raquo;</li>
233
233
  </ul>
234
234
  </div>
235
235
  <div class="footer">
@@ -2,78 +2,250 @@
2
2
 
3
3
  .. highlightlang:: none
4
4
 
5
+ .. groonga-command
6
+ .. % groonga-suggest-create-dataset /tmp/groonga-databases/suggest query
7
+ .. database: suggest
8
+
5
9
  suggest
6
10
  =======
7
11
 
8
- ** 未だ仕様は確定しておりません。利用のためには特定のデータを持つテーブルが必要となります。 **
12
+ .. note::
13
+
14
+ The suggest feature specification isn't stable. The
15
+ specification may be changed.
9
16
 
10
- 名前
17
+ NAME
11
18
  ----
12
19
 
13
- suggest - 指定したクエリに対する補完・修正・提案を行う。
20
+ suggest - returns completion, correction and/or suggestion for a query.
14
21
 
15
- 書式
16
- ----
22
+ SYNOPSIS
23
+ --------
17
24
  ::
18
25
 
19
- suggest types table column query
26
+ suggest types table column query [sortby [output_columns [offset [limit [frequency_threshold [conditional_probability_threshold [prefix_search]]]]]]]
20
27
 
21
- 説明
22
- ----
28
+ DESCRIPTION
29
+ -----------
23
30
 
24
- suggestコマンドは、指定したクエリに対して補完・修正・提案を行います。
31
+ The suggest command returns completion, correction and/or
32
+ suggestion for a specified query.
25
33
 
26
- 補完とは、クエリの未入力・未変換部分を補うことです。修正とは、クエリ内のミスタイプや誤変換を修正することです。提案とは、さらなる絞込みを行うための候補となるクエリを提案することです。
34
+ See :doc:`/suggest/introduction` about completion,
35
+ correction and suggestion.
27
36
 
28
- 引数
29
- ----
37
+ OPTIONS
38
+ -------
30
39
 
31
40
  ``types``
41
+ It specifies what types are returned by the suggest
42
+ command.
43
+
44
+ Here are available types:
32
45
 
33
- 補完・修正・提案のいずれを行うかを、パイプ('|')で組み合わせたシンボル名で指定します(例: correct|suggest)
46
+ ``complete``
47
+ The suggest command does completion.
34
48
 
35
- ``complete``
49
+ ``correct``
50
+ The suggest command does correction.
36
51
 
37
- 補完を行います。
52
+ ``suggest``
53
+ The suggest command does suggestion.
38
54
 
39
- ``correct``
55
+ You can specify one or more types separated by ``|``.
56
+ Here are examples:
40
57
 
41
- 修正を行います。
58
+ It returns correction::
42
59
 
43
- ``suggest``
60
+ correct
44
61
 
45
- 提案を行います。
62
+ It returns correction and suggestion::
63
+
64
+ correct|suggest
65
+
66
+ It returns complete, correction and suggestion::
67
+
68
+ complete|correct|suggest
46
69
 
47
70
  ``table``
71
+ It specifies table name that has ``item_${DATA_SET_NAME}` format.
72
+ For example, ``item_query`` is a table name if you created
73
+ dataset by the following command::
48
74
 
49
- 基礎となるデータが格納されているテーブル名を指定します。
75
+ groonga-suggest-create-dataset /tmp/db-path query
50
76
 
51
77
  ``column``
52
-
53
- 基礎となるデータが格納されているテーブルにおいて、「ヨミガナ」が格納されているカラム名を指定します。
78
+ It specifies a column name that has furigana in
79
+ Katakana in ``table`` table.
54
80
 
55
81
  ``query``
82
+ It specifies query for completion, correction and/or
83
+ suggestion.
56
84
 
57
- 補完・修正・提案の対象となるクエリを指定します。
85
+ ``sortby``
86
+ It specifies sort key.
58
87
 
59
- 返値
60
- ----
88
+ Default:
89
+ ``-_score``
61
90
 
62
- json形式
63
- ^^^^^^^^
91
+ ``output_columns``
92
+ It specifies output columns.
64
93
 
65
- ::
94
+ Default:
95
+ ``_key,_score``
96
+
97
+ ``offset``
98
+ It specifies returned records offset.
99
+
100
+ Default:
101
+ ``0``
102
+
103
+ ``limit``
104
+ It specifies number of returned records.
105
+
106
+ Default:
107
+ ``10``
108
+
109
+ ``frequency_threshold``
110
+ It specifies threshold for item frequency. Returned records must have
111
+ ``_score`` that is greater than or equal to ``frequency_threshold``.
112
+
113
+ Default:
114
+ ``100``
115
+
116
+ ``conditional_probability_threshold``
117
+
118
+ It specifies threshold for conditional
119
+ probability. Conditional probability is used for learned
120
+ data. It is probability of query submission when ``query``
121
+ is occurred. Returned records must have conditional
122
+ probability that is greater than or equal to
123
+ ``conditional_probability_threshold``.
124
+
125
+ Default:
126
+ ``0.2``
127
+
128
+ ``prefix_search``
129
+ It specifies whether optional prefix search is used or not
130
+ in completion.
131
+
132
+ Here are available values:
133
+
134
+ ``yes``
135
+ Prefix search is always used.
136
+
137
+ ``no``
138
+ Prefix search is never used.
139
+
140
+ ``auto``
141
+ Prefix search is used only when other search can't
142
+ find any records.
143
+
144
+ Default:
145
+ ``auto``
146
+
147
+ RETURN VALUE
148
+ ------------
149
+
150
+ JSON format
151
+ ^^^^^^^^^^^
152
+
153
+ Here is a returned JSON format::
154
+
155
+ {"type1": [["candidate1", score of candidate1],
156
+ ["candidate2", score of candidate2],
157
+ ...],
158
+ "type2": [["candidate1", score of candidate1],
159
+ ["candidate2", score of candidate2],
160
+ ...],
161
+ ...}
162
+
163
+ ``type``
164
+
165
+ A type specified by ``types``.
166
+
167
+ ``candidate``
168
+
169
+ A candidate for completion, correction or suggestion.
170
+
171
+ ``score of candidate``
172
+
173
+ A score of corresponding ``candidate``. It means that
174
+ higher score candidate is more likely candidate for
175
+ completion, correction or suggestion. Returned candidates
176
+ are sorted by ``score of candidate`` descending by
177
+ default.
178
+
179
+ EXAMPLE
180
+ -------
181
+
182
+ Here are learned data for completion.
183
+
184
+ .. groonga-command
185
+ .. include:: ../commands/suggest-learn-completion.log
186
+ .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
187
+ .. [
188
+ .. {"sequence": "1", "time": 1312950803.86057, "item": "e"},
189
+ .. {"sequence": "1", "time": 1312950803.96857, "item": "en"},
190
+ .. {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
191
+ .. {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
192
+ .. {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
193
+ .. {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
194
+ .. ]
195
+
196
+ Here are learned data for correction.
197
+
198
+ .. groonga-command
199
+ .. include:: ../commands/suggest-learn-correction.log
200
+ .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
201
+ .. [
202
+ .. {"sequence": "2", "time": 1312950803.86057, "item": "s"},
203
+ .. {"sequence": "2", "time": 1312950803.96857, "item": "sa"},
204
+ .. {"sequence": "2", "time": 1312950804.26057, "item": "sae"},
205
+ .. {"sequence": "2", "time": 1312950804.56057, "item": "saer"},
206
+ .. {"sequence": "2", "time": 1312950804.76057, "item": "saerc"},
207
+ .. {"sequence": "2", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
208
+ .. {"sequence": "2", "time": 1312950809.76057, "item": "serch"},
209
+ .. {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"}
210
+ .. ]
211
+
212
+ Here are learned data for suggestion.
213
+
214
+ .. groonga-command
215
+ .. include:: ../commands/suggest-learn-suggestion.log
216
+ .. load --table event_query --each 'suggest_preparer(_id, type, item, sequence, time, pair_query)'
217
+ .. [
218
+ .. {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
219
+ .. {"sequence": "3", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
220
+ .. ]
221
+
222
+ Here is a completion example.
223
+
224
+ .. groonga-command
225
+ .. include:: ../commands/suggest-completion.log
226
+ .. suggest --table item_query --column kana --types complete --frequency_threshold 1 --query en
227
+
228
+ Here is a correction example.
229
+
230
+ .. groonga-command
231
+ .. include:: ../commands/suggest-correction.log
232
+ .. suggest --table item_query --column kana --types correct --frequency_threshold 1 --query saerch
66
233
 
67
- {"タイプ1":[["候補1", 候補1のスコア], ["候補2", 候補2のスコア], ...], ...}
234
+ Here is a suggestion example.
68
235
 
69
- ``タイプ``
236
+ .. groonga-command
237
+ .. include:: ../commands/suggest-suggestion.log
238
+ .. suggest --table item_query --column kana --types suggest --frequency_threshold 1 --query search
70
239
 
71
- types引数に指定した値。
240
+ Here is a mixed example.
72
241
 
73
- ``候補``
242
+ .. groonga-command
243
+ .. include:: ../commands/suggest-mixed.log
244
+ .. suggest --table item_query --column kana --types complete|correct|suggest --frequency_threshold 1 --query search
74
245
 
75
- 補完・修正・提案の候補。
76
246
 
77
- ``候補のスコア``
247
+ SEE ALSO
248
+ --------
78
249
 
79
- 補完・修正・提案として優れたものほど高くなる数値。結果は、スコア順にソートされている。
250
+ * :doc:`/suggest`
251
+ * :doc:`/executables/groonga-suggest-create-dataset`
@@ -0,0 +1,5 @@
1
+ Execution example::
2
+
3
+ > suggest --table item_query --column kana --types complete --threshold 1 --query en
4
+ [[0,1313131879.64588,0.000913584],{"complete":[[1],[["_key","ShortText"],["_score","Int32"]],["engine",1]]}]
5
+
@@ -0,0 +1,5 @@
1
+ Execution example::
2
+
3
+ > suggest --table item_query --column kana --types correction --threshold 1 --query saerch
4
+ [[0,1313131812.39207,0.000783031],{"correct":[[1],[["_key","ShortText"],["_score","Int32"]],["search",1]]}]
5
+
@@ -0,0 +1,5 @@
1
+ Execution example::
2
+
3
+ > suggest --table item_query --column kana --types suggest --threshold 1 --query search
4
+ [[0,1313131808.92868,0.000607197],{"suggest":[[2],[["_key","ShortText"],["_score","Int32"]],["search engine",1],["web search realtime",1]]}]
5
+
@@ -134,7 +134,7 @@ grntest命令
134
134
  コマンドファイル
135
135
  ^^^^^^^^^^^^^^^^
136
136
 
137
- コマンドファイルは、groonga組み込みコマンドを1行に1つずつ記述したテキストファイルです。拡張子に制限はありません。groonga組み込みコマンドに関しては :doc:`commands` を参照してください。
137
+ コマンドファイルは、groonga組み込みコマンドを1行に1つずつ記述したテキストファイルです。拡張子に制限はありません。groonga組み込みコマンドに関しては :doc:`/commands` を参照してください。
138
138
 
139
139
  サンプル
140
140
  ^^^^^^^^
@@ -48,7 +48,7 @@ GETメソッドのみが使用可能です。
48
48
 
49
49
  output_typeにはjson, tsv, xmlが指定可能です。
50
50
 
51
- command_versionはコマンドの仕様の互換性を指定します。詳細は :doc:`command_version` を参照してください。
51
+ command_versionはコマンドの仕様の互換性を指定します。詳細は :doc:`/command_version` を参照してください。
52
52
 
53
53
  返値
54
54
  ----