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,254 @@
1
+
2
+
3
+
4
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+
8
+ <html xmlns="http://www.w3.org/1999/xhtml">
9
+ <head>
10
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
+
12
+ <title>5.4. 補正 &mdash; groonga v1.2.5ドキュメント</title>
13
+
14
+ <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ var DOCUMENTATION_OPTIONS = {
19
+ URL_ROOT: '../',
20
+ VERSION: '1.2.5',
21
+ COLLAPSE_INDEX: false,
22
+ FILE_SUFFIX: '.html',
23
+ HAS_SOURCE: true
24
+ };
25
+ </script>
26
+ <script type="text/javascript" src="../_static/jquery.js"></script>
27
+ <script type="text/javascript" src="../_static/underscore.js"></script>
28
+ <script type="text/javascript" src="../_static/doctools.js"></script>
29
+ <script type="text/javascript" src="../_static/translations.js"></script>
30
+ <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
+ <link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
32
+ <link rel="up" title="5. サジェスト" href="../suggest.html" />
33
+ <link rel="next" title="5.5. 提案" href="suggestion.html" />
34
+ <link rel="prev" title="5.3. 補完" href="completion.html" />
35
+ </head>
36
+ <body>
37
+ <div class="header">
38
+ <h1 class="title">
39
+ <a id="top-link" href="../index.html">
40
+ <span class="project">groonga</span>
41
+ <span class="separator">-</span>
42
+ <span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
43
+ </a>
44
+ </h1>
45
+
46
+ <div class="other-language-links">
47
+ <ul>
48
+ <li><a href="../../../en/html/suggest/correction.html"><img src="../_static/us.png" alt="English"></a></li>
49
+ </ul>
50
+ </div>
51
+ </div>
52
+
53
+
54
+ <div class="related">
55
+ <h3>ナビゲーション</h3>
56
+ <ul>
57
+ <li class="right" style="margin-right: 10px">
58
+ <a href="../genindex.html" title="総合索引"
59
+ accesskey="I">索引</a></li>
60
+ <li class="right" >
61
+ <a href="suggestion.html" title="5.5. 提案"
62
+ accesskey="N">次へ</a> |</li>
63
+ <li class="right" >
64
+ <a href="completion.html" title="5.3. 補完"
65
+ accesskey="P">前へ</a> |</li>
66
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
67
+ <li><a href="../suggest.html" accesskey="U">5. サジェスト</a> &raquo;</li>
68
+ </ul>
69
+ </div>
70
+
71
+ <div class="document">
72
+ <div class="documentwrapper">
73
+ <div class="bodywrapper">
74
+ <div class="body">
75
+
76
+ <div class="section" id="correction">
77
+ <h1>5.4. 補正<a class="headerlink" href="#correction" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
+ <p>このセクションでは以下の補正機能について説明します。:</p>
79
+ <ul class="simple">
80
+ <li>どのように動作するか</li>
81
+ <li>使い方</li>
82
+ <li>学習方法</li>
83
+ </ul>
84
+ <div class="section" id="how-it-works">
85
+ <h2>5.4.1. どのように動作するか<a class="headerlink" href="#how-it-works" title="このヘッドラインへのパーマリンク">¶</a></h2>
86
+ <p>補正機能は補正した語を計算するために3種類の検索を使います。:</p>
87
+ <blockquote>
88
+ <div><ol class="arabic simple">
89
+ <li>学習したデータを共起検索。</li>
90
+ <li>登録されている語を類似検索。(実行しないこともある)</li>
91
+ </ol>
92
+ </div></blockquote>
93
+ <div class="section" id="cooccurrence-search">
94
+ <h3>5.4.1.1. 共起検索<a class="headerlink" href="#cooccurrence-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
95
+ <p>共起検索はユーザの間違って入力した文字列から登録済みの語を検索します。共起検索ではユーザがどのように検索を実行したかを使います。ユーザがどのように検索したかはクエリログやアクセスログから学習します。</p>
96
+ <p>例えば、ユーザが以下のように検索を実行したとします。:</p>
97
+ <table border="1" class="docutils">
98
+ <colgroup>
99
+ <col width="41%" />
100
+ <col width="59%" />
101
+ </colgroup>
102
+ <thead valign="bottom">
103
+ <tr class="row-odd"><th class="head">クエリ</th>
104
+ <th class="head">時刻</th>
105
+ </tr>
106
+ </thead>
107
+ <tbody valign="top">
108
+ <tr class="row-even"><td>serach (入力ミス!)</td>
109
+ <td>2011-08-10T22:20:50+09:00</td>
110
+ </tr>
111
+ <tr class="row-odd"><td>search (修正!)</td>
112
+ <td>2011-08-10T22:20:52+09:00</td>
113
+ </tr>
114
+ </tbody>
115
+ </table>
116
+ <p>上記の検索実行ログから以下のような補正ペアを作ります。</p>
117
+ <table border="1" class="docutils">
118
+ <colgroup>
119
+ <col width="33%" />
120
+ <col width="67%" />
121
+ </colgroup>
122
+ <thead valign="bottom">
123
+ <tr class="row-odd"><th class="head">入力</th>
124
+ <th class="head">補正された語</th>
125
+ </tr>
126
+ </thead>
127
+ <tbody valign="top">
128
+ <tr class="row-even"><td>serach</td>
129
+ <td>search</td>
130
+ </tr>
131
+ </tbody>
132
+ </table>
133
+ <p>1分以内の連続して実行された検索をユーザが入力を補正したものとみなします。検索を実行した間の入力途中の入力シーケンスは、補正用の学習データとしては利用しません。</p>
134
+ <p>ユーザが&quot;serach&quot;と入力した場合、共起検索は&quot;saerch&quot;を返します。なぜなら、&quot;serach&quot;が「入力」カラムにあり、対応する「補正される語」カラムの値が&quot;search&quot;だからです。</p>
135
+ </div>
136
+ <div class="section" id="similar-search">
137
+ <h3>5.4.1.2. 類似検索<a class="headerlink" href="#similar-search" title="このヘッドラインへのパーマリンク">¶</a></h3>
138
+ <p>類似検索はユーザの入力をトークナイズし、同じトークンを含んだ登録済みの語を検索します。トークナイズにはTokenBigramトークナイザーを使います。これは <a class="reference internal" href="../executables/groonga-suggest-create-dataset.html"><em>groonga-suggest-create-dataset</em></a> が作るサジェストデータセットスキーマではデフォルトトークナイザーとしてTokenBigramトークナイザーを使っているからです。</p>
139
+ <p>例えば、&quot;search engine&quot;という語が登録されているとします。ユーザが&quot;web search service&quot;や&quot;sound engine&quot;などで検索すると&quot;search engine&quot;が補正候補になります。なぜなら、&quot;search engine&quot;と&quot;web search engine&quot;は&quot;search&quot;という同じトークンを持つからです。また、&quot;search engine&quot;と&quot;sound engine&quot;は&quot;engine&quot;という同じトークンを持っています。</p>
140
+ <p>&quot;search engine&quot;は&quot;search&quot;トークンと&quot;engine&quot;トークンにトークナイズされます。(groongaのTokenBigramトークナイザーは連続するアルファベットと数字を2文字にトークナイズしません。これは検索ノイズを減らす為です。確実に2文字でトークナイズするためにはTokenBigramSplitSymbolAlphaDigitを使います。)&quot;web search service&quot;は&quot;web&quot;トークンと&quot;search&quot;トークンと&quot;service&quot;トークンにトークナイズされます。&quot;sound engine&quot;は&quot;sound&quot;トークンと&quot;engine&quot;トークンにトークナイズされます。</p>
141
+ </div>
142
+ </div>
143
+ <div class="section" id="how-to-use">
144
+ <h2>5.4.2. 使い方<a class="headerlink" href="#how-to-use" title="このヘッドラインへのパーマリンク">¶</a></h2>
145
+ <p>groongaは補正機能を使うために <a class="reference internal" href="../commands/suggest.html"><em>suggest</em></a> コマンドを用意しています。 <cite>--type correct</cite> オプションを使うと補正機能を利用できます。</p>
146
+ <p>例えば、&quot;saerch&quot;と入力した時の補正結果取得するコマンドは以下のようになります。:</p>
147
+ <p>実行例:</p>
148
+ <div class="highlight-none"><div class="highlight"><pre>&gt; suggest --table item_query --column kana --types correction --threshold 1 --query saerch
149
+ [[0,1313131812.39207,0.000783031],{&quot;correct&quot;:[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_score&quot;,&quot;Int32&quot;]],[&quot;search&quot;,1]]}]
150
+ </pre></div>
151
+ </div>
152
+ </div>
153
+ <div class="section" id="how-it-learns">
154
+ <h2>5.4.3. 学習方法<a class="headerlink" href="#how-it-learns" title="このヘッドラインへのパーマリンク">¶</a></h2>
155
+ <p>共起検索は学習データを使います。学習データはクエリログやアクセスログから作ります。学習データを作るためにはユーザが検索を実行したときの検索クエリとタイムスタンプが必要です。</p>
156
+ <p>例えば、ユーザが&quot;search&quot;で検索したかったとします。しかし、ユーザは正しい&quot;search&quot;というクエリで検索を実行する前に間違って&quot;saerch&quot;で検索してしまいました。このユーザの入力シーケンスは以下のようになります。:</p>
157
+ <blockquote>
158
+ <div><ol class="arabic simple">
159
+ <li>2011-08-10T13:33:23+09:00: s</li>
160
+ <li>2011-08-10T13:33:23+09:00: sa</li>
161
+ <li>2011-08-10T13:33:24+09:00: sae</li>
162
+ <li>2011-08-10T13:33:24+09:00: saer</li>
163
+ <li>2011-08-10T13:33:24+09:00: saerc</li>
164
+ <li>2011-08-10T13:33:25+09:00: saerch (検索実行!)</li>
165
+ <li>2011-08-10T13:33:29+09:00: serch (修正中…)</li>
166
+ <li>2011-08-10T13:33:30+09:00: search (検索実行!)</li>
167
+ </ol>
168
+ </div></blockquote>
169
+ <p>以下のコマンドでこの入力シーケンスから学習できます。:</p>
170
+ <div class="highlight-none"><div class="highlight"><pre>load --table event_query --each &#39;suggest_preparer(_id, type, item, sequence, time, pair_query)&#39;
171
+ [
172
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950803.86057, &quot;item&quot;: &quot;s&quot;},
173
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950803.96857, &quot;item&quot;: &quot;sa&quot;},
174
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950804.26057, &quot;item&quot;: &quot;sae&quot;},
175
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950804.56057, &quot;item&quot;: &quot;saer&quot;},
176
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950804.76057, &quot;item&quot;: &quot;saerc&quot;},
177
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950805.76057, &quot;item&quot;: &quot;saerch&quot;, &quot;type&quot;: &quot;submit&quot;},
178
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950809.76057, &quot;item&quot;: &quot;serch&quot;},
179
+ {&quot;sequence&quot;: &quot;1&quot;, &quot;time&quot;: 1312950810.86057, &quot;item&quot;: &quot;search&quot;, &quot;type&quot;: &quot;submit&quot;}
180
+ ]
181
+ </pre></div>
182
+ </div>
183
+ </div>
184
+ </div>
185
+
186
+
187
+ </div>
188
+ </div>
189
+ </div>
190
+ <div class="sphinxsidebar">
191
+ <div class="sphinxsidebarwrapper">
192
+ <h3><a href="../index.html">目次</a></h3>
193
+ <ul>
194
+ <li><a class="reference internal" href="#">5.4. 補正</a><ul>
195
+ <li><a class="reference internal" href="#how-it-works">5.4.1. どのように動作するか</a><ul>
196
+ <li><a class="reference internal" href="#cooccurrence-search">5.4.1.1. 共起検索</a></li>
197
+ <li><a class="reference internal" href="#similar-search">5.4.1.2. 類似検索</a></li>
198
+ </ul>
199
+ </li>
200
+ <li><a class="reference internal" href="#how-to-use">5.4.2. 使い方</a></li>
201
+ <li><a class="reference internal" href="#how-it-learns">5.4.3. 学習方法</a></li>
202
+ </ul>
203
+ </li>
204
+ </ul>
205
+
206
+ <h4>前のトピックへ</h4>
207
+ <p class="topless"><a href="completion.html"
208
+ title="前の章へ">5.3. 補完</a></p>
209
+ <h4>次のトピックへ</h4>
210
+ <p class="topless"><a href="suggestion.html"
211
+ title="次の章へ">5.5. 提案</a></p>
212
+ <h3>このページ</h3>
213
+ <ul class="this-page-menu">
214
+ <li><a href="../_sources/suggest/correction.txt"
215
+ rel="nofollow">ソースコードを表示</a></li>
216
+ </ul>
217
+ <div id="searchbox" style="display: none">
218
+ <h3>クイック検索</h3>
219
+ <form class="search" action="../search.html" method="get">
220
+ <input type="text" name="q" size="18" />
221
+ <input type="submit" value="検索" />
222
+ <input type="hidden" name="check_keywords" value="yes" />
223
+ <input type="hidden" name="area" value="default" />
224
+ </form>
225
+ <p class="searchtip" style="font-size: 90%">
226
+ モジュール、クラス、または関数名を入力してください
227
+ </p>
228
+ </div>
229
+ <script type="text/javascript">$('#searchbox').show(0);</script>
230
+ </div>
231
+ </div>
232
+ <div class="clearer"></div>
233
+ </div>
234
+ <div class="related">
235
+ <h3>ナビゲーション</h3>
236
+ <ul>
237
+ <li class="right" style="margin-right: 10px">
238
+ <a href="../genindex.html" title="総合索引"
239
+ >索引</a></li>
240
+ <li class="right" >
241
+ <a href="suggestion.html" title="5.5. 提案"
242
+ >次へ</a> |</li>
243
+ <li class="right" >
244
+ <a href="completion.html" title="5.3. 補完"
245
+ >前へ</a> |</li>
246
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
247
+ <li><a href="../suggest.html" >5. サジェスト</a> &raquo;</li>
248
+ </ul>
249
+ </div>
250
+ <div class="footer">
251
+ &copy; Copyright 2009-2011, Brazil, Inc.
252
+ </div>
253
+ </body>
254
+ </html>
@@ -0,0 +1,225 @@
1
+
2
+
3
+
4
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
5
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6
+
7
+
8
+ <html xmlns="http://www.w3.org/1999/xhtml">
9
+ <head>
10
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
+
12
+ <title>5.1. はじめに &mdash; groonga v1.2.5ドキュメント</title>
13
+
14
+ <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
+ <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ var DOCUMENTATION_OPTIONS = {
19
+ URL_ROOT: '../',
20
+ VERSION: '1.2.5',
21
+ COLLAPSE_INDEX: false,
22
+ FILE_SUFFIX: '.html',
23
+ HAS_SOURCE: true
24
+ };
25
+ </script>
26
+ <script type="text/javascript" src="../_static/jquery.js"></script>
27
+ <script type="text/javascript" src="../_static/underscore.js"></script>
28
+ <script type="text/javascript" src="../_static/doctools.js"></script>
29
+ <script type="text/javascript" src="../_static/translations.js"></script>
30
+ <link rel="shortcut icon" href="../_static/favicon.ico"/>
31
+ <link rel="top" title="groonga v1.2.5ドキュメント" href="../index.html" />
32
+ <link rel="up" title="5. サジェスト" href="../suggest.html" />
33
+ <link rel="next" title="5.2. チュートリアル" href="tutorial.html" />
34
+ <link rel="prev" title="5. サジェスト" href="../suggest.html" />
35
+ </head>
36
+ <body>
37
+ <div class="header">
38
+ <h1 class="title">
39
+ <a id="top-link" href="../index.html">
40
+ <span class="project">groonga</span>
41
+ <span class="separator">-</span>
42
+ <span class="description">オープンソースのカラムストア機能付き全文検索エンジン</span>
43
+ </a>
44
+ </h1>
45
+
46
+ <div class="other-language-links">
47
+ <ul>
48
+ <li><a href="../../../en/html/suggest/introduction.html"><img src="../_static/us.png" alt="English"></a></li>
49
+ </ul>
50
+ </div>
51
+ </div>
52
+
53
+
54
+ <div class="related">
55
+ <h3>ナビゲーション</h3>
56
+ <ul>
57
+ <li class="right" style="margin-right: 10px">
58
+ <a href="../genindex.html" title="総合索引"
59
+ accesskey="I">索引</a></li>
60
+ <li class="right" >
61
+ <a href="tutorial.html" title="5.2. チュートリアル"
62
+ accesskey="N">次へ</a> |</li>
63
+ <li class="right" >
64
+ <a href="../suggest.html" title="5. サジェスト"
65
+ accesskey="P">前へ</a> |</li>
66
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
67
+ <li><a href="../suggest.html" accesskey="U">5. サジェスト</a> &raquo;</li>
68
+ </ul>
69
+ </div>
70
+
71
+ <div class="document">
72
+ <div class="documentwrapper">
73
+ <div class="bodywrapper">
74
+ <div class="body">
75
+
76
+ <div class="section" id="introduction">
77
+ <h1>5.1. はじめに<a class="headerlink" href="#introduction" title="このヘッドラインへのパーマリンク">¶</a></h1>
78
+ <p>groongaのサジェスト機能は以下の機能を提供します。:</p>
79
+ <ul class="simple">
80
+ <li>補完</li>
81
+ <li>補正</li>
82
+ <li>提案</li>
83
+ </ul>
84
+ <div class="section" id="completion">
85
+ <h2>5.1.1. 補完<a class="headerlink" href="#completion" title="このヘッドラインへのパーマリンク">¶</a></h2>
86
+ <p>補完はユーザの入力を支援します。ユーザが単語の一部分のみしか入力していないときに、登録済みの語の中から補完候補の語を返します。</p>
87
+ <p>例えば、以下が登録済みの語とします。:</p>
88
+ <ul class="simple">
89
+ <li>&quot;groonga&quot;</li>
90
+ <li>&quot;complete&quot;</li>
91
+ <li>&quot;correction&quot;</li>
92
+ <li>&quot;suggest&quot;</li>
93
+ </ul>
94
+ <p>ユーザが&quot;co&quot;と入力したとき、&quot;complete&quot;と&quot;correction&quot;を補完候補として返します。これはどちらも&quot;co&quot;で始まっているからです。</p>
95
+ <p>ユーザが&quot;sug&quot;と入力したとき、&quot;suggest&quot;を返します。これは&quot;suggest&quot;が&quot;sug&quot;から始まっているからです。</p>
96
+ <p>ユーザが&quot;ab&quot;と入力したときは何も返しません。これは&quot;ab&quot;から始まる語が1つも登録されていないからです。</p>
97
+ </div>
98
+ <div class="section" id="correction">
99
+ <h2>5.1.2. 補正<a class="headerlink" href="#correction" title="このヘッドラインへのパーマリンク">¶</a></h2>
100
+ <p>修正もユーザの入力を支援します。ユーザが間違った語を入力したときに登録済みの修正ペアの中から修正された語を返します。</p>
101
+ <p>例えば、以下のような修正ペアが登録されていたとします。</p>
102
+ <table border="1" class="docutils">
103
+ <colgroup>
104
+ <col width="46%" />
105
+ <col width="54%" />
106
+ </colgroup>
107
+ <thead valign="bottom">
108
+ <tr class="row-odd"><th class="head">間違った語</th>
109
+ <th class="head">正しい語</th>
110
+ </tr>
111
+ </thead>
112
+ <tbody valign="top">
113
+ <tr class="row-even"><td>grroonga
114
+ gronga
115
+ gronnga</td>
116
+ <td>groonga
117
+ groonga
118
+ groonga</td>
119
+ </tr>
120
+ </tbody>
121
+ </table>
122
+ <p>ユーザが&quot;gronga&quot;と入力したとき、&quot;groonga&quot;を返します。これは、&quot;gronga&quot;が「間違った語」にあり、対応する「正しい語」カラムの値が&quot;groonga&quot;だからです。</p>
123
+ <p>ユーザが&quot;roonga&quot;と入力したときは何も返しません。これは&quot;roonga&quot;が「間違った語」カラムにないからです。</p>
124
+ </div>
125
+ <div class="section" id="suggestion">
126
+ <h2>5.1.3. 提案<a class="headerlink" href="#suggestion" title="このヘッドラインへのパーマリンク">¶</a></h2>
127
+ <p>提案は、たくさんの文書が見つかったときに、ユーザがさらに絞り込むことを支援します。ユーザがクエリを入力したとき、登録済みの関連クエリペアから追加のキーワードを選び、追加のキーワードを含んだ新しいクエリを返します。</p>
128
+ <p>例えば、以下の関連クエリペアが登録されているとします。:</p>
129
+ <table border="1" class="docutils">
130
+ <colgroup>
131
+ <col width="52%" />
132
+ <col width="48%" />
133
+ </colgroup>
134
+ <thead valign="bottom">
135
+ <tr class="row-odd"><th class="head">キーワード</th>
136
+ <th class="head">関連クエリ</th>
137
+ </tr>
138
+ </thead>
139
+ <tbody valign="top">
140
+ <tr class="row-even"><td>groonga</td>
141
+ <td>groonga search engine</td>
142
+ </tr>
143
+ <tr class="row-odd"><td>search</td>
144
+ <td>Google search</td>
145
+ </tr>
146
+ <tr class="row-even"><td>speed</td>
147
+ <td>groonga speed</td>
148
+ </tr>
149
+ </tbody>
150
+ </table>
151
+ <p>ユーザが&quot;groonga&quot;と入力したとき、&quot;groonga search engine&quot;を返します。これは、&quot;groonga&quot;が「キーワード」カラムの値にあり、対応する「関連クエリ」カラムの値が&quot;groonga search engine&quot;だからです。</p>
152
+ <p>ユーザが&quot;MySQL&quot;と入力したときは何も返しません。これは&quot;MySQL&quot;が「キーワード」カラムにないからです。</p>
153
+ </div>
154
+ <div class="section" id="learning">
155
+ <h2>5.1.4. 学習<a class="headerlink" href="#learning" title="このヘッドラインへのパーマリンク">¶</a></h2>
156
+ <p>サジェスト機能を使う場合は、事前に登録済みのデータを用意する必要があります。これらのデータはユーザの入力を使って登録できます。これ用にgroonga-suggest-httpdコマンドとgroonga-suggest-learnerコマンドがあります。</p>
157
+ </div>
158
+ </div>
159
+
160
+
161
+ </div>
162
+ </div>
163
+ </div>
164
+ <div class="sphinxsidebar">
165
+ <div class="sphinxsidebarwrapper">
166
+ <h3><a href="../index.html">目次</a></h3>
167
+ <ul>
168
+ <li><a class="reference internal" href="#">5.1. はじめに</a><ul>
169
+ <li><a class="reference internal" href="#completion">5.1.1. 補完</a></li>
170
+ <li><a class="reference internal" href="#correction">5.1.2. 補正</a></li>
171
+ <li><a class="reference internal" href="#suggestion">5.1.3. 提案</a></li>
172
+ <li><a class="reference internal" href="#learning">5.1.4. 学習</a></li>
173
+ </ul>
174
+ </li>
175
+ </ul>
176
+
177
+ <h4>前のトピックへ</h4>
178
+ <p class="topless"><a href="../suggest.html"
179
+ title="前の章へ">5. サジェスト</a></p>
180
+ <h4>次のトピックへ</h4>
181
+ <p class="topless"><a href="tutorial.html"
182
+ title="次の章へ">5.2. チュートリアル</a></p>
183
+ <h3>このページ</h3>
184
+ <ul class="this-page-menu">
185
+ <li><a href="../_sources/suggest/introduction.txt"
186
+ rel="nofollow">ソースコードを表示</a></li>
187
+ </ul>
188
+ <div id="searchbox" style="display: none">
189
+ <h3>クイック検索</h3>
190
+ <form class="search" action="../search.html" method="get">
191
+ <input type="text" name="q" size="18" />
192
+ <input type="submit" value="検索" />
193
+ <input type="hidden" name="check_keywords" value="yes" />
194
+ <input type="hidden" name="area" value="default" />
195
+ </form>
196
+ <p class="searchtip" style="font-size: 90%">
197
+ モジュール、クラス、または関数名を入力してください
198
+ </p>
199
+ </div>
200
+ <script type="text/javascript">$('#searchbox').show(0);</script>
201
+ </div>
202
+ </div>
203
+ <div class="clearer"></div>
204
+ </div>
205
+ <div class="related">
206
+ <h3>ナビゲーション</h3>
207
+ <ul>
208
+ <li class="right" style="margin-right: 10px">
209
+ <a href="../genindex.html" title="総合索引"
210
+ >索引</a></li>
211
+ <li class="right" >
212
+ <a href="tutorial.html" title="5.2. チュートリアル"
213
+ >次へ</a> |</li>
214
+ <li class="right" >
215
+ <a href="../suggest.html" title="5. サジェスト"
216
+ >前へ</a> |</li>
217
+ <li><a href="../index.html">groonga v1.2.5ドキュメント</a> &raquo;</li>
218
+ <li><a href="../suggest.html" >5. サジェスト</a> &raquo;</li>
219
+ </ul>
220
+ </div>
221
+ <div class="footer">
222
+ &copy; Copyright 2009-2011, Brazil, Inc.
223
+ </div>
224
+ </body>
225
+ </html>