rroonga 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (357) hide show
  1. data/Rakefile +3 -2
  2. data/ext/groonga/rb-grn-expression.c +4 -3
  3. data/ext/groonga/rb-grn-object.c +13 -0
  4. data/ext/groonga/rb-grn-snippet.c +32 -126
  5. data/ext/groonga/rb-grn.h +14 -11
  6. data/lib/1.8/groonga.so +0 -0
  7. data/lib/1.9/groonga.so +0 -0
  8. data/rroonga-build.rb +1 -1
  9. data/vendor/local/bin/{grntest.exe → groonga-benchmark.exe} +0 -0
  10. data/vendor/local/bin/groonga.exe +0 -0
  11. data/vendor/local/bin/libgroonga-0.dll +0 -0
  12. data/vendor/local/bin/libmecab-1.dll +0 -0
  13. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  14. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  15. data/vendor/local/bin/mecab.exe +0 -0
  16. data/vendor/local/include/groonga/groonga/plugin.h +1 -1
  17. data/vendor/local/include/groonga/groonga.h +10 -3
  18. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  19. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  20. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  21. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  22. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  23. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  24. data/vendor/local/lib/libgroonga.a +0 -0
  25. data/vendor/local/lib/libgroonga.dll.a +0 -0
  26. data/vendor/local/lib/libmecab.a +0 -0
  27. data/vendor/local/lib/libmecab.dll.a +0 -0
  28. data/vendor/local/lib/libmsgpack.a +0 -0
  29. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  30. data/vendor/local/lib/libmsgpackc.a +0 -0
  31. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  32. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  33. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  34. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  35. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  36. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  37. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  38. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  39. data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +19 -0
  40. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +2 -2
  41. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +72 -8
  42. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +45 -1
  43. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +112 -33
  44. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +109 -99
  45. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +76 -40
  46. data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +30 -21
  47. data/vendor/local/share/doc/groonga/en/html/_static/favicon.ico +0 -0
  48. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +309 -101
  49. data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
  50. data/vendor/local/share/doc/groonga/en/html/_static/logo.png +0 -0
  51. data/vendor/local/share/doc/groonga/en/html/_static/navigation-bar.png +0 -0
  52. data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
  53. data/vendor/local/share/doc/groonga/en/html/characteristic.html +1 -1
  54. data/vendor/local/share/doc/groonga/en/html/command_version.html +1 -1
  55. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +1 -1
  56. data/vendor/local/share/doc/groonga/en/html/commands/check.html +1 -1
  57. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +1 -1
  58. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +1 -1
  59. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +1 -1
  60. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +1 -1
  61. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +1 -1
  62. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +1 -1
  63. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +1 -1
  64. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +1 -1
  65. data/vendor/local/share/doc/groonga/en/html/commands/load.html +1 -1
  66. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +1 -1
  67. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +1 -1
  68. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +1 -1
  69. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +1 -1
  70. data/vendor/local/share/doc/groonga/en/html/commands/select.html +1 -1
  71. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +1 -1
  72. data/vendor/local/share/doc/groonga/en/html/commands/status.html +1 -1
  73. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +21 -1
  74. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +1 -1
  75. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +1 -1
  76. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +1 -1
  77. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +1 -1
  78. data/vendor/local/share/doc/groonga/en/html/commands.html +1 -1
  79. data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
  80. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +1 -1
  81. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +1 -1
  82. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +1 -1
  83. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +1 -1
  84. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +1 -1
  85. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +1 -1
  86. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +1 -1
  87. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +1 -1
  88. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +1 -1
  89. data/vendor/local/share/doc/groonga/en/html/contribution.html +1 -1
  90. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +1 -1
  91. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +1 -1
  92. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +1 -1
  93. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +1 -1
  94. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +1 -1
  95. data/vendor/local/share/doc/groonga/en/html/executables.html +1 -1
  96. data/vendor/local/share/doc/groonga/en/html/expr.html +1 -1
  97. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +1 -1
  98. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +1 -1
  99. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +1 -1
  100. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +1 -1
  101. data/vendor/local/share/doc/groonga/en/html/functions/now.html +1 -1
  102. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +1 -1
  103. data/vendor/local/share/doc/groonga/en/html/functions.html +1 -1
  104. data/vendor/local/share/doc/groonga/en/html/genindex.html +1 -1
  105. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +1 -1
  106. data/vendor/local/share/doc/groonga/en/html/index.html +25 -18
  107. data/vendor/local/share/doc/groonga/en/html/indexing.html +1 -1
  108. data/vendor/local/share/doc/groonga/en/html/install.html +59 -9
  109. data/vendor/local/share/doc/groonga/en/html/limitations.html +1 -1
  110. data/vendor/local/share/doc/groonga/en/html/log.html +1 -1
  111. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +1 -1
  112. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +1 -1
  113. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +1 -1
  114. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +1 -1
  115. data/vendor/local/share/doc/groonga/en/html/news/senna.html +1 -1
  116. data/vendor/local/share/doc/groonga/en/html/news.html +66 -15
  117. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  118. data/vendor/local/share/doc/groonga/en/html/output.html +1 -1
  119. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +1 -1
  120. data/vendor/local/share/doc/groonga/en/html/reference.html +1 -1
  121. data/vendor/local/share/doc/groonga/en/html/search.html +1 -1
  122. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  123. data/vendor/local/share/doc/groonga/en/html/spec/search.html +1 -1
  124. data/vendor/local/share/doc/groonga/en/html/spec.html +1 -1
  125. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +1 -1
  126. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +1 -1
  127. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +1 -1
  128. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +1 -1
  129. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +1 -1
  130. data/vendor/local/share/doc/groonga/en/html/suggest.html +1 -1
  131. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
  132. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +1 -1
  133. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +141 -53
  134. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +1 -1
  135. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +1 -1
  136. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +112 -106
  137. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +1 -1
  138. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +1 -1
  139. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +2 -2
  140. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +92 -58
  141. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +1 -1
  142. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +1 -1
  143. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -14
  145. data/vendor/local/share/doc/groonga/en/html/type.html +30 -22
  146. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  147. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +19 -0
  148. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +2 -2
  149. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +72 -8
  150. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +45 -1
  151. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +112 -33
  152. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +109 -99
  153. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +76 -40
  154. data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +30 -21
  155. data/vendor/local/share/doc/groonga/ja/html/_static/favicon.ico +0 -0
  156. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +309 -101
  157. data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
  158. data/vendor/local/share/doc/groonga/ja/html/_static/logo.png +0 -0
  159. data/vendor/local/share/doc/groonga/ja/html/_static/navigation-bar.png +0 -0
  160. data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
  161. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +1 -1
  162. data/vendor/local/share/doc/groonga/ja/html/command_version.html +1 -1
  163. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +1 -1
  164. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +1 -1
  165. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +1 -1
  166. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +1 -1
  167. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +1 -1
  168. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +1 -1
  169. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +1 -1
  170. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +1 -1
  171. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +1 -1
  172. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +1 -1
  173. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +1 -1
  174. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +1 -1
  175. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +1 -1
  176. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +1 -1
  177. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +1 -1
  178. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +1 -1
  179. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +1 -1
  180. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +1 -1
  181. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +19 -1
  182. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +1 -1
  183. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +1 -1
  184. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +1 -1
  185. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +1 -1
  186. data/vendor/local/share/doc/groonga/ja/html/commands.html +1 -1
  187. data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
  188. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +1 -1
  189. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +1 -1
  190. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +1 -1
  191. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +1 -1
  192. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +1 -1
  193. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +1 -1
  194. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +1 -1
  195. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +1 -1
  196. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +1 -1
  197. data/vendor/local/share/doc/groonga/ja/html/contribution.html +1 -1
  198. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +1 -1
  199. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +1 -1
  200. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +1 -1
  201. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +1 -1
  202. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +1 -1
  203. data/vendor/local/share/doc/groonga/ja/html/executables.html +1 -1
  204. data/vendor/local/share/doc/groonga/ja/html/expr.html +1 -1
  205. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +1 -1
  206. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +1 -1
  207. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +1 -1
  208. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +1 -1
  209. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +1 -1
  210. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +1 -1
  211. data/vendor/local/share/doc/groonga/ja/html/functions.html +1 -1
  212. data/vendor/local/share/doc/groonga/ja/html/genindex.html +1 -1
  213. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +1 -1
  214. data/vendor/local/share/doc/groonga/ja/html/index.html +25 -18
  215. data/vendor/local/share/doc/groonga/ja/html/indexing.html +1 -1
  216. data/vendor/local/share/doc/groonga/ja/html/install.html +72 -22
  217. data/vendor/local/share/doc/groonga/ja/html/limitations.html +1 -1
  218. data/vendor/local/share/doc/groonga/ja/html/log.html +1 -1
  219. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +1 -1
  220. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +1 -1
  221. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +1 -1
  222. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +1 -1
  223. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +1 -1
  224. data/vendor/local/share/doc/groonga/ja/html/news.html +60 -14
  225. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  226. data/vendor/local/share/doc/groonga/ja/html/output.html +1 -1
  227. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +1 -1
  228. data/vendor/local/share/doc/groonga/ja/html/reference.html +1 -1
  229. data/vendor/local/share/doc/groonga/ja/html/search.html +1 -1
  230. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  231. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +1 -1
  232. data/vendor/local/share/doc/groonga/ja/html/spec.html +1 -1
  233. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +1 -1
  234. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +1 -1
  235. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +1 -1
  236. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +1 -1
  237. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +1 -1
  238. data/vendor/local/share/doc/groonga/ja/html/suggest.html +1 -1
  239. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
  240. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +1 -1
  241. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +141 -53
  242. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +1 -1
  243. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +1 -1
  244. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +108 -102
  245. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +1 -1
  246. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +1 -1
  247. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +2 -2
  248. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +92 -55
  249. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +1 -1
  250. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +1 -1
  251. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  252. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -14
  253. data/vendor/local/share/doc/groonga/ja/html/type.html +30 -22
  254. data/vendor/local/share/doc/groonga/source/commands/suggest.txt +19 -0
  255. data/vendor/local/share/doc/groonga/source/community.txt +2 -2
  256. data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -15
  257. data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +11 -7
  258. data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +13 -7
  259. data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +13 -0
  260. data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +13 -0
  261. data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +13 -0
  262. data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +10 -0
  263. data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +10 -0
  264. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -2
  265. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -2
  266. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -2
  267. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +2 -2
  268. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +2 -2
  269. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +2 -6
  270. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +6 -2
  271. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +2 -2
  272. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +2 -2
  273. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +5 -0
  274. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +3 -2
  275. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -2
  276. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +1 -3
  277. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +4 -2
  278. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -2
  279. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +2 -13
  280. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +2 -2
  281. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +2 -2
  282. data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +1 -1
  283. data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +6 -6
  284. data/vendor/local/share/doc/groonga/source/install.txt +72 -8
  285. data/vendor/local/share/doc/groonga/source/news.txt +45 -1
  286. data/vendor/local/share/doc/groonga/source/tutorial/data.txt +112 -33
  287. data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +109 -99
  288. data/vendor/local/share/doc/groonga/source/tutorial/network.txt +76 -40
  289. data/vendor/local/share/doc/groonga/source/type.txt +30 -21
  290. data/vendor/local/share/groonga/html/admin/css/admin.css +1 -1
  291. data/vendor/local/share/groonga/html/admin/favicon.ico +0 -0
  292. data/vendor/local/share/groonga/html/admin/favicon.png +0 -0
  293. data/vendor/local/share/groonga/html/admin/favicon.svg +107 -547
  294. data/vendor/local/share/groonga/html/admin/images/groonga.png +0 -0
  295. data/vendor/local/share/groonga/html/admin/index.html +1 -1
  296. data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.png +0 -0
  297. data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.svg +118 -0
  298. data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.png +0 -0
  299. data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.svg +97 -0
  300. data/vendor/local/share/groonga/images/logo/groonga-icon.png +0 -0
  301. data/vendor/local/share/groonga/images/logo/groonga-icon.svg +93 -0
  302. data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.png +0 -0
  303. data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.svg +108 -0
  304. data/vendor/local/share/groonga/images/logo/groonga-logo.png +0 -0
  305. data/vendor/local/share/groonga/images/logo/groonga-logo.svg +118 -0
  306. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.png +0 -0
  307. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.svg +170 -0
  308. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.png +0 -0
  309. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.svg +186 -0
  310. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.png +0 -0
  311. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.svg +183 -0
  312. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.png +0 -0
  313. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.svg +179 -0
  314. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.png +0 -0
  315. data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.svg +201 -0
  316. data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.png +0 -0
  317. data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.svg +106 -0
  318. data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.png +0 -0
  319. data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.svg +97 -0
  320. data/vendor/local/share/groonga/images/logo/mroonga-icon.png +0 -0
  321. data/vendor/local/share/groonga/images/logo/mroonga-icon.svg +93 -0
  322. data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.png +0 -0
  323. data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.svg +122 -0
  324. data/vendor/local/share/groonga/images/logo/mroonga-logo.png +0 -0
  325. data/vendor/local/share/groonga/images/logo/mroonga-logo.svg +106 -0
  326. data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.png +0 -0
  327. data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.svg +106 -0
  328. data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.png +0 -0
  329. data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.svg +107 -0
  330. data/vendor/local/share/groonga/images/logo/nroonga-icon.png +0 -0
  331. data/vendor/local/share/groonga/images/logo/nroonga-icon.svg +93 -0
  332. data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.png +0 -0
  333. data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.svg +122 -0
  334. data/vendor/local/share/groonga/images/logo/nroonga-logo.png +0 -0
  335. data/vendor/local/share/groonga/images/logo/nroonga-logo.svg +117 -0
  336. data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.png +0 -0
  337. data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.svg +106 -0
  338. data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.png +0 -0
  339. data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.svg +107 -0
  340. data/vendor/local/share/groonga/images/logo/rroonga-icon.png +0 -0
  341. data/vendor/local/share/groonga/images/logo/rroonga-icon.svg +93 -0
  342. data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.png +0 -0
  343. data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.svg +122 -0
  344. data/vendor/local/share/groonga/images/logo/rroonga-logo.png +0 -0
  345. data/vendor/local/share/groonga/images/logo/rroonga-logo.svg +117 -0
  346. data/vendor/local/share/man/ja/man1/groonga.1 +510 -214
  347. data/vendor/local/share/man/man1/groonga.1 +510 -211
  348. metadata +62 -15
  349. data/vendor/local/bin/groonga-query-log-analyzer +0 -1419
  350. data/vendor/local/share/doc/groonga/en/html/_static/default.css +0 -278
  351. data/vendor/local/share/doc/groonga/en/html/_static/footer-bar.png +0 -0
  352. data/vendor/local/share/doc/groonga/en/html/_static/menu-header.png +0 -0
  353. data/vendor/local/share/doc/groonga/en/html/_static/sidebar.js +0 -151
  354. data/vendor/local/share/doc/groonga/ja/html/_static/default.css +0 -278
  355. data/vendor/local/share/doc/groonga/ja/html/_static/footer-bar.png +0 -0
  356. data/vendor/local/share/doc/groonga/ja/html/_static/menu-header.png +0 -0
  357. data/vendor/local/share/doc/groonga/ja/html/_static/sidebar.js +0 -151
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/spec/search.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/spec/search.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <div class="other-language-links">
45
45
  <ul>
