rroonga 1.3.0-x86-mingw32 → 1.3.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (334) hide show
  1. data/Rakefile +33 -2
  2. data/benchmark/common.rb +2 -2
  3. data/benchmark/read-write-many-small-items.rb +71 -62
  4. data/benchmark/write-many-small-items.rb +61 -53
  5. data/ext/groonga/rb-grn-context.c +23 -5
  6. data/ext/groonga/rb-grn-index-column.c +2 -6
  7. data/ext/groonga/rb-grn-operator.c +31 -1
  8. data/ext/groonga/rb-grn-variable-size-column.c +77 -1
  9. data/ext/groonga/rb-grn.h +2 -11
  10. data/ext/groonga/rb-groonga.c +1 -2
  11. data/lib/1.8/groonga.so +0 -0
  12. data/lib/1.9/groonga.so +0 -0
  13. data/lib/groonga/command.rb +169 -0
  14. data/lib/groonga/context.rb +4 -124
  15. data/lib/groonga/dumper.rb +10 -8
  16. data/lib/groonga/record.rb +7 -0
  17. data/lib/groonga/schema.rb +98 -7
  18. data/rroonga-build.rb +3 -3
  19. data/test/{test-context-select.rb → test-command-select.rb} +3 -3
  20. data/test/test-record.rb +18 -1
  21. data/test/test-schema-dumper.rb +48 -0
  22. data/test/test-schema-type.rb +35 -0
  23. data/test/test-schema.rb +81 -11
  24. data/test/test-table-select.rb +49 -38
  25. data/test/test-variable-size-column.rb +30 -0
  26. data/vendor/local/bin/grntest.exe +0 -0
  27. data/vendor/local/bin/groonga.exe +0 -0
  28. data/vendor/local/bin/libgroonga-0.dll +0 -0
  29. data/vendor/local/bin/libmecab-1.dll +0 -0
  30. data/vendor/local/bin/mecab.exe +0 -0
  31. data/vendor/local/include/groonga/groonga/plugin.h +3 -2
  32. data/vendor/local/include/groonga/groonga.h +106 -78
  33. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  34. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  35. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  36. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  37. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  38. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  39. data/vendor/local/lib/libgroonga.a +0 -0
  40. data/vendor/local/lib/libgroonga.dll.a +0 -0
  41. data/vendor/local/lib/libmecab.a +0 -0
  42. data/vendor/local/lib/libmecab.dll.a +0 -0
  43. data/vendor/local/lib/pkgconfig/groonga.pc +5 -2
  44. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  45. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  46. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  47. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  48. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  49. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  50. data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +42 -32
  51. data/vendor/local/share/doc/groonga/en/html/_sources/commands/delete.txt +5 -1
  52. data/vendor/local/share/doc/groonga/en/html/_sources/commands/table_create.txt +5 -2
  53. data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +4 -3
  54. data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +8 -6
  55. data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +42 -3
  56. data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_in_circle.txt +26 -1
  57. data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -2
  58. data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +102 -27
  59. data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +10 -10
  60. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +130 -21
  61. data/vendor/local/share/doc/groonga/en/html/_sources/output.txt +164 -0
  62. data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
  63. data/vendor/local/share/doc/groonga/en/html/_sources/suggest.txt +0 -5
  64. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -4
  65. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -3
  66. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +2 -1
  67. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +95 -116
  68. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +1 -4
  69. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +1 -4
  70. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -0
  71. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +1 -2
  72. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -0
  73. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -0
  74. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +2 -2
  75. data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +3 -3
  76. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +13 -1
  77. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +5 -5
  78. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +11 -7
  79. data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
  80. data/vendor/local/share/doc/groonga/en/html/characteristic.html +60 -52
  81. data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
  82. data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
  83. data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
  84. data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
  85. data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
  86. data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
  87. data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
  88. data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
  89. data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
  90. data/vendor/local/share/doc/groonga/en/html/commands/delete.html +38 -35
  91. data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
  92. data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
  93. data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
  94. data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
  95. data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
  96. data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
  97. data/vendor/local/share/doc/groonga/en/html/commands/select.html +38 -38
  98. data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
  99. data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
  100. data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +36 -36
  101. data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +38 -36
  102. data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
  103. data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
  104. data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
  105. data/vendor/local/share/doc/groonga/en/html/commands.html +41 -41
  106. data/vendor/local/share/doc/groonga/en/html/community.html +14 -12
  107. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
  108. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
  109. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
  110. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
  111. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +7 -7
  112. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
  113. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +7 -7
  114. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +7 -7
  115. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -7
  116. data/vendor/local/share/doc/groonga/en/html/contribution.html +15 -13
  117. data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +7 -7
  118. data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +7 -7
  119. data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +7 -7
  120. data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +12 -12
  121. data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +7 -7
  122. data/vendor/local/share/doc/groonga/en/html/executables.html +7 -7
  123. data/vendor/local/share/doc/groonga/en/html/expr.html +25 -25
  124. data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
  125. data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +71 -36
  126. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +53 -33
  127. data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
  128. data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
  129. data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
  130. data/vendor/local/share/doc/groonga/en/html/functions.html +22 -22
  131. data/vendor/local/share/doc/groonga/en/html/genindex.html +7 -7
  132. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +7 -7
  133. data/vendor/local/share/doc/groonga/en/html/index.html +92 -87
  134. data/vendor/local/share/doc/groonga/en/html/install.html +109 -40
  135. data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -19
  136. data/vendor/local/share/doc/groonga/en/html/log.html +21 -21
  137. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +7 -7
  138. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +7 -7
  139. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -7
  140. data/vendor/local/share/doc/groonga/en/html/news/senna.html +7 -7
  141. data/vendor/local/share/doc/groonga/en/html/news.html +233 -112
  142. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  143. data/vendor/local/share/doc/groonga/en/html/output.html +302 -0
  144. data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +21 -21
  145. data/vendor/local/share/doc/groonga/en/html/reference.html +59 -55
  146. data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
  147. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  148. data/vendor/local/share/doc/groonga/en/html/spec/search.html +11 -11
  149. data/vendor/local/share/doc/groonga/en/html/spec.html +11 -11
  150. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +7 -7
  151. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
  152. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +7 -7
  153. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +7 -7
  154. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +7 -7
  155. data/vendor/local/share/doc/groonga/en/html/suggest.html +7 -12
  156. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  157. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +11 -11
  158. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +23 -23
  159. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +10 -10
  160. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +10 -10
  161. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +124 -164
  162. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +10 -10
  163. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +10 -10
  164. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +10 -10
  165. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +14 -14
  166. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +10 -10
  167. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +11 -10
  168. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -10
  169. data/vendor/local/share/doc/groonga/en/html/tutorial.html +26 -26
  170. data/vendor/local/share/doc/groonga/en/html/type.html +31 -31
  171. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  172. data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +42 -32
  173. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/delete.txt +5 -1
  174. data/vendor/local/share/doc/groonga/ja/html/_sources/commands/table_create.txt +5 -2
  175. data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +4 -3
  176. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +8 -6
  177. data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +42 -3
  178. data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_in_circle.txt +26 -1
  179. data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -2
  180. data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +102 -27
  181. data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +10 -10
  182. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +130 -21
  183. data/vendor/local/share/doc/groonga/ja/html/_sources/output.txt +164 -0
  184. data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
  185. data/vendor/local/share/doc/groonga/ja/html/_sources/suggest.txt +0 -5
  186. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -4
  187. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -3
  188. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +2 -1
  189. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +95 -116
  190. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +1 -4
  191. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +1 -4
  192. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -0
  193. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +1 -2
  194. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -0
  195. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -0
  196. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +2 -2
  197. data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +3 -3
  198. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +13 -1
  199. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +5 -5
  200. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +11 -7
  201. data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
  202. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +55 -47
  203. data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
  204. data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
  205. data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
  206. data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
  207. data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
  208. data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
  209. data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
  210. data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
  211. data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
  212. data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +38 -35
  213. data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
  214. data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
  215. data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
  216. data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
  217. data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
  218. data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
  219. data/vendor/local/share/doc/groonga/ja/html/commands/select.html +38 -38
  220. data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
  221. data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
  222. data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +36 -36
  223. data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +38 -36
  224. data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
  225. data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
  226. data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
  227. data/vendor/local/share/doc/groonga/ja/html/commands.html +41 -41
  228. data/vendor/local/share/doc/groonga/ja/html/community.html +10 -8
  229. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
  230. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
  231. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
  232. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
  233. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +7 -7
  234. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
  235. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +7 -7
  236. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +7 -7
  237. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -7
  238. data/vendor/local/share/doc/groonga/ja/html/contribution.html +7 -7
  239. data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +7 -7
  240. data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +7 -7
  241. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +7 -7
  242. data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +12 -12
  243. data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +7 -7
  244. data/vendor/local/share/doc/groonga/ja/html/executables.html +7 -7
  245. data/vendor/local/share/doc/groonga/ja/html/expr.html +25 -25
  246. data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
  247. data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +71 -36
  248. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +53 -33
  249. data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
  250. data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
  251. data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
  252. data/vendor/local/share/doc/groonga/ja/html/functions.html +22 -22
  253. data/vendor/local/share/doc/groonga/ja/html/genindex.html +7 -7
  254. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +7 -7
  255. data/vendor/local/share/doc/groonga/ja/html/index.html +84 -79
  256. data/vendor/local/share/doc/groonga/ja/html/install.html +92 -16
  257. data/vendor/local/share/doc/groonga/ja/html/limitations.html +13 -13
  258. data/vendor/local/share/doc/groonga/ja/html/log.html +21 -21
  259. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +7 -7
  260. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +7 -7
  261. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -7
  262. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +7 -7
  263. data/vendor/local/share/doc/groonga/ja/html/news.html +202 -99
  264. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  265. data/vendor/local/share/doc/groonga/ja/html/output.html +287 -0
  266. data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +21 -21
  267. data/vendor/local/share/doc/groonga/ja/html/reference.html +59 -55
  268. data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
  269. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  270. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -7
  271. data/vendor/local/share/doc/groonga/ja/html/spec.html +11 -11
  272. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +7 -7
  273. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
  274. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +7 -7
  275. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +7 -7
  276. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +7 -7
  277. data/vendor/local/share/doc/groonga/ja/html/suggest.html +7 -11
  278. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +7 -7
  279. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +7 -7
  280. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -20
  281. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +7 -7
  282. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +7 -7
  283. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +93 -115
  284. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +7 -7
  285. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +7 -7
  286. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +7 -7
  287. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +8 -8
  288. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +7 -7
  289. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +8 -7
  290. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
  291. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -21
  292. data/vendor/local/share/doc/groonga/ja/html/type.html +31 -31
  293. data/vendor/local/share/doc/groonga/source/characteristic.txt +42 -32
  294. data/vendor/local/share/doc/groonga/source/commands/delete.txt +5 -1
  295. data/vendor/local/share/doc/groonga/source/commands/table_create.txt +5 -2
  296. data/vendor/local/share/doc/groonga/source/community.txt +4 -3
  297. data/vendor/local/share/doc/groonga/source/contribution.txt +8 -6
  298. data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +8 -8
  299. data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +4 -4
  300. data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +4 -4
  301. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +3 -15
  302. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +2 -7
  303. data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -7
  304. data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +42 -3
  305. data/vendor/local/share/doc/groonga/source/functions/geo_in_circle.txt +26 -1
  306. data/vendor/local/share/doc/groonga/source/index.txt +2 -2
  307. data/vendor/local/share/doc/groonga/source/install.txt +102 -27
  308. data/vendor/local/share/doc/groonga/source/limitations.txt +10 -10
  309. data/vendor/local/share/doc/groonga/source/news.txt +130 -21
  310. data/vendor/local/share/doc/groonga/source/output.txt +164 -0
  311. data/vendor/local/share/doc/groonga/source/reference.txt +1 -0
  312. data/vendor/local/share/doc/groonga/source/suggest.txt +0 -5
  313. data/vendor/local/share/doc/groonga/source/tutorial/data.txt +6 -4
  314. data/vendor/local/share/doc/groonga/source/tutorial/drilldown.txt +1 -3
  315. data/vendor/local/share/doc/groonga/source/tutorial/index.txt +2 -1
  316. data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +95 -116
  317. data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +1 -4
  318. data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +1 -4
  319. data/vendor/local/share/doc/groonga/source/tutorial/network.txt +3 -0
  320. data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +1 -2
  321. data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +5 -0
  322. data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -0
  323. data/vendor/local/share/doc/groonga/source/tutorial.txt +2 -2
  324. data/vendor/local/share/doc/groonga/source/type.txt +3 -3
  325. data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +1 -0
  326. data/vendor/local/share/groonga/html/admin/index.html +40 -0
  327. data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.min.js +6 -0
  328. data/vendor/local/share/groonga/html/admin/js/jquery.flot.license.txt +22 -0
  329. data/vendor/local/share/man/ja/man1/groonga.1 +560 -138
  330. data/vendor/local/share/man/man1/groonga.1 +637 -223
  331. metadata +887 -898
  332. data/ext/groonga/Makefile +0 -184
  333. data/ext/groonga/rb-grn-query.c +0 -260
  334. data/test/test-query.rb +0 -22
