rroonga 4.0.4-x64-mingw32 → 4.0.5-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (481) hide show
  1. checksums.yaml +8 -8
  2. data/README.md +73 -0
  3. data/Rakefile +13 -0
  4. data/doc/text/news.textile +26 -2
  5. data/ext/groonga/extconf.rb +3 -1
  6. data/ext/groonga/rb-grn-context.c +1 -1
  7. data/ext/groonga/rb-grn-double-array-trie.c +160 -4
  8. data/ext/groonga/rb-grn-object.c +10 -1
  9. data/ext/groonga/rb-grn-posting.c +4 -4
  10. data/ext/groonga/rb-grn-table-key-support.c +9 -4
  11. data/ext/groonga/rb-grn-table.c +1 -1
  12. data/ext/groonga/rb-grn-utils.c +2 -6
  13. data/ext/groonga/rb-grn-variable-size-column.c +2 -2
  14. data/ext/groonga/rb-grn.h +27 -2
  15. data/lib/1.9/groonga.so +0 -0
  16. data/lib/2.0/groonga.so +0 -0
  17. data/lib/2.1/groonga.so +0 -0
  18. data/lib/groonga/record.rb +19 -2
  19. data/lib/groonga/schema.rb +2 -2
  20. data/rroonga-build.rb +1 -1
  21. data/rroonga.gemspec +5 -5
  22. data/test/test-column.rb +6 -6
  23. data/test/test-database.rb +6 -2
  24. data/test/test-double-array-trie.rb +18 -0
  25. data/test/test-expression-builder.rb +3 -2
  26. data/test/test-hash.rb +13 -1
  27. data/test/test-plugin.rb +3 -1
  28. data/test/test-record.rb +10 -0
  29. data/test/test-variable-size-column.rb +4 -4
  30. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  31. data/vendor/local/bin/groonga.exe +0 -0
  32. data/vendor/local/bin/libgroonga-0.dll +0 -0
  33. data/vendor/local/bin/libmecab-1.dll +0 -0
  34. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  35. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  36. data/vendor/local/bin/libonig-5.dll +0 -0
  37. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  38. data/vendor/local/bin/mecab.exe +0 -0
  39. data/vendor/local/bin/onig-config +78 -0
  40. data/vendor/local/include/oniggnu.h +85 -0
  41. data/vendor/local/include/onigposix.h +169 -0
  42. data/vendor/local/include/oniguruma.h +870 -0
  43. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  44. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  45. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  46. data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
  47. data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
  48. data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
  49. data/vendor/local/lib/groonga/plugins/ruby/eval.la +41 -0
  50. data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
  51. data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
  52. data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
  53. data/vendor/local/lib/groonga/plugins/ruby/load.la +41 -0
  54. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  55. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  56. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  57. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  58. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  59. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  60. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  61. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  62. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  63. data/vendor/local/lib/groonga/scripts/ruby/backtrace_entry.rb +20 -0
  64. data/vendor/local/lib/groonga/scripts/ruby/context.rb +31 -0
  65. data/vendor/local/lib/groonga/scripts/ruby/context/error_level.rb +30 -0
  66. data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +99 -0
  67. data/vendor/local/lib/groonga/scripts/ruby/eval_context.rb +13 -0
  68. data/vendor/local/lib/groonga/scripts/ruby/expression.rb +13 -0
  69. data/vendor/local/lib/groonga/scripts/ruby/index_info.rb +10 -0
  70. data/vendor/local/lib/groonga/scripts/ruby/logger.rb +27 -0
  71. data/vendor/local/lib/groonga/scripts/ruby/logger/level.rb +32 -0
  72. data/vendor/local/lib/groonga/scripts/ruby/scan_info.rb +30 -0
  73. data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +342 -0
  74. data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +198 -0
  75. data/vendor/local/lib/libgroonga.a +0 -0
  76. data/vendor/local/lib/libgroonga.dll.a +0 -0
  77. data/vendor/local/lib/libmecab.a +0 -0
  78. data/vendor/local/lib/libmecab.dll.a +0 -0
  79. data/vendor/local/lib/libmsgpack.a +0 -0
  80. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  81. data/vendor/local/lib/libmsgpackc.a +0 -0
  82. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  83. data/vendor/local/lib/libonig.a +0 -0
  84. data/vendor/local/lib/libonig.dll.a +0 -0
  85. data/vendor/local/lib/libonig.la +41 -0
  86. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  87. data/vendor/local/lib/pkgconfig/oniguruma.pc +14 -0
  88. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  89. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  90. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  91. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  92. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  93. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  94. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +4 -5
  95. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +46 -10
  96. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -87
  97. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
  98. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  99. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  100. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  101. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
  102. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  103. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +68 -0
  104. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables.txt +3 -3
  105. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -1
  106. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/lexicon.txt +5 -4
  107. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +265 -232
  108. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +30 -23
  109. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +2 -2
  110. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  111. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  112. data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
  113. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  114. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  115. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
  116. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  117. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  118. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
  119. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  120. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  121. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  122. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  123. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
  124. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +8 -9
  125. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  126. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  127. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  128. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  129. data/vendor/local/share/doc/groonga/en/html/index.html +17 -18
  130. data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
  131. data/vendor/local/share/doc/groonga/en/html/install/centos.html +63 -10
  132. data/vendor/local/share/doc/groonga/en/html/install/debian.html +10 -108
  133. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
  134. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  135. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  136. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  137. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
  138. data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
  139. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/news.html +123 -48
  141. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  143. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +6 -6
  145. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
  146. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
  147. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  150. data/vendor/local/share/doc/groonga/en/html/reference.html +10 -10
  151. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
  153. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
  164. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
  165. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
  168. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
  171. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
  173. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
  174. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  175. data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
  178. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  186. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  187. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
  198. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
  212. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +8 -8
  214. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +12 -12
  215. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +8 -8
  216. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +8 -8
  217. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +8 -8
  218. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +8 -8
  219. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +8 -8
  220. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +8 -8
  221. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +8 -8
  222. data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
  223. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  225. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  227. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  228. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
  229. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
  230. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
  231. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
  232. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
  234. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  238. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
  240. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  241. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  243. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  244. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  246. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  247. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +5 -5
  248. data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
  249. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  250. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  251. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  252. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  253. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  254. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  255. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  256. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  257. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  258. data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
  259. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  260. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  261. data/vendor/local/share/doc/groonga/en/html/suggest.html +9 -9
  262. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  263. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  264. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  265. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  266. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  267. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  268. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  269. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  270. data/vendor/local/share/doc/groonga/en/html/tutorial.html +13 -13
  271. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  272. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -6
  273. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  274. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  275. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +14 -13
  276. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  277. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +264 -250
  278. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  279. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +9 -9
  280. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +46 -41
  281. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +7 -7
  282. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  283. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +4 -5
  284. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +46 -10
  285. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -87
  286. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
  287. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  288. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  289. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  290. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
  291. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  292. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +68 -0
  293. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables.txt +3 -3
  294. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -1
  295. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/lexicon.txt +5 -4
  296. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +265 -232
  297. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +30 -23
  298. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +2 -2
  299. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  300. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  301. data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
  302. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  303. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  304. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
  308. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  309. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
  310. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  311. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  312. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
  313. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -6
  314. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  315. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  316. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  317. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  318. data/vendor/local/share/doc/groonga/ja/html/index.html +14 -15
  319. data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
  320. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +57 -10
  321. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +10 -102
  322. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
  323. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  324. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  325. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  326. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
  327. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
  328. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  329. data/vendor/local/share/doc/groonga/ja/html/news.html +130 -48
  330. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  331. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  332. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  333. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  334. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
  335. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
  336. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
  337. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  338. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  339. data/vendor/local/share/doc/groonga/ja/html/reference.html +5 -5
  340. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  341. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +9 -9
  342. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +17 -33
  343. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +23 -26
  344. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
  345. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +10 -10
  346. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +6 -6
  347. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +10 -10
  348. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -37
  349. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
  350. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
  351. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
  352. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
  353. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
  354. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
  355. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
  356. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
  357. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
  358. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
  359. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
  360. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
  361. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
  362. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +6 -6
  363. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  364. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
  365. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
  366. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
  367. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  368. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  369. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  370. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  371. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  372. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  373. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  374. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  375. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  376. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  377. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
  378. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  379. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  380. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  381. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  382. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  383. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
  384. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  385. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
  387. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
  388. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  389. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  390. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
  391. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
  392. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
  393. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  394. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
  395. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  396. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  397. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  398. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  399. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
  400. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
  401. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
  402. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +7 -7
  403. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  404. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
  405. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
  406. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  407. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  408. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +5 -5
  409. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
  410. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  411. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
  412. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
  413. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  414. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  415. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  416. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  417. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
  418. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +5 -5
  420. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
  422. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
  424. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +5 -5
  425. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  426. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  427. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  428. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
  429. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
  430. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
  431. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  432. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  433. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  434. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  435. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  436. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +5 -5
  437. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
  438. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  439. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  440. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  441. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  442. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  443. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  444. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  446. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  447. data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
  448. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  449. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  450. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  451. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  452. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  453. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  454. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  455. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  456. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  457. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  458. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
  459. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +11 -11
  460. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  461. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -6
  462. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  463. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  464. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +9 -9
  465. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  466. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +249 -237
  467. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  468. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +9 -9
  469. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +36 -36
  470. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +7 -7
  471. data/vendor/local/share/license/mruby/AUTHORS +22 -0
  472. data/vendor/local/share/license/mruby/LEGAL +6 -0
  473. data/vendor/local/share/license/mruby/MITL +20 -0
  474. data/vendor/local/share/license/mruby/README.md +111 -0
  475. data/vendor/local/share/license/onigmo/AUTHORS +2 -0
  476. data/vendor/local/share/license/onigmo/COPYING +87 -0
  477. data/vendor/local/share/license/onigmo/README +249 -0
  478. data/vendor/local/share/man/ja/man1/groonga.1 +471 -485
  479. data/vendor/local/share/man/man1/groonga.1 +389 -454
  480. metadata +82 -46
  481. data/README.textile +0 -73
