rroonga 2.0.7-x86-mingw32 → 2.0.8-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (403) hide show
  1. data/ext/groonga/rb-grn.h +1 -1
  2. data/lib/1.8/groonga.so +0 -0
  3. data/lib/1.9/groonga.so +0 -0
  4. data/rroonga-build.rb +1 -1
  5. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  6. data/vendor/local/bin/groonga.exe +0 -0
  7. data/vendor/local/bin/libgroonga-0.dll +0 -0
  8. data/vendor/local/bin/libmecab-1.dll +0 -0
  9. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  10. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  11. data/vendor/local/bin/mecab-config +2 -2
  12. data/vendor/local/bin/mecab.exe +0 -0
  13. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
  14. data/vendor/local/etc/groonga/synonyms.tsv +5 -0
  15. data/vendor/local/include/groonga/groonga.h +77 -4
  16. data/vendor/local/include/groonga/groonga/plugin.h +45 -15
  17. data/vendor/local/include/groonga/groonga/tokenizer.h +62 -12
  18. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  19. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  20. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  21. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +41 -0
  22. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  23. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  24. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  25. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  26. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  27. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  28. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  29. data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
  30. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  31. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  32. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  33. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  34. data/vendor/local/lib/libgroonga.a +0 -0
  35. data/vendor/local/lib/libgroonga.dll.a +0 -0
  36. data/vendor/local/lib/libgroonga.la +2 -2
  37. data/vendor/local/lib/libmecab.a +0 -0
  38. data/vendor/local/lib/libmecab.dll.a +0 -0
  39. data/vendor/local/lib/libmecab.la +1 -1
  40. data/vendor/local/lib/libmsgpack.a +0 -0
  41. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  42. data/vendor/local/lib/libmsgpack.la +1 -1
  43. data/vendor/local/lib/libmsgpackc.a +0 -0
  44. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  45. data/vendor/local/lib/libmsgpackc.la +1 -1
  46. data/vendor/local/lib/pkgconfig/groonga.pc +4 -3
  47. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  48. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  49. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  50. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  51. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  52. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  53. data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +3 -3
  54. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +23 -0
  55. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +24 -3
  56. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  57. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +13 -3
  58. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  59. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  60. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  61. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +42 -3
  62. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +26 -16
  63. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +12 -2
  64. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +96 -1
  65. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +20 -0
  67. data/vendor/local/share/doc/groonga/en/html/_sources/reference/{command_version.txt → command/command_version.txt} +0 -0
  68. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/output_format.txt +228 -0
  69. data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/return_code.txt +110 -0
  70. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +59 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +2 -0
  72. data/vendor/local/share/doc/groonga/en/html/_sources/reference/function.txt +20 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +25 -8
  74. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +120 -0
  75. data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +3 -1
  76. data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions.txt → en/html/_sources/reference/query_expanders.txt} +3 -3
  77. data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +153 -0
  78. data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +12 -2
  79. data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +214 -0
  80. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  81. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  82. data/vendor/local/share/doc/groonga/en/html/contribution.html +11 -10
  83. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  84. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  85. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
  86. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  87. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +42 -19
  88. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  89. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  90. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  91. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  92. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  93. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  94. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  95. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  96. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  97. data/vendor/local/share/doc/groonga/en/html/index.html +62 -52
  98. data/vendor/local/share/doc/groonga/en/html/install.html +7 -6
  99. data/vendor/local/share/doc/groonga/en/html/install/centos.html +26 -8
  100. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  101. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +17 -8
  102. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  103. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  104. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  105. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +47 -10
  106. data/vendor/local/share/doc/groonga/en/html/install/windows.html +25 -16
  107. data/vendor/local/share/doc/groonga/en/html/limitations.html +23 -13
  108. data/vendor/local/share/doc/groonga/en/html/news.html +175 -67
  109. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  110. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  111. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  112. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  113. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  114. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  115. data/vendor/local/share/doc/groonga/en/html/reference.html +43 -41
  116. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  117. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  118. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  119. data/vendor/local/share/doc/groonga/en/html/reference/{commands.html → command.html} +49 -44
  120. data/vendor/local/share/doc/groonga/en/html/reference/{command_version.html → command/command_version.html} +46 -46
  121. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +356 -0
  122. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +248 -0
  123. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +33 -33
  124. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +32 -32
  126. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +32 -32
  127. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +32 -32
  128. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +32 -32
  129. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +34 -34
  130. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +32 -32
  131. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -32
  132. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +30 -30
  133. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +34 -34
  134. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +34 -34
  135. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +34 -34
  136. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +36 -36
  137. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +31 -31
  138. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +190 -0
  139. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +92 -92
  140. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +30 -30
  141. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +32 -32
  142. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +34 -34
  143. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +32 -32
  144. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +30 -30
  145. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +32 -32
  146. data/vendor/local/share/doc/groonga/en/html/reference/commands/view_add.html +32 -32
  147. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +6 -6
  153. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
  155. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/reference/{functions.html → function.html} +15 -9
  158. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +13 -13
  159. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +98 -16
  160. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +8 -8
  161. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +8 -8
  162. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +8 -8
  163. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +13 -13
  164. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +303 -0
  165. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +11 -11
  168. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +12 -12
  169. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference/output.html +10 -10
  171. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +10 -10
  172. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +138 -0
  173. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +315 -0
  174. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +15 -15
  175. data/vendor/local/share/doc/groonga/en/html/reference/type.html +27 -27
  176. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  178. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +19 -8
  182. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/spec.html +12 -11
  185. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +412 -0
  186. data/vendor/local/share/doc/groonga/en/html/spec/search.html +22 -22
  187. data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  207. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  208. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +3 -3
  209. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +23 -0
  210. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +24 -3
  211. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  212. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +13 -3
  213. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  214. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  215. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  216. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +42 -3
  217. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +26 -16
  218. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +12 -2
  219. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +96 -1
  220. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -3
  221. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +20 -0
  222. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/{command_version.txt → command/command_version.txt} +0 -0
  223. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/output_format.txt +228 -0
  224. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/return_code.txt +110 -0
  225. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +59 -0
  226. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +2 -0
  227. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/function.txt +20 -0
  228. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +25 -8
  229. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +120 -0
  230. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +3 -1
  231. data/vendor/local/share/doc/groonga/{source/reference/functions.txt → ja/html/_sources/reference/query_expanders.txt} +3 -3
  232. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +153 -0
  233. data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +12 -2
  234. data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +214 -0
  235. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  236. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  237. data/vendor/local/share/doc/groonga/ja/html/contribution.html +11 -10
  238. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  239. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  240. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
  241. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  242. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +42 -19
  243. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  244. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  245. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  246. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  247. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  248. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  249. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  250. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  251. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  252. data/vendor/local/share/doc/groonga/ja/html/index.html +63 -53
  253. data/vendor/local/share/doc/groonga/ja/html/install.html +7 -6
  254. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +26 -8
  255. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  256. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +17 -8
  257. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  258. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  259. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  260. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +45 -10
  261. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +25 -16
  262. data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -11
  263. data/vendor/local/share/doc/groonga/ja/html/news.html +155 -68
  264. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  265. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  266. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  267. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  268. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  269. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  270. data/vendor/local/share/doc/groonga/ja/html/reference.html +44 -42
  271. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  272. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  273. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  274. data/vendor/local/share/doc/groonga/ja/html/reference/{commands.html → command.html} +48 -44
  275. data/vendor/local/share/doc/groonga/ja/html/reference/{command_version.html → command/command_version.html} +47 -47
  276. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +331 -0
  277. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +237 -0
  278. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +33 -33
  279. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +32 -32
  280. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +32 -32
  281. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +32 -32
  282. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +32 -32
  283. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +32 -32
  284. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +34 -34
  285. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +32 -32
  286. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -32
  287. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +30 -30
  288. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +34 -34
  289. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +34 -34
  290. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +34 -34
  291. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +36 -36
  292. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +31 -31
  293. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +183 -0
  294. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +107 -107
  295. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +30 -30
  296. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +32 -32
  297. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +37 -37
  298. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +32 -32
  299. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +30 -30
  300. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +32 -32
  301. data/vendor/local/share/doc/groonga/ja/html/reference/commands/view_add.html +32 -32
  302. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
  303. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
  304. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +6 -6
  308. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +9 -9
  309. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
  310. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  311. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  312. data/vendor/local/share/doc/groonga/ja/html/reference/{functions.html → function.html} +13 -9
  313. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +13 -13
  314. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +96 -15
  315. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +8 -8
  316. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +8 -8
  317. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +8 -8
  318. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +13 -13
  319. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +281 -0
  320. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +12 -12
  321. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +12 -12
  322. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -17
  323. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +12 -12
  324. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +9 -9
  325. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +13 -13
  326. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +10 -10
  327. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +139 -0
  328. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +278 -0
  329. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +15 -15
  330. data/vendor/local/share/doc/groonga/ja/html/reference/type.html +27 -27
  331. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  332. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  333. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  334. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  335. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  336. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +17 -8
  337. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  338. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  339. data/vendor/local/share/doc/groonga/ja/html/spec.html +12 -11
  340. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +404 -0
  341. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +22 -22
  342. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  343. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  344. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  345. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  346. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  347. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  348. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  349. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  350. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  351. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +7 -7
  352. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  353. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  354. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  355. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  356. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  357. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  358. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  359. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  360. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  361. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  362. data/vendor/local/share/doc/groonga/source/contribution.txt +3 -3
  363. data/vendor/local/share/doc/groonga/source/contribution/development/release.txt +23 -0
  364. data/vendor/local/share/doc/groonga/source/example/reference/commands/register/query_expanders_tsv.log +4 -0
  365. data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_equator.log +26 -0
  366. data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_meridian.log +26 -0
  367. data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_the_date_line.log +26 -0
  368. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage.log +28 -0
  369. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_basic.log +29 -0
  370. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_setup.log +17 -0
  371. data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_string_literal.log +28 -0
  372. data/vendor/local/share/doc/groonga/source/install/centos.txt +24 -3
  373. data/vendor/local/share/doc/groonga/source/install/debian.txt +3 -3
  374. data/vendor/local/share/doc/groonga/source/install/fedora.txt +13 -3
  375. data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +3 -3
  376. data/vendor/local/share/doc/groonga/source/install/others.txt +3 -3
  377. data/vendor/local/share/doc/groonga/source/install/solaris.txt +3 -3
  378. data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +42 -3
  379. data/vendor/local/share/doc/groonga/source/install/windows.txt +26 -16
  380. data/vendor/local/share/doc/groonga/source/limitations.txt +12 -2
  381. data/vendor/local/share/doc/groonga/source/news.txt +96 -1
  382. data/vendor/local/share/doc/groonga/source/reference.txt +3 -3
  383. data/vendor/local/share/doc/groonga/source/reference/command.txt +20 -0
  384. data/vendor/local/share/doc/groonga/source/reference/{command_version.txt → command/command_version.txt} +0 -0
  385. data/vendor/local/share/doc/groonga/source/reference/command/output_format.txt +228 -0
  386. data/vendor/local/share/doc/groonga/source/reference/command/return_code.txt +110 -0
  387. data/vendor/local/share/doc/groonga/source/reference/commands/register.txt +59 -0
  388. data/vendor/local/share/doc/groonga/source/reference/commands/select.txt +2 -0
  389. data/vendor/local/share/doc/groonga/source/reference/function.txt +20 -0
  390. data/vendor/local/share/doc/groonga/source/reference/functions/geo_distance.txt +25 -8
  391. data/vendor/local/share/doc/groonga/source/reference/functions/snippet_html.txt +120 -0
  392. data/vendor/local/share/doc/groonga/source/reference/indexing.txt +3 -1
  393. data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions.txt → source/reference/query_expanders.txt} +3 -3
  394. data/vendor/local/share/doc/groonga/source/reference/query_expanders/tsv.txt +153 -0
  395. data/vendor/local/share/doc/groonga/source/server/http/comparison.txt +12 -2
  396. data/vendor/local/share/doc/groonga/source/spec/gqtp.txt +214 -0
  397. data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +5 -2
  398. data/vendor/local/share/man/ja/man1/groonga.1 +1589 -218
  399. data/vendor/local/share/man/man1/groonga.1 +1685 -190
  400. metadata +66 -18
  401. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands.txt +0 -15
  402. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands.txt +0 -15
  403. data/vendor/local/share/doc/groonga/source/reference/commands.txt +0 -15
@@ -1,4 +1,4 @@
1
- .TH "GROONGA" "1" "September 28, 2012" "2.0.7" "groonga"
1
+ .TH "GROONGA" "1" "November 28, 2012" "2.0.9" "groonga"
2
2
  .SH NAME
3
3
  groonga \- groonga documentation
4
4
  .
@@ -104,19 +104,19 @@ memory error with a 32\-bit package even if you just process medium
104
104
  size data.
105
105
  .SS Installer
106
106
  .sp
107
- For 32\-bit environment, download \fI\%groonga-2.0.7-x86.exe\fP
107
+ For 32\-bit environment, download \fI\%groonga-2.0.9-x86.exe\fP
108
108
  and run it.
109
109
  .sp
110
- For 64\-bit environment, download \fI\%groonga-2.0.7-x64.exe\fP
110
+ For 64\-bit environment, download \fI\%groonga-2.0.9-x64.exe\fP
111
111
  and run it.
112
112
  .sp
113
113
  Use command prompt for \fB/reference/executables/groonga\fP installed in start menu.
114
114
  .SS zip
115
115
  .sp