46
- <li><a href="../../ja/html/spec.html"><img src="_static/jp.png" alt="日本語"></a></li>
46
+ <li><a href="../../ja/html/spec.html"><img src="_static/jp.png" alt="日本語">日本語版はこちら</a></li>
47
47
  </ul>
48
48
  </div>
49
49
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/suggest/completion.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/suggest/completion.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/suggest/correction.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/suggest/correction.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/suggest/introduction.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/suggest/introduction.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/suggest/suggestion.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/suggest/suggestion.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/suggest/tutorial.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/suggest/tutorial.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <div class="other-language-links">
45
45
  <ul>
46
- <li><a href="../../ja/html/suggest.html"><img src="_static/jp.png" alt="日本語"></a></li>
46
+ <li><a href="../../ja/html/suggest.html"><img src="_static/jp.png" alt="日本語">日本語版はこちら</a></li>
47
47
  </ul>
48
48
  </div>
49
49
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/troubleshooting/different_results_with_the_same_keyword.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/troubleshooting/different_results_with_the_same_keyword.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -43,7 +43,7 @@
43
43
 
44
44
  <div class="other-language-links">
45
45
  <ul>
46
- <li><a href="../../ja/html/troubleshooting.html"><img src="_static/jp.png" alt="日本語"></a></li>
46
+ <li><a href="../../ja/html/troubleshooting.html"><img src="_static/jp.png" alt="日本語">日本語版はこちら</a></li>
47
47
  </ul>