@@ -5,9 +5,9 @@
5
5
  Install
6
6
  =======
7
7
 
8
- We will explain of how to install Groonga for each environments.
8
+ This section describes how to install groonga on each environment.
9
9
 
10
- We distribute packages for both 32-bit and 64-bit but we recommend that you should use 64-bit package for server. You should use 32-bit package just only for test or development. You will get no memory error with 32-bit package even if you just process medium size data.
10
+ We distribute both 32-bit and 64-bit packages but we strongly recommend a 64-bit package for server. You should use a 32-bit package just only for tests or development. You will encounter an out of memory error with a 32-bit package even if you just process medium size data.
11
11
 
12
12
 
13
13
  Debian GNU/Linux squeeze
@@ -24,6 +24,12 @@ Install::
24
24
  % sudo aptitude update
25
25
  % sudo aptitude -V -D -y install groonga
26
26
 
27
+ There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
28
+
29
+ Install groonga-munin-plugins package::
30
+
31
+ % sudo aptitude -V -D -y install groonga-munin-plugins
32
+
27
33
  Debian GNU/Linux wheezy
28
34
  -----------------------
29
35
 
@@ -38,6 +44,10 @@ Install::
38
44
  % sudo aptitude update
39
45
  % sudo aptitude -V -D -y install groonga