116
- For 32\-bit environment, download \fI\%groonga-2.0.7-x86.zip\fP
116
+ For 32\-bit environment, download \fI\%groonga-2.0.9-x86.zip\fP
117
117
  and extract it.
118
118
  .sp
119
- For 64\-bit environment, download \fI\%groonga-2.0.7-x64.zip\fP
119
+ For 64\-bit environment, download \fI\%groonga-2.0.9-x64.zip\fP
120
120
  and extract it.
121
121
  .sp
122
122
  \fB/reference/executables/groonga\fP is in \fBbin\fP folder.
@@ -135,7 +135,7 @@ Windows. Here are required tools:
135
135
  .UNINDENT
136
136
  .UNINDENT
137
137
  .sp
138
- Download zipped source \fI\%groonga-2.0.7.zip\fP
138
+ Download zipped source \fI\%groonga-2.0.9.zip\fP
139
139
  and extract it.
140
140
  .sp
141
141
  Start \fBVisual Studio Command Prompt (2010)\fP installed by Microsoft
@@ -143,7 +143,7 @@ Visual Studio 2010 Express and move to the groonga\(aqs source folder:
143
143
  .sp
144
144
  .nf
145
145
  .ft C
146
- > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-2.0.7
146
+ > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-2.0.9
147
147
  .ft P
148
148
  .fi
149
149
  .sp
@@ -153,23 +153,41 @@ parameter instead:
153
153
  .sp
154
154
  .nf
155
155
  .ft C
156
- groonga\-2.0.7> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
156
+ groonga\-2.0.9> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
157
157
  .ft P
158
158
  .fi
159
159
  .sp
160
- Build by Visual Studio:
160
+ Build by Visual C++ 2010 Express:
161
161
  .sp
162
162
  .nf
163
163
  .ft C
164
- groonga\-2.0.7> devenv groonga.sln /Build Release
164
+ groonga\-2.0.9> msbuild groonga.sln /p:Configuration=Release
165
165
  .ft P
166
166
  .fi
167
167
  .sp
168
- Install:
168
+ Install by Visual C++ 2010 Express:
169
+ .sp
170
+ .nf
171
+ .ft C
172
+ groonga\-2.0.9> msbuild groonga.sln /p:Configuration=Release /t:Install
173
+ .ft P
174
+ .fi
175
+ .sp
176
+ If you installed Visual Studio 2010, use can use devenv instead.
177
+ .sp
178
+ Build by Visual Studio 2010:
169
179
  .sp
170
180
  .nf
171
181
  .ft C
172
- groonga\-2.0.7> devenv groonga.sln /Build Release /Project Install
182
+ groonga\-2.0.9> devenv groonga.sln /Build Release
183
+ .ft P
184
+ .fi
185
+ .sp
186
+ Install by Visual Studio 2010:
187
+ .sp
188
+ .nf
189
+ .ft C
190
+ groonga\-2.0.9> devenv groonga.sln /Build Release /Project Install
173
191
  .ft P
174
192
  .fi
175
193
  .sp
@@ -211,9 +229,9 @@ Download source:
211
229
  .sp
212
230
  .nf
213
231
  .ft C
214
- % curl \-O http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
215
- % tar xvzf groonga\-2.0.7.tar.gz
216
- % cd groonga\-2.0.7
232
+ % curl \-O http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
233
+ % tar xvzf groonga\-2.0.9.tar.gz
234
+ % cd groonga\-2.0.9
217
235
  .ft P
218
236
  .fi
219
237
  .sp
@@ -399,9 +417,9 @@ Download source:
399
417
  .sp
400
418
  .nf
401
419
  .ft C
402
- % wget http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
403
- % tar xvzf groonga\-2.0.7.tar.gz
404
- % cd groonga\-2.0.7
420
+ % wget http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
421
+ % tar xvzf groonga\-2.0.9.tar.gz
422
+ % cd groonga\-2.0.9
405
423
  .ft P
406
424
  .fi
407
425
  .sp
@@ -658,6 +676,61 @@ Install groonga\-munin\-plugins package:
658
676
  % sudo apt\-get \-y install groonga\-munin\-plugins
659
677
  .ft P
660
678
  .fi
679
+ .SS 12.10 Quantal Quetzal
680
+ .IP Note
681
+ Enable the universe repository to install groonga:
682
+ .sp
683
+ .nf
684
+ .ft C
685
+ % sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/universe.list
686
+ % sudo sed \-i\(aq\(aq \-e \(aqs/main/universe/\(aq /etc/apt/sources.list.d/universe.list
687
+ .ft P
688
+ .fi
689
+ .RE
690
+ .sp
691
+ Add the groonga apt repository.
692
+ .sp
693
+ /etc/apt/sources.list.d/groonga.list:
694
+ .sp
695
+ .nf
696
+ .ft C
697
+ deb http://packages.groonga.org/ubuntu/ quantal universe
698
+ deb\-src http://packages.groonga.org/ubuntu/ quantal universe
699
+ .ft P
700
+ .fi
701
+ .sp
702
+ Install:
703
+ .sp
704
+ .nf
705
+ .ft C
706
+ % sudo apt\-get update
707
+ % sudo apt\-get \-y \-\-allow\-unauthenticated install groonga\-keyring
708
+ % sudo apt\-get update
709
+ % sudo apt\-get \-y install groonga
710
+ .ft P
711
+ .fi
712
+ .sp
713
+ If you want to use \fI\%MeCab\fP as a
714
+ tokenizer, install groonga\-tokenizer\-mecab package.
715
+ .sp
716
+ Install groonga\-tokenizer\-mecab package:
717
+ .sp
718
+ .nf
719
+ .ft C
720
+ % sudo apt\-get \-y install groonga\-tokenizer\-mecab
721
+ .ft P
722
+ .fi
723
+ .sp
724
+ There is a package that provides \fI\%Munin\fP plugins. If you want to monitor
725
+ groonga status by Munin, install groonga\-munin\-plugins package.
726
+ .sp
727
+ Install groonga\-munin\-plugins package:
728
+ .sp
729
+ .nf
730
+ .ft C
731
+ % sudo apt\-get \-y install groonga\-munin\-plugins
732
+ .ft P
733
+ .fi
661
734
  .SS Build from source
662
735
  .sp
663
736
  Install required packages to build groonga:
@@ -672,9 +745,9 @@ Download source:
672
745
  .sp
673
746
  .nf
674
747
  .ft C
675
- % wget http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
676
- % tar xvzf groonga\-2.0.7.tar.gz
677
- % cd groonga\-2.0.7
748
+ % wget http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
749
+ % tar xvzf groonga\-2.0.9.tar.gz
750
+ % cd groonga\-2.0.9
678
751
  .ft P
679
752
  .fi
680
753
  .sp
@@ -734,6 +807,24 @@ Install groonga\-tokenizer\-mecab package:
734
807
  .ft P
735
808
  .fi
736
809
  .sp
810
+ Then install MeCab dictionary. (mecab\-ipadic or mecab\-jumandic)
811
+ .sp
812
+ Install IPA dictionary:
813
+ .sp
814
+ .nf
815
+ .ft C
816
+ % sudo yum install \-y mecab\-ipadic
817
+ .ft P
818
+ .fi
819
+ .sp
820
+ Or install Juman dictionary:
821
+ .sp
822
+ .nf
823
+ .ft C
824
+ % sudo yum install \-y mecab\-jumandic
825
+ .ft P
826
+ .fi
827
+ .sp
737
828
  There is a package that provides \fI\%Munin\fP plugins. If you want to monitor
738
829
  groonga status by Munin, install groonga\-munin\-plugins package.
739
830
  .IP Note
@@ -801,6 +892,24 @@ Install groonga\-tokenizer\-mecab package:
801
892
  .ft P
802
893
  .fi
803
894
  .sp
895
+ Then install MeCab dictionary. (mecab\-ipadic or mecab\-jumandic)
896
+ .sp
897
+ Install IPA dictionary:
898
+ .sp
899
+ .nf
900
+ .ft C
901
+ % sudo yum install \-y mecab\-ipadic
902
+ .ft P
903
+ .fi
904
+ .sp
905
+ Or install Juman dictionary:
906
+ .sp
907
+ .nf
908
+ .ft C
909
+ % sudo yum install \-y mecab\-jumandic
910
+ .ft P
911
+ .fi
912
+ .sp
804
913
  There is a package that provides \fI\%Munin\fP plugins. If you want to monitor
805
914
  groonga status by Munin, install groonga\-munin\-plugins package.
806
915
  .IP Note
@@ -839,9 +948,9 @@ Download source:
839
948
  .sp
840
949
  .nf
841
950
  .ft C
842
- % wget http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
843
- % tar xvzf groonga\-2.0.7.tar.gz
844
- % cd groonga\-2.0.7
951
+ % wget http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
952
+ % tar xvzf groonga\-2.0.9.tar.gz
953
+ % cd groonga\-2.0.9
845
954
  .ft P
846
955
  .fi
847
956
  .sp
@@ -909,6 +1018,24 @@ Install groonga\-tokenizer\-mecab package:
909
1018
  .ft P
910
1019
  .fi
911
1020
  .sp
1021
+ Then install MeCab dictionary. (mecab\-ipadic or mecab\-jumandic)
1022
+ .sp
1023
+ Install IPA dictionary:
1024
+ .sp
1025
+ .nf
1026
+ .ft C
1027
+ % sudo yum install \-y mecab\-ipadic
1028
+ .ft P
1029
+ .fi
1030
+ .sp
1031
+ Or install Juman dictionary:
1032
+ .sp
1033
+ .nf
1034
+ .ft C
1035
+ % sudo yum install \-y mecab\-jumandic
1036
+ .ft P
1037
+ .fi
1038
+ .sp
912
1039
  There is a package that provides \fI\%Munin\fP plugins. If you want to monitor
913
1040
  groonga status by Munin, install groonga\-munin\-plugins package.
914
1041
  .sp
@@ -933,9 +1060,9 @@ Download source:
933
1060
  .sp
934
1061
  .nf
935
1062
  .ft C
936
- % wget http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
937
- % tar xvzf groonga\-2.0.7.tar.gz
938
- % cd groonga\-2.0.7
1063
+ % wget http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
1064
+ % tar xvzf groonga\-2.0.9.tar.gz
1065
+ % cd groonga\-2.0.9
939
1066
  .ft P
940
1067
  .fi
941
1068
  .sp
@@ -980,9 +1107,9 @@ Download source:
980
1107
  .sp
981
1108
  .nf
982
1109
  .ft C
983
- % wget http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
984
- % gtar xvzf groonga\-2.0.7.tar.gz
985
- % cd groonga\-2.0.7
1110
+ % wget http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
1111
+ % gtar xvzf groonga\-2.0.9.tar.gz
1112
+ % cd groonga\-2.0.9
986
1113
  .ft P
987
1114
  .fi
988
1115
  .sp
@@ -1106,9 +1233,9 @@ steps:
1106
1233
  .sp
1107
1234
  .nf
1108
1235
  .ft C
1109
- % wget http://packages.groonga.org/source/groonga/groonga\-2.0.7.tar.gz
1110
- % tar xvzf groonga\-2.0.7.tar.gz
1111
- % cd groonga\-2.0.7
1236
+ % wget http://packages.groonga.org/source/groonga/groonga\-2.0.9.tar.gz
1237
+ % tar xvzf groonga\-2.0.9.tar.gz
1238
+ % cd groonga\-2.0.9
1112
1239
  % ./configure
1113
1240
  % make
1114
1241
  % sudo make install
@@ -7301,7 +7428,7 @@ POST
7301
7428
  T} T{
7302
7429
  x
7303
7430
  T} T{
7304
- x (comming soon)
7431
+ o
7305
7432
  T}
7306
7433
  _
7307
7434
  T{
@@ -7581,7 +7708,25 @@ formats in the future. The second, all requests for the \fIlocation\fP are
7581
7708
  processed by groonga. You don\(aqt need to consider about other modules.
7582
7709
  .SS POST
7583
7710
  .sp
7584
- TODO
7711
+ You can load your data by POST JSON data. You need follow the
7712
+ following rules to use loading by POST.
7713
+ .INDENT 0.0
7714
+ .IP \(bu 2
7715
+ \fIContent\-Type\fP header value must be \fIapplication/json\fP.
7716
+ .IP \(bu 2
7717
+ JSON data is sent as body.
7718
+ .IP \(bu 2
7719
+ Table name is specified by query parameter such as \fBtable=NAME\fP.
7720
+ .UNINDENT
7721
+ .sp
7722
+ Here is an example curl command line that loads two users \fIalice\fP and
7723
+ \fIbob\fP to \fIUsers\fP table:
7724
+ .sp
7725
+ .nf
7726
+ .ft C
7727
+ % curl \-\-data\-binary \(aq[{"_key": "alice"}, {"_key": "bob"}]\(aq \-H "Content\-Type: application/json" "http://localhost:10041/d/load?table=Users"
7728
+ .ft P
7729
+ .fi
7585
7730
  .SS HTTPS
7586
7731
  .sp
7587
7732
  TODO
@@ -8765,6 +8910,12 @@ in MessagePack format:
8765
8910
  (... omitted because MessagePack is binary data format. ...)
8766
8911
  .ft P
8767
8912
  .fi
8913
+ .SS Command
8914
+ .sp
8915
+ Command is the most important processing unit in query API. You
8916
+ request a processing to groonga by a command.
8917
+ .sp
8918
+ This section describes about command and built\-in commands.
8768
8919
  .SS コマンドバージョン
8769
8920
  .SS 概要
8770
8921
  .sp
@@ -8839,164 +8990,505 @@ select \-\-command_version 1 \-\-table tablename
8839
8990
  .fi
8840
8991
  .sp
8841
8992
  指定されたコマンドバージョンでコマンドを実行します。指定されたコマンドバージョンがサポート対象外であった場合にはエラーが返されます。command\-versionが指定されなかった場合は、当該プロセス起動時にdefault\-command\-versionに指定した値が指定されたものとみなします。
8842
- .SS コマンド
8843
- .sp
8844
- まず、すべてのコマンドに関係するコマンドバージョンについて説明します。その後、組み込みのコマンドを順に説明します。
8845
- .SS コマンドバージョン
8846
- .SS 概要
8847
- .sp
8848
- groonga1.1からコマンドバージョンという概念が導入されます。コマンドバージョンは、selectやloadなどのgroongaのコマンドの仕様の互換性を表します。groongaパッケージのバージョンが新しくなったとしても、同一のコマンドバージョンが使用可能であるなら、すべてのコマンドについて互換性が保証されます。コマンドバージョンが異なれば、同じ名前のコマンドであっても、動作に互換性がない可能性があります。
8993
+ .SS Output format
8994
+ .SS Summary
8849
8995
  .sp
8850
- あるバージョンのgroongaは、二つのコマンドバージョンを同時にサポートするようになります。
8851
- 使用するコマンドバージョンは、groongaを起動する際のコマンドラインオプションないしコンフィグファイルにdefault\-commnad\-versionパラメータを与えることによって指定できます。また、個々のコマンドを実行する際に、command_versionパラメータを与えることによっても指定することができます。
8996
+ Commands output their result as JSON, MessagePack, XML or TSV format.
8852
8997
  .sp
8853
- コマンドバージョンは1からはじまり、更新されるたびに1ずつ大きくなります。現状のgroongaのコマンドの仕様はcommand\-version 1という扱いになります。次回提供するgroongaは、command\-version 1とcommand\-version 2の二つをサポートすることになります。
8854
- .SS バージョンの位置づけ
8998
+ JSON and MessagePack output have the same structure. XML and TSV are
8999
+ their original structure.
8855
9000
  .sp
8856
- あるバージョンのgroongaにおいてサポートされるコマンドバージョンは、develop, stable,deprecatedのいずれかの位置づけとなります。
8857
- .INDENT 0.0
8858
- .TP
8859
- .B develop
8860
- まだ開発中であり、仕様が変更される可能性があります。
8861
- .TP
8862
- .B stable
8863
- 使用可能であり仕様も安定しています。その時点で使用することが推奨されます。
8864
- .TP
8865
- .B deprecated
8866
- 使用可能であり仕様も安定していますが、廃止予定であり使用が推奨されません。
8867
- .UNINDENT
9001
+ JSON or MessagePack is recommend format. XML is useful for visual
9002
+ result check. TSV is just for special use. Normally you doesn\(aqt need
9003
+ to use TSV.
9004
+ .SS JSON and MessagePack
8868
9005
  .sp
8869
- あるバージョンのgroongaがサポートする二つのコマンドバージョンのうち、いずれか一つが必ずstableの位置づけとなります。残りの一つは、developないしdeprecatedとなります。
9006
+ This secsion describes the structure of command result on JSON and
9007
+ MessagePack format. JSON is used to show structure because MessagePack
9008
+ is binary format. Binary format isn\(aqt proper for documenataion.
8870
9009
  .sp
8871
- たとえば下記のようにgroongaのサポートするコマンドバージョンは推移します。:
9010
+ JSON and MessagePack uses the following structure:
8872
9011
  .sp
8873
9012
  .nf
8874
9013
  .ft C
8875
- groonga1.1: command\-version1=stable command\-version2=develop
8876
- groonga1.2: command\-version1=deprecated command\-version2=stable
8877
- groonga1.3: command\-version2=stable command\-version3=develop
8878
- groonga1.4: command\-version2=deprecated command\-version3=stable
8879
- groonga1.5: command\-version3=stable command\-version4=develop
9014
+ [HEADER, BODY]
8880
9015
  .ft P
8881
9016
  .fi
8882
9017
  .sp
8883
- あるコマンドバージョンははじめにdevelop扱いとしてリリースされ、やがてstableに移行します。
8884
- その後二世代経過するとそのコマンドバージョンはdeprecated扱いとなります。さらに次のコマンドバージョンがリリースされると、deprecatedだったコマンドバージョンはサポート対象外となります。
8885
- .sp
8886
- default\-commnad\-versionパラメータやcommand_versionパラメータを指定せずにgroongaコマンドを実行した際には、その時点でstableであるコマンドバージョンが指定されたものとみなします。
9018
+ For example:
8887
9019
  .sp
8888
- groongaプロセス起動時に、default\-command\-versionパラメータにstable扱いでないコマンドバージョンを指定した場合には、警告メッセージがログファイルに出力されます。また、サポート範囲外のコマンドバージョンを指定した場合にはエラーとなり、プロセスは速やかに停止します。
8889
- .SS コマンドバージョンの指定方法
9020
+ .nf
9021
+ .ft C
9022
+ [
9023
+ [
9024
+ 0,
9025
+ 1337566253.89858,
9026
+ 0.000355720520019531
9027
+ ],
9028
+ [
9029
+ [
9030
+ [
9031
+ 1
9032
+ ],
9033
+ [
9034
+ [
9035
+ "_id",
9036
+ "UInt32"
9037
+ ],
9038
+ [
9039
+ "_key",
9040
+ "ShortText"
9041
+ ],
9042
+ [
9043
+ "content",
9044
+ "Text"
9045
+ ],
9046
+ [
9047
+ "n_likes",
9048
+ "UInt32"
9049
+ ]
9050
+ ],
9051
+ [
9052
+ 2,
9053
+ "Groonga",
9054
+ "I started to use groonga. It\(aqs very fast!",
9055
+ 10
9056
+ ]
9057
+ ]
9058
+ ]
9059
+ ]
9060
+ .ft P
9061
+ .fi
8890
9062
  .sp
8891
- コマンドバージョンの指定方法はgroonga実行モジュールの引数として指定する方法と各コマンドの引数として指定する方法があります。
8892
- .SS default\-command\-versionパラメータ
9063
+ In the example, the following part is \fBHEADER\fP:
8893
9064
  .sp
8894
- groonga実行モジュールの引数としてdefault\-command\-versionパラメータを指定できます。
8895
- (configファイルの中に指定することも可能です)
9065
+ .nf
9066
+ .ft C
9067
+ [
9068
+ 0,
9069
+ 1337566253.89858,
9070
+ 0.000355720520019531
9071
+ ]
9072
+ .ft P
9073
+ .fi
8896
9074
  .sp
8897
- 実行例:
9075
+ The following part is \fBBODY\fP:
8898
9076
  .sp
8899
9077
  .nf
8900
9078
  .ft C
8901
- groonga \-\-default\-command\-version 1
9079
+ [
9080
+ [
9081
+ [
9082
+ 1
9083
+ ],
9084
+ [
9085
+ [
9086
+ "_id",
9087
+ "UInt32"
9088
+ ],
9089
+ [
9090
+ "_key",
9091
+ "ShortText"
9092
+ ],
9093
+ [
9094
+ "content",
9095
+ "Text"
9096
+ ],
9097
+ [
9098
+ "n_likes",
9099
+ "UInt32"
9100
+ ]
9101
+ ],
9102
+ [
9103
+ 2,
9104
+ "Groonga",
9105
+ "I started to use groonga. It\(aqs very fast!",
9106
+ 10
9107
+ ]
9108
+ ]
9109
+ ]
8902
9110
  .ft P
8903
9111
  .fi
9112
+ .SS \fBHEADER\fP
8904
9113
  .sp
8905
- そのプロセスで実行するすべてのコマンドについて、デフォルトのコマンドバージョンとして指定されたバージョンを使用します。指定されたコマンドバージョンがstableであった場合にはなんのメッセージも表示されずそのまま起動します。指定されたコマンドバージョンがdevelopあるいはdeprecatedであった場合には、groonga.logファイルに警告メッセージを出力します。指定されたコマンドバージョンがサポート対象外であった場合には標準エラー出力にエラーメッセージを出力し、プロセスは速やかに終了します。
8906
- .SS command_versionパラメータ
8907
- .sp
8908
- select,loadなどのすべてのgroongaコマンドにcommand_versionが指定できます。
9114
+ \fBHEADER\fP is an array. The content of \fBHEADER\fP has some patterns.
9115
+ .SS Success case
8909
9116
  .sp
8910
- 実行例:
9117
+ \fBHEADER\fP has three elements on success:
8911
9118
  .sp
8912
9119
  .nf
8913
9120
  .ft C
8914
- select \-\-command_version 1 \-\-table tablename
9121
+ [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME]
8915
9122
  .ft P
8916
9123
  .fi
8917
9124
  .sp
8918
- 指定されたコマンドバージョンでコマンドを実行します。指定されたコマンドバージョンがサポート対象外であった場合にはエラーが返されます。command\-versionが指定されなかった場合は、当該プロセス起動時にdefault\-command\-versionに指定した値が指定されたものとみなします。
8919
- .SS cache_limit
8920
- .SS 名前
9125
+ The first element is always \fB0\fP.
8921
9126
  .sp
8922
- cache_limit \- cacheサイズの設定・取得
8923
- .SS 書式
9127
+ \fBUNIX_TIME_WHEN_COMMAND_IS_STARTED\fP is the number of seconds
9128
+ since 1970\-01\-01 00:00:00 UTC when the command is started
9129
+ processing. \fBELAPSED_TIME\fP is the elapsed time for processing the
9130
+ command in seconds. Both \fBUNIX_TIME_WHEN_COMMAND_IS_STARTED\fP and
9131
+ \fBELAPSED_TIME\fP are float value. The precision of them are
9132
+ nanosecond.
9133
+ .SS Error case
9134
+ .sp
9135
+ \fBHEADER\fP has four or five elements on error:
8924
9136
  .sp
8925
9137
  .nf
8926
9138
  .ft C
8927
- cache_limit max
9139
+ [
9140
+ RETURN_CODE,
9141
+ UNIX_TIME_WHEN_COMMAND_IS_STARTED,
9142
+ ELAPSED_TIME,
9143
+ ERROR_MESSAGE,
9144
+ ERROR_LOCATION
9145
+ ]
8928
9146
  .ft P
8929
9147
  .fi
8930
- .SS 説明
8931
9148
  .sp
8932
- groonga組込コマンドの一つであるcache_limitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
9149
+ \fBERROR_LOCATION\fP may not be included in \fBHEADER\fP but other four
9150
+ elements are always included.
8933
9151
  .sp
8934
- cache_limitは、クエリキャッシュの最大件数を取得したり設定したりします。
8935
- .SS 引数
9152
+ \fBRETURN_CODE\fP is non 0 value. See \fBreturn_code\fP about available
9153
+ return codes.
8936
9154
  .sp
8937
- \fBmax\fP
8938
- .INDENT 0.0
8939
- .INDENT 3.5
8940
- クエリキャッシュの最大件数を整数で指定します。
8941
- maxが指定されなかった場合には、クエリキャッシュの最大件数は変更せず、
8942
- 現在の設定値のみが返されます。
8943
- .UNINDENT
8944
- .UNINDENT
8945
- .SS 返値
8946
- .SS json
9155
+ \fBUNIX_TIME_WHEN_COMMAND_IS_STARTED\fP and \fBELAPSED_TIME\fP are the
9156
+ same as success case.
9157
+ .sp
9158
+ \fBERROR_MESSAGE\fP is an error message in string.
9159
+ .sp
9160
+ \fBERROR_LOCATION\fP is optional. If error location is collected,
9161
+ \fBERROR_LOCATION\fP is included. \fBERROR_LOCATION\fP is an
9162
+ array. \fBERROR_LOCATION\fP has one ore two elements:
8947
9163
  .sp
8948
9164
  .nf
8949
9165
  .ft C
8950
- [以前の設定値]
8951
-
8952
- \(ga\(ga以前の設定値\(ga\(ga
8953
-
8954
- すでに設定されていたクエリキャッシュの最大件数を返す。
9166
+ [
9167
+ LOCATION_IN_GROONGA,
9168
+ LOCATION_IN_INPUT
9169
+ ]
8955
9170
  .ft P
8956
9171
  .fi
8957
- .SS 例
9172
+ .sp
9173
+ \fBLOCATION_IN_GROONGA\fP is the source location that error is occurred
9174
+ in groonga. It is useful for groonga developers but not useful for
9175
+ users. \fBLOCATION_IN_GROONGA\fP is an array. \fBLOCATION_IN_GROONGA\fP has
9176
+ three elements:
8958
9177
  .sp
8959
9178
  .nf
8960
9179
  .ft C
8961
- cache_limit 4
8962
- [100]
9180
+ [
9181
+ FUNCTION_NAME,
9182
+ SOURCE_FILE_NAME,
9183
+ LINE_NUMBER
9184
+ ]
8963
9185
  .ft P
8964
9186
  .fi
8965
- .SS check
8966
- .SS 名前
8967
9187
  .sp
8968
- check \- オブジェクトの状態表示
8969
- .SS 書式
9188
+ \fBFUNCTION_NAME\fP is the name of function that error is occurred.
9189
+ .sp
9190
+ \fBSOURCE_FILE_NAME\fP is the name of groonga\(aqs source file that error is
9191
+ occurred.
9192
+ .sp
9193
+ \fBLINE_NUMBER\fP is the line number of \fBSOURCE_FILE_NAME\fP that error
9194
+ is occurred.
9195
+ .sp
9196
+ \fBLOCATION_IN_INPUT\fP is optional. \fBLOCATION_IN_INPUT\fP is included
9197
+ when the location that error is occurred in input file is
9198
+ collected. Input file can be specified by \fB\-\-file\fP command line
9199
+ option for \fBgroonga\fP command. \fBLOCATION_IN_GROONGA\fP is an
9200
+ array. \fBLOCATION_IN_GROONGA\fP has three elements:
8970
9201
  .sp
8971
9202
  .nf
8972
9203
  .ft C
8973
- check obj
9204
+ [
9205
+ INPUT_FILE_NAME,
9206
+ LINE_NUMBER,
9207
+ LINE_CONTENT
9208
+ ]
8974
9209
  .ft P
8975
9210
  .fi
8976
- .SS 説明
8977
9211
  .sp
8978
- groonga組込コマンドの一つであるcheckについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
9212
+ \fBINPUT_FILE_NAME\fP is the input file name that error is occurred.
8979
9213
  .sp
8980
- checkコマンドは、groongaプロセス内の指定したオブジェクトの状態を表示します。主にデータベースが壊れた場合など異常時の問題解決のために使用することを想定しています。デバッグ用のため、返値のフォーマットが安定しているということは保証されません。(フォーマットが変更される可能性が高い)
8981
- .SS 引数
9214
+ \fBLINE_NUMBER\fP is the line number of \fBINPUT_FILE_NAME\fP that error
9215
+ is occurred.
8982
9216
  .sp
8983
- \fBobj\fP
8984
- .INDENT 0.0
8985
- .INDENT 3.5
8986
- 状態を表示するオブジェクトの名前を指定します。
8987
- .UNINDENT
8988
- .UNINDENT
8989
- .SS 返値
8990
- .SS json形式
9217
+ \fBLINE_CONTENT\fP is the content at \fBLINE_NUMBER\fP in
9218
+ \fBINPUT_FILE_NAME\fP.
9219
+ .SS \fBBODY\fP
8991
9220
  .sp
8992
- チェックするオブジェクトにより返される値が変わります。
9221
+ \fBBODY\fP content depends on the executed command. It may be omitted.
8993
9222
  .sp
8994
- インデックスカラムの場合:
9223
+ \fBBODY\fP may be an error message on error case.
9224
+ .SS XML
8995
9225
  .sp
8996
- .nf
8997
- .ft C
8998
- 下記のような配列が出力されます。
8999
-
9226
+ TODO
9227
+ .SS TSV
9228
+ .sp
9229
+ TODO
9230
+ .SS See also
9231
+ .INDENT 0.0
9232
+ .IP \(bu 2
9233
+ \fBreturn_code\fP describes about return code.
9234
+ .UNINDENT
9235
+ .SS Return code
9236
+ .SS Summary
9237
+ .sp
9238
+ Return code is used to show whether a processing is succeeded or
9239
+ not. If the processing is not succeeded, return code shows error type.
9240
+ .sp
9241
+ Return code is used in C API and query API. You can check return code
9242
+ via \fBgrn_ctx_t::rc\fP in C API. You can check return code by looking
9243
+ the header element in query API. See \fBoutput_format\fP about the
9244
+ header element in query API.
9245
+ .SS List
9246
+ .sp
9247
+ Here is a list of return codes. \fBGRN_SUCCESS\fP (= 0) means that the
9248
+ processing is succeeded. Return codes that have negative value show
9249
+ error type. \fBGRN_END_OF_DATA\fP is a special return code. It is used
9250
+ only C API. It is not showen in query API.
9251
+ .INDENT 0.0
9252
+ .IP \(bu 2
9253
+ 0: \fBGRN_SUCCESS\fP
9254
+ .IP \(bu 2
9255
+ 1: \fBGRN_END_OF_DATA\fP
9256
+ .IP \(bu 2
9257
+ \-1: \fBGRN_UNKNOWN_ERROR\fP
9258
+ .IP \(bu 2
9259
+ \-2: \fBGRN_OPERATION_NOT_PERMITTED\fP
9260
+ .IP \(bu 2
9261
+ \-3: \fBGRN_NO_SUCH_FILE_OR_DIRECTORY\fP
9262
+ .IP \(bu 2
9263
+ \-4: \fBGRN_NO_SUCH_PROCESS\fP
9264
+ .IP \(bu 2
9265
+ \-5: \fBGRN_INTERRUPTED_FUNCTION_CALL\fP
9266
+ .IP \(bu 2
9267
+ \-6: \fBGRN_INPUT_OUTPUT_ERROR\fP
9268
+ .IP \(bu 2
9269
+ \-7: \fBGRN_NO_SUCH_DEVICE_OR_ADDRESS\fP
9270
+ .IP \(bu 2
9271
+ \-8: \fBGRN_ARG_LIST_TOO_LONG\fP
9272
+ .IP \(bu 2
9273
+ \-9: \fBGRN_EXEC_FORMAT_ERROR\fP
9274
+ .IP \(bu 2
9275
+ \-10: \fBGRN_BAD_FILE_DESCRIPTOR\fP
9276
+ .IP \(bu 2
9277
+ \-11: \fBGRN_NO_CHILD_PROCESSES\fP
9278
+ .IP \(bu 2
9279
+ \-12: \fBGRN_RESOURCE_TEMPORARILY_UNAVAILABLE\fP
9280
+ .IP \(bu 2
9281
+ \-13: \fBGRN_NOT_ENOUGH_SPACE\fP
9282
+ .IP \(bu 2
9283
+ \-14: \fBGRN_PERMISSION_DENIED\fP
9284
+ .IP \(bu 2
9285
+ \-15: \fBGRN_BAD_ADDRESS\fP
9286
+ .IP \(bu 2
9287
+ \-16: \fBGRN_RESOURCE_BUSY\fP
9288
+ .IP \(bu 2
9289
+ \-17: \fBGRN_FILE_EXISTS\fP
9290
+ .IP \(bu 2
9291
+ \-18: \fBGRN_IMPROPER_LINK\fP
9292
+ .IP \(bu 2
9293
+ \-19: \fBGRN_NO_SUCH_DEVICE\fP
9294
+ .IP \(bu 2
9295
+ \-20: \fBGRN_NOT_A_DIRECTORY\fP
9296
+ .IP \(bu 2
9297
+ \-21: \fBGRN_IS_A_DIRECTORY\fP
9298
+ .IP \(bu 2
9299
+ \-22: \fBGRN_INVALID_ARGUMENT\fP
9300
+ .IP \(bu 2
9301
+ \-23: \fBGRN_TOO_MANY_OPEN_FILES_IN_SYSTEM\fP
9302
+ .IP \(bu 2
9303
+ \-24: \fBGRN_TOO_MANY_OPEN_FILES\fP
9304
+ .IP \(bu 2
9305
+ \-25: \fBGRN_INAPPROPRIATE_I_O_CONTROL_OPERATION\fP
9306
+ .IP \(bu 2
9307
+ \-26: \fBGRN_FILE_TOO_LARGE\fP
9308
+ .IP \(bu 2
9309
+ \-27: \fBGRN_NO_SPACE_LEFT_ON_DEVICE\fP
9310
+ .IP \(bu 2
9311
+ \-28: \fBGRN_INVALID_SEEK\fP
9312
+ .IP \(bu 2
9313
+ \-29: \fBGRN_READ_ONLY_FILE_SYSTEM\fP
9314
+ .IP \(bu 2
9315
+ \-30: \fBGRN_TOO_MANY_LINKS\fP
9316
+ .IP \(bu 2
9317
+ \-31: \fBGRN_BROKEN_PIPE\fP
9318
+ .IP \(bu 2
9319
+ \-32: \fBGRN_DOMAIN_ERROR\fP
9320
+ .IP \(bu 2
9321
+ \-33: \fBGRN_RESULT_TOO_LARGE\fP
9322
+ .IP \(bu 2
9323
+ \-34: \fBGRN_RESOURCE_DEADLOCK_AVOIDED\fP
9324
+ .IP \(bu 2
9325
+ \-35: \fBGRN_NO_MEMORY_AVAILABLE\fP
9326
+ .IP \(bu 2
9327
+ \-36: \fBGRN_FILENAME_TOO_LONG\fP
9328
+ .IP \(bu 2
9329
+ \-37: \fBGRN_NO_LOCKS_AVAILABLE\fP
9330
+ .IP \(bu 2
9331
+ \-38: \fBGRN_FUNCTION_NOT_IMPLEMENTED\fP
9332
+ .IP \(bu 2
9333
+ \-39: \fBGRN_DIRECTORY_NOT_EMPTY\fP
9334
+ .IP \(bu 2
9335
+ \-40: \fBGRN_ILLEGAL_BYTE_SEQUENCE\fP
9336
+ .IP \(bu 2
9337
+ \-41: \fBGRN_SOCKET_NOT_INITIALIZED\fP
9338
+ .IP \(bu 2
9339
+ \-42: \fBGRN_OPERATION_WOULD_BLOCK\fP
9340
+ .IP \(bu 2
9341
+ \-43: \fBGRN_ADDRESS_IS_NOT_AVAILABLE\fP
9342
+ .IP \(bu 2
9343
+ \-44: \fBGRN_NETWORK_IS_DOWN\fP
9344
+ .IP \(bu 2
9345
+ \-45: \fBGRN_NO_BUFFER\fP
9346
+ .IP \(bu 2
9347
+ \-46: \fBGRN_SOCKET_IS_ALREADY_CONNECTED\fP
9348
+ .IP \(bu 2
9349
+ \-47: \fBGRN_SOCKET_IS_NOT_CONNECTED\fP
9350
+ .IP \(bu 2
9351
+ \-48: \fBGRN_SOCKET_IS_ALREADY_SHUTDOWNED\fP
9352
+ .IP \(bu 2
9353
+ \-49: \fBGRN_OPERATION_TIMEOUT\fP
9354
+ .IP \(bu 2
9355
+ \-50: \fBGRN_CONNECTION_REFUSED\fP
9356
+ .IP \(bu 2
9357
+ \-51: \fBGRN_RANGE_ERROR\fP
9358
+ .IP \(bu 2
9359
+ \-52: \fBGRN_TOKENIZER_ERROR\fP
9360
+ .IP \(bu 2
9361
+ \-53: \fBGRN_FILE_CORRUPT\fP
9362
+ .IP \(bu 2
9363
+ \-54: \fBGRN_INVALID_FORMAT\fP
9364
+ .IP \(bu 2
9365
+ \-55: \fBGRN_OBJECT_CORRUPT\fP
9366
+ .IP \(bu 2
9367
+ \-56: \fBGRN_TOO_MANY_SYMBOLIC_LINKS\fP
9368
+ .IP \(bu 2
9369
+ \-57: \fBGRN_NOT_SOCKET\fP
9370
+ .IP \(bu 2
9371
+ \-58: \fBGRN_OPERATION_NOT_SUPPORTED\fP
9372
+ .IP \(bu 2
9373
+ \-59: \fBGRN_ADDRESS_IS_IN_USE\fP
9374
+ .IP \(bu 2
9375
+ \-60: \fBGRN_ZLIB_ERROR\fP
9376
+ .IP \(bu 2
9377
+ \-61: \fBGRN_LZO_ERROR\fP
9378
+ .IP \(bu 2
9379
+ \-62: \fBGRN_STACK_OVER_FLOW\fP
9380
+ .IP \(bu 2
9381
+ \-63: \fBGRN_SYNTAX_ERROR\fP
9382
+ .IP \(bu 2
9383
+ \-64: \fBGRN_RETRY_MAX\fP
9384
+ .IP \(bu 2
9385
+ \-65: \fBGRN_INCOMPATIBLE_FILE_FORMAT\fP
9386
+ .IP \(bu 2
9387
+ \-66: \fBGRN_UPDATE_NOT_ALLOWED\fP
9388
+ .IP \(bu 2
9389
+ \-67: \fBGRN_TOO_SMALL_OFFSET\fP
9390
+ .IP \(bu 2
9391
+ \-68: \fBGRN_TOO_LARGE_OFFSET\fP
9392
+ .IP \(bu 2
9393
+ \-69: \fBGRN_TOO_SMALL_LIMIT\fP
9394
+ .IP \(bu 2
9395
+ \-70: \fBGRN_CAS_ERROR\fP
9396
+ .IP \(bu 2
9397
+ \-71: \fBGRN_UNSUPPORTED_COMMAND_VERSION\fP
9398
+ .UNINDENT
9399
+ .SS See also
9400
+ .INDENT 0.0
9401
+ .IP \(bu 2
9402
+ \fBoutput_format\fP shows where return code is appeared in query
9403
+ API response.
9404
+ .IP \(bu 2
9405
+ \fB/spec/gqtp\fP: GQTP protocol also uses return code as status but
9406
+ it uses 2byte unsigned integer. So return codes that have negative
9407
+ value are statuses that have positive value in GQTP protocol. You
9408
+ can convert status value in GQTP protocol to return code by
9409
+ handling it as 2byte signed integer.
9410
+ .UNINDENT
9411
+ .SS cache_limit
9412
+ .SS 名前
9413
+ .sp
9414
+ cache_limit \- cacheサイズの設定・取得
9415
+ .SS 書式
9416
+ .sp
9417
+ .nf
9418
+ .ft C
9419
+ cache_limit max
9420
+ .ft P
9421
+ .fi
9422
+ .SS 説明
9423
+ .sp
9424
+ groonga組込コマンドの一つであるcache_limitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
9425
+ .sp
9426
+ cache_limitは、クエリキャッシュの最大件数を取得したり設定したりします。
9427
+ .SS 引数
9428
+ .sp
9429
+ \fBmax\fP
9430
+ .INDENT 0.0
9431
+ .INDENT 3.5
9432
+ クエリキャッシュの最大件数を整数で指定します。
9433
+ maxが指定されなかった場合には、クエリキャッシュの最大件数は変更せず、
9434
+ 現在の設定値のみが返されます。
9435
+ .UNINDENT
9436
+ .UNINDENT
9437
+ .SS 返値
9438
+ .SS json
9439
+ .sp
9440
+ .nf
9441
+ .ft C
9442
+ [以前の設定値]
9443
+
9444
+ \(ga\(ga以前の設定値\(ga\(ga
9445
+
9446
+ すでに設定されていたクエリキャッシュの最大件数を返す。
9447
+ .ft P
9448
+ .fi
9449
+ .SS 例
9450
+ .sp
9451
+ .nf
9452
+ .ft C
9453
+ cache_limit 4
9454
+ [100]
9455
+ .ft P
9456
+ .fi
9457
+ .SS check
9458
+ .SS 名前
9459
+ .sp
9460
+ check \- オブジェクトの状態表示
9461
+ .SS 書式
9462
+ .sp
9463
+ .nf
9464
+ .ft C
9465
+ check obj
9466
+ .ft P
9467
+ .fi
9468
+ .SS 説明
9469
+ .sp
9470
+ groonga組込コマンドの一つであるcheckについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
9471
+ .sp
9472
+ checkコマンドは、groongaプロセス内の指定したオブジェクトの状態を表示します。主にデータベースが壊れた場合など異常時の問題解決のために使用することを想定しています。デバッグ用のため、返値のフォーマットが安定しているということは保証されません。(フォーマットが変更される可能性が高い)
9473
+ .SS 引数
9474
+ .sp
9475
+ \fBobj\fP
9476
+ .INDENT 0.0
9477
+ .INDENT 3.5
9478
+ 状態を表示するオブジェクトの名前を指定します。
9479
+ .UNINDENT
9480
+ .UNINDENT
9481
+ .SS 返値
9482
+ .SS json形式
9483
+ .sp
9484
+ チェックするオブジェクトにより返される値が変わります。
9485
+ .sp
9486
+ インデックスカラムの場合:
9487
+ .sp
9488
+ .nf
9489
+ .ft C
9490
+ 下記のような配列が出力されます。
9491
+
9000
9492
  [インデックスの状態, バッファの状態1, バッファの状態2, ...]
9001
9493
 
9002
9494
  \(ga\(gaインデックスの状態\(ga\(gaには下記の項目がハッシュ形式で出力されます。
@@ -10169,6 +10661,61 @@ quitは、groongaプロセスとのセッションを終了します。クライ
10169
10661
  quit
10170
10662
  .ft P
10171
10663
  .fi
10664
+ .SS register
10665
+ .SS Summary
10666
+ .sp
10667
+ \fBregister\fP command registers a plugin. You need to register a plugin
10668
+ before you use a plugin.
10669
+ .sp
10670
+ You need just one \fBregister\fP command for a plugin in the same
10671
+ database because registered plugin information is written into the
10672
+ database. When you restart your \fBgroonga\fP process, \fBgroonga\fP
10673
+ process loads all registered plugins without \fBregister\fP command.
10674
+ .IP Note
10675
+ Registered plugins can\(aqt be removed for now.
10676
+ .RE
10677
+ .SS Syntax
10678
+ .sp
10679
+ \fBregister\fP has a parameter \fBpath\fP. It is required parameter:
10680
+ .sp
10681
+ .nf
10682
+ .ft C
10683
+ register path
10684
+ .ft P
10685
+ .fi
10686
+ .SS Usage
10687
+ .sp
10688
+ Here is a sample that registers \fBQueryExpanderTSV\fP query expander
10689
+ that is included in
10690
+ \fB${PREFIX}/lib/groonga/plugins/query_expanders/tsv.so\fP.
10691
+ .sp
10692
+ Execution example:
10693
+ .sp
10694
+ .nf
10695
+ .ft C
10696
+ register query_expanders/tsv
10697
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
10698
+ .ft P
10699
+ .fi
10700
+ .sp
10701
+ You can omit \fB${PREFIX}/lib/groonga/plugins/\fP and suffix (\fB.so\fP).
10702
+ They are completed automatically.
10703
+ .sp
10704
+ You can specify absolute path such as \fBregister
10705
+ /usr/lib/groonga/plugins/query_expanders/tsv.so\fP.
10706
+ .SS Return value
10707
+ .sp
10708
+ \fBregister\fP returns \fBtrue\fP as body on success such as:
10709
+ .sp
10710
+ .nf
10711
+ .ft C
10712
+ [HEADER, true]
10713
+ .ft P
10714
+ .fi
10715
+ .sp
10716
+ If \fBregister\fP fails, error details are in \fBHEADER\fP.
10717
+ .sp
10718
+ See \fB/reference/command/output_format\fP for \fBHEADER\fP.
10172
10719
  .SS select
10173
10720
  .SS Summary
10174
10721
  .sp
@@ -13793,53 +14340,268 @@ Object型はv1.2でサポートされます。
13793
14340
  .SS Tokenizers
13794
14341
  .sp
13795
14342
  TODO: Write me.
13796
- .SS 疑似カラム (pseudo_column)
13797
- .SS 名前
13798
- .sp
13799
- 疑似カラム
13800
- .SS 説明
13801
- .sp
13802
- groongaのデータベースで作成したテーブルには、いくつかのカラムが自動的に定義されます。
13803
- .sp
13804
- これらのカラムはいずれもアンダースコア(\(aq_\(aq)で始まる名前が付与されます。定義される疑似カラムは、テーブルの種類によって異なります。
14343
+ .SS Query expanders
14344
+ .SS QueryExpanderTSV
14345
+ .SS Summary
13805
14346
  .sp
13806
- \fB_id\fP
13807
- .INDENT 0.0
13808
- .INDENT 3.5
13809
- レコードに付与される一意な番号です。全てのテーブルに定義されます。値の範囲は1〜1073741824の整数で、通常はレコードを追加した順に1ずつ加算されます。_idの値は不変で、レコードが存在する限り変更することはできません。ただし、削除されたレコードの_idの値は再利用されます。
13810
- .UNINDENT
13811
- .UNINDENT
14347
+ \fBQueryExpanderTSV\fP is a query expander plugin that reads synonyms
14348
+ from TSV (Tab Separated Values) file. This plugin provides poor
14349
+ feature than the embedded query expansion feature. For example, it
14350
+ doesn\(aqt support word normalization. But it may be easy to use because
14351
+ you can manage your synonyms by TSV file. You can edit your synonyms
14352
+ by spreadsheet application such as Excel. With the embedded query
14353
+ expansion feature, you manage your synonyms by groonga\(aqs table.
14354
+ .SS Install
13812
14355
  .sp
13813
- \fB_key\fP
13814
- .INDENT 0.0
13815
- .INDENT 3.5
13816
- レコードの主キー値を表します。主キーを持つテーブルのみに定義されます。主キー値はテーブルの中で一意であり、変更することはできません。
13817
- .UNINDENT
13818
- .UNINDENT
14356
+ You need to register \fBquery_expanders/tsv\fP as a plugin before you
14357
+ use \fBQueryExpanderTSV\fP:
13819
14358
  .sp
13820
- \fB_value\fP
13821
- .INDENT 0.0
13822
- .INDENT 3.5
13823
- レコードの値を表します。value_typeを指定したテーブルのみに定義されます。自由に変更可能です。
13824
- .UNINDENT
13825
- .UNINDENT
14359
+ .nf
14360
+ .ft C
14361
+ register query_expanders/tsv
14362
+ .ft P
14363
+ .fi
14364
+ .SS Usage
13826
14365
  .sp
13827
- \fB_score\fP
13828
- .INDENT 0.0
13829
- .INDENT 3.5
13830
- 各レコードのスコア値を表します。検索結果として生成されたテーブルのみに定義されます。
14366
+ You just add \fB\-\-query_expansion QueryExpanderTSV\fP parameter to
14367
+ \fBselect\fP command:
13831
14368
  .sp
13832
- 検索処理を実行する過程で値が設定されますが、自由に変更可能です。
13833
- .UNINDENT
13834
- .UNINDENT
14369
+ .nf
14370
+ .ft C
14371
+ select \-\-query "QUERY" \-\-query_expansion QueryExpanderTSV
14372
+ .ft P
14373
+ .fi
13835
14374
  .sp
13836
- \fB_nsubrecs\fP
13837
- .INDENT 0.0
13838
- .INDENT 3.5
13839
- 主キーの値が同一であったレコードの件数を表します。検索結果として生成されたテーブルのみに定義されます。グループ化(drilldown)処理を実行すると、グループ化前のテーブルにおいて、グループ化キーの値が同一であったレコードの件数が、グループ化処理の結果を格納するテーブルの_nsubrecsに記録されます。
13840
- .UNINDENT
13841
- .UNINDENT
13842
- .SS grn_expr
14375
+ If \fBQUERY\fP has registered synonyms, they are expanded. For example,
14376
+ there are the following synonyms.
14377
+ .TS
14378
+ center;
14379
+ |l|l|l|.
14380
+ _
14381
+ T{
14382
+ word
14383
+ T} T{
14384
+ synonym 1
14385
+ T} T{
14386
+ synonym 2
14387
+ T}
14388
+ _
14389
+ T{
14390
+ groonga
14391
+ T} T{
14392
+ groonga
14393
+ T} T{
14394
+ Senna
14395
+ T}
14396
+ _
14397
+ T{
14398
+ mroonga
14399
+ T} T{
14400
+ mroonga
14401
+ T} T{
14402
+ groonga MySQL
14403
+ T}
14404
+ _
14405
+ .TE
14406
+ .sp
14407
+ The table means that \fBsynonym 1\fP and \fBsynonym 2\fP are synonyms of
14408
+ \fBword\fP. For example, \fBgroonga\fP and \fBSenna\fP are synonyms of
14409
+ \fBgroonga\fP. And \fBmroonga\fP and \fBgroonga MySQL\fP are synonyms of
14410
+ \fBmroonga\fP.
14411
+ .sp
14412
+ Here is an example of query expnasion that uses \fBgroonga\fP as query:
14413
+ .sp
14414
+ .nf
14415
+ .ft C
14416
+ select \-\-query "groonga" \-\-query_expansion QueryExpanderTSV
14417
+ .ft P
14418
+ .fi
14419
+ .sp
14420
+ The above command equals to the following command:
14421
+ .sp
14422
+ .nf
14423
+ .ft C
14424
+ select \-\-query "groonga OR Senna" \-\-query_expansion QueryExpanderTSV
14425
+ .ft P
14426
+ .fi
14427
+ .sp
14428
+ Here is another example of query expnasion that uses \fBmroonga
14429
+ search\fP as query:
14430
+ .sp
14431
+ .nf
14432
+ .ft C
14433
+ select \-\-query "mroonga search" \-\-query_expansion QueryExpanderTSV
14434
+ .ft P
14435
+ .fi
14436
+ .sp
14437
+ The above command equals to the following command:
14438
+ .sp
14439
+ .nf
14440
+ .ft C
14441
+ select \-\-query "(mroonga OR (groonga MySQL)) search" \-\-query_expansion QueryExpanderTSV
14442
+ .ft P
14443
+ .fi
14444
+ .sp
14445
+ It is important that registered words (\fBgroonga\fP and \fBmroonga\fP)
14446
+ are only expanded to synonyms and not registered words (\fBsearch\fP)
14447
+ are not expanded. Query expansion isn\(aqt occurred
14448
+ recursively. \fBgroonga\fP is appeared in \fB(mroonga OR (groonga
14449
+ MySQL))\fP as query expansion result but it isn\(aqt expanded.
14450
+ .sp
14451
+ Normally, you need to include \fBword\fP itself into synonyms. For
14452
+ example, \fBgroonga\fP and \fBmroonga\fP are included in synonyms of
14453
+ themselves. If you want to ignore \fBword\fP itself, you don\(aqt include
14454
+ \fBword\fP itself into synonyms. For example, if you want to use query
14455
+ expansion as spelling correction, you should use the following
14456
+ synonyms.
14457
+ .TS
14458
+ center;
14459
+ |l|l|.
14460
+ _
14461
+ T{
14462
+ word
14463
+ T} T{
14464
+ synonym
14465
+ T}
14466
+ _
14467
+ T{
14468
+ gronga
14469
+ T} T{
14470
+ groonga
14471
+ T}
14472
+ _
14473
+ .TE
14474
+ .sp
14475
+ \fBgronga\fP in \fBword\fP has a typo. A \fBo\fP is missing. \fBgroonga\fP in
14476
+ \fBsynonym\fP is the correct word.
14477
+ .sp
14478
+ Here is an example of using query expnasion as spelling correction:
14479
+ .sp
14480
+ .nf
14481
+ .ft C
14482
+ select \-\-query "gronga" \-\-query_expansion QueryExpanderTSV
14483
+ .ft P
14484
+ .fi
14485
+ .sp
14486
+ The above command equals to the following command:
14487
+ .sp
14488
+ .nf
14489
+ .ft C
14490
+ select \-\-query "groonga" \-\-query_expansion QueryExpanderTSV
14491
+ .ft P
14492
+ .fi
14493
+ .sp
14494
+ The former command has a typo in \fB\-\-query\fP value but the latter
14495
+ command doesn\(aqt have any typos.
14496
+ .SS TSV File
14497
+ .sp
14498
+ Synonyms are defined in TSV format file. This section describes about
14499
+ it.
14500
+ .SS Location
14501
+ .sp
14502
+ The file name should be \fBsynonyms.tsv\fP and it is located at
14503
+ configuration directory. For example, \fB/etc/groonga/synonyms.tsv\fP is
14504
+ a TSV file location. The location is decided at build time.
14505
+ .sp
14506
+ You can change the location by environment variable
14507
+ \fBGRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE\fP at run time:
14508
+ .sp
14509
+ .nf
14510
+ .ft C
14511
+ % env GRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE=/tmp/synonyms.tsv groonga
14512
+ .ft P
14513
+ .fi
14514
+ .sp
14515
+ With the above command, \fB/tmp/synonyms.tsv\fP file is used.
14516
+ .SS Format
14517
+ .sp
14518
+ You can define zero or more synonyms in a TSV file. You define a
14519
+ \fBword\fP and \fBsynonyms\fP pair by a line. \fBword\fP is expanded to
14520
+ \fBsynonyms\fP in \fB\-\-query\fP value. \fBSynonyms\fP are combined by
14521
+ \fBOR\fP. For example, \fBgroonga\fP and \fBSenna\fP synonyms are expanded
14522
+ as \fBgroonga OR Senna\fP.
14523
+ .sp
14524
+ The first column is \fBword\fP and the rest columns are \fBsynonyms\fP of
14525
+ the \fBword\fP. Here is a sample line for \fBword\fP is \fBgroonga\fP and
14526
+ \fBsynonyms\fP are \fBgroonga\fP and \fBSenna\fP. \fB(TAB)\fP means a tab
14527
+ character (\fBU+0009\fP):
14528
+ .sp
14529
+ .nf
14530
+ .ft C
14531
+ groonga(TAB)groonga(TAB)Senna
14532
+ .ft P
14533
+ .fi
14534
+ .sp
14535
+ Comment line is supported. Lines that start with \fB#\fP are ignored.
14536
+ Here is an example for comment line. \fBgroonga\fP line is ignored as
14537
+ comment line:
14538
+ .sp
14539
+ .nf
14540
+ .ft C
14541
+ #groonga(TAB)groonga(TAB)Senna
14542
+ mroonga(TAB)mroonga(TAB)groonga MySQL
14543
+ .ft P
14544
+ .fi
14545
+ .SS Limitation
14546
+ .sp
14547
+ You need to restart groonga to reload your synonyms. TSV file is
14548
+ loaded only at the plugin load time.
14549
+ .SS See also
14550
+ .INDENT 0.0
14551
+ .INDENT 3.5
14552
+ .INDENT 0.0
14553
+ .IP \(bu 2
14554
+ \fIquery\-expansion\fP
14555
+ .UNINDENT
14556
+ .UNINDENT
14557
+ .UNINDENT
14558
+ .SS 疑似カラム (pseudo_column)
14559
+ .SS 名前
14560
+ .sp
14561
+ 疑似カラム
14562
+ .SS 説明
14563
+ .sp
14564
+ groongaのデータベースで作成したテーブルには、いくつかのカラムが自動的に定義されます。
14565
+ .sp
14566
+ これらのカラムはいずれもアンダースコア(\(aq_\(aq)で始まる名前が付与されます。定義される疑似カラムは、テーブルの種類によって異なります。
14567
+ .sp
14568
+ \fB_id\fP
14569
+ .INDENT 0.0
14570
+ .INDENT 3.5
14571
+ レコードに付与される一意な番号です。全てのテーブルに定義されます。値の範囲は1〜1073741824の整数で、通常はレコードを追加した順に1ずつ加算されます。_idの値は不変で、レコードが存在する限り変更することはできません。ただし、削除されたレコードの_idの値は再利用されます。
14572
+ .UNINDENT
14573
+ .UNINDENT
14574
+ .sp
14575
+ \fB_key\fP
14576
+ .INDENT 0.0
14577
+ .INDENT 3.5
14578
+ レコードの主キー値を表します。主キーを持つテーブルのみに定義されます。主キー値はテーブルの中で一意であり、変更することはできません。
14579
+ .UNINDENT
14580
+ .UNINDENT
14581
+ .sp
14582
+ \fB_value\fP
14583
+ .INDENT 0.0
14584
+ .INDENT 3.5
14585
+ レコードの値を表します。value_typeを指定したテーブルのみに定義されます。自由に変更可能です。
14586
+ .UNINDENT
14587
+ .UNINDENT
14588
+ .sp
14589
+ \fB_score\fP
14590
+ .INDENT 0.0
14591
+ .INDENT 3.5
14592
+ 各レコードのスコア値を表します。検索結果として生成されたテーブルのみに定義されます。
14593
+ .sp
14594
+ 検索処理を実行する過程で値が設定されますが、自由に変更可能です。
14595
+ .UNINDENT
14596
+ .UNINDENT
14597
+ .sp
14598
+ \fB_nsubrecs\fP
14599
+ .INDENT 0.0
14600
+ .INDENT 3.5
14601
+ 主キーの値が同一であったレコードの件数を表します。検索結果として生成されたテーブルのみに定義されます。グループ化(drilldown)処理を実行すると、グループ化前のテーブルにおいて、グループ化キーの値が同一であったレコードの件数が、グループ化処理の結果を格納するテーブルの_nsubrecsに記録されます。
14602
+ .UNINDENT
14603
+ .UNINDENT
14604
+ .SS grn_expr
13843
14605
  .sp
13844
14606
  Grn_expr is an object that searches records with specified conditions
13845
14607
  and manipulates a database. It\(aqs pronounced as \fBgurun expression\fP.
@@ -17187,7 +17949,15 @@ are also normalized.
17187
17949
  .UNINDENT
17188
17950
  .UNINDENT
17189
17951
  .UNINDENT
17190
- .SS 組み込み関数一覧
17952
+ .SS Function
17953
+ .sp
17954
+ Function can be used in some commands. For example, you can use
17955
+ function in \fB\-\-filter\fP, \fB\-\-scorer\fP and \fBoutput_columns\fP
17956
+ options of \fBcommands/select\fP.
17957
+ .sp
17958
+ This section describes about function and built\-in functions.
17959
+ .sp
17960
+ TODO: Add documentations about function.
17191
17961
  .SS edit_distance
17192
17962
  .SS 名前
17193
17963
  .sp
@@ -17474,16 +18244,11 @@ You can specify the value of \fBapproximate_type\fP by one of the followings.
17474
18244
  .IP Note
17475
18245
  There is a limitation about \fBgeo_distance\fP. \fBgeo_distance\fP can not
17476
18246
  calculate the value of distance between two points across meridian,
17477
- euator or the date line.
18247
+ equator or the date line if you use \fBsphere\fP or \fBellipsoid\fP as
18248
+ approximate type. There is not such a limitation for \fBrectangle\fP.
17478
18249
  This is temporary limitation according to the implementation of groonga,
17479
18250
  but it will be fixed in the future release.
17480
18251
  .RE
17481
- .IP Note
17482
- There is a limitation about \fBgeo_distance\fP above notice.
17483
- But it relaxes the limitation if you use \fBrectangle\fP as approximate type.
17484
- You can calculate the correct distance if two point are placed at northern
17485
- hemisphere or southern hemisphere.
17486
- .RE
17487
18252
  .SS \fBrectangle\fP
17488
18253
  .sp
17489
18254
  This parameter require to approximate the geographical features
@@ -17560,6 +18325,110 @@ select Geo \-\-output_columns distance \-\-scorer \(aqdistance = geo_distance("1
17560
18325
  # ]
17561
18326
  .ft P
17562
18327
  .fi
18328
+ .sp
18329
+ Here are samples about calculating the value of distance with explicitly specified point across meridian, equator, the date line.
18330
+ .sp
18331
+ Execution example:
18332
+ .sp
18333
+ .nf
18334
+ .ft C
18335
+ select Geo \-\-output_columns distance \-\-scorer \(aqdistance = geo_distance("175904000x8464000", "145508000x\-13291000", "rectangle")\(aq
18336
+ # [
18337
+ # [
18338
+ # 0,
18339
+ # 1337566253.89858,
18340
+ # 0.000355720520019531
18341
+ # ],
18342
+ # [
18343
+ # [
18344
+ # [
18345
+ # 1
18346
+ # ],
18347
+ # [
18348
+ # [
18349
+ # "distance",
18350
+ # "Int32"
18351
+ # ]
18352
+ # ],
18353
+ # [
18354
+ # 1051293
18355
+ # ]
18356
+ # ]
18357
+ # ]
18358
+ # ]
18359
+ .ft P
18360
+ .fi
18361
+ .sp
18362
+ This sample shows the value of distance across meridian.
18363
+ The return value of \fBgeo_distance("175904000x8464000", "145508000x\-13291000", "rectangle")\fP is the value of distance from Paris, Flance to Madrid, Spain.
18364
+ .sp
18365
+ Execution example:
18366
+ .sp
18367
+ .nf
18368
+ .ft C
18369
+ select Geo \-\-output_columns distance \-\-scorer \(aqdistance = geo_distance("146566000x\-266422000", "\-56880000x\-172310000", "rectangle")\(aq
18370
+ # [
18371
+ # [
18372
+ # 0,
18373
+ # 1337566253.89858,
18374
+ # 0.000355720520019531
18375
+ # ],
18376
+ # [
18377
+ # [
18378
+ # [
18379
+ # 1
18380
+ # ],
18381
+ # [
18382
+ # [
18383
+ # "distance",
18384
+ # "Int32"
18385
+ # ]
18386
+ # ],
18387
+ # [
18388
+ # 6880439
18389
+ # ]
18390
+ # ]
18391
+ # ]
18392
+ # ]
18393
+ .ft P
18394
+ .fi
18395
+ .sp
18396
+ This sample shows the value of distance across equator.
18397
+ The return value of \fBgeo_distance("146566000x\-266422000", "\-56880000x\-172310000", "rectangle")\fP is the value of distance from New York, The United Status to Brasillia, Brasil.
18398
+ .sp
18399
+ Execution example:
18400
+ .sp
18401
+ .nf
18402
+ .ft C
18403
+ select Geo \-\-output_columns distance \-\-scorer \(aqdistance = geo_distance("143660000x419009000", "135960000x\-440760000", "rectangle")\(aq
18404
+ # [
18405
+ # [
18406
+ # 0,
18407
+ # 1337566253.89858,
18408
+ # 0.000355720520019531
18409
+ # ],
18410
+ # [
18411
+ # [
18412
+ # [
18413
+ # 1
18414
+ # ],
18415
+ # [
18416
+ # [
18417
+ # "distance",
18418
+ # "Int32"
18419
+ # ]
18420
+ # ],
18421
+ # [
18422
+ # 10475205
18423
+ # ]
18424
+ # ]
18425
+ # ]
18426
+ # ]
18427
+ .ft P
18428
+ .fi
18429
+ .sp
18430
+ This sample shows the value of distance across the date line.
18431
+ The return value of \fBgeo_distance("143660000x419009000", "135960000x\-440760000", "rectangle")\fP is the value of distance from Beijin, China to San Francisco, The United States.
17563
18432
  .IP Note
17564
18433
  \fBgeo_distance\fP uses square approximation as default. If you omit \fBapproximate_type\fP, \fBgeo_distance\fP behaves like \fBrectangle\fP was specified.
17565
18434
  .RE
@@ -17866,10 +18735,194 @@ rand(10)
17866
18735
  3
17867
18736
  .ft P
17868
18737
  .fi
17869
- .SS Indexing
18738
+ .SS snippet_html
18739
+ .IP Caution
18740
+ This feature is experimental. API will be changed.
18741
+ .RE
18742
+ .SS Summary
18743
+ .sp
18744
+ \fBsnippet_html\fP extracts snippets of target text around search
18745
+ keywords (\fBKWIC\fP. \fBKeyWord In Context\fP). The snippets are prepared
18746
+ for embedding HTML. Special characters such as \fB<\fP and \fB>\fP are
18747
+ escapsed as \fB&lt;\fP and \fB&gt;\fP. Keyword is surrounded with \fB<span
18748
+ class="keyword">\fP and \fB</span>\fP. For example, a snippet of \fBI am a
18749
+ groonga user. <3\fP for keyword \fBgroonga\fP is \fBI am a <span
18750
+ class="keyword">groonga</span> user. &lt;3\fP.
18751
+ .SS Syntax
18752
+ .sp
18753
+ \fBsnippet_html\fP has only one parameter:
18754
+ .sp
18755
+ .nf
18756
+ .ft C
18757
+ snippet_html(column)
18758
+ .ft P
18759
+ .fi
18760
+ .sp
18761
+ \fBsnippet_html\fP has many parameters internally but they can\(aqt be
18762
+ specified for now. You will be able to custom those parameters soon.
18763
+ .SS Usage
18764
+ .sp
18765
+ Here are a schema definition and sample data to show usage.
18766
+ .sp
18767
+ Execution example:
18768
+ .sp
18769
+ .nf
18770
+ .ft C
18771
+ table_create Documents TABLE_NO_KEY
18772
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
18773
+ column_create Documents content COLUMN_SCALAR Text
18774
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
18775
+ table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText \-\-default_tokenizer TokenBigram
18776
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
18777
+ column_create Terms documents_content_index COLUMN_INDEX|WITH_POSITION Documents content
18778
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
18779
+ load \-\-table Documents
18780
+ [
18781
+ ["content"],
18782
+ ["Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of groonga is that a newly registered document instantly appears in search results. Also, groonga allows updates without read locks. These characteristics result in superior performance on real\-time applications."],
18783
+ ["Groonga is also a column\-oriented database management system (DBMS). Compared with well\-known row\-oriented systems, such as MySQL and PostgreSQL, column\-oriented systems are more suited for aggregate queries. Due to this advantage, groonga can cover weakness of row\-oriented systems."]
18784
+ ]
18785
+ # [[0, 1337566253.89858, 0.000355720520019531], 2]
18786
+ .ft P
18787
+ .fi
18788
+ .sp
18789
+ \fBsnippet_html\fP can be used in only \fB\-\-output_columns\fP in
18790
+ \fB/reference/commands/select\fP.
18791
+ .sp
18792
+ You need to specify \fB\-\-command_version 2\fP argument explicitly
18793
+ because function call in \fB\-\-output_columns\fP is experimental feature
18794
+ in groonga 2.0.9. It will be enabled by default soon.
18795
+ .sp
18796
+ You also need to specify \fB\-\-query\fP and/or \fB\-\-filter\fP. Keywords are
18797
+ extracted from \fB\-\-query\fP and \fB\-\-filter\fP arguments.
18798
+ .sp
18799
+ The following example uses \fB\-\-query "fast performance"\fP. In this
18800
+ case, \fBfast\fP and \fBperformance\fP are used as keywords.
18801
+ .sp
18802
+ Execution example:
18803
+ .sp
18804
+ .nf
18805
+ .ft C
18806
+ select Documents \-\-output_columns "snippet_html(content)" \-\-command_version 2 \-\-match_columns content \-\-query "fast performance"
18807
+ # [
18808
+ # [
18809
+ # 0,
18810
+ # 1337566253.89858,
18811
+ # 0.000355720520019531
18812
+ # ],
18813
+ # [
18814
+ # [
18815
+ # [
18816
+ # 1
18817
+ # ],
18818
+ # [
18819
+ # [
18820
+ # "snippet_html",
18821
+ # "null"
18822
+ # ]
18823
+ # ],
18824
+ # [
18825
+ # [
18826
+ # "Groonga is a <span class=\e"keyword\e">fast</span> and accurate full text search engine based on inverted index. One of the characteristics of groonga is that a newly registered document instantly appears in search results. Also, gro",
18827
+ # "onga allows updates without read locks. These characteristics result in superior <span class=\e"keyword\e">performance</span> on real\-time applications."
18828
+ # ]
18829
+ # ]
18830
+ # ]
18831
+ # ]
18832
+ # ]
18833
+ .ft P
18834
+ .fi
18835
+ .sp
18836
+ \fB\-\-query "fast performance"\fP matches to only the first record\(aqs
18837
+ content. \fBsnippet_html(content)\fP extracts two text parts that
18838
+ include the keywords \fBfast\fP or \fBperformance\fP and surronds the
18839
+ keywords with \fB<span class="keyword">\fP and \fB</span>\fP.
18840
+ .sp
18841
+ The max number of text parts is 3. If there are 4 or more text parts
18842
+ that include the keywords, only the leading 3 parts are only used.
18843
+ .sp
18844
+ The max size of a text part is 200byte. The unit is bytes not
18845
+ chracters. The size doesn\(aqt include inserted \fB<span keyword="keyword">\fP
18846
+ and \fB</span>\fP.
18847
+ .sp
18848
+ Both the max number of text parts and the max size of a text part
18849
+ aren\(aqt customizable.
18850
+ .sp
18851
+ You can specify string literal instead of column.
18852
+ .sp
18853
+ Execution example:
18854
+ .sp
18855
+ .nf
18856
+ .ft C
18857
+ select Documents \-\-output_columns \(aqsnippet_html("Groonga is very fast fulltext search engine.")\(aq \-\-command_version 2 \-\-match_columns content \-\-query "fast performance"
18858
+ # [
18859
+ # [
18860
+ # 0,
18861
+ # 1337566253.89858,
18862
+ # 0.000355720520019531
18863
+ # ],
18864
+ # [
18865
+ # [
18866
+ # [
18867
+ # 1
18868
+ # ],
18869
+ # [
18870
+ # [
18871
+ # "snippet_html",
18872
+ # "null"
18873
+ # ]
18874
+ # ],
18875
+ # [
18876
+ # [
18877
+ # "Groonga is very <span class=\e"keyword\e">fast</span> fulltext search engine."
18878
+ # ]
18879
+ # ]
18880
+ # ]
18881
+ # ]
18882
+ # ]
18883
+ .ft P
18884
+ .fi
18885
+ .SS Return value
18886
+ .sp
18887
+ \fBsnippet_html\fP returns an array of string. An element of array is a
18888
+ snippet:
18889
+ .sp
18890
+ .nf
18891
+ .ft C
18892
+ [SNIPPET1, SNIPPET2, SNIPPET3]
18893
+ .ft P
18894
+ .fi
18895
+ .sp
18896
+ A snippet includes one or more keywords. The max byte size of a
18897
+ snippet except \fB<span keyword="keyword">\fP and \fB</span>\fP is
18898
+ 200byte. The unit isn\(aqt the number of chracters.
18899
+ .sp
18900
+ The array size is larger than or equal to 0 and less than or equal
18901
+ to 3. The max size 3 will be customizable soon.
18902
+ .SS TODO
18903
+ .INDENT 0.0
18904
+ .IP \(bu 2
18905
+ Make the max number of text parts customizable.
18906
+ .IP \(bu 2
18907
+ Make the max size of a text part customizable.
18908
+ .IP \(bu 2
18909
+ Make keywords customizable.
18910
+ .IP \(bu 2
18911
+ Make tag that surrounds a keyword customizable.
18912
+ .IP \(bu 2
18913
+ Make normalization customizable.
18914
+ .IP \(bu 2
18915
+ Support options by object literal.
18916
+ .UNINDENT
18917
+ .SS See also
18918
+ .INDENT 0.0
18919
+ .IP \(bu 2
18920
+ \fB/reference/commands/select\fP
18921
+ .UNINDENT
18922
+ .SS Indexing
17870
18923
  .sp
17871
18924
  Groonga supports both online index construction and offline
17872
- index construction since 1.3.1.
18925
+ index construction since 2.0.0.
17873
18926
  .SS Online index construction
17874
18927
  .sp
17875
18928
  In online index construction, registered documents can be
@@ -18363,6 +19416,416 @@ Example:
18363
19416
  .sp
18364
19417
  TODO...
18365
19418
  .SH SPECIFICATION
19419
+ .SS GQTP
19420
+ .sp
19421
+ GQTP is the acronym of Groonga Query Transfer Protocol. GQTP is the
19422
+ original protocol for groonga.
19423
+ .SS Protocol
19424
+ .sp
19425
+ GQTP is stateful client server model protocol. The following sequence
19426
+ is one processing unit:
19427
+ .INDENT 0.0
19428
+ .IP \(bu 2
19429
+ Client sends a request
19430
+ .IP \(bu 2
19431
+ Server receives the request
19432
+ .IP \(bu 2
19433
+ Server processes the request
19434
+ .IP \(bu 2
19435
+ Server sends a response
19436
+ .IP \(bu 2
19437
+ Client receives the response
19438
+ .UNINDENT
19439
+ .sp
19440
+ You can do zero or more processing units in a session.
19441
+ .sp
19442
+ Both request and response consist of GQTP header and body. GQTP header
19443
+ is fixed size data. Body is variable size data and its size is stored
19444
+ in GQTP header. The content of body isn\(aqt defined in GQTP.
19445
+ .SS GQTP header
19446
+ .sp
19447
+ GQTP header consists of the following unsigned integer values:
19448
+ .TS
19449
+ center;
19450
+ |l|l|l|.
19451
+ _
19452
+ T{
19453
+ Name
19454
+ T} T{
19455
+ Size
19456
+ T} T{
19457
+ Description
19458
+ T}
19459
+ _
19460
+ T{
19461
+ \fBprotocol\fP
19462
+ T} T{
19463
+ 1byte
19464
+ T} T{
19465
+ Protocol type.
19466
+ T}
19467
+ _
19468
+ T{
19469
+ \fBquery_type\fP
19470
+ T} T{
19471
+ 1byte
19472
+ T} T{
19473
+ Content type of body.
19474
+ T}
19475
+ _
19476
+ T{
19477
+ \fBkey_length\fP
19478
+ T} T{
19479
+ 2byte
19480
+ T} T{
19481
+ Not used.
19482
+ T}
19483
+ _
19484
+ T{
19485
+ \fBlevel\fP
19486
+ T} T{
19487
+ 1byte
19488
+ T} T{
19489
+ Not used.
19490
+ T}
19491
+ _
19492
+ T{
19493
+ \fBflags\fP
19494
+ T} T{
19495
+ 1byte
19496
+ T} T{
19497
+ Flags.
19498
+ T}
19499
+ _
19500
+ T{
19501
+ \fBstatus\fP
19502
+ T} T{
19503
+ 2byte
19504
+ T} T{
19505
+ Return code.
19506
+ T}
19507
+ _
19508
+ T{
19509
+ \fBsize\fP
19510
+ T} T{
19511
+ 4byte
19512
+ T} T{
19513
+ Body size.
19514
+ T}
19515
+ _
19516
+ T{
19517
+ \fBopaque\fP
19518
+ T} T{
19519
+ 4byte
19520
+ T} T{
19521
+ Not used.
19522
+ T}
19523
+ _
19524
+ T{
19525
+ \fBcas\fP
19526
+ T} T{
19527
+ 8byte
19528
+ T} T{
19529
+ Not used.
19530
+ T}
19531
+ _
19532
+ .TE
19533
+ .sp
19534
+ All header values are encoded by network byte order.
19535
+ .sp
19536
+ The following sections describes available values of each header value.
19537
+ .sp
19538
+ The total size of GQTP header is 24byte.
19539
+ .SS \fBprotocol\fP
19540
+ .sp
19541
+ The value is always \fB0xc7\fP in both request and response GQTP header.
19542
+ .SS \fBquery_type\fP
19543
+ .sp
19544
+ The value is one of the following values:
19545
+ .TS
19546
+ center;
19547
+ |l|l|l|.
19548
+ _
19549
+ T{
19550
+ Name
19551
+ T} T{
19552
+ Value
19553
+ T} T{
19554
+ Description
19555
+ T}
19556
+ _
19557
+ T{
19558
+ \fBNONE\fP
19559
+ T} T{
19560
+ 0
19561
+ T} T{
19562
+ Free format.
19563
+ T}
19564
+ _
19565
+ T{
19566
+ \fBTSV\fP
19567
+ T} T{
19568
+ 1
19569
+ T} T{
19570
+ Tab Separated Values.
19571
+ T}
19572
+ _
19573
+ T{
19574
+ \fBJSON\fP
19575
+ T} T{
19576
+ 2
19577
+ T} T{
19578
+ JSON.
19579
+ T}
19580
+ _
19581
+ T{
19582
+ \fBXML\fP
19583
+ T} T{
19584
+ 3
19585
+ T} T{
19586
+ XML.
19587
+ T}
19588
+ _
19589
+ T{
19590
+ \fBMSGPACK\fP
19591
+ T} T{
19592
+ 4
19593
+ T} T{
19594
+ MessagePack.
19595
+ T}
19596
+ _
19597
+ .TE
19598
+ .sp
19599
+ This is not used in request GQTP header.
19600
+ .sp
19601
+ This is used in response GQTP header. Body is formatted as specified
19602
+ type.
19603
+ .SS \fBflags\fP
19604
+ .sp
19605
+ The value is bitwise OR of the following values:
19606
+ .TS
19607
+ center;
19608
+ |l|l|l|.
19609
+ _
19610
+ T{
19611
+ Name
19612
+ T} T{
19613
+ Value
19614
+ T} T{
19615
+ Description
19616
+ T}
19617
+ _
19618
+ T{
19619
+ \fBMORE\fP
19620
+ T} T{
19621
+ 0x01
19622
+ T} T{
19623
+ There are more data.
19624
+ T}
19625
+ _
19626
+ T{
19627
+ \fBTAIL\fP
19628
+ T} T{
19629
+ 0x02
19630
+ T} T{
19631
+ There are no more data.
19632
+ T}
19633
+ _
19634
+ T{
19635
+ \fBHEAD\fP
19636
+ T} T{
19637
+ 0x04
19638
+ T} T{
19639
+ Not used.
19640
+ T}
19641
+ _
19642
+ T{
19643
+ \fBQUIET\fP
19644
+ T} T{
19645
+ 0x08
19646
+ T} T{
19647
+ Be quiet.
19648
+ T}
19649
+ _
19650
+ T{
19651
+ \fBQUIT\fP
19652
+ T} T{
19653
+ 0x10
19654
+ T} T{
19655
+ Quit.
19656
+ T}
19657
+ _
19658
+ .TE
19659
+ .sp
19660
+ You must specify \fBMORE\fP or \fBTAIL\fP flag.
19661
+ .sp
19662
+ If you use \fBMORE\fP flag, you should also use \fBQUIET\fP flag. Because
19663
+ you don\(aqt need to show a response for your partial request.
19664
+ .sp
19665
+ Use \fBQUIT\fP flag to quit this session.
19666
+ .SS \fBstatus\fP
19667
+ .sp
19668
+ Here are available values. The new statuses will be added in the
19669
+ future.
19670
+ .INDENT 0.0
19671
+ .IP \(bu 2
19672
+ 0: \fBSUCCESS\fP
19673
+ .IP \(bu 2
19674
+ 1: \fBEND_OF_DATA\fP
19675
+ .IP \(bu 2
19676
+ 65535: \fBUNKNOWN_ERROR\fP
19677
+ .IP \(bu 2
19678
+ 65534: \fBOPERATION_NOT_PERMITTED\fP
19679
+ .IP \(bu 2
19680
+ 65533: \fBNO_SUCH_FILE_OR_DIRECTORY\fP
19681
+ .IP \(bu 2
19682
+ 65532: \fBNO_SUCH_PROCESS\fP
19683
+ .IP \(bu 2
19684
+ 65531: \fBINTERRUPTED_FUNCTION_CALL\fP
19685
+ .IP \(bu 2
19686
+ 65530: \fBINPUT_OUTPUT_ERROR\fP
19687
+ .IP \(bu 2
19688
+ 65529: \fBNO_SUCH_DEVICE_OR_ADDRESS\fP
19689
+ .IP \(bu 2
19690
+ 65528: \fBARG_LIST_TOO_LONG\fP
19691
+ .IP \(bu 2
19692
+ 65527: \fBEXEC_FORMAT_ERROR\fP
19693
+ .IP \(bu 2
19694
+ 65526: \fBBAD_FILE_DESCRIPTOR\fP
19695
+ .IP \(bu 2
19696
+ 65525: \fBNO_CHILD_PROCESSES\fP
19697
+ .IP \(bu 2
19698
+ 65524: \fBRESOURCE_TEMPORARILY_UNAVAILABLE\fP
19699
+ .IP \(bu 2
19700
+ 65523: \fBNOT_ENOUGH_SPACE\fP
19701
+ .IP \(bu 2
19702
+ 65522: \fBPERMISSION_DENIED\fP
19703
+ .IP \(bu 2
19704
+ 65521: \fBBAD_ADDRESS\fP
19705
+ .IP \(bu 2
19706
+ 65520: \fBRESOURCE_BUSY\fP
19707
+ .IP \(bu 2
19708
+ 65519: \fBFILE_EXISTS\fP
19709
+ .IP \(bu 2
19710
+ 65518: \fBIMPROPER_LINK\fP
19711
+ .IP \(bu 2
19712
+ 65517: \fBNO_SUCH_DEVICE\fP
19713
+ .IP \(bu 2
19714
+ 65516: \fBNOT_A_DIRECTORY\fP
19715
+ .IP \(bu 2
19716
+ 65515: \fBIS_A_DIRECTORY\fP
19717
+ .IP \(bu 2
19718
+ 65514: \fBINVALID_ARGUMENT\fP
19719
+ .IP \(bu 2
19720
+ 65513: \fBTOO_MANY_OPEN_FILES_IN_SYSTEM\fP
19721
+ .IP \(bu 2
19722
+ 65512: \fBTOO_MANY_OPEN_FILES\fP
19723
+ .IP \(bu 2
19724
+ 65511: \fBINAPPROPRIATE_I_O_CONTROL_OPERATION\fP
19725
+ .IP \(bu 2
19726
+ 65510: \fBFILE_TOO_LARGE\fP
19727
+ .IP \(bu 2
19728
+ 65509: \fBNO_SPACE_LEFT_ON_DEVICE\fP
19729
+ .IP \(bu 2
19730
+ 65508: \fBINVALID_SEEK\fP
19731
+ .IP \(bu 2
19732
+ 65507: \fBREAD_ONLY_FILE_SYSTEM\fP
19733
+ .IP \(bu 2
19734
+ 65506: \fBTOO_MANY_LINKS\fP
19735
+ .IP \(bu 2
19736
+ 65505: \fBBROKEN_PIPE\fP
19737
+ .IP \(bu 2
19738
+ 65504: \fBDOMAIN_ERROR\fP
19739
+ .IP \(bu 2
19740
+ 65503: \fBRESULT_TOO_LARGE\fP
19741
+ .IP \(bu 2
19742
+ 65502: \fBRESOURCE_DEADLOCK_AVOIDED\fP
19743
+ .IP \(bu 2
19744
+ 65501: \fBNO_MEMORY_AVAILABLE\fP
19745
+ .IP \(bu 2
19746
+ 65500: \fBFILENAME_TOO_LONG\fP
19747
+ .IP \(bu 2
19748
+ 65499: \fBNO_LOCKS_AVAILABLE\fP
19749
+ .IP \(bu 2
19750
+ 65498: \fBFUNCTION_NOT_IMPLEMENTED\fP
19751
+ .IP \(bu 2
19752
+ 65497: \fBDIRECTORY_NOT_EMPTY\fP
19753
+ .IP \(bu 2
19754
+ 65496: \fBILLEGAL_BYTE_SEQUENCE\fP
19755
+ .IP \(bu 2
19756
+ 65495: \fBSOCKET_NOT_INITIALIZED\fP
19757
+ .IP \(bu 2
19758
+ 65494: \fBOPERATION_WOULD_BLOCK\fP
19759
+ .IP \(bu 2
19760
+ 65493: \fBADDRESS_IS_NOT_AVAILABLE\fP
19761
+ .IP \(bu 2
19762
+ 65492: \fBNETWORK_IS_DOWN\fP
19763
+ .IP \(bu 2
19764
+ 65491: \fBNO_BUFFER\fP
19765
+ .IP \(bu 2
19766
+ 65490: \fBSOCKET_IS_ALREADY_CONNECTED\fP
19767
+ .IP \(bu 2
19768
+ 65489: \fBSOCKET_IS_NOT_CONNECTED\fP
19769
+ .IP \(bu 2
19770
+ 65488: \fBSOCKET_IS_ALREADY_SHUTDOWNED\fP
19771
+ .IP \(bu 2
19772
+ 65487: \fBOPERATION_TIMEOUT\fP
19773
+ .IP \(bu 2
19774
+ 65486: \fBCONNECTION_REFUSED\fP
19775
+ .IP \(bu 2
19776
+ 65485: \fBRANGE_ERROR\fP
19777
+ .IP \(bu 2
19778
+ 65484: \fBTOKENIZER_ERROR\fP
19779
+ .IP \(bu 2
19780
+ 65483: \fBFILE_CORRUPT\fP
19781
+ .IP \(bu 2
19782
+ 65482: \fBINVALID_FORMAT\fP
19783
+ .IP \(bu 2
19784
+ 65481: \fBOBJECT_CORRUPT\fP
19785
+ .IP \(bu 2
19786
+ 65480: \fBTOO_MANY_SYMBOLIC_LINKS\fP
19787
+ .IP \(bu 2
19788
+ 65479: \fBNOT_SOCKET\fP
19789
+ .IP \(bu 2
19790
+ 65478: \fBOPERATION_NOT_SUPPORTED\fP
19791
+ .IP \(bu 2
19792
+ 65477: \fBADDRESS_IS_IN_USE\fP
19793
+ .IP \(bu 2
19794
+ 65476: \fBZLIB_ERROR\fP
19795
+ .IP \(bu 2
19796
+ 65475: \fBLZO_ERROR\fP
19797
+ .IP \(bu 2
19798
+ 65474: \fBSTACK_OVER_FLOW\fP
19799
+ .IP \(bu 2
19800
+ 65473: \fBSYNTAX_ERROR\fP
19801
+ .IP \(bu 2
19802
+ 65472: \fBRETRY_MAX\fP
19803
+ .IP \(bu 2
19804
+ 65471: \fBINCOMPATIBLE_FILE_FORMAT\fP
19805
+ .IP \(bu 2
19806
+ 65470: \fBUPDATE_NOT_ALLOWED\fP
19807
+ .IP \(bu 2
19808
+ 65469: \fBTOO_SMALL_OFFSET\fP
19809
+ .IP \(bu 2
19810
+ 65468: \fBTOO_LARGE_OFFSET\fP
19811
+ .IP \(bu 2
19812
+ 65467: \fBTOO_SMALL_LIMIT\fP
19813
+ .IP \(bu 2
19814
+ 65466: \fBCAS_ERROR\fP
19815
+ .IP \(bu 2
19816
+ 65465: \fBUNSUPPORTED_COMMAND_VERSION\fP
19817
+ .UNINDENT
19818
+ .SS \fBsize\fP
19819
+ .sp
19820
+ The size of body. The maximum body size is 4GiB because \fBsize\fP is
19821
+ 4byte unsigned integer. If you want to send 4GiB or more larger data,
19822
+ use \fBMORE\fP flag.
19823
+ .SS Example
19824
+ .sp
19825
+ TODO
19826
+ .SS See also
19827
+ .sp
19828
+ TODO
18366
19829
  .SS 検索
18367
19830
  .sp
18368
19831
  \fB/reference/commands/select\fP コマンドがqueryパラメータを使ってどのように検索するのかを説明します。
@@ -18501,14 +19964,25 @@ select Shops \-\-filter \(aq"point > 3 && description @ \e"スープカレー\e"
18501
19964
  .SH LIMITATIONS
18502
19965
  .sp
18503
19966
  Groonga has some limitations.
19967
+ .SS Limitations of table
19968
+ .sp
19969
+ A table has the following limitations.
19970
+ .INDENT 0.0
19971
+ .IP \(bu 2
19972
+ The maximum one key size: 4096Bytes
19973
+ .IP \(bu 2
19974
+ The maximum total size of keys: 4GBytes
19975
+ .UNINDENT
19976
+ .sp
19977
+ Keep in mind that these limitations may vary depending on conditions.
18504
19978
  .SS Limitations of indexing
18505
19979
  .sp
18506
19980
  A full\-text index has the following limitations.
18507
19981
  .INDENT 0.0
18508
19982
  .IP \(bu 2
18509
- The maximum number of records: 268,435,455 (more than 26 million)
19983
+ The maximum number of records: 268,435,455 (more than 268 million)
18510
19984
  .IP \(bu 2
18511
- The maximum number of distinct terms: 268,435,455 (more than 26 million)
19985
+ The maximum number of distinct terms: 268,435,455 (more than 268 million)
18512
19986
  .IP \(bu 2
18513
19987
  The maximum index size: 256GBytes
18514
19988
  .UNINDENT
@@ -18784,13 +20258,13 @@ report the bug. Coding and documentation are also welcome for groonga and
18784
20258
  its related projects.
18785
20259
  .INDENT 0.0
18786
20260
  .TP
18787
- .B Use:
20261
+ .B As a user:
18788
20262
  If you are interested in groonga, please read this document and try it.
18789
20263
  .TP
18790
- .B Introduction:
20264
+ .B As a spokesman:
18791
20265
  Please introduce groonga to your friends and colleagues.
18792
20266
  .TP
18793
- .B Bug report, development and documentation:
20267
+ .B As a developer: Bug report, development and documentation
18794
20268
  This section describes the details.
18795
20269
  .UNINDENT
18796
20270
  .SS How to report a bug
@@ -19369,6 +20843,11 @@ make update\-poコマンドの実行により更新した各種.poファイル
19369
20843
  .fi
19370
20844
  .sp
19371
20845
  これにより$GROONGA_CLONE_DIR/groonga\-(バージョン).tar.gzが作成されます。
20846
+ .IP Note
20847
+ タグを打つ前にmake distを行うとversionが古いままになることがあります。
20848
+ するとgroonga \-\-versionで表示されるバージョン表記が更新されないので注意が必要です。
20849
+ make distで生成したtar.gzのversionおよびversion.shがタグと一致することを確認するのが望ましいです。
20850
+ .RE
19372
20851
  .SS パッケージのビルド
19373
20852
  .sp
19374
20853
  リリース用のアーカイブファイルができたので、パッケージ化する作業を行います。
@@ -19459,6 +20938,8 @@ natty i386/amd64
19459
20938
  oneiric i386/amd64
19460
20939
  .IP \(bu 2
19461
20940
  precise i386/amd64
20941
+ .IP \(bu 2
20942
+ quantal i386/amd64
19462
20943
  .UNINDENT
19463
20944
  .sp
19464
20945
  正常にビルドが終了すると$GROONGA_CLONE_DIR/packages/apt/repositories配下に.debパッケージが生成されます。
@@ -19841,6 +21322,17 @@ freecode.comのプロジェクトページは以下の通りです。
19841
21322
  \fI\%https://freecode.com/projects/groonga/releases/new\fP
19842
21323
  .UNINDENT
19843
21324
  .UNINDENT
21325
+ .IP Note
21326
+ 投稿した内容に対するレビューが運営側で実施されるので、反映されるまでしばらく時間がかかります。
21327
+ .RE
21328
+ .SS Twitterでリリースアナウンスをする
21329
+ .sp
21330
+ blogroongaのリリースエントリには「リンクをあなたのフォロワーに共有する」ためのツイートボタンがあるので、そのボタンを使ってリリースアナウンスします。(画面下部に配置されている)
21331
+ .sp
21332
+ このボタンを経由する場合、ツイート内容に自動的にリリースタイトル(「groonga 2.0.8リリース」など)とblogroongaのリリースエントリのURLが挿入されます。
21333
+ .sp
21334
+ この作業はblogroongaの英語版、日本語版それぞれで行います。
21335
+ あらかじめgroongaアカウントでログインしておくとアナウンスを円滑に行うことができます。
19844
21336
  .sp
19845
21337
  以上でリリース作業は終了です。
19846
21338
  .SS リリース後にやること
@@ -19866,6 +21358,9 @@ $GROONGA_CLONE_DIRにて以下のコマンドを実行します。:
19866
21358
  .fi
19867
21359
  .sp
19868
21360
  これにより$GROONGA_CLONE_DIR/base_versionが更新されるのでコミットしておきます。
21361
+ .IP Note
21362
+ base_versionはtar.gzなどのリリース用のファイル名で使用します。
21363
+ .RE
19869
21364
  .SS ビルド時のTIPS
19870
21365
  .SS ビルドを並列化したい
19871
21366
  .sp