48
48
  </div>
49
49
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.3. さまざまな種類をもったデータの保存 &mdash; groonga v2.0.0 documentation</title>
12
+ <title>4.3. Various data types &mdash; groonga v2.0.0 documentation</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -30,7 +30,7 @@
30
30
  <link rel="top" title="groonga v2.0.0 documentation" href="../index.html" />
31
31
  <link rel="up" title="4. Tutorial" href="../tutorial.html" />
32
32
  <link rel="next" title="4.4. さまざまな検索条件の指定" href="search.html" />
33
- <link rel="prev" title="4.2. How to use groonga with network" href="network.html" />
33
+ <link rel="prev" title="4.2. Remote access" href="network.html" />
34
34
  </head>
35
35
  <body>
36
36
  <div class="header">
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/tutorial/data.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/tutorial/data.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -60,7 +60,7 @@
60
60
  <a href="search.html" title="4.4. さまざまな検索条件の指定"
61
61
  accesskey="N">next</a> |</li>
62
62
  <li class="right" >
63
- <a href="network.html" title="4.2. How to use groonga with network"
63
+ <a href="network.html" title="4.2. Remote access"
64
64
  accesskey="P">previous</a> |</li>
65
65
  <li><a href="../index.html">groonga v2.0.0 documentation</a> &raquo;</li>