40
46
 
47
+ Install groonga-munin-plugins package::
48
+
49
+ % sudo aptitude -V -D -y install groonga-munin-plugins
50
+
41
51
  Debian GNU/Linux sid
42
52
  --------------------
43
53
 
@@ -52,13 +62,17 @@ Install::
52
62
  % sudo aptitude update
53
63
  % sudo aptitude -V -D -y install groonga
54
64
 
65
+ Install groonga-munin-plugins package::
66
+
67
+ % sudo aptitude -V -D -y install groonga-munin-plugins
68
+
55
69
  Ubuntu 10.04 LTS Lucid Lynx
56
70
  ---------------------------
57
71
 
58
72
  .. note::
59
73
 
60
- You should add universe section in the official Ubuntu
61
- repository. The following describes how to add it.
74
+ You'll need to enable the universe repository of Ubuntu to install groonga.
75
+ The following describes how to do it.
62
76
 
63
77
  /etc/apt/sources.list.d/groonga.list::
64
78
 
@@ -68,16 +82,20 @@ Ubuntu 10.04 LTS Lucid Lynx
68
82
  Install::
69
83
 
70
84
  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31
71
- % sudo aptitude update
72
- % sudo aptitude -V -D -y install groonga
85
+ % sudo apt-get update
86
+ % sudo apt-get -y install groonga
87
+
88
+ Install groonga-munin-plugins package::
89
+
90
+ % sudo apt-get -y install groonga-munin-plugins
73
91
 
74
92
  Ubuntu 11.04 Natty Narwhal
75
93
  --------------------------
76
94
 
77
95
  .. note::
78
96
 