@@ -7,6 +7,73 @@
7
7
  News
8
8
  ====
9
9
 
10
+ .. _release-4-0-6:
11
+
12
+ Release 4.0.6 - 2014/09/29
13
+ --------------------------
14
+
15
+ Improvements
16
+ ^^^^^^^^^^^^
17
+
18
+ * [deb] Updated to follow the rule about machine-readable
19
+ debian/copyright file. [Reported by Hideki Yamane]
20
+ * [deb][rpm] Changed to use signal instead of HTTP to control nginx.
21
+ This way meets nginx style init script.
22
+ * [doc] Updated English documentation about [ :doc:`/reference/executables` ].
23
+ [GitHub#196] [Patch by Masafumi Yokoyama]
24
+ * [OS X] Added missing sphinx error message for Homebrew users.
25
+ [GitHub#198] [Patch by cosmo0920]
26
+ * Exported :c:func:`grn_expr_alloc_const` which allocates constant object.
27
+ It is exported for mruby.
28
+ * [mruby] Query optimizer by mruby became a practical for some range select query.
29
+ For example, mruby optimizer overhead is negligible enough for query such as
30
+ "between(X, 0, 'exclude', 100, 'include')" - "X > 0 && X <= 100".
31
+ * [doc] Changed to recommend GitHub for reporting issues.
32
+ Until now, Redmine account must be approved by administrator, so you can not
33
+ report at feel free. [GitHub#202] [Patch by cosmo0920]
34
+ * [doc] Translated C API document. [GitHub#203] [Patch by NOKUBI Takatsugu]
35
+ * Supported to customize similarity threshold by ``'*S10"..."'`` syntax.
36
+ * Added source column validation to
37
+ :doc:`/reference/commands/column_create`. If source column doesn't
38
+ exist, :doc:`/reference/commands/column_create` returns ``false`` and
39
+ column isn't created.
40
+ * [windows] Enabled mruby.
41
+ * [debian] Dropped Debian jessie and sid support.
42
+
43
+ Fixes
44
+ ^^^^^
45
+
46
+ * [windows] Disabled KyTea by default because of redistribution license issue.
47
+ * [windows] Disabled libedit support by default.
48
+ * Fixed a bug that similar search doesn't use IDF (Inverse Document Frequency)
49
+ for choosing target tokens.
50
+ In the previous versions, it used token ID instead of IDF.
51
+ [groonga-dev,02731] [groonga-dev,02754] [Reported by Satoshi Mitani, warp kawada]
52
+ * Fixed a crash bug when deleting a record.
53
+ If the table of the record has ``_key`` and ``_key`` is
54
+ indexed from two or more index columns, deleting causes a crash.
55
+ * Fixed compiler warning about unused variable 'e'. [GitHub#197] [Patch by cosmo0920]
56
+ * [fedora][httpd] Fixed service start failure without log directory.
57
+ * [mruby] Fixed build error with ``--disable-mruby``.
58
+ [GitHub#200] [Patch by cosmo0920]
59
+ * Fixed build warning about CMP0014 for MariaDB bundled Mroonga package.
60
+ [GitHub#201] [Patch by cosmo0920]
61
+ * Fixed a bug that "*" is parsed as prefix search with empty string.
62
+ [groonga-dev,02796] [Reported by Kazuhiko]
63
+ * [httpd] Updated bundled nginx version to the latest mainline (1.7.5).
64
+ This update contains vulnerability fix (CVE-2014-3616).
65
+
66
+ Thanks
67
+ ^^^^^^
68
+
69
+ * Hideki Yamane
70
+ * Masafumi Yokoyama
71
+ * cosmo0920
72
+ * NOKUBI Takatsugu
73
+ * Satoshi Mitani
74
+ * warp kawada
75
+ * Kazuhiko
76
+
10
77
  .. _release-4-0-5:
11
78
 
12
79
  Release 4.0.5 - 2014/08/29
@@ -18,6 +85,7 @@ Improvements
18
85
  * Dropped Ubuntu 13.10 (Saucy Salamander).
19
86
  * Supported to show weight vector element as XML.
20
87
  * [ :doc:`/reference/functions/between` ] Supported outside of key range.
88
+ [GitHub#183] [Patch by Naoya Murakami]
21
89
  * [mruby] Changed to use Onigmo as regexp implementation.
22
90
  * Added :doc:`/reference/functions/highlight_full` and
23
91
  :doc:`/reference/functions/highlight_html` which tags
@@ -2,10 +2,10 @@
2
2
 
3
3
  .. highlightlang:: none
4
4
 
5
- 実行ファイル
6
- ============
5
+ Executables
6
+ ===========
7
7
 
8
- groongaパッケージが提供する実行ファイルについて説明します。
8
+ This section describes executable files provided by groonga package.
9
9
 
10
10
  .. toctree::
11
11
  :maxdepth: 1
@@ -120,7 +120,7 @@ Use ``--drilldown_sortby`` if you want to sort the result of drilldown. For exam
120
120
  limits drildown results
121
121
  ------------------------
122
122
 
123
- The number of drilldown results is limited to 10 as a default. Use ``drilldown_limits`` and ``drilldown_offset`` parameter to customize orilldown results.
123
+ The number of drilldown results is limited to 10 as a default. Use ``drilldown_limit`` and ``drilldown_offset`` parameter to customize orilldown results.
124
124
 
125
125
  .. groonga-command
126
126
  .. include:: ../example/tutorial/drilldown-limit.log
@@ -2,10 +2,11 @@
2
2
 
3
3
  .. highlightlang:: none
4
4
 
5
- 全文検索の語彙表に対する追加情報
6
- ================================
5
+ Additional information about lexicon for full text search
6
+ =========================================================
7
7
 
8
- Groongaでは、全文検索に用いるための語意表がテーブルとして扱えます。よって、語彙ごとに複数の情報を保持することができます。例えば、語彙の出現数や検索ストップワードのフラグ、単語の重要度などを保持することができます。
8
+ Groonga uses lexicon for full text search as a table. Thus, Groonga can hold multiple information each lexicon.
9
+ For example, Groonga holds frequency of word, flags for stop word, importance of word and so on.
9
10
 
10
- この項目については、現在執筆中です。
11
+ TODO: Write document.
11
12
 
@@ -5,15 +5,16 @@
5
5
  .. groonga-command
6
6
  .. database: tutorial-micro-blog
7
7
 
8
- マイクロブログ検索システムの作成
9
- ================================
8
+ Let's create micro-blog
9
+ =======================
10
10
 
11
- これまで学んだGroongaの機能を用いて、マイクロブログの検索システムを作成してみましょう。マイクロブログとは、Twitterのような短いメッセージを投稿するブログです。
11
+ Let's create micro-blog with full text search by Groonga.
12
+ Micro-blog is one of the broadcast medium in the forms of blog. It is mainly used to post small messages like a Twitter.
12
13
 
13
- テーブルの作成
14
+ Create a table
14
15
  --------------
15
16
 
16
- まずは、テーブルを作成します。
17
+ Let's create table.
17
18
 
18
19
  ::
19
20
 
@@ -48,95 +49,97 @@
48
49
  column_create --table GeoIndex --name users_location --type Users --flags COLUMN_INDEX --source location
49
50
  column_create --table GeoIndex --name comments_location --type Comments --flags COLUMN_INDEX --source location
50
51
 
51
- Usersテーブル
52
- ^^^^^^^^^^^^^
52
+ Users table
53
+ ^^^^^^^^^^^
53
54
 
54
- ユーザーの名前や自己紹介文、フォローしているユーザー一覧など、ユーザー情報を格納するためのテーブルです。
55
+ This is the table which stores user information.
56
+ It stores name of user, profile, list of follower and so on.
55
57
 
56
58
  ``_key``
57
- ユーザーID
59
+ User ID
58
60
 
59
61
  ``name``
60
- ユーザー名
62
+ User name
61
63
 
62
64
  ``follower``
63
- フォローしているユーザーの一覧
65
+ List of following users
64
66
 
65
67
  ``favorites``
66
- お気に入りのコメント一覧
68
+ List of favorite comments
67
69
 
68
70
  ``location``
69
- ユーザーの現在地(緯度経度座標)
71
+ Current location of user (geolocation)
70
72
 
71
73
  ``location_str``
72
- ユーザーの現在地(文字列)
74
+ Current location of user (string)
73
75
 
74
76
  ``description``
75
- ユーザーの自己紹介
77
+ User profile
76
78
 
77
79
  ``followee``
78
- Usersテーブルのfollowerカラムに対するインデックス。
79
- このインデックスを作ることで、あるユーザーをフォローしているユーザーを検索できるようになります。
80
+ Indexes for ``follower`` column in ``Users`` table.
81
+ With this indexes, you can search users who follows the person.
80
82
 
81
- Commentsテーブル
82
- ^^^^^^^^^^^^^^^^
83
+ Comments table
84
+ ^^^^^^^^^^^^^^
83
85
 
84
- コメント内容や投稿日時、返信先情報など、コメントに関する内容を格納するテーブルです。
86
+ This is the table which stores comments and its metadata.
87
+ It stores content of comment, posted date, comment which reply to, and so on.
85
88
 
86
89
  ``_key``
87
- コメントID
90
+ Comment ID
88
91
 
89
92
  ``comment``
90
- コメント内容
93
+ Content of comment
91
94
 
92
95
  ``last_modified``
93
- 投稿日時
96
+ Posted date
94
97
 
95
98
  ``replied_to``
96
- 返信元のコメント内容
99
+ Comment which you reply to someone
97
100
 
98
101
  ``replied_users``
99
- 返信先のユーザーの一覧
102
+ List of users who you reply to
100
103
 
101
104
  ``hash_tags``
102
- コメントのハッシュタグの一覧
105
+ List of hash tags about comment
103
106
 
104
107
  ``location``
105
- 投稿場所(緯度経度座標のため)
108
+ Posted place (for geolocation)
106
109
 
107
110
  ``posted_by``
108
- コメントを書いたユーザー
111
+ Person who write comment
109
112
 
110
113
  ``favorited_by``
111
- Usersテーブルのfavoritesカラムに対するインデックス。
112
- このインデックスを作ることで、指定したコメントを誰がお気に入りに入れているのかを検索できるようになります。
114
+ Indexes for ``favorites`` column in ``Users`` table.
115
+ With this indexes, you can search the person who mark comment as favorite one.
113
116
 
114
- HashTagsテーブル
115
- ^^^^^^^^^^^^^^^^
117
+ HashTags table
118
+ ^^^^^^^^^^^^^^
116
119
 
117
- コメントのハッシュタグを一覧で保存するためのテーブルです。
120
+ This is the table which stores hash tags for comments.
118
121
 
119
122
  ``_key``
120
- ハッシュタグ
123
+ Hash tag
121
124
 
122
125
  ``hash_index``
123
- Comments.hash_tags」のインデックス。
124
- このインデックスを作ることで、指定したハッシュタグのついているコメントの一覧を出すことが出来るようになります。
126
+ Indexes for ``Comments.hash_tags``.
127
+ With this indexes, you can search list of comments with specified hash tags.
125
128
 
126
- Bigramテーブル
127
- ^^^^^^^^^^^^^^
129
+ Bigram table
130
+ ^^^^^^^^^^^^
128
131
 
129
- ユーザー情報・コメントで全文検索が出来るようにするためのインデックスを格納するテーブルです。
132
+ This is the table which stores indexes for full text search by user information or comments.
130
133
 
131
134
  ``_key``
132
- 単語
135
+ Word
133
136
 
134
137
  ``users_index``
135
- ユーザー情報のインデックス。
136
- このカラムは、ユーザー名「Users.name」、現在地「Users.location_str」、自己紹介文「Users.description」のインデックスになっています。
138
+ Indexes of user information.
139
+ This column contains indexes of user name (``Users.name``), current location (``Users.location_str``), profile (``Users.description``).
137
140
 
138
141
  ``comment_index``
139
- コメント内容「Comments.comment」のインデックス
142
+ Indexes about content of comments (``Comments.comment``).
140
143
 
141
144
  GeoIndex table
142
145
  ^^^^^^^^^^^^^^
@@ -149,114 +152,118 @@ This is the table which stores indexes of location column to search geo location
149
152
  ``comments_location``
150
153
  Indexes of location column for Comments table
151
154
 
152
- データのロード
153
- --------------
155
+ Loading data
156
+ ------------
154
157
 
155
- つづいて、テスト用データをロードします。
158
+ Then, load example data.
156
159
 
157
160
  ::
158
161
 
159
162
  load --table Users
160
163
  [
161
164
  {
162
- "_key": "daijiro",
163
- "name": "hsiomaneki",
164
- "follower": ["tasukuchan"],
165
+ "_key": "alice",
166
+ "name": "Alice",
167
+ "follower": ["bob"],
165
168
  "favorites": [],
166
- "location": "127678039x502643091",
167
- "location_str": "神奈川県",
168
- "description": "groonga developer"
169
+ "location": "152489000x-255829000",
170
+ "location_str": "Boston, Massachusetts",
171
+ "description": "Groonga developer"
169
172
  },
170
173
  {
171
- "_key": "tasukuchan",
172
- "name": "グニャラくん",
173
- "follower": ["daijiro","OffGao"],
174
- "favorites": ["daijiro:1","OffGao:1"],
175
- "location": "128423343x502929252",
176
- "location_str": "東京都渋谷区",
177
- "description": "エロいおっさん"
174
+ "_key": "bob",
175
+ "name": "Bob",
176
+ "follower": ["alice","charlie"],
177
+ "favorites": ["alice:1","charlie:1"],
178
+ "location": "146249000x-266228000",
179
+ "location_str": "Brooklyn, New York City",
180
+ "description": ""
178
181
  },
179
182
  {
180
- "_key": "OffGao",
181
- "name": "OffGao",
182
- "follower": ["tasukuchan","daijiro"],
183
- "favorites": ["tasukuchan:1","daijiro:1"],
184
- "location": "128544408x502801502",
185
- "location_str": "東京都中野区",
186
- "description": "がおがお"
183
+ "_key": "charlie",
184
+ "name": "Charlie",
185
+ "follower": ["alice","bob"],
186
+ "favorites": ["alice:1","bob:1"],
187
+ "location": "146607190x-267021260",
188
+ "location_str": "Newark, New Jersey",
189
+ "description": "Hmm,Hmm"
187
190
  }
188
191
  ]
189
192
 
190
193
  load --table Comments
191
194
  [
192
195
  {
193
- "_key": "daijiro:1",
194
- "comment": "マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",
196
+ "_key": "alice:1",
197
+ "comment": "I've created micro-blog!",
195
198
  "last_modified": "2010/03/17 12:05:00",
196
- "posted_by": "daijiro",
199
+ "posted_by": "alice",
197
200
  },
198
201
  {
199
- "_key": "tasukuchan:1",
200
- "comment": "初の書き込み。テストテスト。",
202
+ "_key": "bob:1",
203
+ "comment": "First post. test,test...",
201
204
  "last_modified": "2010/03/17 12:00:00",
202
- "posted_by": "tasukuchan",
205
+ "posted_by": "bob",
203
206
  },
204
207
  {
205
- "_key": "daijiro:2",
206
- "comment": "@tasukuchan ようこそ!!!",
208
+ "_key": "alice:2",
209
+ "comment": "@bob Welcome!!!",
207
210
  "last_modified": "2010/03/17 12:05:00",
208
- "replied_to": "tasukuchan:1",
209
- "replied_users": ["tasukuchan"],
210
- "posted_by": "daijiro",
211
+ "replied_to": "bob:1",
212
+ "replied_users": ["bob"],
213
+ "posted_by": "alice",
211
214
  },
212
215
  {
213
- "_key": "tasukuchan:2",
214
- "comment": "@daijiro ありがとう!",
216
+ "_key": "bob:2",
217
+ "comment": "@alice Thanks!",
215
218
  "last_modified": "2010/03/17 13:00:00",
216
- "replied_to": "daijiro:2",
217
- "replied_users": ["daijiro"],
218
- "posted_by": "tasukuchan",
219
+ "replied_to": "alice:2",
220
+ "replied_users": ["alice"],
221
+ "posted_by": "bob",
219
222
  },
220
223
  {
221
- "_key": "tasukuchan:3",
222
- "comment": "groongaなう #groonga",
224
+ "_key": "bob:3",
225
+ "comment": "I've just used 'Try-Groonga' now! #groonga",
223
226
  "last_modified": "2010/03/17 14:00:00",
224
227
  "hash_tags": ["groonga"],
225
- "location": "127972422x503117107",
226
- "posted_by": "tasukuchan",
228
+ "location": "146566000x-266422000",
229
+ "posted_by": "bob",
227
230
  },
228
231
  {
229
- "_key": "tasukuchan:4",
230
- "comment": "groonga開発合宿のため羽田空港に来ました! #groonga #travel",
232
+ "_key": "bob:4",
233
+ "comment": "I'm come at city of New York for development camp! #groonga #travel",
231
234
  "last_modified": "2010/03/17 14:05:00",
232
235
  "hash_tags": ["groonga", "travel"],
233
- "location": "127975798x502919856",
234
- "posted_by": "tasukuchan",
236
+ "location": "146566000x-266422000",
237
+ "posted_by": "bob",
235
238
  },
236
239
  {
237
- "_key": "OffGao:1",
238
- "comment": "@daijiro @tasukuchan 登録してみましたよー!",
240
+ "_key": "charlie:1",
241
+ "comment": "@alice @bob I've tried to register!",
239
242
  "last_modified": "2010/03/17 15:00:00",
240
- "replied_users": ["daijiro", "tasukuchan"],
241
- "location": "128551935x502796433",
242
- "posted_by": "OffGao",
243
+ "replied_users": ["alice", "bob"],
244
+ "location": "146607190x-267021260",
245
+ "posted_by": "charlie",
243
246
  }
244
247
  {
245
- "_key": "OffGao:2",
246
- "comment": "中野ブロードウェイなうなう",
248
+ "_key": "charlie:2",
249
+ "comment": "I'm at the Museum of Modern Art in NY now!",
247
250
  "last_modified": "2010/03/17 15:05:00",
248
- "location": "128551935x502796434",
249
- "posted_by": "OffGao",
251
+ "location": "146741340x-266319590",
252
+ "posted_by": "charlie",
250
253
  }
251
254
  ]
252
255
 
253
- Usersテーブルのfollowerカラムとfavoritesカラム、そしてCommentsテーブルのreplied_usersカラムは、ベクターカラムです。そのため、これらのカラムは配列で値を指定します。
256
+ ``follower`` column and ``favorites`` column in ``Users`` table and ``replied_users`` column in ``Comments`` table are vector column, so specify the value as an array.
254
257
 
255
- Usersテーブルのlocationカラムと、Commentsテーブルのlocationカラムは、GeoPoint型です。この型での値の指定は、"[緯度]x[経度]"と記述して指定します。
258
+ ``location`` column in ``Users`` table, ``location`` column in ``Comments`` table use GeoPoint type. This type accepts "[latitude]x[longitude]".
256
259
 
257
- Commentsテーブルのlast_modifiedカラムは、Time型です。この型での値を指定する方法は2つあります。
258
- 1つ目の方法は、1970年1月1日0時0分0秒からの経過秒数の値を直接指定する方法です。このとき、小数部分を指定することでマイクロ秒数での指定が可能です。指定した値は、データのロードの際にマイクロ秒を単位とする整数値に変換後、格納されます。
259
- 2つ目の方法は、文字列で日時と時刻を指定する方法です。"年/月/日 時:分:秒"というフォーマットで記述することで、データロードの際に文字列からキャストされ、マイクロ秒数の値が格納されます。
260
+ ``last_modified`` column in ``Comments`` table use Time type.
261
+
262
+ There are two way to specify the value.
263
+ First, specify epoch (seconds since Jan, 1, 1970 AM 00:00:00) directly. In this case, you can specify micro seconds as fractional part.
264
+ The value is converted from factional part to the time which is micro seconds based one when data is loaded.
265
+ The second, specify the timestamp as string in following format: "(YEAR)/(MONTH)/(DAY) (HOUR):(MINUTE):(SECOND)". In this way, the string is casted to proper micro seconds
266
+ when data is loaded.
260
267
 
261
268
  .. groonga-command
262
269
  ..
@@ -265,7 +272,7 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
265
272
  table_create --name HashTags --flags TABLE_HASH_KEY --key_type ShortText
266
273
  table_create --name Bigram --flags TABLE_PAT_KEY|KEY_NORMALIZE --key_type ShortText --default_tokenizer TokenBigram
267
274
  table_create --name GeoIndex --flags TABLE_PAT_KEY --key_type WGS84GeoPoint
268
-
275
+
269
276
  column_create --table Users --name name --flags COLUMN_SCALAR --type ShortText
270
277
  column_create --table Users --name follower --flags COLUMN_VECTOR --type Users
271
278
  column_create --table Users --name favorites --flags COLUMN_VECTOR --type Comments
@@ -273,7 +280,7 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
273
280
  column_create --table Users --name location_str --flags COLUMN_SCALAR --type ShortText
274
281
  column_create --table Users --name description --flags COLUMN_SCALAR --type ShortText
275
282
  column_create --table Users --name followee --flags COLUMN_INDEX --type Users --source follower
276
-
283
+
277
284
  column_create --table Comments --name comment --flags COLUMN_SCALAR --type ShortText
278
285
  column_create --table Comments --name last_modified --flags COLUMN_SCALAR --type Time
279
286
  column_create --table Comments --name replied_to --flags COLUMN_SCALAR --type Comments
@@ -282,224 +289,250 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
282
289
  column_create --table Comments --name location --flags COLUMN_SCALAR --type WGS84GeoPoint
283
290
  column_create --table Comments --name posted_by --flags COLUMN_SCALAR --type Users
284
291
  column_create --table Comments --name favorited_by --flags COLUMN_INDEX --type Users --source favorites
285
-
292
+
286
293
  column_create --table HashTags --name hash_index --flags COLUMN_INDEX --type Comments --source hash_tags
287
-
294
+
288
295
  column_create --table Bigram --name users_index --flags COLUMN_INDEX|WITH_POSITION|WITH_SECTION --type Users --source name,location_str,description
289
296
  column_create --table Bigram --name comment_index --flags COLUMN_INDEX|WITH_POSITION --type Comments --source comment
290
-
297
+
291
298
  column_create --table GeoIndex --name users_location --type Users --flags COLUMN_INDEX --source location
292
299
  column_create --table GeoIndex --name comments_location --type Comments --flags COLUMN_INDEX --source location
293
-
300
+
294
301
  load --table Users
295
302
  [
296
303
  {
297
- "_key": "daijiro",
298
- "name": "hsiomaneki",
299
- "follower": ["tasukuchan"],
304
+ "_key": "alice",
305
+ "name": "Alice",
306
+ "follower": ["bob"],
300
307
  "favorites": [],
301
- "location": "127678039x502643091",
302
- "location_str": "神奈川県",
303
- "description": "groonga developer"
308
+ "location": "152489000x-255829000",
309
+ "location_str": "Boston, Massachusetts",
310
+ "description": "Groonga developer"
304
311
  },
305
312
  {
306
- "_key": "tasukuchan",
307
- "name": "グニャラくん",
308
- "follower": ["daijiro","OffGao"],
309
- "favorites": ["daijiro:1","OffGao:1"],
310
- "location": "128423343x502929252",
311
- "location_str": "東京都渋谷区",
312
- "description": "エロいおっさん"
313
+ "_key": "bob",
314
+ "name": "Bob",
315
+ "follower": ["alice","charlie"],
316
+ "favorites": ["alice:1","charlie:1"],
317
+ "location": "146249000x-266228000",
318
+ "location_str": "Brooklyn, New York City",
319
+ "description": ""
313
320
  },
314
321
  {
315
- "_key": "OffGao",
316
- "name": "OffGao",
317
- "follower": ["tasukuchan","daijiro"],
318
- "favorites": ["tasukuchan:1","daijiro:1"],
319
- "location": "128544408x502801502",
320
- "location_str": "東京都中野区",
321
- "description": "がおがお"
322
+ "_key": "charlie",
323
+ "name": "Charlie",
324
+ "follower": ["alice","bob"],
325
+ "favorites": ["alice:1","bob:1"],
326
+ "location": "146607190x-267021260",
327
+ "location_str": "Newark, New Jersey",
328
+ "description": "Hmm,Hmm"
322
329
  }
323
330
  ]
324
-
331
+
325
332
  load --table Comments
326
333
  [
327
334
  {
328
- "_key": "daijiro:1",
329
- "comment": "マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",
335
+ "_key": "alice:1",
336
+ "comment": "I've created micro-blog!",
330
337
  "last_modified": "2010/03/17 12:05:00",
331
- "posted_by": "daijiro",
338
+ "posted_by": "alice",
332
339
  },
333
340
  {
334
- "_key": "tasukuchan:1",
335
- "comment": "初の書き込み。テストテスト。",
341
+ "_key": "bob:1",
342
+ "comment": "First post. test,test...",
336
343
  "last_modified": "2010/03/17 12:00:00",
337
- "posted_by": "tasukuchan",
344
+ "posted_by": "bob",
338
345
  },
339
346
  {
340
- "_key": "daijiro:2",
341
- "comment": "@tasukuchan ようこそ!!!",
347
+ "_key": "alice:2",
348
+ "comment": "@bob Welcome!!!",
342
349
  "last_modified": "2010/03/17 12:05:00",
343
- "replied_to": "tasukuchan:1",
344
- "replied_users": ["tasukuchan"],
345
- "posted_by": "daijiro",
350
+ "replied_to": "bob:1",
351
+ "replied_users": ["bob"],
352
+ "posted_by": "alice",
346
353
  },
347
354
  {
348
- "_key": "tasukuchan:2",
349
- "comment": "@daijiro ありがとう!",
355
+ "_key": "bob:2",
356
+ "comment": "@alice Thanks!",
350
357
  "last_modified": "2010/03/17 13:00:00",
351
- "replied_to": "daijiro:2",
352
- "replied_users": ["daijiro"],
353
- "posted_by": "tasukuchan",
358
+ "replied_to": "alice:2",
359
+ "replied_users": ["alice"],
360
+ "posted_by": "bob",
354
361
  },
355
362
  {
356
- "_key": "tasukuchan:3",
357
- "comment": "groongaなう #groonga",
363
+ "_key": "bob:3",
364
+ "comment": "I've just used 'Try-Groonga' now! #groonga",
358
365
  "last_modified": "2010/03/17 14:00:00",
359
366
  "hash_tags": ["groonga"],
360
- "location": "127972422x503117107",
361
- "posted_by": "tasukuchan",
367
+ "location": "146566000x-266422000",
368
+ "posted_by": "bob",
362
369
  },
363
370
  {
364
- "_key": "tasukuchan:4",
365
- "comment": "groonga開発合宿のため羽田空港に来ました! #groonga #travel",
371
+ "_key": "bob:4",
372
+ "comment": "I'm come at city of New York for development camp! #groonga #travel",
366
373
  "last_modified": "2010/03/17 14:05:00",
367
374
  "hash_tags": ["groonga", "travel"],
368
- "location": "127975798x502919856",
369
- "posted_by": "tasukuchan",
375
+ "location": "146566000x-266422000",
376
+ "posted_by": "bob",
370
377
  },
371
378
  {
372
- "_key": "OffGao:1",
373
- "comment": "@daijiro @tasukuchan 登録してみましたよー!",
379
+ "_key": "charlie:1",
380
+ "comment": "@alice @bob I've tried to register!",
374
381
  "last_modified": "2010/03/17 15:00:00",
375
- "replied_users": ["daijiro", "tasukuchan"],
376
- "location": "128551935x502796433",
377
- "posted_by": "OffGao",
382
+ "replied_users": ["alice", "bob"],
383
+ "location": "146607190x-267021260",
384
+ "posted_by": "charlie",
378
385
  }
379
386
  {
380
- "_key": "OffGao:2",
381
- "comment": "中野ブロードウェイなうなう",
387
+ "_key": "charlie:2",
388
+ "comment": "I'm at the Museum of Modern Art in NY now!",
382
389
  "last_modified": "2010/03/17 15:05:00",
383
- "location": "128551935x502796434",
384
- "posted_by": "OffGao",
390
+ "location": "146741340x-266319590",
391
+ "posted_by": "charlie",
385
392
  }
386
393
  ]
387
394
 
388
395
 
389
396
 
390
- 検索
391
- ----
397
+ Search
398
+ ------
392
399
 
393
- それでは、実際に検索をしてみましょう。
400
+ Let's search micro-blog.
394
401
 
395
- キーワードでユーザー検索
396
- ^^^^^^^^^^^^^^^^^^^^^^^^
397
- ここでは、 :doc:`match_columns` で扱った、複数カラムを対象とした検索を行います。
398
- 指定された文字列で、ユーザー名・現在地・自己紹介文を対象に検索をします。
402
+ Search users by keyword
403
+ ^^^^^^^^^^^^^^^^^^^^^^^
404
+
405
+ In this section, we search micro-blog against multiple column by keyword.
406
+ See :doc:`match_columns` to search multiple column at once.
407
+
408
+ Let's search user from micro-blog's user name, location, description entries.
399
409
 
400
410
  .. groonga-command
401
- .. include:: ../example/tutorial/micro_blog-1.log
402
- .. select --table Users --match_columns name,location_str,description --query 東京 --output_columns _key,name
411
+ .. include:: ../example/tutorial/micro_blog_keyword.log
412
+ .. select --table Users --match_columns name,location_str,description --query "New York" --output_columns _key,name
413
+
414
+ By using "New York" as searching keyword for user, "Bob" who lives in "New York" is listed in search result.
403
415
 
404
- 「東京」をキーワードにユーザー検索した結果、東京都に住んでいる「グニャラくん」と「OffGao」がヒットしました。
416
+ Search users by geolocation data (GeoPoint)
417
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
405
418
 
406
- GeoPointでユーザー検索
407
- ^^^^^^^^^^^^^^^^^^^^^^
419
+ In this section, we search users by column data which use type of GeoPoint.
420
+ See :doc:`search` about GeoPoint column.
408
421
 
409
- ここでは、 :doc:`search` で扱った、GeoPoint型のカラムで検索をします。
410
- 以下の例では、指定された位置から5000m以内にいるユーザーを検索しています。
422
+ Following example searches users who live in within 20km from specified location.
411
423
 
412
424
  .. groonga-command
413
- .. include:: ../example/tutorial/micro_blog-2.log
414
- .. select --table Users --filter 'geo_in_circle(location,"128484216x502919856",5000)' --output_columns _key,name
425
+ .. include:: ../example/tutorial/micro_blog_user.log
426
+ .. select --table Users --filter 'geo_in_circle(location,"146710080x-266315480",20000)' --output_columns _key,name
415
427
 
416
- 新宿駅から5km以内にすんでいるユーザーを検索したところ、「グニャラくん」と「OffGao」がヒットしました。
428
+ It shows that "Bob" and "Charlie" lives in within 20 km from station of "Grand Central Terminal".
417
429
 
418
- あるユーザーをフォローしているユーザーの検索
419
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
430
+ Search users who follows specific user
431
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
420
432
 
421
- ここでは、 :doc:`index` で扱った、参照関係の逆引きをします。
422
- 以下の例では、Usersテーブルのfollowerカラムにあるフォローリストを逆引きします。
433
+ In this section, we do reverse resolution of reference relationships which is described at :doc:`index`.
434
+
435
+ Following examples shows reverse resolution about ``follower`` column of ``Users`` table.
423
436
 
424
437
  .. groonga-command
425
- .. include:: ../example/tutorial/micro_blog-3.log
426
- .. select --table Users --query follower:@tasukuchan --output_columns _key,name
438
+ .. include:: ../example/tutorial/micro_blog_follower.log
439
+ .. select --table Users --query follower:@bob --output_columns _key,name
440
+
441
+ It shows that "Alice" and "Charlie" follows "Bob".
427
442
 
428
- 「グニャラくん」をフォローしている「hsiomaneki」と「OffGao」がヒットしました。
443
+ Search comments by using the value of GeoPoint type
444
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
429
445
 
430
- GeoPointでコメント検索
431
- ^^^^^^^^^^^^^^^^^^^^^^
432
- ある範囲内で書かれたコメントを検索します。
433
- また、 :doc:`drilldown` で扱ったドリルダウンも行います。検索結果をハッシュタグとユーザーでドリルダウンし、ユーザー別・ハッシュタグ別のカウントを出します。
446
+ In this section, we search comments which are written within specific location.
447
+
448
+ Then, we also use drill down which is described at :doc:`drilldown`.
449
+ Following example shows how to drill down against search results.
450
+ As a result, we get the value of count which is grouped by user, and hash tags respectively.
434
451
 
435
452
  .. groonga-command
436
- .. include:: ../example/tutorial/micro_blog-4.log
437
- .. select --table Comments --filter 'geo_in_circle(location,"127975798x502919856",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
453
+ .. include:: ../example/tutorial/micro_blog_drilldown.log
454
+ .. select --table Comments --filter 'geo_in_circle(location,"146867000x-266280000",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
438
455
 
439
- 範囲を広く指定したため、位置情報のあるすべてのコメントがヒットしました。そして、ヒットしたコメントからドリルダウンされた結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つ、投稿者は「グニャラくん」「OffGao」がそれぞれ2件ずつであることがわかります。
456
+ Above query searches comments which are posted within 20 km from Central Park in city of New York.
440
457
 
441
- キーワードでコメント検索
442
- ^^^^^^^^^^^^^^^^^^^^^^^^
443
- あるキーワードを含むコメントを検索します。
444
- さらに、 :doc:`search` で扱った、スコア値_scoreも出してみましょう。
458
+ As specified range is 20 km, all comments with location are collected.
459
+ You know that search results contain 2 #groonga hash tags and one #travel hash tag, and bob and charlie posted 2 comments.
460
+
461
+ Search comments by keyword
462
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
463
+
464
+ In this section, we search comments which contains specific keyword.
465
+ And more, Let's calculate the value of `_score` which is described at :doc:`search`.
445
466
 
446
467
  .. groonga-command
447
- .. include:: ../example/tutorial/micro_blog-5.log
448
- .. select --table Comments --query comment:@なう --output_columns comment,_score
468
+ .. include:: ../example/tutorial/micro_blog_score.log
469
+ .. select --table Comments --query comment:@Now --output_columns comment,_score
470
+
471
+ By using 'Now' as a keyword, above query returns 2 comments. It also contains count of 'Now' as the value of `_score`.
449
472
 
450
- 「なう」をキーワードにコメント検索した結果、2件のコメントがヒットしました。また、_scoreの値も返ってきており、「なう」の数が出力されていることが確認できます。
473
+ Search comments by keyword and geolocation
474
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
451
475
 
452
- GeoPointとキーワードでコメント検索
453
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
454
- 今度は、キーワードとGeoPointの両方を条件に検索をしてみます。--queryと--filterの両方を使用した場合、両方の条件に一致するレコードがヒットします。
476
+ In this section, we search comments by specific keyword and geolocation.
477
+ By using `--query` and `--filter` option, following query returns records which are matched to both conditions.
455
478
 
456
479
  .. groonga-command
457
- .. include:: ../example/tutorial/micro_blog-6.log
458
- .. select --table Comments --query comment:@羽田 --filter 'geo_in_circle(location,"127975798x502919856",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
480
+ .. include:: ../example/tutorial/micro_blog_keyword_and_location.log
481
+ .. select --table Comments --query comment:@New --filter 'geo_in_circle(location,"146867000x-266280000",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
459
482
 
460
- 両方の条件を満たすコメントが1件ヒットしました。また、ドリルダウンの結果も返ってきており、「グニャラくん」のコメント1件であることがわかります。
483
+ It returns 1 comment which meets both condition.
484
+ It also returns result of drilldown. There is 1 comment which is commented by Bob.
461
485
 
462
- ハッシュタグでコメント検索
463
- ^^^^^^^^^^^^^^^^^^^^^^^^^^
464
- あるハッシュタグのついているコメントを検索します。
465
- これも、 :doc:`index` で扱った、参照関係の逆引きを使います。
486
+ Search comments by hash tags
487
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
488
+
489
+ In this section, we search comments which contains specific hash tags.
490
+ Let's use reverse resolution of reference relationships.
466
491
 
467
492
  .. groonga-command
468
- .. include:: ../example/tutorial/micro_blog-7.log
493
+ .. include:: ../example/tutorial/micro_blog_hash_tag.log
469
494
  .. select --table Comments --query hash_tags:@groonga --output_columns posted_by.name,comment --drilldown posted_by
470
495
 
471
- #groongaタグの付いている2件のコメントがヒットしました。また、投稿者のドリルダウンも返ってきており、2件とも「グニャラくん」のものであることがわかります。
496
+ Above query returns 2 comments which contains #groonga hash tag.
497
+ It also returns result of drilldown grouped by person who posted it. It shows that there are 2 comments. Bob commented it.
498
+
499
+ Search comments by user id
500
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^
472
501
 
473
- ユーザーIDでコメント検索
474
- ^^^^^^^^^^^^^^^^^^^^^^^^
475
- あるユーザーが投稿したコメントを検索します。
502
+ In this section, we search comments which are posted by specific user.
476
503
 
477
504
  .. groonga-command
478
- .. include:: ../example/tutorial/micro_blog-8.log
479
- .. select --table Comments --query posted_by:tasukuchan --output_columns comment --drilldown hash_tags
505
+ .. include:: ../example/tutorial/micro_blog_posted_by.log
506
+ .. select --table Comments --query posted_by:bob --output_columns comment --drilldown hash_tags
480
507
 
481
- 「グニャラくん」が書き込んだ4件のコメントがヒットしました。また、ハッシュタグでドリルダウンした結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つあることがわかります。
508
+ Above query returns 4 comments which are posted by Bob.
509
+ It also returns result of drilldown by hash tags. There are 2 comments which contains #groonga, and 1 comment which contains #travel as hash tag.
482
510
 
483
- ユーザーのお気に入りコメントを検索
484
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
485
- あるユーザーがお気に入りに入れているコメントを検索します。
511
+ Search user's favorite comments
512
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
513
+
514
+ In this section, we search user's favorite comments.
486
515
 
487
516
  .. groonga-command
488
- .. include:: ../example/tutorial/micro_blog-9.log
489
- .. select --table Users --query _key:tasukuchan --output_columns favorites.posted_by,favorites.comment
517
+ .. include:: ../example/tutorial/micro_blog_favorite.log
518
+ .. select --table Users --query _key:bob --output_columns favorites.posted_by,favorites.comment
519
+
520
+ Above query returns Bob's favorite comments.
521
+
522
+ Search comments by posted time
523
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
490
524
 
491
- 「グニャラくん」がお気に入りに入れている2件のコメントがヒットしました。
525
+ In this section, we search comments by posted time.
526
+ See type of `Time` in :doc:`data`.
492
527
 
493
- 投稿時間でコメント検索
494
- ^^^^^^^^^^^^^^^^^^^^^^
495
- コメントの投稿時間で検索をします。Time型については :doc:`data` で扱っています。
496
- この例では、指定した時間よりも前に投稿されているコメントを検索します。
528
+ Let's search comments that posted time are older than specified time.
497
529
 
498
530
  .. groonga-command
499
- .. include:: ../example/tutorial/micro_blog-10.log
531
+ .. include:: ../example/tutorial/micro_blog_last_modified.log
500
532
  .. select Comments --filter 'last_modified<=1268802000' --output_columns posted_by.name,comment,last_modified --drilldown hash_tags,posted_by
501
533
 
502
- 2010/03/17 14:00:00以前に書かれたコメント5件がヒットしました。また、ドリルダウンの結果も返ってきており、「hsiomaneki」が2件、「グニャラくん」が3件ヒットしていることがわかります。
534
+ Above query returns 5 comments which are older than 2010/03/17 14:00:00.
535
+ It also returns result of drilldown by posted person. There are 2 comments by Alice, 3 comments by Bob.
503
536
 
504
537
  .. TODO: 以下の機能はgroonga本体での支援が必要。
505
538
  .. タイムライン表示: あるユーザがfollowしているユーザの発言を、時系列順の逆順で並べて10件のみ表示。