66
66
  <li><a href="../tutorial.html" accesskey="U">4. Tutorial</a> &raquo;</li>
@@ -72,68 +72,151 @@
72
72
  <div class="bodywrapper">
73
73
  <div class="body">
74
74
 
75
- <div class="section" id="id1">
76
- <h1>4.3. さまざまな種類をもったデータの保存<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
77
- <p>groongaでは、さまざまなデータを格納させることが出来ます。</p>
78
- <div class="section" id="id2">
79
- <h2>4.3.1. データ型<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
80
- <p>groongaでは、数値(整数・小数)や文字列や時刻や経緯度などの情報を格納することができます。</p>
81
- <p>ここでは、Int32型のカラムに整数を格納、Float型のカラムに浮動小数点の小数を、ShortText型のカラムに文字列を、Time型のカラムに時間を格納する例を示します。経緯度の格納については、のちのチュートリアルで触れます。</p>
82
- <p>その他のデータ型の一覧は、 <a class="reference internal" href="../type.html"><em>データ型</em></a> を参照してください。</p>
75
+ <div class="section" id="various-data-types">
76
+ <h1>4.3. Various data types<a class="headerlink" href="#various-data-types" title="Permalink to this headline">¶</a></h1>
77
+ <p>Groonga is a full text search engine but also serves as a column-oriented data store. Groonga supports various data types, such as numeric types, string types, date and time type, longitude and latitude types, etc. This tutorial shows a list of data types and explains how to use them.</p>
78
+ <div class="section" id="overview">
79
+ <h2>4.3.1. Overview<a class="headerlink" href="#overview" title="Permalink to this headline">¶</a></h2>
80
+ <p>The basic data types of groonga are roughly divided into 5 groups --- boolean type, numeric types, string types, date/time type and longitude/latitude types. The numeric types are further divided according to whether integer or floating point number, signed or unsigned and the number of bits allocated to each integer. The string types are further divided according to the maximum length. The longitude/latitude types are further divided according to the geographic coordinate system. For more details, see <a class="reference internal" href="../type.html"><em>データ型</em></a>.</p>
81
+ <p>In addition, groonga supports reference types and vector types. Reference types are designed for accessing other tables. Vector types are designed for storing a variable number of values in one element.</p>
82
+ <p>First, let's create a table for this tutorial.</p>
83
83
  <p>Execution example:</p>