79
- You should add universe section in the official Ubuntu
80
- repository. The following describes how to add it.
97
+ You'll need to enable the universe repository of Ubuntu to install groonga.
98
+ The following describes how to do it.
81
99
 
82
100
  /etc/apt/sources.list.d/groonga.list::
83
101
 
@@ -87,16 +105,20 @@ Ubuntu 11.04 Natty Narwhal
87
105
  Install::
88
106
 
89
107
  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31
90
- % sudo aptitude update
91
- % sudo aptitude -V -D -y install groonga
108
+ % sudo apt-get update
109
+ % sudo apt-get -y install groonga
110
+
111
+ Install groonga-munin-plugins package::
112
+
113
+ % sudo apt-get -y install groonga-munin-plugins
92
114
 
93
115
  Ubuntu 11.10 Oneiric Ocelot
94
116
  ---------------------------
95
117
 
96
118
  .. note::
97
119
 
98
- You should add universe section in the official Ubuntu
99
- repository. The following describes how to add it.
120
+ You'll need to enable the universe repository of Ubuntu to install groonga.
121
+ The following describes how to do it.
100
122
 
101
123
  /etc/apt/sources.list.d/groonga.list::
102
124
 
@@ -106,8 +128,12 @@ Ubuntu 11.10 Oneiric Ocelot
106
128
  Install::
107
129
 
108
130
  % sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 1C837F31
109
- % sudo aptitude update
110
- % sudo aptitude -V -D -y install groonga
131
+ % sudo apt-get update
132
+ % sudo apt-get -y install groonga
133
+
134
+ Install groonga-munin-plugins package::
135
+
136
+ % sudo apt-get -y install groonga-munin-plugins
111
137
 
112
138
  CentOS 5
113
139
  --------
@@ -118,6 +144,29 @@ Install::
118
144
  % sudo yum update
119
145
  % sudo yum install -y groonga
120
146
 
147
+ There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
148
+
149
+ .. note::
150
+
151
+ Groonga-munin-plugins package requires munin-node package that isn't included in the official CentOS repository. You need to enable `RPMforge <http://repoforge.org/>`_ repository or `EPEL <http://fedoraproject.org/wiki/EPEL>`_ repository to install it by yum.
152
+
153
+ Enable RPMforge repository on i386 environment::
154
+
155
+ % sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
156
+
157
+ Enable RPMforge repository on x86_64 environment::
158
+
159
+ % sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
160
+
161
+ Enable EPEL repository on any environment::
162
+
163
+ % sudo rpm -ivh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
164
+
165
+ Install groonga-munin-plugins package::
166
+
167
+ % sudo yum update
168
+ % sudo yum install -y groonga-munin-plugins
169
+
121
170
  CentOS 6
122
171
  --------
123
172
 
@@ -127,7 +176,30 @@ Install::
127
176
  % sudo yum update
128
177
  % sudo yum install -y groonga
129
178
 
130
- Fedora 15
179
+ There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
180
+
181
+ .. note::
182
+
183
+ Groonga-munin-plugins package requires munin-node package that isn't included in the official CentOS repository. You need to enable `RPMforge <http://repoforge.org/>`_ repository or `EPEL <http://fedoraproject.org/wiki/EPEL>`_ repository to install it by yum.
184
+
185
+ Enable RPMforge repository on i686 environment::
186
+
187
+ % sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
188
+
189
+ Enable RPMforge repository on x86_64 environment::
190
+
191
+ % sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
192
+
193
+ Enable EPEL repository on any environment::
194
+
195
+ % sudo rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm
196
+
197
+ Install groonga-munin-plugins package::
198
+
199
+ % sudo yum update
200
+ % sudo yum install -y groonga-munin-plugins
201
+
202
+ Fedora 16
131
203
  ---------
132
204
 
133
205
  Install::
@@ -136,6 +208,12 @@ Install::
136
208
  % sudo yum update
137
209
  % sudo yum install -y groonga
138
210
 
211
+ There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
212
+
213
+ Install groonga-munin-plugins package::
214
+
215
+ % sudo yum install -y groonga-munin-plugins
216
+
139
217
  Mac OS X (MacPorts)
140
218
  -------------------
141
219
 
@@ -153,31 +231,28 @@ Install::
153
231
  Windows (Installer)
154
232
  -------------------
155
233
 
156
- You just download installer (.exe file) from
234
+ You just download an installer (.exe file) from
157
235
  `packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
158
236
  and execute it.
159
237
 
160
238
  Windows (zip)
161
239
  -------------
162
240
 
163
- You just download zip-file from
241
+ You just download a zip file from
164
242
  `packages.groonga.org/windows/ <http://packages.groonga.org/windows/groonga/>`_
165
243
  and extract it.
166
244
 
167
245
  Others
168
246
  ------
169
247
 
170
- If you will use indexes of tokenizing of each morpheme for
171
- full-text search, you should install `MeCab <http://mecab.sourceforge.net/>`_
172
- before you install groonga.
248
+ If you want to use a morphological analyzer for tokenization in full-text indexing, please install `MeCab <http://mecab.sourceforge.net/>`_ before installing groonga.
173
249
 
174
- After, you should download tar.gz-file from
175
- `packages.groonga.org/source/ <http://packages.groonga.org/source/groonga/>`_
176
- for installing groonga. You should extract this file in
177
- place to install, and run commands below-mentioned. ::
250
+ Then, download a tar.gz file from `packages.groonga.org/source/ <http://packages.groonga.org/source/groonga/>`_ and extract it. After that, please run the following command to install groonga.
251
+
252
+ Install::
178
253
 