84
- <div class="highlight-none"><div class="highlight"><pre>&gt; table_create --name Type --flags TABLE_HASH_KEY --key_type ShortText
85
- [[0,1322616293.7274,0.012551106],true]
86
- &gt; column_create --table Type --name number --type Int32
87
- [[0,1322616293.94115,0.008619605],true]
88
- &gt; column_create --table Type --name float --type Float
89
- [[0,1322616294.15095,0.004959989],true]
90
- &gt; column_create --table Type --name string --type ShortText
91
- [[0,1322616294.35693,0.005551818],true]
92
- &gt; column_create --table Type --name time --type Time
93
- [[0,1322616294.56333,0.006356953],true]
94
- &gt; load --table Type
95
- &gt; [{&quot;_key&quot;:&quot;sample&quot;,&quot;number&quot;:12345,&quot;float&quot;:42.195,&quot;string&quot;:&quot;GROONGA&quot;,&quot;time&quot;:1234567890.12}]
96
- [[0,1322616294.77086,0.202357708],1]
97
- &gt; select --table Type
98
- [[0,1322616295.1744,0.000340057],[[[1],[[&quot;_id&quot;,&quot;UInt32&quot;],[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;float&quot;,&quot;Float&quot;],[&quot;number&quot;,&quot;Int32&quot;],[&quot;string&quot;,&quot;ShortText&quot;],[&quot;time&quot;,&quot;Time&quot;]],[1,&quot;sample&quot;,42.195,12345,&quot;GROONGA&quot;,1234567890.12]]]]
84
+ <div class="highlight-none"><div class="highlight"><pre>&gt; table_create --name ToyBox --flags TABLE_HASH_KEY --key_type ShortText
85
+ [[0,1332498286.03578,0.00542259216308594],true]
99
86
  </pre></div>
100
87
  </div>
101
88
  </div>