179
254
  ./configure --prefix=/usr --localstatedir=/var && make && sudo make install
180
255
 
181
- The "prefix" option is the paramater for specified place to install.
182
- If you won't specify the option, "/usr/local" is specified.
183
- Please specify "/usr" for this option if you don't know environment variables(LD_LIBRARY_PATH and so on) well.
256
+ The "prefix" option specifies the path to install groonga. If you don't specify the install path, "/usr/local" is used. Please specify "/usr" if you are not familiar with environment variables such as LD_LIBRARY_PATH.
257
+
258
+ There are some `Munin <http://munin-monitoring.org/>`_ plugins in groonga package. You need to pass `--with-munin-plugins` option to install them.
@@ -2,18 +2,18 @@
2
2
 
3
3
  .. highlightlang:: none
4
4
 
5
- 制限事項
6
- ========
5
+ Limitations
6
+ ===========
7
7
 
8
- groongaにはいくつか制限事項があります。
8
+ Groonga has some limitations.
9
9
 
10
- インデックス上限値
11
- ------------------
10
+ Limitations of indexing
11
+ -----------------------
12
12
 
13
- 1つのインデックスにおける論理上の上限値は以下のとおりです。
13
+ A full-text index has the following limitations.
14
14
 
15
- * 最大レコード数: 268,435,455 (約2億6千万)
16
- * 最大語彙数: 268,435,455 (約2億6千万)
17
- * 最大インデックスサイズ: 256GByte
15
+ * The maximum number of records: 268,435,455 (more than 26 million)
16
+ * The maximum number of distinct terms: 268,435,455 (more than 26 million)
17
+ * The maximum index size: 256GBytes
18
18
 
19
- (実際には他の諸条件の制約により上記の値まで到達しない場合もあります)
19
+ Keep in mind that these limitations may vary depending on conditions.
@@ -5,52 +5,161 @@
5
5
  News
6
6
  ====
7
7
 