102
- <div class="section" id="id3">
103
- <h2>4.3.2. テーブル型<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
104
- <p>table_createで作成したテーブルを、カラムの型として使うことが出来ます。</p>
105
- <p>また、output_columnsにおいて「.」を区切りとして、参照先のテーブルに存在するカラムを指定すると、指定したカラムの値を表示することができます。</p>
106
- <p>ここでは、先のチュートリアルで作成したSiteテーブルに手を加え、どのサイトをリンクしているのかを保存してみましょう。</p>
107
- <p>他のテーブルを参照するカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値を代入する必要があります。</p>
89
+ <div class="section" id="boolean-type">
90
+ <h2>4.3.2. Boolean type<a class="headerlink" href="#boolean-type" title="Permalink to this headline">¶</a></h2>
91
+ <p>The boolean type is used to store true or false. To create a boolean type column, specify Bool to the <cite>type</cite> parameter of <a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> command. The default value of the boolean type is false.</p>
92
+ <p>The following example creates a boolean type column and adds three records. Note that the third record has the default value because no value is specified.</p>
93
+ <p>Execution example:</p>
94
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name is_animal --type Bool
95
+ [[0,1332498286.2427,0.00578594207763672],true]
96
+ &gt; load --table ToyBox
97
+ &gt; [
98
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;is_animal&quot;:true}
99
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;is_animal&quot;:false}
100
+ &gt; {&quot;_key&quot;:&quot;Block&quot;}
101
+ &gt; ]
102
+ [[0,1332498286.44978,1.00197458267212],3]
103
+ &gt; select --table ToyBox --output_columns _key,is_animal
104
+ [[0,1332498287.65257,0.000472545623779297],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;is_animal&quot;,&quot;Bool&quot;]],[&quot;Monkey&quot;,true],[&quot;Flower&quot;,false],[&quot;Block&quot;,false]]]]
105
+ </pre></div>
106
+ </div>
107
+ </div>
108
+ <div class="section" id="numeric-types">
109
+ <h2>4.3.3. Numeric types<a class="headerlink" href="#numeric-types" title="Permalink to this headline">¶</a></h2>
110
+ <p>The numeric types are divided into integer types and a floating point number type. The integer types are further divided into the signed integer types and unsigned integer types. In addition, you can choose the number of bits allocated to each integer. For more details, see <a class="reference internal" href="../type.html"><em>データ型</em></a>. The default value of the numeric types is 0.</p>
111
+ <p>The following example creates an Int8 column and a Float column, and then updates existing records. The <a class="reference internal" href="../commands/load.html"><em>load</em></a> command updates the weight column as expected. On the other hand, the price column values are different from the specified values because 15.9 is not an integer and 200 is too large. 15.9 is converted to 15 by removing the fractional part. 200 causes an overflow and the result becomes -56. Note that the result of an overflow/underflow is undefined.</p>
112
+ <p>Execution example:</p>
113
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name price --type Int8
114
+ [[0,1332498287.85609,0.00574946403503418],true]
115
+ &gt; column_create --table ToyBox --name weight --type Float
116
+ [[0,1332498288.06304,0.00493621826171875],true]
117
+ &gt; load --table ToyBox
118
+ &gt; [
119
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;price&quot;:15.9}
120
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;price&quot;:200,&quot;weight&quot;:0.13}
121
+ &gt; {&quot;_key&quot;:&quot;Block&quot;,&quot;weight&quot;:25.7}
122
+ &gt; ]
123
+ [[0,1332498288.26924,1.00213837623596],3]
124
+ &gt; select --table ToyBox --output_columns _key,price,weight
125
+ [[0,1332498289.47254,0.000308036804199219],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;price&quot;,&quot;Int8&quot;],[&quot;weight&quot;,&quot;Float&quot;]],[&quot;Monkey&quot;,15,0.0],[&quot;Flower&quot;,-56,0.13],[&quot;Block&quot;,0,25.7]]]]
126
+ </pre></div>
127
+ </div>
128
+ </div>
129
+ <div class="section" id="string-types">
130
+ <h2>4.3.4. String types<a class="headerlink" href="#string-types" title="Permalink to this headline">¶</a></h2>
131
+ <p>The string types are divided according to the maximum length. For more details, see <a class="reference internal" href="../type.html"><em>データ型</em></a>. The default value is the zero-length string.</p>
132
+ <p>The following example creates a ShortText column and updates existing records. The third record has the default value because not updated.</p>
133
+ <p>Execution example:</p>
134
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name name --type ShortText
135
+ [[0,1332498289.67627,0.00676369667053223],true]
136
+ &gt; load --table ToyBox
137
+ &gt; [
138
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;name&quot;:&quot;Grease&quot;}
139
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;name&quot;:&quot;Rose&quot;}
140
+ &gt; ]
141
+ [[0,1332498289.88434,0.801783800125122],2]
142
+ &gt; select --table ToyBox --output_columns _key,name
143
+ [[0,1332498290.88724,0.000265598297119141],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;name&quot;,&quot;ShortText&quot;]],[&quot;Monkey&quot;,&quot;Grease&quot;],[&quot;Flower&quot;,&quot;Rose&quot;],[&quot;Block&quot;,&quot;&quot;]]]]
144
+ </pre></div>
145
+ </div>
146
+ </div>
147
+ <div class="section" id="date-and-time-type">
148
+ <h2>4.3.5. Date and time type<a class="headerlink" href="#date-and-time-type" title="Permalink to this headline">¶</a></h2>
149
+ <p>The date and time type of groonga is Time. Actually, a Time column stores a date and time as the number of microseconds since the Epoch, 1970-01-01 00:00:00. A Time value can represent a date and time before the Epoch because the actual data type is a signed integer. Note that <a class="reference internal" href="../commands/load.html"><em>load</em></a> and :doc:<a href="#id1"><span class="problematic" id="id2">`</span></a>/commands/select commands use a decimal number to represent a data and time in seconds. The default value is 0.0, which means the Epoch.</p>
150
+ <p>The following example creates a Time column and updates existing records. The first record has the default value because not updated.</p>
151
+ <p>Execution example:</p>
152
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name time --type Time
153
+ [[0,1332498291.0906,0.00631809234619141],true]
154
+ &gt; load --table ToyBox
155
+ &gt; [
156
+ &gt; {&quot;_key&quot;:&quot;Flower&quot;,&quot;time&quot;:1234567890.1234569999}
157
+ &gt; {&quot;_key&quot;:&quot;Block&quot;,&quot;time&quot;:-1234567890}
158
+ &gt; ]
159
+ [[0,1332498291.29814,0.801807641983032],2]
160
+ &gt; select --table ToyBox --output_columns _key,time
161
+ [[0,1332498292.30117,0.000299692153930664],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;time&quot;,&quot;Time&quot;]],[&quot;Monkey&quot;,0.0],[&quot;Flower&quot;,1234567890.12346],[&quot;Block&quot;,-1234567890.0]]]]
162
+ </pre></div>
163
+ </div>
164
+ </div>
165
+ <div class="section" id="longitude-and-latitude-types">
166
+ <h2>4.3.6. Longitude and latitude types<a class="headerlink" href="#longitude-and-latitude-types" title="Permalink to this headline">¶</a></h2>
167
+ <p>The longitude and latitude types are divided according to the geographic coordinate system. For more details, see <a class="reference internal" href="../type.html"><em>データ型</em></a>. To represent a longitude and latitude, groonga uses a string formatted as follows:</p>
168
+ <ul class="simple">
169
+ <li>&quot;longitude x latitude&quot; in milliseconds (e.g.: &quot;128452975x503157902&quot;)</li>
170
+ <li>&quot;longitude x latitude&quot; in degrees (e.g.: &quot;35.6813819x139.7660839&quot;)</li>
171
+ </ul>
172
+ <p>A number with/without a decimal point represents a longitude or latitude in milliseconds/degrees respectively. Note that a combination of a number with a decimal point and a number without a decimal point (e.g. 35.1x139) must not be used. A comma (',') is also available as a delimiter. The default value is &quot;0x0&quot;.</p>
173
+ <p>The following example creates a WGS84GeoPoint column and updates existing records. The second record has the default value because not updated.</p>
174
+ <p>Execution example:</p>
175
+ <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table ToyBox --name location --type WGS84GeoPoint
176
+ [[0,1332498292.50467,0.0079643726348877],true]
177
+ &gt; load --table ToyBox
178
+ &gt; [
179
+ &gt; {&quot;_key&quot;:&quot;Monkey&quot;,&quot;location&quot;:&quot;128452975x503157902&quot;}
180
+ &gt; {&quot;_key&quot;:&quot;Block&quot;,&quot;location&quot;:&quot;35.6813819x139.7660839&quot;}
181
+ &gt; ]
182
+ [[0,1332498292.71385,0.801813840866089],2]
183
+ &gt; select --table ToyBox --output_columns _key,location
184
+ [[0,1332498293.71678,0.000298976898193359],[[[3],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;location&quot;,&quot;WGS84GeoPoint&quot;]],[&quot;Monkey&quot;,&quot;128452975x503157902&quot;],[&quot;Flower&quot;,&quot;0x0&quot;],[&quot;Block&quot;,&quot;128452975x503157902&quot;]]]]
185
+ </pre></div>
186
+ </div>
187
+ </div>
188
+ <div class="section" id="reference-types">
189
+ <h2>4.3.7. Reference types<a class="headerlink" href="#reference-types" title="Permalink to this headline">¶</a></h2>
190
+ <p>Groonga supports a reference column, which stores references to records in its associated table. In practice, a reference column stores the IDs of the referred records in the associated table and enables access to those records.</p>
191
+ <p>You can specify a column in the associated table to the <cite>output_columns</cite> parameter of a <a class="reference internal" href="../commands/select.html"><em>select</em></a> command. The format is &quot;Src.Dest&quot; where Src is the name of the reference column and Dest is the name of the target column. If only the reference column is specified, it is handled as &quot;Src._key&quot;. Note that if a reference does not point to a valid record, a <a class="reference internal" href="../commands/select.html"><em>select</em></a> command outputs the default value of the target column.</p>
192
+ <p>The following example adds a reference column to the Site table that was created in the previous tutorial. The new column, named link, is designed for storing links among records in the Site table.</p>
108
193
  <p>Execution example:</p>
109
194
  <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table Site --name link --type Site
110
- [[0,1322616295.37864,0.005674045],true]
195
+ [[0,1332498293.92066,0.00589966773986816],true]
111
196
  &gt; load --table Site
112
197
  &gt; [{&quot;_key&quot;:&quot;http://example.org/&quot;,&quot;link&quot;:&quot;http://example.net/&quot;}]
113
- [[0,1322616295.5854,0.200879317],1]
198
+ [[0,1332498294.1274,0.201014280319214],1]
114
199
  &gt; select --table Site --output_columns _key,title,link._key,link.title --query title:@this
115
- [[0,1322616295.98732,0.000872177],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;link._key&quot;,&quot;ShortText&quot;],[&quot;link.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,&quot;http://example.net/&quot;,&quot;test record 2.&quot;]]]]
200
+ [[0,1332498294.52959,0.00171041488647461],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;link._key&quot;,&quot;ShortText&quot;],[&quot;link.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,&quot;http://example.net/&quot;,&quot;test record 2.&quot;]]]]
116
201
  </pre></div>
117
202
  </div>
118
- <p>このように、linkカラムに他のサイトへの参照を保存することができました。また、参照先の_keytitleカラムの内容を表示することができました。</p>
203
+ <p>The <cite>type</cite> parameter of the <a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> command specifies the table to be associated with the reference column. In this example, the reference column is associated with the own table. Then, the <a class="reference internal" href="../commands/load.html"><em>load</em></a> command registers a link from &quot;<a class="reference external" href="http://example.org">http://example.org</a>&quot; to &quot;<a class="reference external" href="http://example.net">http://example.net</a>&quot;. Note that a reference column requires the primary key, not the ID, of the record to be referred to. After that, the link is confirmed by the <a class="reference internal" href="../commands/select.html"><em>select</em></a> command. In this case, the primary key and the title of the referred record are output because link._key and link.title are specified to the <cite>output_columns</cite> parameter.</p>
119
204
  </div>
120
- <div class="section" id="id4">
121
- <h2>4.3.3. ベクターカラム<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
122
- <p>column_createコマンドでカラムを作成するとき、--flagsオプションでCOLUMN_VECTORフラグを指定すると、複数の値を配列で格納できるカラムが作成されます。</p>
123
- <p>テーブル型で配列を格納するカラムは、1対多の参照関係を表すのに有効です。</p>
124
- <p>テーブル型のチュートリアルでは、Siteテーブルに手を加え、どのサイトをリンクしているのかを保存しました。しかし、通常は1つのサイトから多くのサイトにリンクが張られています。複数のリンク情報を格納するために、複数の参照関係を保存するカラムを作成してみましょう。</p>
125
- <p>他のテーブルを参照するベクターカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値の「配列」を代入する必要があります。</p>
205
+ <div class="section" id="vector-types">
206
+ <h2>4.3.8. Vector types<a class="headerlink" href="#vector-types" title="Permalink to this headline">¶</a></h2>
207
+ <p>Groonga supports a vector column, in which each element can store a variable number of values. To create a vector column, specify the COLUMN_VECTOR flag to the <cite>flags</cite> parameter of a <a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> command. A vector column is useful to represent a many-to-many relationship.</p>
208
+ <p>The previous example used a regular column, so each record could have at most one link. Obviously, the specification is insufficient because a site usually has more than one links. To solve this problem, the following example uses a vector column.</p>
126
209
  <p>Execution example:</p>
127
210
  <div class="highlight-none"><div class="highlight"><pre>&gt; column_create --table Site --name links --flags COLUMN_VECTOR --type Site
128
- [[0,1322616296.19238,0.007598942],true]
211
+ [[0,1332498294.7353,0.00729537010192871],true]
129
212
  &gt; load --table Site
130
213
  &gt; [{&quot;_key&quot;:&quot;http://example.org/&quot;,&quot;links&quot;:[&quot;http://example.net/&quot;,&quot;http://example.org/&quot;,&quot;http://example.com/&quot;]}]
131
- [[0,1322616296.40092,0.201036234],1]
214
+ [[0,1332498294.94353,0.200709581375122],1]
132
215
  &gt; select --table Site --output_columns _key,title,links._key,links.title --query title:@this
133
- [[0,1322616296.80305,0.000899975],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;links._key&quot;,&quot;ShortText&quot;],[&quot;links.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,[&quot;http://example.net/&quot;,&quot;http://example.org/&quot;,&quot;http://example.com/&quot;],[&quot;test record 2.&quot;,&quot;This is test record 1!&quot;,&quot;test test record three.&quot;]]]]]
216
+ [[0,1332498295.34514,0.00077366828918457],[[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;title&quot;,&quot;ShortText&quot;],[&quot;links._key&quot;,&quot;ShortText&quot;],[&quot;links.title&quot;,&quot;ShortText&quot;]],[&quot;http://example.org/&quot;,&quot;This is test record 1!&quot;,[&quot;http://example.net/&quot;,&quot;http://example.org/&quot;,&quot;http://example.com/&quot;],[&quot;test record 2.&quot;,&quot;This is test record 1!&quot;,&quot;test test record three.&quot;]]]]]
134
217
  </pre></div>
135
218
  </div>
136
- <p>このように、複数の参照関係が保存できました。また、output_columnsによって、複数の参照先のカラム値も表示させることができました。</p>
219
+ <p>The only difference at the first step is the <cite>flags</cite> parameter that specifies to create a vector column. The <cite>type</cite> parameter of the <a class="reference internal" href="../commands/column_create.html"><em>column_create</em></a> command is the same as in the previous example. Then, the <a class="reference internal" href="../commands/load.html"><em>load</em></a> command registers three links from &quot;<a class="reference external" href="http://example.org/">http://example.org/</a>&quot; to &quot;<a class="reference external" href="http://example.net/">http://example.net/</a>&quot;, &quot;<a class="reference external" href="http://example.org/">http://example.org/</a>&quot; and &quot;<a class="reference external" href="http://example.com/">http://example.com/</a>&quot;. After that, the links are confirmed by the <a class="reference internal" href="../commands/select.html"><em>select</em></a> command. In this case, the primary keys and the titles are output as arrays because links._key and links.title are specified to the <cite>output_columns</cite> parameter.</p>
137
220
  </div>
138
221
  </div>
139
222
 
@@ -145,17 +228,22 @@
145
228
  <div class="sphinxsidebarwrapper">
146
229
  <h3><a href="../index.html">Table Of Contents</a></h3>
147
230
  <ul>
148
- <li><a class="reference internal" href="#">4.3. さまざまな種類をもったデータの保存</a><ul>
149
- <li><a class="reference internal" href="#id2">4.3.1. データ型</a></li>
150
- <li><a class="reference internal" href="#id3">4.3.2. テーブル型</a></li>
151
- <li><a class="reference internal" href="#id4">4.3.3. ベクターカラム</a></li>
231
+ <li><a class="reference internal" href="#">4.3. Various data types</a><ul>
232
+ <li><a class="reference internal" href="#overview">4.3.1. Overview</a></li>
233
+ <li><a class="reference internal" href="#boolean-type">4.3.2. Boolean type</a></li>
234
+ <li><a class="reference internal" href="#numeric-types">4.3.3. Numeric types</a></li>
235
+ <li><a class="reference internal" href="#string-types">4.3.4. String types</a></li>
236
+ <li><a class="reference internal" href="#date-and-time-type">4.3.5. Date and time type</a></li>
237
+ <li><a class="reference internal" href="#longitude-and-latitude-types">4.3.6. Longitude and latitude types</a></li>
238
+ <li><a class="reference internal" href="#reference-types">4.3.7. Reference types</a></li>
239
+ <li><a class="reference internal" href="#vector-types">4.3.8. Vector types</a></li>
152
240
  </ul>
153
241
  </li>
154
242
  </ul>
155
243
 
156
244
  <h4>Previous topic</h4>
157
245
  <p class="topless"><a href="network.html"
158
- title="previous chapter">4.2. How to use groonga with network</a></p>
246
+ title="previous chapter">4.2. Remote access</a></p>
159
247
  <h4>Next topic</h4>
160
248
  <p class="topless"><a href="search.html"
161
249
  title="next chapter">4.4. さまざまな検索条件の指定</a></p>
@@ -191,7 +279,7 @@
191
279
  <a href="search.html" title="4.4. さまざまな検索条件の指定"
192
280
  >next</a> |</li>
193
281
  <li class="right" >
194
- <a href="network.html" title="4.2. How to use groonga with network"
282
+ <a href="network.html" title="4.2. Remote access"
195
283
  >previous</a> |</li>
196
284
  <li><a href="../index.html">groonga v2.0.0 documentation</a> &raquo;</li>
197
285
  <li><a href="../tutorial.html" >4. Tutorial</a> &raquo;</li>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/tutorial/drilldown.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/tutorial/drilldown.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>
@@ -44,7 +44,7 @@
44
44
 
45
45
  <div class="other-language-links">
46
46
  <ul>
47
- <li><a href="../../../ja/html/tutorial/index.html"><img src="../_static/jp.png" alt="日本語"></a></li>
47
+ <li><a href="../../../ja/html/tutorial/index.html"><img src="../_static/jp.png" alt="日本語">日本語版はこちら</a></li>
48
48
  </ul>
49
49
  </div>
50
50
  </div>