8
+ .. _release-1-3-0:
9
+
10
+ Release 1.3.0 - 2012/01/29
11
+ --------------------------
12
+
13
+ Improvements
14
+ ^^^^^^^^^^^^
15
+
16
+ * Supported dynamic DB key table change by
17
+ GRN_DB_KEY=pat or GRN_DB_KEY=dat environment variable value.
18
+ * Added ``--with-default-db-key`` configure option that
19
+ specifies the default DB key table.
20
+ * Supported "" value for geo point data types. It's interpreted as "0x0".
21
+ * Added column name to cast error message.
22
+ * Inhibit file information for stdin on load error.
23
+ * Enabled write-strings warnings and suppress those
24
+ warnings. [Suggested by montywi]
25
+ * Marked MessagePack output format as supported. [#1215]
26
+ * Added ``const`` to ``void *`` of ``*_set_value()``.
27
+ * Enabled warning flags on C and C++.
28
+ * Supported ``--with-libevent`` without value configure option.
29
+ * ``grn_table_get()`` supported grn_db. [#1242]
30
+ * [rpm] Removed needless groogna-munin-plugins dependency
31
+ from groonga-server. [#1251] [Suggested by Masaharu IWAI]
32
+ * [rpm] Removed needless groogna-doc dependency
33
+ from groonga. [#1251] [Suggested by Masaharu IWAI]
34
+ * [dat] Supported repair by ``grn_dat_repair()``.
35
+ * ``grn_table_at()`` supported grn_db.
36
+ * [suggest] Removed unstable mark.
37
+ * [suggest][complete] Supported normalized value search in prefix-search.
38
+ * Added experimental offline index build. It's disabled by
39
+ default for now. You can enable it by
40
+ USE_OFFLINE_INDEXER=yes environment variable.
41
+ * Added internal API ``grn_obj_path_by_id()`` for mroonga.
42
+ * [suggest][httpd] Passed unknown parameters to groonga.
43
+ * [output][xml] Added a newline before ``</RESULT>`` for readability.
44
+ * [doc][output] Added documentation about output format type.
45
+ * Added ``table_rename``. [#1234]
46
+ * Added ``column_rename``. [#1234]
47
+
48
+ Thanks
49
+ ^^^^^^
50
+
51
+ * montywi
52
+ * Masaharu IWAI
53
+
54
+ .. _release-1-2-9:
55
+
56
+ Release 1.2.9 - 2011/12/29
57
+ --------------------------
58
+
59
+ Improvements
60
+ ^^^^^^^^^^^^
61
+
62
+ * Supported Fedora 16.
63
+ * Dropped Fedora 15 support.
64
+ * [groonga] Improved the default server ID address to work
65
+ on unresolved host name environment. [Reported by @uzulla]
66
+ * Supported MAP_HUGETLB.
67
+ * [admin] Supported throughput chart.
68
+ * Stopped adding nul character in ``grn_itoh()``. [#1194]
69
+ [Reported by SHIDARA Yoji]
70
+ * Added ``grn_obj_get_values()``.
71
+ * Added ``grn_obj_delete_by_id()``.
72
+ * Supported string vector column for query expansion. [#1216]
73
+ * Added ``--filter`` option to :doc:`/commands/delete` to delete
74
+ many record at once. [#1225]
75
+ * Supported approximate type customization for
76
+ :doc:`/functions/geo_in_circle` and :doc:`/functions/geo_distance`. [#1226]
77
+ * Made ``geo_distance2()`` and ``geo_distance3()`` are deprecated.
78
+ * Changed to use ``null`` instead of ``""`` for empty geo
79
+ point value in JSON output.
80
+ * Almost supported MessagePack output. [#1215] [Worked by SHIDARA Yoji]
81
+ * Added missing newlines after drilldown result tags in XML output.
82
+ * Supported truncate for grn_dat.
83
+ * Supported longest common prefix search by grn_dat.
84
+
85
+ Fixes
86
+ ^^^^^
87
+
88
+ * [windows] Fixed inverted map type.
89
+ * Fixed -Wno- compiler flag detection. [Patch by Arnaud Fontaine]
90
+ * Fixed a problem that ``groonga --version`` reports wrongly
91
+ about MeCab. [#1209] [Patch by SHIDARA Yoji]
92
+ * Added missing lock into ``grn_obj_remove()``.
93
+ * Fixed Content-Type on error. [#1220] [Patch by SHIDARA Yoji]
94
+ * Fixed a problem that deleting SIS (Semi Infinite String)
95
+ may keep a garbage.
96
+
97
+ Thanks
98
+ ^^^^^^
99
+
100
+ * @uzulla
101
+ * Arnaud Fontaine
102
+ * SHIDARA Yoji
103
+
8
104
  .. _release-1-2-8:
9
105
 
10
106
  Release 1.2.8 - 2011/11/29
11
107
  --------------------------
12
108
 
109
+ Object, table and column renamings are supported! These
110
+ features require database re-creation. You can re-create your
111
+ database by the following command::
112
+
113
+ % groonga YOUR_DB dump > db.dump
114
+ % groonga -n YOUR_NEW_DB < db.dump
115
+
116
+ .. note::
117
+
118
+ Groonga 1.2.8 can open databases created by groonga 1.2.7
119
+ or earlier. But groonga 1.2.7 or earlier can't open
120
+ databases created by groonga 1.2.8 or later.
121
+
13
122
  Improvements
14
123
  ^^^^^^^^^^^^
15
124
 
16
- * [grntest] Removed max number of bytes in a line limitation.
17
- * [grntest] Added `--pid-path` option.
18
- * Fixed a crash bug when accessing zlib/lzo compressed
19
- column. Note that compressed column access will leak memories. To
20
- resolve this, we need to improve API. We will do it in the feature.
21
- [GtiHub#5][GtiHub#6] [Reported by Takayuki Yamaguchi]
22
- * Fix a bug that needless column values are cleared by delete.
125
+ * [grntest] Removed the upper limit to the number of bytes in one line.
126
+ * [grntest] Added ``--pid-path`` option.
23
127
  * [deb] Enabled experimental zlib and lzo support.
24
128
  * [rpm] Enabled experimental zlib and lzo support.
25
- * Supported truncation. [#892]
129
+ * Supports truncation. [#892]
26
130
  * Enabled grn_dat that is a read lock free double array implementation.
27
131
  * [pkg-config] Added groonga_version variable to groonga.pc.
28
- * Re-supported `--disable-static`. [groonga-dev,00612]
132
+ * Re-supported ``--disable-static``. [groonga-dev,00612]
29
133
  [Suggested by Kenichi Aramaki]
30
134
  * [munin] Stopped to install Munin plugins by default.
31
135
  * Stopped to install RedHat platform related files by default.
32
- * Supported object renaming. [#1167]
136
+ * Supports object renaming. This requires DB re-creation. [#1167]
33
137
  * [munin] Added a Munin plugin that measures throughput. [#1171]
34
138
  * [geo] Improved geo_in_rectangle performance. The new
35
139
  implementation will be 2x faster than the old
36
140
  implementation in many cases. [#1173]
37
141
  * [macports] Moved groonga's MacPorts to the official
38
142
  repository. [Imported by Hiroshi Umemoto]
39
- * [geo] Changed geo literal conversion from in degree to in
40
- msec algorithm to round-off from truncation.
41
- * Supported a table as defrag target. It means that variable
42
- size value columns in the table are defrag targets. [#1175]
143
+ * [geo] Changed the geo literal degree-to-msec conversion algorithm
144
+ to round-off from truncation.
145
+ * Supports a table defrag. It defrags variable size value columns in
146
+ the table. [#1175]
43
147
  * Removed associated path on remove. [#1180]
44
- * [deb] Supported i386.
45
- * [rpm] Supported i386.
46
- * [windows] Supported x86.
148
+ * [deb] Supports i386.
149
+ * [rpm] Supports i386.
150
+ * [windows] Supports x86.
47
151
 
48
152
  Fixes
49
153
  ^^^^^
50
154
 
51
- * Fixed a bug that wrong index is used in sort. [#766]
155
+ * Fixed a bug that groonga crashes when accessing a zlib/lzo compressed
156
+ column. Note that a compressed column access causes a memory leak. To
157
+ resolve this, we need to improve API. We will do it in the future.
158
+ [GtiHub#5][GtiHub#6] [Reported by Takayuki Yamaguchi]
159
+ * Fixed a bug that unrelated column values are cleared in deletion.
160
+ * Fixed a bug that a wrong index is used in sorting. [#766]
52
161
  [Reported by Horikoshi Yuki]
53
- * [libedit] Fixed a bug that needed initialization is
162
+ * [libedit] Fixed a bug that necessary initialization is
54
163
  omitted. [GitHub#7] [Patch by SHIDARA Yoji]
55
164
  * [doc] Fixed a typo in documentation. [GitHub#8] [Patch by zunda]
56
165
 
@@ -162,7 +271,7 @@ Release 1.2.4 - 2011/07/29
162
271
  Improvements
163
272
  ^^^^^^^^^^^^
164
273
 
165
- * Re-supported *BSD. (Reported by OBATA Akio)
274
+ * Re-supported ``*BSD``. (Reported by OBATA Akio)
166
275
  * Improved sed related portability. (Suggested by OBATA Akio)
167
276
  * Re-supported Visual C++ 2008.
168
277
  * Supported :doc:`/commands/check` for hash table.
@@ -176,7 +285,7 @@ Fixes
176
285
  ^^^^^
177
286
 
178
287
  * Fixed broken libedit support. (Reported by Daiki Ueno)
179
- * Fixed source URL in *.spec (Reported by Daiki Ueno)
288
+ * Fixed source URL in ``*.spec`` (Reported by Daiki Ueno)
180
289
  * Fixed patricia trie cursor returns wrong records.
181
290
  * Added missing database lock clear for grn_obj_clear_lock()
182
291
  for database.
@@ -0,0 +1,164 @@
1
+ .. -*- rst -*-
2
+
3
+ .. highlightlang:: none
4
+
5
+ Output
6
+ ======
7
+
8
+ Groonga supports the following output format types:
9
+
10
+ * `JSON <http://www.json.org/>`_
11
+ * `XML <http://www.w3.org/XML/>`_
12
+ * TSV (Tab Separated Values)
13
+ * `MessagePack <http://msgpack.org/>`_
14
+
15
+ JSON is the default output format.
16
+
17
+ Usage
18
+ -----
19
+
20
+ Groonga has the following query interfaces:
21
+
22
+ * command line
23
+ * HTTP
24
+
25
+ They provides different ways to change output format type.
26
+
27
+ Command line
28
+ ^^^^^^^^^^^^
29
+
30
+ You can use command line query interface by ``groonga
31
+ DB_PATH`` or ``groonga -c``. Those groonga commands shows
32
+ ``> `` prompt. In this query interface, you can specify
33
+ output format type by ``output_type`` option.
34
+
35
+ If you don't specify ``output_type`` option, you will get
36
+ a result in JSON format::
37
+
38
+ > status
39
+ [[0,1327721628.10738,0.000131845474243164],{"alloc_count":142,"starttime":1327721626,"uptime":2,"version":"1.2.9-92-gb87d9f8","n_queries":0,"cache_hit_rate":0.0,"command_version":1,"default_command_version":1,"max_command_version":2}]
40
+
41
+ You can specify ``json`` as ``output_type`` value to get a
42
+ result in JSON format explicitly::
43
+
44
+ > status --output_type json
45
+ [[0,1327721639.08321,7.93933868408203e-05],{"alloc_count":144,"starttime":1327721626,"uptime":13,"version":"1.2.9-92-gb87d9f8","n_queries":0,"cache_hit_rate":0.0,"command_version":1,"default_command_version":1,"max_command_version":2}]
46
+
47
+ You need to specify ``xml`` as ``output_type`` value to
48
+ get a result in XML format::
49
+
50
+ > status --output_type xml
51
+ <?xml version="1.0" encoding="utf-8"?>
52
+ <RESULT CODE="0" UP="1327721649.61095" ELAPSED="0.000126361846923828">
53
+ <RESULT>
54
+ <TEXT>alloc_count</TEXT>
55
+ <INT>146</INT>
56
+ <TEXT>starttime</TEXT>
57
+ <INT>1327721626</INT>
58
+ <TEXT>uptime</TEXT>
59
+ <INT>23</INT>
60
+ <TEXT>version</TEXT>
61
+ <TEXT>1.2.9-92-gb87d9f8</TEXT>
62
+ <TEXT>n_queries</TEXT>
63
+ <INT>0</INT>
64
+ <TEXT>cache_hit_rate</TEXT>
65
+ <FLOAT>0.0</FLOAT>
66
+ <TEXT>command_version</TEXT>
67
+ <INT>1</INT>
68
+ <TEXT>default_command_version</TEXT>
69
+ <INT>1</INT>
70
+ <TEXT>max_command_version</TEXT>
71
+ <INT>2</INT></RESULT>
72
+ </RESULT>
73
+
74
+ You need to specify ``tsv`` as ``output_type`` value to
75
+ get a result in TSV format::
76
+
77
+ > status --output_type tsv
78
+ 0 1327721664.82675 0.000113964080810547
79
+ "alloc_count" 146
80
+ "starttime" 1327721626
81
+ "uptime" 38
82
+ "version" "1.2.9-92-gb87d9f8"
83
+ "n_queries" 0
84
+ "cache_hit_rate" 0.0
85
+ "command_version" 1
86
+ "default_command_version" 1
87
+ "max_command_version" 2
88
+ END
89
+
90
+
91
+ You need to specify ``msgpack`` as ``output_type`` value to
92
+ get a result in MessagePack format::
93
+
94
+ > status --output_type msgpack
95
+ (... omitted because MessagePack is binary data format. ...)
96
+
97
+ HTTP
98
+ ^^^^
99
+
100
+ You can use HTTP query interface by ``groonga --protocol
101
+ http -s DB_PATH``. Groonga HTTP server starts on port 10041
102
+ by default. In this query interface, you can specify
103
+ output format type by extension.
104
+
105
+ If you don't specify extension, you will get a result in
106
+ JSON format::
107
+
108
+ % curl http://localhost:10041/d/status
109
+ [[0,1327809294.54311,0.00082087516784668],{"alloc_count":155,"starttime":1327809282,"uptime":12,"version":"1.2.9-92-gb87d9f8","n_queries":0,"cache_hit_rate":0.0,"command_version":1,"default_command_version":1,"max_command_version":2}]
110
+
111
+ You can specify ``json`` as extension to get a result in
112
+ JSON format explicitly::
113
+
114
+ % curl http://localhost:10041/d/status.json
115
+ [[0,1327809319.01929,9.5367431640625e-05],{"alloc_count":157,"starttime":1327809282,"uptime":37,"version":"1.2.9-92-gb87d9f8","n_queries":0,"cache_hit_rate":0.0,"command_version":1,"default_command_version":1,"max_command_version":2}]
116
+
117
+ You need to specify ``xml`` as extension to get a result in
118
+ XML format::
119
+
120
+ % curl http://localhost:10041/d/status.xml
121
+ <?xml version="1.0" encoding="utf-8"?>
122
+ <RESULT CODE="0" UP="1327809339.5782" ELAPSED="9.56058502197266e-05">
123
+ <RESULT>
124
+ <TEXT>alloc_count</TEXT>
125
+ <INT>159</INT>
126
+ <TEXT>starttime</TEXT>
127
+ <INT>1327809282</INT>
128
+ <TEXT>uptime</TEXT>
129
+ <INT>57</INT>
130
+ <TEXT>version</TEXT>
131
+ <TEXT>1.2.9-92-gb87d9f8</TEXT>
132
+ <TEXT>n_queries</TEXT>
133
+ <INT>0</INT>
134
+ <TEXT>cache_hit_rate</TEXT>
135
+ <FLOAT>0.0</FLOAT>
136
+ <TEXT>command_version</TEXT>
137
+ <INT>1</INT>
138
+ <TEXT>default_command_version</TEXT>
139
+ <INT>1</INT>
140
+ <TEXT>max_command_version</TEXT>
141
+ <INT>2</INT></RESULT>
142
+ </RESULT>
143
+
144
+ You need to specify ``tsv`` as extension to get a result in
145
+ TSV format::
146
+
147
+ % curl http://localhost:10041/d/status.tsv
148
+ 0 1327809366.84187 8.44001770019531e-05
149
+ "alloc_count" 159
150
+ "starttime" 1327809282
151
+ "uptime" 84
152
+ "version" "1.2.9-92-gb87d9f8"
153
+ "n_queries" 0
154
+ "cache_hit_rate" 0.0
155
+ "command_version" 1
156
+ "default_command_version" 1
157
+ "max_command_version" 2
158
+ END
159
+
160
+ You need to specify ``msgpack`` as extension to get a result
161
+ in MessagePack format::
162
+
163
+ % curl http://localhost:10041/d/status.msgpack
164
+ (... omitted because MessagePack is binary data format. ...)
@@ -9,6 +9,7 @@
9
9
  :maxdepth: 2
10
10
 
11
11
  executables
12
+ output
12
13
  commands
13
14
  type
14
15
  pseudo_column
@@ -5,11 +5,6 @@
5
5
  Suggest
6
6
  =======
7
7
 
8
- .. note::
9
-
10
- The suggest feature specification isn't stable. The
11
- specification may be changed.
12
-
13
8
  Groonga has the suggest feature. This section describes how to use it and how it works.
14
9
 
15
10
  .. toctree::
@@ -4,6 +4,9 @@
4
4
 
5
5
  .. groonga-include : introduction.txt
6
6
 
7
+ .. groonga-command
8
+ .. database: tutorial
9
+
7
10
  さまざまな種類をもったデータの保存
8
11
  ==================================
9
12
 
@@ -19,8 +22,7 @@ groongaでは、数値(整数・小数)や文字列や時刻や経緯度な
19
22
  その他のデータ型の一覧は、 :doc:`/type` を参照してください。
20
23
 
21
24
  .. groonga-command
22
- .. table_remove Type
23
- .. include:: ../example/tutorial/introduction-1.log
25
+ .. include:: ../example/tutorial/data-1.log
24
26
  .. table_create --name Type --flags TABLE_HASH_KEY --key_type ShortText
25
27
  .. column_create --table Type --name number --type Int32
26
28
  .. column_create --table Type --name float --type Float
@@ -43,7 +45,7 @@ table_createで作成したテーブルを、カラムの型として使うこ
43
45
  他のテーブルを参照するカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値を代入する必要があります。
44
46
 
45
47
  .. groonga-command
46
- .. include:: ../example/tutorial/introduction-2.log
48
+ .. include:: ../example/tutorial/data-2.log
47
49
  .. column_create --table Site --name link --type Site
48
50
  .. load --table Site
49
51
  .. [{"_key":"http://example.org/","link":"http://example.net/"}]
@@ -65,7 +67,7 @@ column_createコマンドでカラムを作成するとき、--flagsオプショ
65
67
  .. FIXME: _idの配列ではダメなのかどうか。検証する。
66
68
 
67
69
  .. groonga-command
68
- .. include:: ../example/tutorial/introduction-3.log
70
+ .. include:: ../example/tutorial/data-3.log
69
71
  .. column_create --table Site --name links --flags COLUMN_VECTOR --type Site
70
72
  .. load --table Site
71
73
  .. [{"_key":"http://example.org/","links":["http://example.net/","http://example.org/","http://example.com/"]}]