rroonga 4.0.4-x86-mingw32 → 4.0.5-x86-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
@@ -0,0 +1,2 @@
1
+ kentkt AT csc DOT jp (K.Takata)
2
+ sndgk393 AT ybb DOT ne DOT jp (K.Kosako)
@@ -0,0 +1,87 @@
1
+ Onigmo (Oniguruma-mod) LICENSE
2
+ ------------------------------
3
+
4
+ /*-
5
+ * Copyright (c) 2002-2009 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
6
+ * Copyright (c) 2011-2014 K.Takata <kentkt AT csc DOT jp>
7
+ * All rights reserved.
8
+ *
9
+ * Redistribution and use in source and binary forms, with or without
10
+ * modification, are permitted provided that the following conditions
11
+ * are met:
12
+ * 1. Redistributions of source code must retain the above copyright
13
+ * notice, this list of conditions and the following disclaimer.
14
+ * 2. Redistributions in binary form must reproduce the above copyright
15
+ * notice, this list of conditions and the following disclaimer in the
16
+ * documentation and/or other materials provided with the distribution.
17
+ *
18
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28
+ * SUCH DAMAGE.
29
+ */
30
+
31
+
32
+
33
+ Oniguruma LICENSE
34
+ -----------------
35
+
36
+ /*-
37
+ * Copyright (c) 2002-2009 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
38
+ * All rights reserved.
39
+ *
40
+ * Redistribution and use in source and binary forms, with or without
41
+ * modification, are permitted provided that the following conditions
42
+ * are met:
43
+ * 1. Redistributions of source code must retain the above copyright
44
+ * notice, this list of conditions and the following disclaimer.
45
+ * 2. Redistributions in binary form must reproduce the above copyright
46
+ * notice, this list of conditions and the following disclaimer in the
47
+ * documentation and/or other materials provided with the distribution.
48
+ *
49
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
50
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
51
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
52
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
53
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
54
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
55
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
56
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
57
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
58
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
59
+ * SUCH DAMAGE.
60
+ */
61
+
62
+
63
+
64
+ Ruby BSDL
65
+ ---------
66
+ Copyright (C) 1993-2013 Yukihiro Matsumoto. All rights reserved.
67
+
68
+ Redistribution and use in source and binary forms, with or without
69
+ modification, are permitted provided that the following conditions
70
+ are met:
71
+ 1. Redistributions of source code must retain the above copyright
72
+ notice, this list of conditions and the following disclaimer.
73
+ 2. Redistributions in binary form must reproduce the above copyright
74
+ notice, this list of conditions and the following disclaimer in the
75
+ documentation and/or other materials provided with the distribution.
76
+
77
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
78
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
79
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
80
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
81
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
82
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
83
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
84
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
85
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
86
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
87
+ SUCH DAMAGE.
@@ -0,0 +1,249 @@
1
+ README 2014/07/18
2
+
3
+ Onigmo (Oniguruma-mod) -- (C) K.Takata <kentkt AT csc DOT jp>
4
+
5
+ https://github.com/k-takata/Onigmo
6
+
7
+ Onigmo is a regular expressions library forked from Oniguruma.
8
+ Some of new features introduced in Perl 5.10+ can be used.
9
+
10
+ Some patches are merged from Ruby 2.x.
11
+
12
+ See also the Wiki page:
13
+ https://github.com/k-takata/Onigmo/wiki
14
+
15
+
16
+ Main New features:
17
+ Regular Expressions (depends on the syntax):
18
+ \K, \R, \X, (?(cond)yes|no)
19
+ (?adlu), \g{name}, \g{n}, (?&name), (?n), (?R), (?0)
20
+ (?P<name>...), (?P=name), (?P>name)
21
+
22
+ API:
23
+ onig_search_gpos (for Perl-compatible \G)
24
+
25
+ Encoding:
26
+ CP932
27
+
28
+ Syntax:
29
+ Python
30
+
31
+
32
+ New Source Files:
33
+ enc/cp932.c CP932 encoding.
34
+ enc/jis/props.h JIS character properties data.
35
+ enc/jis/props.kwd JIS character properties data.
36
+ enc/unicode/casefold.h Unicode case folding data.
37
+ enc/unicode/name2ctype.h Unicode properties data.
38
+
39
+ onig.py onig.dll/libonig.so loader.
40
+ testpy.py test program.
41
+
42
+ tool/download-ucd.sh downloads Unicode Character Database (UCD).
43
+ tool/case-folding.rb generates casefold.h from UCD.
44
+ tool/convert-jis-props.sh converts props.kwd to props.h.
45
+ tool/convert-name2ctype.sh converts name2ctype.kwd to name2ctypes.h.
46
+ tool/enc-unicode.rb generates name2ctype.kwd from UCD.
47
+
48
+ win32/Makefile.mingw Makefile for Win32 (MinGW)
49
+ win32/makedef.py creates onig.def.
50
+ win32/onig.rc resource file for onig.dll.
51
+
52
+
53
+ ToDo:
54
+ * Reduce the size of Unicode Character Data.
55
+ * (?|...)
56
+ * Improve (?(cond)yes|no). (support look-ahead/behind assertions.)
57
+
58
+
59
+ Oniguruma's README follows:
60
+ ======================================================================
61
+ README 2007/05/31
62
+
63
+ Oniguruma ---- (C) K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
64
+
65
+ http://www.geocities.jp/kosako3/oniguruma/
66
+
67
+ Oniguruma is a regular expressions library.
68
+ The characteristics of this library is that different character encoding
69
+ for every regular expression object can be specified.
70
+
71
+ Supported character encodings:
72
+
73
+ ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
74
+ EUC-JP, EUC-TW, EUC-KR, EUC-CN,
75
+ Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
76
+ ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
77
+ ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
78
+ ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
79
+
80
+ * GB18030: contributed by KUBO Takehiro
81
+ * CP1251: contributed by Byte
82
+ ------------------------------------------------------------
83
+
84
+ License
85
+
86
+ BSD license.
87
+
88
+
89
+ Install
90
+
91
+ Case 1: Unix and Cygwin platform
92
+
93
+ 1. ./configure
94
+ 2. make
95
+ 3. make install
96
+
97
+ * uninstall
98
+
99
+ make uninstall
100
+
101
+ * test (ASCII/EUC-JP)
102
+
103
+ make atest
104
+
105
+ * configuration check
106
+
107
+ onig-config --cflags
108
+ onig-config --libs
109
+ onig-config --prefix
110
+ onig-config --exec-prefix
111
+
112
+
113
+
114
+ Case 2: Win32 platform (VC++)
115
+
116
+ 1. copy win32\Makefile Makefile
117
+ 2. copy win32\config.h config.h
118
+ 3. nmake
119
+
120
+ onig_s.lib: static link library
121
+ onig.dll: dynamic link library
122
+
123
+ * test (ASCII/Shift_JIS)
124
+ 4. copy win32\testc.c testc.c
125
+ 5. nmake ctest
126
+
127
+
128
+
129
+ Regular Expressions
130
+
131
+ See doc/RE (or doc/RE.ja for Japanese).
132
+
133
+
134
+ Usage
135
+
136
+ Include oniguruma.h in your program. (Oniguruma API)
137
+ See doc/API for Oniguruma API.
138
+
139
+ If you want to disable UChar type (== unsigned char) definition
140
+ in oniguruma.h, define ONIG_ESCAPE_UCHAR_COLLISION and then
141
+ include oniguruma.h.
142
+
143
+ If you want to disable regex_t type definition in oniguruma.h,
144
+ define ONIG_ESCAPE_REGEX_T_COLLISION and then include oniguruma.h.
145
+
146
+ Example of the compiling/linking command line in Unix or Cygwin,
147
+ (prefix == /usr/local case)
148
+
149
+ cc sample.c -L/usr/local/lib -lonig
150
+
151
+
152
+ If you want to use static link library(onig_s.lib) in Win32,
153
+ add option -DONIG_EXTERN=extern to C compiler.
154
+
155
+
156
+
157
+ Sample Programs
158
+
159
+ sample/simple.c example of the minimum (Oniguruma API)
160
+ sample/names.c example of the named group callback.
161
+ sample/encode.c example of some encodings.
162
+ sample/listcap.c example of the capture history.
163
+ sample/posix.c POSIX API sample.
164
+ sample/sql.c example of the variable meta characters.
165
+ (SQL-like pattern matching)
166
+
167
+ Test Programs
168
+ sample/syntax.c Perl, Java and ASIS syntax test.
169
+ sample/crnl.c --enable-crnl-as-line-terminator test
170
+
171
+
172
+ Source Files
173
+
174
+ oniguruma.h Oniguruma API header file. (public)
175
+ onig-config.in configuration check program template.
176
+
177
+ regenc.h character encodings framework header file.
178
+ regint.h internal definitions
179
+ regparse.h internal definitions for regparse.c and regcomp.c
180
+ regcomp.c compiling and optimization functions
181
+ regenc.c character encodings framework.
182
+ regerror.c error message function
183
+ regext.c extended API functions. (deluxe version API)
184
+ regexec.c search and match functions
185
+ regparse.c parsing functions.
186
+ regsyntax.c pattern syntax functions and built-in syntax definitions.
187
+ regtrav.c capture history tree data traverse functions.
188
+ regversion.c version info function.
189
+ st.h hash table functions header file
190
+ st.c hash table functions
191
+
192
+ oniggnu.h GNU regex API header file. (public)
193
+ reggnu.c GNU regex API functions
194
+
195
+ onigposix.h POSIX API header file. (public)
196
+ regposerr.c POSIX error message function.
197
+ regposix.c POSIX API functions.
198
+
199
+ enc/mktable.c character type table generator.
200
+ enc/ascii.c ASCII encoding.
201
+ enc/euc_jp.c EUC-JP encoding.
202
+ enc/euc_tw.c EUC-TW encoding.
203
+ enc/euc_kr.c EUC-KR, EUC-CN encoding.
204
+ enc/sjis.c Shift_JIS encoding.
205
+ enc/big5.c Big5 encoding.
206
+ enc/gb18030.c GB18030 encoding.
207
+ enc/koi8.c KOI8 encoding.
208
+ enc/koi8_r.c KOI8-R encoding.
209
+ enc/cp1251.c CP1251 encoding.
210
+ enc/iso8859_1.c ISO-8859-1 encoding. (Latin-1)
211
+ enc/iso8859_2.c ISO-8859-2 encoding. (Latin-2)
212
+ enc/iso8859_3.c ISO-8859-3 encoding. (Latin-3)
213
+ enc/iso8859_4.c ISO-8859-4 encoding. (Latin-4)
214
+ enc/iso8859_5.c ISO-8859-5 encoding. (Cyrillic)
215
+ enc/iso8859_6.c ISO-8859-6 encoding. (Arabic)
216
+ enc/iso8859_7.c ISO-8859-7 encoding. (Greek)
217
+ enc/iso8859_8.c ISO-8859-8 encoding. (Hebrew)
218
+ enc/iso8859_9.c ISO-8859-9 encoding. (Latin-5 or Turkish)
219
+ enc/iso8859_10.c ISO-8859-10 encoding. (Latin-6 or Nordic)
220
+ enc/iso8859_11.c ISO-8859-11 encoding. (Thai)
221
+ enc/iso8859_13.c ISO-8859-13 encoding. (Latin-7 or Baltic Rim)
222
+ enc/iso8859_14.c ISO-8859-14 encoding. (Latin-8 or Celtic)
223
+ enc/iso8859_15.c ISO-8859-15 encoding. (Latin-9 or West European with Euro)
224
+ enc/iso8859_16.c ISO-8859-16 encoding.
225
+ (Latin-10 or South-Eastern European with Euro)
226
+ enc/utf8.c UTF-8 encoding.
227
+ enc/utf16_be.c UTF-16BE encoding.
228
+ enc/utf16_le.c UTF-16LE encoding.
229
+ enc/utf32_be.c UTF-32BE encoding.
230
+ enc/utf32_le.c UTF-32LE encoding.
231
+ enc/unicode.c Unicode information data.
232
+
233
+ win32/Makefile Makefile for Win32 (VC++)
234
+ win32/config.h config.h for Win32
235
+
236
+
237
+
238
+ ToDo
239
+
240
+ ? case fold flag: Katakana <-> Hiragana.
241
+ ? add ONIG_OPTION_NOTBOS/NOTEOS. (\A, \z, \Z)
242
+ ?? \X (== \PM\pM*)
243
+ ?? implement syntax behavior ONIG_SYN_CONTEXT_INDEP_ANCHORS.
244
+ ?? transmission stopper. (return ONIG_STOP from match_at())
245
+
246
+ and I'm thankful to Akinori MUSHA.
247
+
248
+
249
+ Mail Address: K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
@@ -1,6 +1,6 @@
1
1
  .\" Man page generated from reStructuredText.
2
2
  .
3
- .TH "GROONGA" "1" "2014 年 08 月 28 日" "4.0.5" "Groonga"
3
+ .TH "GROONGA" "1" "2014 年 09 月 28 日" "4.0.6" "Groonga"
4
4
  .SH NAME
5
5
  groonga \- Groonga documentation
6
6
  .
@@ -97,7 +97,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
97
97
  .INDENT 3.5
98
98
  .INDENT 0.0
99
99
  .IP \(bu 2
100
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-x86.exe\fP
100
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.6\-x86.exe\fP
101
101
  .UNINDENT
102
102
  .UNINDENT
103
103
  .UNINDENT
@@ -109,7 +109,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
109
109
  .INDENT 3.5
110
110
  .INDENT 0.0
111
111
  .IP \(bu 2
112
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-x64.exe\fP
112
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.6\-x64.exe\fP
113
113
  .UNINDENT
114
114
  .UNINDENT
115
115
  .UNINDENT
@@ -124,7 +124,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
124
124
  .INDENT 3.5
125
125
  .INDENT 0.0
126
126
  .IP \(bu 2
127
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-x86.zip\fP
127
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.6\-x86.zip\fP
128
128
  .UNINDENT
129
129
  .UNINDENT
130
130
  .UNINDENT
@@ -136,7 +136,7 @@ Groonga は独自のカラムストアを持つ列指向のデータベースと
136
136
  .INDENT 3.5
137
137
  .INDENT 0.0
138
138
  .IP \(bu 2
139
- \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-x64.zip\fP
139
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.6\-x64.zip\fP
140
140
  .UNINDENT
141
141
  .UNINDENT
142
142
  .UNINDENT
@@ -163,7 +163,7 @@ zipアーカイブをpackages.groonga.orgからダウンロードしてくださ
163
163
  .INDENT 3.5
164
164
  .INDENT 0.0
165
165
  .IP \(bu 2
166
- \fI\%http://packages.groonga.org/source/groonga/groonga\-4.0.5.zip\fP
166
+ \fI\%http://packages.groonga.org/source/groonga/groonga\-4.0.6.zip\fP
167
167
  .UNINDENT
168
168
  .UNINDENT
169
169
  .UNINDENT
@@ -176,7 +176,7 @@ Groongaのソースフォルダへと移動します:
176
176
  .sp
177
177
  .nf
178
178
  .ft C
179
- > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-4.0.5
179
+ > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-4.0.6
180
180
  .ft P
181
181
  .fi
182
182
  .UNINDENT
@@ -188,7 +188,7 @@ Groongaのソースフォルダへと移動します:
188
188
  .sp
189
189
  .nf
190
190
  .ft C
191
- groonga\-4.0.5> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
191
+ groonga\-4.0.6> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
192
192
  .ft P
193
193
  .fi
194
194
  .UNINDENT
@@ -200,7 +200,7 @@ groonga\-4.0.5> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\
200
200
  .sp
201
201
  .nf
202
202
  .ft C
203
- groonga\-4.0.5> cmake \-\-build . \-\-config Release
203
+ groonga\-4.0.6> cmake \-\-build . \-\-config Release
204
204
  .ft P
205
205
  .fi
206
206
  .UNINDENT
@@ -212,7 +212,7 @@ groonga\-4.0.5> cmake \-\-build . \-\-config Release
212
212
  .sp
213
213
  .nf
214
214
  .ft C
215
- groonga\-4.0.5> cmake \-\-build . \-\-config Release \-\-target Install
215
+ groonga\-4.0.6> cmake \-\-build . \-\-config Release \-\-target Install
216
216
  .ft P
217
217
  .fi
218
218
  .UNINDENT
@@ -270,9 +270,9 @@ groonga\-4.0.5> cmake \-\-build . \-\-config Release \-\-target Install
270
270
  .sp
271
271
  .nf
272
272
  .ft C
273
- % curl \-O http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
274
- % tar xvzf groonga\-4.0.5.tar.gz
275
- % cd groonga\-4.0.5
273
+ % curl \-O http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
274
+ % tar xvzf groonga\-4.0.6.tar.gz
275
+ % cd groonga\-4.0.6
276
276
  .ft P
277
277
  .fi
278
278
  .UNINDENT
@@ -410,110 +410,113 @@ groonga\-normalizer\-mysqlパッケージのインストール:
410
410
  .fi
411
411
  .UNINDENT
412
412
  .UNINDENT
413
- .SS jessie
414
- .sp
415
- Groongaのaptリポジトリを追加します。
413
+ .SS ソースからビルド
416
414
  .sp
417
- /etc/apt/sources.list.d/groonga.list:
415
+ Groongaをビルドするために必要なパッケージをインストールします:
418
416
  .INDENT 0.0
419
417
  .INDENT 3.5
420
418
  .sp
421
419
  .nf
422
420
  .ft C
423
- deb http://packages.groonga.org/debian/ jessie main
424
- deb\-src http://packages.groonga.org/debian/ jessie main
421
+ % sudo apt\-get install \-y \-V wget tar build\-essential zlib1g\-dev liblzo2\-dev libmsgpack\-dev libzmq\-dev libevent\-dev libmecab\-dev
425
422
  .ft P
426
423
  .fi
427
424
  .UNINDENT
428
425
  .UNINDENT
429
426
  .sp
430
- インストール:
427
+ ソースをダウンロードします:
431
428
  .INDENT 0.0
432
429
  .INDENT 3.5
433
430
  .sp
434
431
  .nf
435
432
  .ft C
436
- % sudo apt\-get update
437
- % sudo apt\-get install \-y \-\-allow\-unauthenticated groonga\-keyring
438
- % sudo apt\-get update
439
- % sudo apt\-get install \-y groonga
433
+ % wget http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
434
+ % tar xvzf groonga\-4.0.6.tar.gz
435
+ % cd groonga\-4.0.6
440
436
  .ft P
441
437
  .fi
442
438
  .UNINDENT
443
439
  .UNINDENT
444
440
  .sp
445
- \fBノート:\fP
441
+ configureを実行します( \fBconfigure\fP のオプションについては \fIsource\-configure\fP を参照してください):
446
442
  .INDENT 0.0
447
443
  .INDENT 3.5
448
- \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
449
- .sp
450
- サーバー用途のための3つのパッケージがあります。
451
- .INDENT 0.0
452
- .IP \(bu 2
453
- groonga\-server\-http (簡易HTTPサーバー)
454
- .IP \(bu 2
455
- groonga\-httpd (nginxを元にしたHTTPサーバー)
456
- .IP \(bu 2
457
- groonga\-server\-gqtp (GQTPサーバー)
458
- .UNINDENT
459
444
  .sp
460
- 詳細は \fB/server\fP を参照してください。
445
+ .nf
446
+ .ft C
447
+ % ./configure
448
+ .ft P
449
+ .fi
461
450
  .UNINDENT
462
451
  .UNINDENT
463
452
  .sp
464
- \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
465
- .sp
466
- groonga\-tokenizer\-mecabパッケージのインストール:
453
+ ビルド:
467
454
  .INDENT 0.0
468
455
  .INDENT 3.5
469
456
  .sp
470
457
  .nf
471
458
  .ft C
472
- % sudo apt\-get install \-y \-V groonga\-tokenizer\-mecab
459
+ % make \-j$(grep \(aq^processor\(aq /proc/cpuinfo | wc \-l)
473
460
  .ft P
474
461
  .fi
475
462
  .UNINDENT
476
463
  .UNINDENT
477
464
  .sp
478
- \fI\%Munin\fP プラグインを提供するパッケージもあります。MuninでGroongaの状態をモニターしたい場合は、groonga\-munin\-pluginsパッケージをインストールしてください。
479
- .sp
480
- groonga\-munin\-pluginsパッケージのインストール:
465
+ インストール:
481
466
  .INDENT 0.0
482
467
  .INDENT 3.5
483
468
  .sp
484
469
  .nf
485
470
  .ft C
486
- % sudo apt\-get install \-y \-V groonga\-munin\-plugins
471
+ % sudo make install
487
472
  .ft P
488
473
  .fi
489
474
  .UNINDENT
490
475
  .UNINDENT
476
+ .SS Ubuntu
491
477
  .sp
492
- MySQL互換のノーマライザーをGroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
478
+ このセクションではUbuntu上でGroonga関連のdebパッケージをインストールする方法を説明します。これらのパッケージは \fBapt\fP でインストールできます。
493
479
  .sp
494
- groonga\-normalizer\-mysqlパッケージのインストール:
480
+ 32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
481
+ .SS PPA(Personal Package Archive)
482
+ .sp
483
+ Ubuntu用のGroongaのAPTリポジトリーはLaunchpad上のPPA(Personal Package Archive)を使っています。このPPAからAPTでGroongaをインストールできます。
484
+ .sp
485
+ サポートしているUbuntuのバージョンは次の通りです。
486
+ .INDENT 0.0
487
+ .INDENT 3.5
488
+ .INDENT 0.0
489
+ .IP \(bu 2
490
+ 12.04 LTS Precise Pangolin
491
+ .IP \(bu 2
492
+ 13.10 Saucy Salamander
493
+ .IP \(bu 2
494
+ 14.04 LTS Trusty Tahr
495
+ .UNINDENT
496
+ .UNINDENT
497
+ .UNINDENT
498
+ .sp
499
+ Groongaをインストールするためにuniverseリポジトリを有効にしてください:
495
500
  .INDENT 0.0
496
501
  .INDENT 3.5
497
502
  .sp
498
503
  .nf
499
504
  .ft C
500
- % sudo apt\-get install \-y \-V groonga\-normalizer\-mysql
505
+ % sudo apt\-get \-y install software\-properties\-common
506
+ % sudo add\-apt\-repository \-y universe
501
507
  .ft P
502
508
  .fi
503
509
  .UNINDENT
504
510
  .UNINDENT
505
- .SS sid
506
- .sp
507
- Groongaのaptリポジトリを追加します。
508
511
  .sp
509
- /etc/apt/sources.list.d/groonga.list:
512
+ \fBppa:groonga/ppa\fP PPAをシステムに登録します:
510
513
  .INDENT 0.0
511
514
  .INDENT 3.5
512
515
  .sp
513
516
  .nf
514
517
  .ft C
515
- deb http://packages.groonga.org/debian/ unstable main
516
- deb\-src http://packages.groonga.org/debian/ unstable main
518
+ % sudo add\-apt\-repository \-y ppa:groonga/ppa
519
+ % sudo apt\-get update
517
520
  .ft P
518
521
  .fi
519
522
  .UNINDENT
@@ -525,10 +528,7 @@ deb\-src http://packages.groonga.org/debian/ unstable main
525
528
  .sp
526
529
  .nf
527
530
  .ft C
528
- % sudo apt\-get update
529
- % sudo apt\-get install \-y \-\-allow\-unauthenticated groonga\-keyring
530
- % sudo apt\-get update
531
- % sudo apt\-get install \-y \-V groonga
531
+ % sudo apt\-get \-y install groonga
532
532
  .ft P
533
533
  .fi
534
534
  .UNINDENT
@@ -561,7 +561,7 @@ groonga\-tokenizer\-mecabパッケージのインストール:
561
561
  .sp
562
562
  .nf
563
563
  .ft C
564
- % sudo apt\-get install \-y \-V groonga\-tokenizer\-mecab
564
+ % sudo apt\-get \-y install groonga\-tokenizer\-mecab
565
565
  .ft P
566
566
  .fi
567
567
  .UNINDENT
@@ -575,7 +575,7 @@ groonga\-munin\-pluginsパッケージのインストール:
575
575
  .sp
576
576
  .nf
577
577
  .ft C
578
- % sudo apt\-get install \-y \-V groonga\-munin\-plugins
578
+ % sudo apt\-get \-y install groonga\-munin\-plugins
579
579
  .ft P
580
580
  .fi
581
581
  .UNINDENT
@@ -589,7 +589,7 @@ groonga\-normalizer\-mysqlパッケージのインストール:
589
589
  .sp
590
590
  .nf
591
591
  .ft C
592
- % sudo apt\-get install \-y \-V groonga\-normalizer\-mysql
592
+ % sudo apt\-get \-y install groonga\-normalizer\-mysql
593
593
  .ft P
594
594
  .fi
595
595
  .UNINDENT
@@ -602,7 +602,7 @@ Groongaをビルドするために必要なパッケージをインストール
602
602
  .sp
603
603
  .nf
604
604
  .ft C
605
- % sudo apt\-get install \-y \-V wget tar build\-essential zlib1g\-dev liblzo2\-dev libmsgpack\-dev libzmq\-dev libevent\-dev libmecab\-dev
605
+ % sudo apt\-get \-V \-y install wget tar build\-essential zlib1g\-dev liblzo2\-dev libmsgpack\-dev libzmq\-dev libevent\-dev libmecab\-dev
606
606
  .ft P
607
607
  .fi
608
608
  .UNINDENT
@@ -614,9 +614,9 @@ Groongaをビルドするために必要なパッケージをインストール
614
614
  .sp
615
615
  .nf
616
616
  .ft C
617
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
618
- % tar xvzf groonga\-4.0.5.tar.gz
619
- % cd groonga\-4.0.5
617
+ % wget http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
618
+ % tar xvzf groonga\-4.0.6.tar.gz
619
+ % cd groonga\-4.0.6
620
620
  .ft P
621
621
  .fi
622
622
  .UNINDENT
@@ -657,54 +657,12 @@ configureを実行します( \fBconfigure\fP のオプションについては
657
657
  .fi
658
658
  .UNINDENT
659
659
  .UNINDENT
660
- .SS Ubuntu
660
+ .SS CentOS
661
661
  .sp
662
- このセクションではUbuntu上でGroonga関連のdebパッケージをインストールする方法を説明します。これらのパッケージは \fBapt\fP でインストールできます。
662
+ このセクションではCentOS上でGroonga関連のRPMパッケージをインストールする方法を説明します。これらのパッケージは \fByum\fP でインストールできます。
663
663
  .sp
664
664
  32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
665
- .SS PPA(Personal Package Archive)
666
- .sp
667
- Ubuntu用のGroongaのAPTリポジトリーはLaunchpad上のPPA(Personal Package Archive)を使っています。このPPAからAPTでGroongaをインストールできます。
668
- .sp
669
- サポートしているUbuntuのバージョンは次の通りです。
670
- .INDENT 0.0
671
- .INDENT 3.5
672
- .INDENT 0.0
673
- .IP \(bu 2
674
- 12.04 LTS Precise Pangolin
675
- .IP \(bu 2
676
- 13.10 Saucy Salamander
677
- .IP \(bu 2
678
- 14.04 LTS Trusty Tahr
679
- .UNINDENT
680
- .UNINDENT
681
- .UNINDENT
682
- .sp
683
- Groongaをインストールするためにuniverseリポジトリを有効にしてください:
684
- .INDENT 0.0
685
- .INDENT 3.5
686
- .sp
687
- .nf
688
- .ft C
689
- % sudo apt\-get \-y install software\-properties\-common
690
- % sudo add\-apt\-repository \-y universe
691
- .ft P
692
- .fi
693
- .UNINDENT
694
- .UNINDENT
695
- .sp
696
- \fBppa:groonga/ppa\fP PPAをシステムに登録します:
697
- .INDENT 0.0
698
- .INDENT 3.5
699
- .sp
700
- .nf
701
- .ft C
702
- % sudo add\-apt\-repository \-y ppa:groonga/ppa
703
- % sudo apt\-get update
704
- .ft P
705
- .fi
706
- .UNINDENT
707
- .UNINDENT
665
+ .SS CentOS 5
708
666
  .sp
709
667
  インストール:
710
668
  .INDENT 0.0
@@ -712,7 +670,9 @@ Groongaをインストールするためにuniverseリポジトリを有効に
712
670
  .sp
713
671
  .nf
714
672
  .ft C
715
- % sudo apt\-get \-y install groonga
673
+ % sudo rpm \-ivh http://packages.groonga.org/centos/groonga\-release\-1.1.0\-1.noarch.rpm
674
+ % sudo yum makecache
675
+ % sudo yum install \-y groonga
716
676
  .ft P
717
677
  .fi
718
678
  .UNINDENT
@@ -745,7 +705,7 @@ groonga\-tokenizer\-mecabパッケージのインストール:
745
705
  .sp
746
706
  .nf
747
707
  .ft C
748
- % sudo apt\-get \-y install groonga\-tokenizer\-mecab
708
+ % sudo yum install \-y groonga\-tokenizer\-mecab
749
709
  .ft P
750
710
  .fi
751
711
  .UNINDENT
@@ -753,100 +713,78 @@ groonga\-tokenizer\-mecabパッケージのインストール:
753
713
  .sp
754
714
  \fI\%Munin\fP プラグインを提供するパッケージもあります。MuninでGroongaの状態をモニターしたい場合は、groonga\-munin\-pluginsパッケージをインストールしてください。
755
715
  .sp
756
- groonga\-munin\-pluginsパッケージのインストール:
716
+ \fBノート:\fP
757
717
  .INDENT 0.0
758
718
  .INDENT 3.5
719
+ groonga\-munin\-pluginsパッケージはmunin\-nodeパッケージを必要としますが、munin\-nodeパッケージはCentOSの公式リポジトリには含まれていません。munin\-nodeパッケージを \fByum\fP でインストールするために \fI\%Repoforge (RPMforge)\fP リポジトリか \fI\%EPEL\fP リポジトリを有効にする必要があります。
759
720
  .sp
760
- .nf
761
- .ft C
762
- % sudo apt\-get \-y install groonga\-munin\-plugins
763
- .ft P
764
- .fi
765
- .UNINDENT
766
- .UNINDENT
767
- .sp
768
- MySQL互換のノーマライザーをGroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
769
- .sp
770
- groonga\-normalizer\-mysqlパッケージのインストール:
721
+ i386環境でRepoforge (RPMforge)リポジトリを有効にする:
771
722
  .INDENT 0.0
772
723
  .INDENT 3.5
773
724
  .sp
774
725
  .nf
775
726
  .ft C
776
- % sudo apt\-get \-y install groonga\-normalizer\-mysql
727
+ % wget http://pkgs.repoforge.org/rpmforge\-release/rpmforge\-release\-0.5.3\-1.el5.rf.i386.rpm
728
+ % sudo rpm \-ivh rpmforge\-release\-0.5.2\-2.el5.rf.i386.rpm
777
729
  .ft P
778
730
  .fi
779
731
  .UNINDENT
780
732
  .UNINDENT
781
- .SS ソースからビルド
782
733
  .sp
783
- Groongaをビルドするために必要なパッケージをインストールします:
734
+ x86_64環境でRepoforge (RPMforge)リポジトリを有効にする:
784
735
  .INDENT 0.0
785
736
  .INDENT 3.5
786
737
  .sp
787
738
  .nf
788
739
  .ft C
789
- % sudo apt\-get \-V \-y install wget tar build\-essential zlib1g\-dev liblzo2\-dev libmsgpack\-dev libzmq\-dev libevent\-dev libmecab\-dev
740
+ % wget http://pkgs.repoforge.org/rpmforge\-release/rpmforge\-release\-0.5.3\-1.el5.rf.x86_64.rpm
741
+ % sudo rpm \-ivh rpmforge\-release\-0.5.2\-2.el5.rf.x86_64.rpm
790
742
  .ft P
791
743
  .fi
792
744
  .UNINDENT
793
745
  .UNINDENT
794
746
  .sp
795
- ソースをダウンロードします:
747
+ EPELリポジトリを有効にする(環境非依存):
796
748
  .INDENT 0.0
797
749
  .INDENT 3.5
798
750
  .sp
799
751
  .nf
800
752
  .ft C
801
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
802
- % tar xvzf groonga\-4.0.5.tar.gz
803
- % cd groonga\-4.0.5
753
+ % wget http://download.fedoraproject.org/pub/epel/5/i386/epel\-release\-5\-4.noarch.rpm
754
+ % sudo rpm \-ivh epel\-release\-5\-4.noarch.rpm
804
755
  .ft P
805
756
  .fi
806
757
  .UNINDENT
807
758
  .UNINDENT
808
- .sp
809
- configureを実行します( \fBconfigure\fP のオプションについては \fIsource\-configure\fP を参照してください):
810
- .INDENT 0.0
811
- .INDENT 3.5
812
- .sp
813
- .nf
814
- .ft C
815
- % ./configure
816
- .ft P
817
- .fi
818
759
  .UNINDENT
819
760
  .UNINDENT
820
761
  .sp
821
- ビルド:
762
+ groonga\-munin\-pluginsパッケージのインストール:
822
763
  .INDENT 0.0
823
764
  .INDENT 3.5
824
765
  .sp
825
766
  .nf
826
767
  .ft C
827
- % make \-j$(grep \(aq^processor\(aq /proc/cpuinfo | wc \-l)
768
+ % sudo yum install \-y groonga\-munin\-plugins
828
769
  .ft P
829
770
  .fi
830
771
  .UNINDENT
831
772
  .UNINDENT
832
773
  .sp
833
- インストール:
774
+ MySQL互換のノーマライザーをGroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
775
+ .sp
776
+ groonga\-normalizer\-mysqlパッケージのインストール:
834
777
  .INDENT 0.0
835
778
  .INDENT 3.5
836
779
  .sp
837
780
  .nf
838
781
  .ft C
839
- % sudo make install
782
+ % sudo yum install \-y groonga\-normalizer\-mysql
840
783
  .ft P
841
784
  .fi
842
785
  .UNINDENT
843
786
  .UNINDENT
844
- .SS CentOS
845
- .sp
846
- このセクションではCentOS上でGroonga関連のRPMパッケージをインストールする方法を説明します。これらのパッケージは \fByum\fP でインストールできます。
847
- .sp
848
- 32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
849
- .SS CentOS 5
787
+ .SS CentOS 6
850
788
  .sp
851
789
  インストール:
852
790
  .INDENT 0.0
@@ -900,33 +838,7 @@ groonga\-tokenizer\-mecabパッケージのインストール:
900
838
  \fBノート:\fP
901
839
  .INDENT 0.0
902
840
  .INDENT 3.5
903
- groonga\-munin\-pluginsパッケージはmunin\-nodeパッケージを必要としますが、munin\-nodeパッケージはCentOSの公式リポジトリには含まれていません。munin\-nodeパッケージを \fByum\fP でインストールするために \fI\%Repoforge (RPMforge)\fP リポジトリか \fI\%EPEL\fP リポジトリを有効にする必要があります。
904
- .sp
905
- i386環境でRepoforge (RPMforge)リポジトリを有効にする:
906
- .INDENT 0.0
907
- .INDENT 3.5
908
- .sp
909
- .nf
910
- .ft C
911
- % wget http://pkgs.repoforge.org/rpmforge\-release/rpmforge\-release\-0.5.3\-1.el5.rf.i386.rpm
912
- % sudo rpm \-ivh rpmforge\-release\-0.5.2\-2.el5.rf.i386.rpm
913
- .ft P
914
- .fi
915
- .UNINDENT
916
- .UNINDENT
917
- .sp
918
- x86_64環境でRepoforge (RPMforge)リポジトリを有効にする:
919
- .INDENT 0.0
920
- .INDENT 3.5
921
- .sp
922
- .nf
923
- .ft C
924
- % wget http://pkgs.repoforge.org/rpmforge\-release/rpmforge\-release\-0.5.3\-1.el5.rf.x86_64.rpm
925
- % sudo rpm \-ivh rpmforge\-release\-0.5.2\-2.el5.rf.x86_64.rpm
926
- .ft P
927
- .fi
928
- .UNINDENT
929
- .UNINDENT
841
+ groonga\-munin\-pluginsパッケージはmunin\-nodeパッケージを必要としますが、munin\-nodeパッケージはCentOSの公式リポジトリには含まれていません。munin\-nodeパッケージを \fByum\fP でインストールするために \fI\%EPEL\fP リポジトリを有効にする必要があります。
930
842
  .sp
931
843
  EPELリポジトリを有効にする(環境非依存):
932
844
  .INDENT 0.0
@@ -934,8 +846,7 @@ EPELリポジトリを有効にする(環境非依存):
934
846
  .sp
935
847
  .nf
936
848
  .ft C
937
- % wget http://download.fedoraproject.org/pub/epel/5/i386/epel\-release\-5\-4.noarch.rpm
938
- % sudo rpm \-ivh epel\-release\-5\-4.noarch.rpm
849
+ % sudo rpm \-ivh http://download.fedoraproject.org/pub/epel/6/i386/epel\-release\-6\-8.noarch.rpm
939
850
  .ft P
940
851
  .fi
941
852
  .UNINDENT
@@ -968,7 +879,7 @@ groonga\-normalizer\-mysqlパッケージのインストール:
968
879
  .fi
969
880
  .UNINDENT
970
881
  .UNINDENT
971
- .SS CentOS 6
882
+ .SS CentOS 7
972
883
  .sp
973
884
  インストール:
974
885
  .INDENT 0.0
@@ -1024,13 +935,13 @@ groonga\-tokenizer\-mecabパッケージのインストール:
1024
935
  .INDENT 3.5
1025
936
  groonga\-munin\-pluginsパッケージはmunin\-nodeパッケージを必要としますが、munin\-nodeパッケージはCentOSの公式リポジトリには含まれていません。munin\-nodeパッケージを \fByum\fP でインストールするために \fI\%EPEL\fP リポジトリを有効にする必要があります。
1026
937
  .sp
1027
- EPELリポジトリを有効にする(環境非依存):
938
+ EPELリポジトリを有効にする:
1028
939
  .INDENT 0.0
1029
940
  .INDENT 3.5
1030
941
  .sp
1031
942
  .nf
1032
943
  .ft C
1033
- % sudo rpm \-ivh http://download.fedoraproject.org/pub/epel/6/i386/epel\-release\-6\-8.noarch.rpm
944
+ % sudo yum install \-y epel\-release
1034
945
  .ft P
1035
946
  .fi
1036
947
  .UNINDENT
@@ -1083,9 +994,9 @@ Groongaをビルドするために必要なパッケージをインストール
1083
994
  .sp
1084
995
  .nf
1085
996
  .ft C
1086
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
1087
- % tar xvzf groonga\-4.0.5.tar.gz
1088
- % cd groonga\-4.0.5
997
+ % wget http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
998
+ % tar xvzf groonga\-4.0.6.tar.gz
999
+ % cd groonga\-4.0.6
1089
1000
  .ft P
1090
1001
  .fi
1091
1002
  .UNINDENT
@@ -1271,9 +1182,9 @@ Groongaをビルドするために必要なパッケージをインストール
1271
1182
  .sp
1272
1183
  .nf
1273
1184
  .ft C
1274
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
1275
- % tar xvzf groonga\-4.0.5.tar.gz
1276
- % cd groonga\-4.0.5
1185
+ % wget http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
1186
+ % tar xvzf groonga\-4.0.6.tar.gz
1187
+ % cd groonga\-4.0.6
1277
1188
  .ft P
1278
1189
  .fi
1279
1190
  .UNINDENT
@@ -1337,9 +1248,9 @@ Groongaをビルドするために必要なパッケージをインストール
1337
1248
  .sp
1338
1249
  .nf
1339
1250
  .ft C
1340
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
1341
- % gtar xvzf groonga\-4.0.5.tar.gz
1342
- % cd groonga\-4.0.5
1251
+ % wget http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
1252
+ % gtar xvzf groonga\-4.0.6.tar.gz
1253
+ % cd groonga\-4.0.6
1343
1254
  .ft P
1344
1255
  .fi
1345
1256
  .UNINDENT
@@ -1460,9 +1371,9 @@ GroongaはGNUビルドシステムを使っています。以下は一番簡単
1460
1371
  .sp
1461
1372
  .nf
1462
1373
  .ft C
1463
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.5.tar.gz
1464
- % tar xvzf groonga\-4.0.5.tar.gz
1465
- % cd groonga\-4.0.5
1374
+ % wget http://packages.groonga.org/source/groonga/groonga\-4.0.6.tar.gz
1375
+ % tar xvzf groonga\-4.0.6.tar.gz
1376
+ % cd groonga\-4.0.6
1466
1377
  % ./configure
1467
1378
  % make
1468
1379
  % sudo make install
@@ -3830,7 +3741,7 @@ select \-\-table Site \-\-filter "_id <= 2 || _id >= 7" \-\-output_columns _id,_
3830
3741
  .sp
3831
3742
  .nf
3832
3743
  .ft C
3833
- select \-\-table Site \-\-filter "1" \-\-scorer "_score = rand()" \-\-output_columns _id,_key,_score \-\-sortby _score
3744
+ select \-\-table Site \-\-filter "true" \-\-scorer "_score = rand()" \-\-output_columns _id,_key,_score \-\-sortby _score
3834
3745
  # [
3835
3746
  # [
3836
3747
  # 0,
@@ -3904,7 +3815,7 @@ select \-\-table Site \-\-filter "1" \-\-scorer "_score = rand()" \-\-output_col
3904
3815
  # ]
3905
3816
  # ]
3906
3817
  # ]
3907
- select \-\-table Site \-\-filter "1" \-\-scorer "_score = rand()" \-\-output_columns _id,_key,_score \-\-sortby _score
3818
+ select \-\-table Site \-\-filter "true" \-\-scorer "_score = rand()" \-\-output_columns _id,_key,_score \-\-sortby _score
3908
3819
  # [
3909
3820
  # [
3910
3821
  # 0,
@@ -4856,7 +4767,7 @@ select \-\-table Site \-\-limit 0 \-\-drilldown country \-\-drilldown_sortby _ns
4856
4767
  .UNINDENT
4857
4768
  .SS ドリルダウン結果の制限
4858
4769
  .sp
4859
- ドリルダウン結果はデフォルト10件に制限されています。 \fBdrilldown_limits\fP と \fBdrilldown_offset\fP パラメータをドリルダウン結果をカスタマイズするのに使います。
4770
+ ドリルダウン結果はデフォルト10件に制限されています。 \fBdrilldown_limit\fP と \fBdrilldown_offset\fP パラメータをドリルダウン結果をカスタマイズするのに使います。
4860
4771
  .sp
4861
4772
  実行例:
4862
4773
  .INDENT 0.0
@@ -6343,11 +6254,11 @@ select \-\-table PatSuffix \-\-filter \(aq_key @$ "ゆき" && original == true\(
6343
6254
  .fi
6344
6255
  .UNINDENT
6345
6256
  .UNINDENT
6346
- .SS 全文検索の語彙表に対する追加情報
6257
+ .SS 全文検索用の語彙表の作成
6347
6258
  .sp
6348
- Groongaでは、全文検索に用いるための語意表がテーブルとして扱えます。よって、語彙ごとに複数の情報を保持することができます。例えば、語彙の出現数や検索ストップワードのフラグ、単語の重要度などを保持することができます。
6259
+ Groongaでは、全文検索に用いるための語彙表がテーブルとして扱えます。よって、語彙ごとに複数の情報を保持することができます。例えば、語彙の出現数や検索ストップワードのフラグ、単語の重要度などを保持することができます。
6349
6260
  .sp
6350
- この項目については、現在執筆中です。
6261
+ TODO: この項目については、現在執筆中です。
6351
6262
  .SS マイクロブログ検索システムの作成
6352
6263
  .sp
6353
6264
  これまで学んだGroongaの機能を用いて、マイクロブログの検索システムを作成してみましょう。マイクロブログとは、Twitterのような短いメッセージを投稿するブログです。
@@ -6420,8 +6331,7 @@ column_create \-\-table GeoIndex \-\-name comments_location \-\-type Comments \-
6420
6331
  ユーザーの自己紹介
6421
6332
  .TP
6422
6333
  .B \fBfollowee\fP
6423
- Usersテーブルのfollowerカラムに対するインデックス。
6424
- このインデックスを作ることで、あるユーザーをフォローしているユーザーを検索できるようになります。
6334
+ \fBUsers\fP テーブルの \fBfollower\fP カラムに対するインデックス。 このインデックスを作ることで、あるユーザーをフォローしているユーザーを検索できるようになります。
6425
6335
  .UNINDENT
6426
6336
  .SS Commentsテーブル
6427
6337
  .sp
@@ -6453,8 +6363,7 @@ Usersテーブルのfollowerカラムに対するインデックス。
6453
6363
  コメントを書いたユーザー
6454
6364
  .TP
6455
6365
  .B \fBfavorited_by\fP
6456
- Usersテーブルのfavoritesカラムに対するインデックス。
6457
- このインデックスを作ることで、指定したコメントを誰がお気に入りに入れているのかを検索できるようになります。
6366
+ \fBUsers\fP テーブルの \fBfavorites\fP カラムに対するインデックス。 このインデックスを作ることで、指定したコメントを誰がお気に入りに入れているのかを検索できるようになります。
6458
6367
  .UNINDENT
6459
6368
  .SS HashTagsテーブル
6460
6369
  .sp
@@ -6465,8 +6374,7 @@ Usersテーブルのfavoritesカラムに対するインデックス。
6465
6374
  ハッシュタグ
6466
6375
  .TP
6467
6376
  .B \fBhash_index\fP
6468
- 「Comments.hash_tags」のインデックス。
6469
- このインデックスを作ることで、指定したハッシュタグのついているコメントの一覧を出すことが出来るようになります。
6377
+ 「Comments.hash_tags」のインデックス。 このインデックスを作ることで、指定したハッシュタグのついているコメントの一覧を出すことが出来るようになります。
6470
6378
  .UNINDENT
6471
6379
  .SS Bigramテーブル
6472
6380
  .sp
@@ -6477,8 +6385,7 @@ Usersテーブルのfavoritesカラムに対するインデックス。
6477
6385
  単語
6478
6386
  .TP
6479
6387
  .B \fBusers_index\fP
6480
- ユーザー情報のインデックス。
6481
- このカラムは、ユーザー名「Users.name」、現在地「Users.location_str」、自己紹介文「Users.description」のインデックスになっています。
6388
+ ユーザー情報のインデックス。 このカラムは、ユーザー名「Users.name」、現在地「Users.location_str」、自己紹介文「Users.description」のインデックスになっています。
6482
6389
  .TP
6483
6390
  .B \fBcomment_index\fP
6484
6391
  コメント内容「Comments.comment」のインデックス
@@ -6505,94 +6412,94 @@ Commentsテーブルのlocationカラムに対するインデックス
6505
6412
  load \-\-table Users
6506
6413
  [
6507
6414
  {
6508
- "_key": "daijiro",
6509
- "name": "hsiomaneki",
6510
- "follower": ["tasukuchan"],
6415
+ "_key": "alice",
6416
+ "name": "Alice",
6417
+ "follower": ["bob"],
6511
6418
  "favorites": [],
6512
- "location": "127678039x502643091",
6513
- "location_str": "神奈川県",
6514
- "description": "groonga developer"
6419
+ "location": "152489000x\-255829000",
6420
+ "location_str": "Boston, Massachusetts",
6421
+ "description": "Groonga developer"
6515
6422
  },
6516
6423
  {
6517
- "_key": "tasukuchan",
6518
- "name": "グニャラくん",
6519
- "follower": ["daijiro","OffGao"],
6520
- "favorites": ["daijiro:1","OffGao:1"],
6521
- "location": "128423343x502929252",
6522
- "location_str": "東京都渋谷区",
6523
- "description": "エロいおっさん"
6424
+ "_key": "bob",
6425
+ "name": "Bob",
6426
+ "follower": ["alice","charlie"],
6427
+ "favorites": ["alice:1","charlie:1"],
6428
+ "location": "146249000x\-266228000",
6429
+ "location_str": "Brooklyn, New York City",
6430
+ "description": ""
6524
6431
  },
6525
6432
  {
6526
- "_key": "OffGao",
6527
- "name": "OffGao",
6528
- "follower": ["tasukuchan","daijiro"],
6529
- "favorites": ["tasukuchan:1","daijiro:1"],
6530
- "location": "128544408x502801502",
6531
- "location_str": "東京都中野区",
6532
- "description": "がおがお"
6433
+ "_key": "charlie",
6434
+ "name": "Charlie",
6435
+ "follower": ["alice","bob"],
6436
+ "favorites": ["alice:1","bob:1"],
6437
+ "location": "146607190x\-267021260",
6438
+ "location_str": "Newark, New Jersey",
6439
+ "description": "Hmm,Hmm"
6533
6440
  }
6534
6441
  ]
6535
6442
 
6536
6443
  load \-\-table Comments
6537
6444
  [
6538
6445
  {
6539
- "_key": "daijiro:1",
6540
- "comment": "マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",
6446
+ "_key": "alice:1",
6447
+ "comment": "I\(aqve created micro\-blog!",
6541
6448
  "last_modified": "2010/03/17 12:05:00",
6542
- "posted_by": "daijiro",
6449
+ "posted_by": "alice",
6543
6450
  },
6544
6451
  {
6545
- "_key": "tasukuchan:1",
6546
- "comment": "初の書き込み。テストテスト。",
6452
+ "_key": "bob:1",
6453
+ "comment": "First post. test,test...",
6547
6454
  "last_modified": "2010/03/17 12:00:00",
6548
- "posted_by": "tasukuchan",
6455
+ "posted_by": "bob",
6549
6456
  },
6550
6457
  {
6551
- "_key": "daijiro:2",
6552
- "comment": "@tasukuchan ようこそ!!!",
6458
+ "_key": "alice:2",
6459
+ "comment": "@bob Welcome!!!",
6553
6460
  "last_modified": "2010/03/17 12:05:00",
6554
- "replied_to": "tasukuchan:1",
6555
- "replied_users": ["tasukuchan"],
6556
- "posted_by": "daijiro",
6461
+ "replied_to": "bob:1",
6462
+ "replied_users": ["bob"],
6463
+ "posted_by": "alice",
6557
6464
  },
6558
6465
  {
6559
- "_key": "tasukuchan:2",
6560
- "comment": "@daijiro ありがとう!",
6466
+ "_key": "bob:2",
6467
+ "comment": "@alice Thanks!",
6561
6468
  "last_modified": "2010/03/17 13:00:00",
6562
- "replied_to": "daijiro:2",
6563
- "replied_users": ["daijiro"],
6564
- "posted_by": "tasukuchan",
6469
+ "replied_to": "alice:2",
6470
+ "replied_users": ["alice"],
6471
+ "posted_by": "bob",
6565
6472
  },
6566
6473
  {
6567
- "_key": "tasukuchan:3",
6568
- "comment": "groongaなう #groonga",
6474
+ "_key": "bob:3",
6475
+ "comment": "I\(aqve just used \(aqTry\-Groonga\(aq now! #groonga",
6569
6476
  "last_modified": "2010/03/17 14:00:00",
6570
6477
  "hash_tags": ["groonga"],
6571
- "location": "127972422x503117107",
6572
- "posted_by": "tasukuchan",
6478
+ "location": "146566000x\-266422000",
6479
+ "posted_by": "bob",
6573
6480
  },
6574
6481
  {
6575
- "_key": "tasukuchan:4",
6576
- "comment": "groonga開発合宿のため羽田空港に来ました! #groonga #travel",
6482
+ "_key": "bob:4",
6483
+ "comment": "I\(aqm come at city of New York for development camp! #groonga #travel",
6577
6484
  "last_modified": "2010/03/17 14:05:00",
6578
6485
  "hash_tags": ["groonga", "travel"],
6579
- "location": "127975798x502919856",
6580
- "posted_by": "tasukuchan",
6486
+ "location": "146566000x\-266422000",
6487
+ "posted_by": "bob",
6581
6488
  },
6582
6489
  {
6583
- "_key": "OffGao:1",
6584
- "comment": "@daijiro @tasukuchan 登録してみましたよー!",
6490
+ "_key": "charlie:1",
6491
+ "comment": "@alice @bob I\(aqve tried to register!",
6585
6492
  "last_modified": "2010/03/17 15:00:00",
6586
- "replied_users": ["daijiro", "tasukuchan"],
6587
- "location": "128551935x502796433",
6588
- "posted_by": "OffGao",
6493
+ "replied_users": ["alice", "bob"],
6494
+ "location": "146607190x\-267021260",
6495
+ "posted_by": "charlie",
6589
6496
  }
6590
6497
  {
6591
- "_key": "OffGao:2",
6592
- "comment": "中野ブロードウェイなうなう",
6498
+ "_key": "charlie:2",
6499
+ "comment": "I\(aqm at the Museum of Modern Art in NY now!",
6593
6500
  "last_modified": "2010/03/17 15:05:00",
6594
- "location": "128551935x502796434",
6595
- "posted_by": "OffGao",
6501
+ "location": "146741340x\-266319590",
6502
+ "posted_by": "charlie",
6596
6503
  }
6597
6504
  ]
6598
6505
  .ft P
@@ -6600,19 +6507,20 @@ load \-\-table Comments
6600
6507
  .UNINDENT
6601
6508
  .UNINDENT
6602
6509
  .sp
6603
- Usersテーブルのfollowerカラムとfavoritesカラム、そしてCommentsテーブルのreplied_usersカラムは、ベクターカラムです。そのため、これらのカラムは配列で値を指定します。
6510
+ \fBUsers\fP テーブルの \fBfollower\fP カラムと \fBfavorites\fP カラム、そして \fBComments\fP テーブルの \fBreplied_users\fP カラムは、ベクターカラムです。そのため、これらのカラムは配列で値を指定します。
6604
6511
  .sp
6605
- Usersテーブルのlocationカラムと、Commentsテーブルのlocationカラムは、GeoPoint型です。この型での値の指定は、"[緯度]x[経度]"と記述して指定します。
6512
+ \fBUsers\fP テーブルの \fBlocation\fP カラムと、\fBComments\fP テーブルの \fBlocation\fP カラムは、 \fBGeoPoint\fP 型です。この型での値の指定は、"[緯度]x[経度]"と記述して指定します。
6606
6513
  .sp
6607
- Commentsテーブルのlast_modifiedカラムは、Time型です。この型での値を指定する方法は2つあります。
6608
- 1つ目の方法は、1970年1月1日0時0分0秒からの経過秒数の値を直接指定する方法です。このとき、小数部分を指定することでマイクロ秒数での指定が可能です。指定した値は、データのロードの際にマイクロ秒を単位とする整数値に変換後、格納されます。
6609
- 2つ目の方法は、文字列で日時と時刻を指定する方法です。"年/月/日 時:分:秒"というフォーマットで記述することで、データロードの際に文字列からキャストされ、マイクロ秒数の値が格納されます。
6514
+ \fBComments\fP テーブルの \fBlast_modified\fP カラムは、Time型です。
6515
+ .sp
6516
+ この型での値を指定する方法は2つあります。1つ目の方法は、1970年1月1日0時0分0秒からの経過秒数の値を直接指定する方法です。このとき、小数部分を指定することでマイクロ秒数での指定が可能です。指定した値は、データのロードの際にマイクロ秒を単位とする整数値に変換後、格納されます。 2つ目の方法は、文字列で日時と時刻を指定する方法です。"年/月/日 時:分:秒"というフォーマットで記述することで、データロードの際に文字列からキャストされ、マイクロ秒数の値が格納されます。
6610
6517
  .SS 検索
6611
6518
  .sp
6612
- それでは、実際に検索をしてみましょう。
6519
+ マイクロブログを検索してみましょう。
6613
6520
  .SS キーワードでユーザー検索
6614
6521
  .sp
6615
6522
  ここでは、 \fBmatch_columns\fP で扱った、複数カラムを対象とした検索を行います。
6523
+ .sp
6616
6524
  指定された文字列で、ユーザー名・現在地・自己紹介文を対象に検索をします。
6617
6525
  .sp
6618
6526
  実行例:
@@ -6621,7 +6529,7 @@ Commentsテーブルのlast_modifiedカラムは、Time型です。この型で
6621
6529
  .sp
6622
6530
  .nf
6623
6531
  .ft C
6624
- select \-\-table Users \-\-match_columns name,location_str,description \-\-query 東京 \-\-output_columns _key,name
6532
+ select \-\-table Users \-\-match_columns name,location_str,description \-\-query "New York" \-\-output_columns _key,name
6625
6533
  # [[0, 1337566253.89858, 0.000355720520019531], true]
6626
6534
  # [[0, 1337566253.89858, 0.000355720520019531], true]
6627
6535
  # [[0, 1337566253.89858, 0.000355720520019531], true]
@@ -6658,7 +6566,7 @@ select \-\-table Users \-\-match_columns name,location_str,description \-\-query
6658
6566
  # [
6659
6567
  # [
6660
6568
  # [
6661
- # 2
6569
+ # 1
6662
6570
  # ],
6663
6571
  # [
6664
6572
  # [
@@ -6671,12 +6579,8 @@ select \-\-table Users \-\-match_columns name,location_str,description \-\-query
6671
6579
  # ]
6672
6580
  # ],
6673
6581
  # [
6674
- # "tasukuchan",
6675
- # "グニャラくん"
6676
- # ],
6677
- # [
6678
- # "OffGao",
6679
- # "OffGao"
6582
+ # "bob",
6583
+ # "Bob"
6680
6584
  # ]
6681
6585
  # ]
6682
6586
  # ]
@@ -6686,11 +6590,12 @@ select \-\-table Users \-\-match_columns name,location_str,description \-\-query
6686
6590
  .UNINDENT
6687
6591
  .UNINDENT
6688
6592
  .sp
6689
- 「東京」をキーワードにユーザー検索した結果、東京都に住んでいる「グニャラくん」と「OffGao」がヒットしました。
6690
- .SS GeoPointでユーザー検索
6593
+ 「New York」をキーワードにユーザー検索した結果、New Yorkに住んでいる「Bob」がヒットしました。
6594
+ .SS 位置情報(GeoPoint)でユーザー検索
6595
+ .sp
6596
+ ここでは、GeoPoint型のカラムで検索をします。GeoPoint型については \fBsearch\fP を参照してください。
6691
6597
  .sp
6692
- ここでは、 \fBsearch\fP で扱った、GeoPoint型のカラムで検索をします。
6693
- 以下の例では、指定された位置から5000m以内にいるユーザーを検索しています。
6598
+ 次の例では、特定の場所から20km以内に住んでいる人を検索します。
6694
6599
  .sp
6695
6600
  実行例:
6696
6601
  .INDENT 0.0
@@ -6698,7 +6603,7 @@ select \-\-table Users \-\-match_columns name,location_str,description \-\-query
6698
6603
  .sp
6699
6604
  .nf
6700
6605
  .ft C
6701
- select \-\-table Users \-\-filter \(aqgeo_in_circle(location,"128484216x502919856",5000)\(aq \-\-output_columns _key,name
6606
+ select \-\-table Users \-\-filter \(aqgeo_in_circle(location,"146710080x\-266315480",20000)\(aq \-\-output_columns _key,name
6702
6607
  # [
6703
6608
  # [
6704
6609
  # 0,
@@ -6721,12 +6626,12 @@ select \-\-table Users \-\-filter \(aqgeo_in_circle(location,"128484216x50291985
6721
6626
  # ]
6722
6627
  # ],
6723
6628
  # [
6724
- # "tasukuchan",
6725
- # "グニャラくん"
6629
+ # "charlie",
6630
+ # "Charlie"
6726
6631
  # ],
6727
6632
  # [
6728
- # "OffGao",
6729
- # "OffGao"
6633
+ # "bob",
6634
+ # "Bob"
6730
6635
  # ]
6731
6636
  # ]
6732
6637
  # ]
@@ -6736,11 +6641,12 @@ select \-\-table Users \-\-filter \(aqgeo_in_circle(location,"128484216x50291985
6736
6641
  .UNINDENT
6737
6642
  .UNINDENT
6738
6643
  .sp
6739
- 新宿駅から5km以内にすんでいるユーザーを検索したところ、「グニャラくん」と「OffGao」がヒットしました。
6740
- .SS あるユーザーをフォローしているユーザーの検索
6644
+ 「Bob」と「Charlie」が「Grand Central Terminal」から20km以内に住んでいることがわかります。
6645
+ .SS あるユーザーをフォローしてるユーザーの検索
6646
+ .sp
6647
+ ここでは、 \fBindex\fP の参照関係の逆引きをします。
6741
6648
  .sp
6742
- ここでは、 \fBindex\fP で扱った、参照関係の逆引きをします。
6743
- 以下の例では、Usersテーブルのfollowerカラムにあるフォローリストを逆引きします。
6649
+ 次の例は、 \fBUsers\fP テーブルの \fBfollower\fP カラムにあるフォローリストを逆引きします。
6744
6650
  .sp
6745
6651
  実行例:
6746
6652
  .INDENT 0.0
@@ -6748,7 +6654,7 @@ select \-\-table Users \-\-filter \(aqgeo_in_circle(location,"128484216x50291985
6748
6654
  .sp
6749
6655
  .nf
6750
6656
  .ft C
6751
- select \-\-table Users \-\-query follower:@tasukuchan \-\-output_columns _key,name
6657
+ select \-\-table Users \-\-query follower:@bob \-\-output_columns _key,name
6752
6658
  # [
6753
6659
  # [
6754
6660
  # 0,
@@ -6771,12 +6677,12 @@ select \-\-table Users \-\-query follower:@tasukuchan \-\-output_columns _key,na
6771
6677
  # ]
6772
6678
  # ],
6773
6679
  # [
6774
- # "daijiro",
6775
- # "hsiomaneki"
6680
+ # "alice",
6681
+ # "Alice"
6776
6682
  # ],
6777
6683
  # [
6778
- # "OffGao",
6779
- # "OffGao"
6684
+ # "charlie",
6685
+ # "Charlie"
6780
6686
  # ]
6781
6687
  # ]
6782
6688
  # ]
@@ -6786,11 +6692,12 @@ select \-\-table Users \-\-query follower:@tasukuchan \-\-output_columns _key,na
6786
6692
  .UNINDENT
6787
6693
  .UNINDENT
6788
6694
  .sp
6789
- 「グニャラくん」をフォローしている「hsiomaneki」と「OffGao」がヒットしました。
6695
+ 「Alice」と「Charlie」が「Bob」をフォローしていることがわかります。
6790
6696
  .SS GeoPointでコメント検索
6791
6697
  .sp
6792
6698
  ある範囲内で書かれたコメントを検索します。
6793
- また、 \fBdrilldown\fP で扱ったドリルダウンも行います。検索結果をハッシュタグとユーザーでドリルダウンし、ユーザー別・ハッシュタグ別のカウントを出します。
6699
+ .sp
6700
+ また、 \fBdrilldown\fP をおこないます。検索結果をハッシュタグとユーザーでドリルダウンし、ユーザー別・ハッシュタグ別のカウントを出します。
6794
6701
  .sp
6795
6702
  実行例:
6796
6703
  .INDENT 0.0
@@ -6798,7 +6705,7 @@ select \-\-table Users \-\-query follower:@tasukuchan \-\-output_columns _key,na
6798
6705
  .sp
6799
6706
  .nf
6800
6707
  .ft C
6801
- select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x502919856",20000)\(aq \-\-output_columns posted_by.name,comment \-\-drilldown hash_tags,posted_by
6708
+ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"146867000x\-266280000",20000)\(aq \-\-output_columns posted_by.name,comment \-\-drilldown hash_tags,posted_by
6802
6709
  # [
6803
6710
  # [
6804
6711
  # 0,
@@ -6821,20 +6728,20 @@ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x50291
6821
6728
  # ]
6822
6729
  # ],
6823
6730
  # [
6824
- # "グニャラくん",
6825
- # "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
6731
+ # "Charlie",
6732
+ # "I\(aqm at the Museum of Modern Art in NY now!"
6826
6733
  # ],
6827
6734
  # [
6828
- # "グニャラくん",
6829
- # "groongaなう #groonga"
6735
+ # "Bob",
6736
+ # "I\(aqve just used \(aqTry\-Groonga\(aq now! #groonga"
6830
6737
  # ],
6831
6738
  # [
6832
- # "OffGao",
6833
- # "@daijiro @tasukuchan 登録してみましたよー!"
6739
+ # "Bob",
6740
+ # "I\(aqm come at city of New York for development camp! #groonga #travel"
6834
6741
  # ],
6835
6742
  # [
6836
- # "OffGao",
6837
- # "中野ブロードウェイなうなう"
6743
+ # "Charlie",
6744
+ # "@alice @bob I\(aqve tried to register!"
6838
6745
  # ]
6839
6746
  # ],
6840
6747
  # [
@@ -6875,11 +6782,11 @@ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x50291
6875
6782
  # ]
6876
6783
  # ],
6877
6784
  # [
6878
- # "tasukuchan",
6785
+ # "charlie",
6879
6786
  # 2
6880
6787
  # ],
6881
6788
  # [
6882
- # "OffGao",
6789
+ # "bob",
6883
6790
  # 2
6884
6791
  # ]
6885
6792
  # ]
@@ -6890,11 +6797,12 @@ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x50291
6890
6797
  .UNINDENT
6891
6798
  .UNINDENT
6892
6799
  .sp
6893
- 範囲を広く指定したため、位置情報のあるすべてのコメントがヒットしました。そして、ヒットしたコメントからドリルダウンされた結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つ、投稿者は「グニャラくん」「OffGao」がそれぞれ2件ずつであることがわかります。
6800
+ このクエリは、ニューヨークのセントラルパークから20km圏内で投稿されたコメントを検索します。
6801
+ .sp
6802
+ 指定した範囲が20kmなので、位置情報を含むすべてのコメントが検索されました。#groongaというハッシュタグが2件、#travelというハッシュタグが1件で、BobとCharlieがコメントしているのは2件あります。
6894
6803
  .SS キーワードでコメント検索
6895
6804
  .sp
6896
- あるキーワードを含むコメントを検索します。
6897
- さらに、 \fBsearch\fP で扱った、スコア値_scoreも出してみましょう。
6805
+ あるキーワードを含むコメントを検索します。そして、 \fBsearch\fP で言及している \fI_score\fP を出してみます。
6898
6806
  .sp
6899
6807
  実行例:
6900
6808
  .INDENT 0.0
@@ -6902,7 +6810,7 @@ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x50291
6902
6810
  .sp
6903
6811
  .nf
6904
6812
  .ft C
6905
- select \-\-table Comments \-\-query comment:@なう \-\-output_columns comment,_score
6813
+ select \-\-table Comments \-\-query comment:@Now \-\-output_columns comment,_score
6906
6814
  # [
6907
6815
  # [
6908
6816
  # 0,
@@ -6925,12 +6833,12 @@ select \-\-table Comments \-\-query comment:@なう \-\-output_columns comment,_
6925
6833
  # ]
6926
6834
  # ],
6927
6835
  # [
6928
- # "groongaなう #groonga",
6836
+ # "I\(aqve just used \(aqTry\-Groonga\(aq now! #groonga",
6929
6837
  # 1
6930
6838
  # ],
6931
6839
  # [
6932
- # "中野ブロードウェイなうなう",
6933
- # 2
6840
+ # "I\(aqm at the Museum of Modern Art in NY now!",
6841
+ # 1
6934
6842
  # ]
6935
6843
  # ]
6936
6844
  # ]
@@ -6940,10 +6848,10 @@ select \-\-table Comments \-\-query comment:@なう \-\-output_columns comment,_
6940
6848
  .UNINDENT
6941
6849
  .UNINDENT
6942
6850
  .sp
6943
- 「なう」をキーワードにコメント検索した結果、2件のコメントがヒットしました。また、_scoreの値も返ってきており、「なう」の数が出力されていることが確認できます。
6944
- .SS GeoPointとキーワードでコメント検索
6851
+ \(aqNow\(aqをキーワードに使っているので、このクエリは2件のコメントを返します。 \fI_score\fP の値として \(aqNow\(aqのカウントを含んでいます。
6852
+ .SS キーワードと位置情報で検索
6945
6853
  .sp
6946
- 今度は、キーワードとGeoPointの両方を条件に検索をしてみます。\-\-queryと\-\-filterの両方を使用した場合、両方の条件に一致するレコードがヒットします。
6854
+ あるキーワードと位置情報の両方でコメントを検索します。 \fI\-\-query\fP と \fI\-\-filter\fP オプションの両方を使用した場合、両方の条件に一致するレコードを返します。
6947
6855
  .sp
6948
6856
  実行例:
6949
6857
  .INDENT 0.0
@@ -6951,7 +6859,7 @@ select \-\-table Comments \-\-query comment:@なう \-\-output_columns comment,_
6951
6859
  .sp
6952
6860
  .nf
6953
6861
  .ft C
6954
- select \-\-table Comments \-\-query comment:@羽田 \-\-filter \(aqgeo_in_circle(location,"127975798x502919856",20000)\(aq \-\-output_columns posted_by.name,comment \-\-drilldown hash_tags,posted_by
6862
+ select \-\-table Comments \-\-query comment:@New \-\-filter \(aqgeo_in_circle(location,"146867000x\-266280000",20000)\(aq \-\-output_columns posted_by.name,comment \-\-drilldown hash_tags,posted_by
6955
6863
  # [
6956
6864
  # [
6957
6865
  # 0,
@@ -6974,8 +6882,8 @@ select \-\-table Comments \-\-query comment:@羽田 \-\-filter \(aqgeo_in_circle
6974
6882
  # ]
6975
6883
  # ],
6976
6884
  # [
6977
- # "グニャラくん",
6978
- # "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
6885
+ # "Bob",
6886
+ # "I\(aqm come at city of New York for development camp! #groonga #travel"
6979
6887
  # ]
6980
6888
  # ],
6981
6889
  # [
@@ -7016,7 +6924,7 @@ select \-\-table Comments \-\-query comment:@羽田 \-\-filter \(aqgeo_in_circle
7016
6924
  # ]
7017
6925
  # ],
7018
6926
  # [
7019
- # "tasukuchan",
6927
+ # "bob",
7020
6928
  # 1
7021
6929
  # ]
7022
6930
  # ]
@@ -7027,11 +6935,10 @@ select \-\-table Comments \-\-query comment:@羽田 \-\-filter \(aqgeo_in_circle
7027
6935
  .UNINDENT
7028
6936
  .UNINDENT
7029
6937
  .sp
7030
- 両方の条件を満たすコメントが1件ヒットしました。また、ドリルダウンの結果も返ってきており、「グニャラくん」のコメント1件であることがわかります。
7031
- .SS ハッシュタグでコメント検索
6938
+ 両方の条件をみたすコメントが1件あります。ドリルダウンの結果も含まれ、Bobによるコメントであることがわかります。
6939
+ .SS ハッシュタグでコメントを検索
7032
6940
  .sp
7033
- あるハッシュタグのついているコメントを検索します。
7034
- これも、 \fBindex\fP で扱った、参照関係の逆引きを使います。
6941
+ あるハッシュタグのついているコメントを検索します。テーブルの参照関係を逆にたどってみましょう。
7035
6942
  .sp
7036
6943
  実行例:
7037
6944
  .INDENT 0.0
@@ -7062,12 +6969,12 @@ select \-\-table Comments \-\-query hash_tags:@groonga \-\-output_columns posted
7062
6969
  # ]
7063
6970
  # ],
7064
6971
  # [
7065
- # "グニャラくん",
7066
- # "groongaなう #groonga"
6972
+ # "Bob",
6973
+ # "I\(aqve just used \(aqTry\-Groonga\(aq now! #groonga"
7067
6974
  # ],
7068
6975
  # [
7069
- # "グニャラくん",
7070
- # "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
6976
+ # "Bob",
6977
+ # "I\(aqm come at city of New York for development camp! #groonga #travel"
7071
6978
  # ]
7072
6979
  # ],
7073
6980
  # [
@@ -7085,7 +6992,7 @@ select \-\-table Comments \-\-query hash_tags:@groonga \-\-output_columns posted
7085
6992
  # ]
7086
6993
  # ],
7087
6994
  # [
7088
- # "tasukuchan",
6995
+ # "bob",
7089
6996
  # 2
7090
6997
  # ]
7091
6998
  # ]
@@ -7096,8 +7003,8 @@ select \-\-table Comments \-\-query hash_tags:@groonga \-\-output_columns posted
7096
7003
  .UNINDENT
7097
7004
  .UNINDENT
7098
7005
  .sp
7099
- #groongaタグの付いている2件のコメントがヒットしました。また、投稿者のドリルダウンも返ってきており、2件とも「グニャラくん」のものであることがわかります。
7100
- .SS ユーザーIDでコメント検索
7006
+ このクエリは#groongaハッシュタグを含む2件のコメントを返します。投稿者のドリルダウン結果を2件含んでいて、Bobが投稿したことがわかります。
7007
+ .SS ユーザーIDでコメントを検索
7101
7008
  .sp
7102
7009
  あるユーザーが投稿したコメントを検索します。
7103
7010
  .sp
@@ -7107,7 +7014,7 @@ select \-\-table Comments \-\-query hash_tags:@groonga \-\-output_columns posted
7107
7014
  .sp
7108
7015
  .nf
7109
7016
  .ft C
7110
- select \-\-table Comments \-\-query posted_by:tasukuchan \-\-output_columns comment \-\-drilldown hash_tags
7017
+ select \-\-table Comments \-\-query posted_by:bob \-\-output_columns comment \-\-drilldown hash_tags
7111
7018
  # [
7112
7019
  # [
7113
7020
  # 0,
@@ -7126,16 +7033,16 @@ select \-\-table Comments \-\-query posted_by:tasukuchan \-\-output_columns comm
7126
7033
  # ]
7127
7034
  # ],
7128
7035
  # [
7129
- # "初の書き込み。テストテスト。"
7036
+ # "First post. test,test..."
7130
7037
  # ],
7131
7038
  # [
7132
- # "@daijiro ありがとう!"
7039
+ # "@alice Thanks!"
7133
7040
  # ],
7134
7041
  # [
7135
- # "groongaなう #groonga"
7042
+ # "I\(aqve just used \(aqTry\-Groonga\(aq now! #groonga"
7136
7043
  # ],
7137
7044
  # [
7138
- # "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
7045
+ # "I\(aqm come at city of New York for development camp! #groonga #travel"
7139
7046
  # ]
7140
7047
  # ],
7141
7048
  # [
@@ -7168,10 +7075,10 @@ select \-\-table Comments \-\-query posted_by:tasukuchan \-\-output_columns comm
7168
7075
  .UNINDENT
7169
7076
  .UNINDENT
7170
7077
  .sp
7171
- 「グニャラくん」が書き込んだ4件のコメントがヒットしました。また、ハッシュタグでドリルダウンした結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つあることがわかります。
7172
- .SS ユーザーのお気に入りコメントを検索
7078
+ このクエリはBobによる4件のコメントを返します。ハッシュタグによるドリルダウン結果も含まれ、#groonga2件、#travel1件であることがわかります。
7079
+ .SS ユーザーのお気に入りのコメント一覧
7173
7080
  .sp
7174
- あるユーザーがお気に入りに入れているコメントを検索します。
7081
+ あるユーザーのお気に入りコメントを検索します。
7175
7082
  .sp
7176
7083
  実行例:
7177
7084
  .INDENT 0.0
@@ -7179,7 +7086,7 @@ select \-\-table Comments \-\-query posted_by:tasukuchan \-\-output_columns comm
7179
7086
  .sp
7180
7087
  .nf
7181
7088
  .ft C
7182
- select \-\-table Users \-\-query _key:tasukuchan \-\-output_columns favorites.posted_by,favorites.comment
7089
+ select \-\-table Users \-\-query _key:bob \-\-output_columns favorites.posted_by,favorites.comment
7183
7090
  # [
7184
7091
  # [
7185
7092
  # 0,
@@ -7203,12 +7110,12 @@ select \-\-table Users \-\-query _key:tasukuchan \-\-output_columns favorites.po
7203
7110
  # ],
7204
7111
  # [
7205
7112
  # [
7206
- # "daijiro",
7207
- # "OffGao"
7113
+ # "alice",
7114
+ # "charlie"
7208
7115
  # ],
7209
7116
  # [
7210
- # "マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",
7211
- # "@daijiro @tasukuchan 登録してみましたよー!"
7117
+ # "I\(aqve created micro\-blog!",
7118
+ # "@alice @bob I\(aqve tried to register!"
7212
7119
  # ]
7213
7120
  # ]
7214
7121
  # ]
@@ -7219,11 +7126,12 @@ select \-\-table Users \-\-query _key:tasukuchan \-\-output_columns favorites.po
7219
7126
  .UNINDENT
7220
7127
  .UNINDENT
7221
7128
  .sp
7222
- 「グニャラくん」がお気に入りに入れている2件のコメントがヒットしました。
7223
- .SS 投稿時間でコメント検索
7129
+ このクエリはBobのお気に入りのコメント一覧を返します。
7130
+ .SS 投稿時間でコメントを検索
7224
7131
  .sp
7225
- コメントの投稿時間で検索をします。Time型については \fBdata\fP で扱っています。
7226
- この例では、指定した時間よりも前に投稿されているコメントを検索します。
7132
+ コメントの投稿時間で検索をします。\fITime\fP 型については \fBdata\fP を参照してください。
7133
+ .sp
7134
+ ある時刻よりも古いコメントを検索します。
7227
7135
  .sp
7228
7136
  実行例:
7229
7137
  .INDENT 0.0
@@ -7258,28 +7166,28 @@ select Comments \-\-filter \(aqlast_modified<=1268802000\(aq \-\-output_columns
7258
7166
  # ]
7259
7167
  # ],
7260
7168
  # [
7261
- # "hsiomaneki",
7262
- # "マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",
7169
+ # "Alice",
7170
+ # "I\(aqve created micro\-blog!",
7263
7171
  # 1268795100.0
7264
7172
  # ],
7265
7173
  # [
7266
- # "グニャラくん",
7267
- # "初の書き込み。テストテスト。",
7174
+ # "Bob",
7175
+ # "First post. test,test...",
7268
7176
  # 1268794800.0
7269
7177
  # ],
7270
7178
  # [
7271
- # "hsiomaneki",
7272
- # "@tasukuchan ようこそ!!!",
7179
+ # "Alice",
7180
+ # "@bob Welcome!!!",
7273
7181
  # 1268795100.0
7274
7182
  # ],
7275
7183
  # [
7276
- # "グニャラくん",
7277
- # "@daijiro ありがとう!",
7184
+ # "Bob",
7185
+ # "@alice Thanks!",
7278
7186
  # 1268798400.0
7279
7187
  # ],
7280
7188
  # [
7281
- # "グニャラくん",
7282
- # "groongaなう #groonga",
7189
+ # "Bob",
7190
+ # "I\(aqve just used \(aqTry\-Groonga\(aq now! #groonga",
7283
7191
  # 1268802000.0
7284
7192
  # ]
7285
7193
  # ],
@@ -7317,11 +7225,11 @@ select Comments \-\-filter \(aqlast_modified<=1268802000\(aq \-\-output_columns
7317
7225
  # ]
7318
7226
  # ],
7319
7227
  # [
7320
- # "daijiro",
7228
+ # "alice",
7321
7229
  # 2
7322
7230
  # ],
7323
7231
  # [
7324
- # "tasukuchan",
7232
+ # "bob",
7325
7233
  # 3
7326
7234
  # ]
7327
7235
  # ]
@@ -7332,19 +7240,17 @@ select Comments \-\-filter \(aqlast_modified<=1268802000\(aq \-\-output_columns
7332
7240
  .UNINDENT
7333
7241
  .UNINDENT
7334
7242
  .sp
7335
- 2010/03/17 14:00:00以前に書かれたコメント5件がヒットしました。また、ドリルダウンの結果も返ってきており、「hsiomaneki」が2件、「グニャラくん」が3件ヒットしていることがわかります。
7243
+ このクエリは2010/03/17 14:00:00以前の5件のコメントを返します。投稿者によるドリルダウン結果も含まれ、Aliceが2件、Bobが3件であることがわかります。
7336
7244
  .SS クエリ拡張
7337
7245
  .sp
7338
- Groongaでは、 \fB/reference/commands/select\fP コマンドにquery_expanderパラメータを指定することによって、ユーザが指定した検索文字列を適宜拡張することが可能です。
7246
+ Groonga \fB/reference/commands/select\fP コマンドは \fBquery_expander\fP 引数を受付ます。これを使うとクエリ文字列を拡張することができます。
7339
7247
  .sp
7340
- たとえば、ユーザが\(aqシークヮーサー\(aqという文字列で検索した場合に、\(aqシークヮーサー OR シークァーサー\(aqで検索した場合と同一の結果を返すことによって、本来ユーザが必要とする結果をよりもれなく検索できるようになります。
7248
+ 例えば、"theater"ではなく"theatre"で検索したとしましょう。クエリ拡張では"theater OR theatre"の結果を返します。このようなやりかたで検索漏れを減らせます。これはユーザーが本当にやりたかったことです。
7341
7249
  .SS 準備
7342
7250
  .sp
7343
- クエリ拡張機能を使用するためには、検索対象となる文書を格納するテーブル(ここでは文書テーブルと呼びます)以外に、ユーザの指定した検索文字列を置換するためのテーブル(ここでは置換テーブルと呼びます)を準備します。置換テーブルでは、その主キーが置換前の文字列となり、文字列型(ShortText)のカラムの値が置換後の文字列となります。
7344
- .sp
7345
- TODO: 文字列型のベクターカラムでも可能であり、その場合は各要素をORでつなげたものに置換されるということを記述する。
7251
+ クエリ拡張を使うには、文書を格納するテーブルと検索文字列と置換文字列のペアを格納する置換テーブルを作る必要があります。置換テーブルでは主キーが元の文字列、ShortText型のカラムが置換後の文字列をあらわします。
7346
7252
  .sp
7347
- 実際に文書テーブルと置換テーブルを作成してみましょう。
7253
+ それでは文書テーブルと置換テーブルを作成しましょう。
7348
7254
  .sp
7349
7255
  実行例:
7350
7256
  .INDENT 0.0
@@ -7366,14 +7272,14 @@ column_create Synonym body COLUMN_SCALAR ShortText
7366
7272
  # [[0, 1337566253.89858, 0.000355720520019531], true]
7367
7273
  load \-\-table Doc
7368
7274
  [
7369
- {"_key": "001", "body": "すっぱいブドウと甘いシークァーサー"},
7370
- {"_key": "002", "body": "シークヮーサージュースとゴーヤチャンプル"},
7275
+ {"_key": "001", "body": "Play all night in this theater."},
7276
+ {"_key": "002", "body": "theatre is British spelling."},
7371
7277
  ]
7372
7278
  # [[0, 1337566253.89858, 0.000355720520019531], 2]
7373
7279
  load \-\-table Synonym
7374
7280
  [
7375
- {"_key": "シークァーサー", "body": "(シークァーサー OR シークヮーサー)"},
7376
- {"_key": "シークヮーサー", "body": "(シークァーサー OR シークヮーサー)"},
7281
+ {"_key": "theater", "body": "(theater OR theatre)"},
7282
+ {"_key": "theatre", "body": "(theater OR theatre)"},
7377
7283
  ]
7378
7284
  # [[0, 1337566253.89858, 0.000355720520019531], 2]
7379
7285
  .ft P
@@ -7381,10 +7287,10 @@ load \-\-table Synonym
7381
7287
  .UNINDENT
7382
7288
  .UNINDENT
7383
7289
  .sp
7384
- この例では、ユーザが"シークァーサー"と入力しても、"シークヮーサー"と入力しても、それぞれの異なる表記の文書をもれなく検索するための置換テーブルを作成しています。
7290
+ このようにすると、検索漏れは起こりません。これは置換テーブルがクエリ文字列として"theater""theatre"のいずれも受け付けるからです。
7385
7291
  .SS 検索
7386
7292
  .sp
7387
- それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expanderパラメータを指定せずにselectコマンドを使って検索してみます。
7293
+ では、準備した置換テーブルを使ってみます。まずは \fBquery_expander\fP を使わずに \fBselect\fP コマンドを実行してみましょう。
7388
7294
  .sp
7389
7295
  実行例:
7390
7296
  .INDENT 0.0
@@ -7392,7 +7298,7 @@ load \-\-table Synonym
7392
7298
  .sp
7393
7299
  .nf
7394
7300
  .ft C
7395
- select Doc \-\-match_columns body \-\-query "シークァーサー"
7301
+ select Doc \-\-match_columns body \-\-query "theater"
7396
7302
  # [
7397
7303
  # [
7398
7304
  # 0,
@@ -7421,12 +7327,12 @@ select Doc \-\-match_columns body \-\-query "シークァーサー"
7421
7327
  # [
7422
7328
  # 1,
7423
7329
  # "001",
7424
- # "すっぱいブドウと甘いシークァーサー"
7330
+ # "Play all night in this theater."
7425
7331
  # ]
7426
7332
  # ]
7427
7333
  # ]
7428
7334
  # ]
7429
- select Doc \-\-match_columns body \-\-query "シークヮーサー"
7335
+ select Doc \-\-match_columns body \-\-query "theatre"
7430
7336
  # [
7431
7337
  # [
7432
7338
  # 0,
@@ -7455,7 +7361,7 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー"
7455
7361
  # [
7456
7362
  # 2,
7457
7363
  # "002",
7458
- # "シークヮーサージュースとゴーヤチャンプル"
7364
+ # "theatre is British spelling."
7459
7365
  # ]
7460
7366
  # ]
7461
7367
  # ]
@@ -7465,7 +7371,9 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー"
7465
7371
  .UNINDENT
7466
7372
  .UNINDENT
7467
7373
  .sp
7468
- 指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expanderパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。
7374
+ このクエリではクエリ文字列に完全に一致するレコードを返します。
7375
+ .sp
7376
+ では、 \fBquery_expander\fP を \fBSynonym\fP テーブルの \fBbody\fP カラムに対して使ってみましょう。
7469
7377
  .sp
7470
7378
  実行例:
7471
7379
  .INDENT 0.0
@@ -7473,7 +7381,7 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー"
7473
7381
  .sp
7474
7382
  .nf
7475
7383
  .ft C
7476
- select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_expander Synonym.body
7384
+ select Doc \-\-match_columns body \-\-query "theater" \-\-query_expander Synonym.body
7477
7385
  # [
7478
7386
  # [
7479
7387
  # 0,
@@ -7502,17 +7410,17 @@ select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_ex
7502
7410
  # [
7503
7411
  # 1,
7504
7412
  # "001",
7505
- # "すっぱいブドウと甘いシークァーサー"
7413
+ # "Play all night in this theater."
7506
7414
  # ],
7507
7415
  # [
7508
7416
  # 2,
7509
7417
  # "002",
7510
- # "シークヮーサージュースとゴーヤチャンプル"
7418
+ # "theatre is British spelling."
7511
7419
  # ]
7512
7420
  # ]
7513
7421
  # ]
7514
7422
  # ]
7515
- select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-query_expander Synonym.body
7423
+ select Doc \-\-match_columns body \-\-query "theatre" \-\-query_expander Synonym.body
7516
7424
  # [
7517
7425
  # [
7518
7426
  # 0,
@@ -7541,12 +7449,12 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-query_ex
7541
7449
  # [
7542
7450
  # 1,
7543
7451
  # "001",
7544
- # "すっぱいブドウと甘いシークァーサー"
7452
+ # "Play all night in this theater."
7545
7453
  # ],
7546
7454
  # [
7547
7455
  # 2,
7548
7456
  # "002",
7549
- # "シークヮーサージュースとゴーヤチャンプル"
7457
+ # "theatre is British spelling."
7550
7458
  # ]
7551
7459
  # ]
7552
7460
  # ]
@@ -7556,7 +7464,7 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-query_ex
7556
7464
  .UNINDENT
7557
7465
  .UNINDENT
7558
7466
  .sp
7559
- どちらのクエリ文字列も、"(シークァーサー OR シークヮーサー)"という文字列に置換されてから検索されるため、表記の揺れを吸収して検索できるようになりました。
7467
+ この場合、クエリ文字列は "theater OR theatre" へと置き換えられます。つまり、検索時に表記揺れを考慮して検索できます。
7560
7468
  .SH サジェスト
7561
7469
  .sp
7562
7470
  Groongaにはサジェスト機能があります。このセクションではこの機能の使い方とどのように動作しているかを説明します。
@@ -27614,7 +27522,7 @@ Groongaを全文検索ライブラリとして使うことができます。こ
27614
27522
  .SS 全体設定
27615
27523
  .SS 概要
27616
27524
  .sp
27617
- Groonga has the global configurations. You can access them by API.
27525
+ Groongaにはグローバルな設定があります。それらにアクセスするにはAPIを使います。
27618
27526
  .SS リファレンス
27619
27527
  .INDENT 0.0
27620
27528
  .TP
@@ -27643,7 +27551,7 @@ lock until \fBtimeout\fP times, the tries are failed.
27643
27551
  .sp
27644
27552
  ロックタイムアウトについては、 \fBgrn_get_lock_timeout()\fP を参照してください。
27645
27553
  .sp
27646
- \fBtimeout\fP にはいくつか特別扱いする値があります。
27554
+ \fBtimeout\fP にはいくつか特別な値があります。
27647
27555
  .INDENT 7.0
27648
27556
  .INDENT 3.5
27649
27557
  .INDENT 0.0
@@ -27659,11 +27567,11 @@ lock until \fBtimeout\fP times, the tries are failed.
27659
27567
  .B パラメタ
27660
27568
  .INDENT 7.0
27661
27569
  .IP \(bu 2
27662
- \fBtimeuot\fP \-\- The new lock timeout.
27570
+ \fBtimeuot\fP \-\- 新しいロックのタイムアウト。
27663
27571
  .UNINDENT
27664
27572
  .TP
27665
27573
  .B 戻り値
27666
- \fBGRN_SUCCESS\fP\&. It doesn\(aqt fail.
27574
+ \fBGRN_SUCCESS\fP 。この関数は失敗しません。
27667
27575
  .UNINDENT
27668
27576
  .UNINDENT
27669
27577
  .SS \fBgrn_cache\fP
@@ -27676,24 +27584,13 @@ lock until \fBtimeout\fP times, the tries are failed.
27676
27584
  .UNINDENT
27677
27585
  .UNINDENT
27678
27586
  .sp
27679
- \fBgrn_cache\fP is a data store that keeps responses of
27680
- \fB/reference/commands/select\fP command. It is not general use cache
27681
- object. It is only for \fB/reference/commands/select\fP command.
27587
+ \fBgrn_cache\fP \fB/reference/commands/select\fP コマンドのレスポンスを保持するためのデータストアです。一般的なオブジェクトのキャッシュとして使うものではありません。あくまで \fB/reference/commands/select\fP コマンドのためのものです。
27682
27588
  .sp
27683
- You can just change the current cache object by
27684
- \fBgrn_cache_current_set()\fP\&. \fB/reference/commands/select\fP
27685
- command response cache is done internally.
27589
+ \fBgrn_cache_current_set()\fP を使うことで現在のキャッシュオブジェクトを変更することができます。 \fB/reference/commands/select\fP コマンドのレスポンスが内部的に用いられます。
27686
27590
  .sp
27687
- \fB/reference/commands/select\fP command uses one global cache
27688
- object. If you open multiple databases, the one cache is shared. It is
27689
- an important problem.
27591
+ \fB/reference/commands/select\fP コマンドは、一つのグローバルキャッシュオブジェクトを利用します。もし複数のデータベースをオープンしていた場合、そのキャッシュオブジェクトは共有されます。これは重要な問題です。
27690
27592
  .sp
27691
- If you open multiple databases and use
27692
- \fB/reference/commands/select\fP command, you need to use
27693
- \fBgrn_cache\fP object. It is \fB/reference/executables/groonga\-httpd\fP
27694
- case. If you open only one database or don\(aqt use
27695
- \fB/reference/commands/select\fP command, you don\(aqt need to use
27696
- \fBgrn_cache\fP object. It is \fI\%rroonga\fP case.
27593
+ もし複数のデータベースを開き、 \fB/reference/commands/select\fP コマンドを使用するのであれば、 \fBgrn_cache\fP オブジェクトを使う必要があります。 \fB/reference/executables/groonga\-httpd\fP のようなケースが該当します。もし一つのデータベースのみを開く場合や、 \fB/reference/commands/select\fP コマンドを使わない場合は、 \fBgrn_cache\fP オブジェクトを使う必要はありません。 \fIRroonga <http://ranguba.org/ja/#about\-rroonga>\fP のようなケースです。
27697
27594
  .SS 実行例:
27698
27595
  .sp
27699
27596
  以下はキャッシュを変更する例です。
@@ -27717,17 +27614,22 @@ grn_cache_current_set(ctx, cache_previous);
27717
27614
  .INDENT 0.0
27718
27615
  .TP
27719
27616
  .B grn_cache
27720
- It is an opaque cache object. You can create a \fBgrn_cache\fP by
27721
- \fBgrn_cache_open()\fP and free the created object by
27722
- \fBgrn_cache_close()\fP\&.
27617
+ 抽象的なオブジェクトである\(ga\(gagrn_cache\(ga\(gaは、 :c:func:
27618
+ .nf
27619
+ \(ga
27620
+ .fi
27621
+ grn_cache_open()\(gaによって作成され、:c:func:
27622
+ .nf
27623
+ \(ga
27624
+ .fi
27625
+ grn_cache_close()\(gaによって解放される。
27723
27626
  .UNINDENT
27724
27627
  .INDENT 0.0
27725
27628
  .TP
27726
27629
  .B grn_cache *grn_cache_open(grn_ctx\fI\ *ctx\fP)
27727
27630
  新規にキャッシュオブジェクトを作成します。
27728
27631
  .sp
27729
- If memory allocation for the new cache object is failed, \fBNULL\fP
27730
- is returned. Error information is stored into the \fBctx\fP\&.
27632
+ 新しいキャッシュオブジェクト作成のためのメモリ割り当てに失敗した場合、 \fBNULL\fP を返します。エラー情報は \fBctx\fP に格納されます。
27731
27633
  .INDENT 7.0
27732
27634
  .TP
27733
27635
  .B パラメタ
@@ -27737,15 +27639,13 @@ is returned. Error information is stored into the \fBctx\fP\&.
27737
27639
  .UNINDENT
27738
27640
  .TP
27739
27641
  .B 戻り値
27740
- A newly allocated cache object on success, \fBNULL\fP
27741
- otherwise. The returned cache object must be freed by
27742
- \fBgrn_cache_close()\fP\&.
27642
+ 新しいキャッシュオブジェクトの作成に成功した場合は \fBNULL\fP 以外の値を返します。このキャッシュオブジェクトは \fBgrn_cache_close()\fP で解放されなければなりません。
27743
27643
  .UNINDENT
27744
27644
  .UNINDENT
27745
27645
  .INDENT 0.0
27746
27646
  .TP
27747
27647
  .B grn_rc grn_cache_close(grn_ctx\fI\ *ctx\fP, grn_cache\fI\ *cache\fP)
27748
- Frees resourses of the \fBcache\fP\&.
27648
+ \fBcache\fP のリソースを解放。
27749
27649
  .INDENT 7.0
27750
27650
  .TP
27751
27651
  .B パラメタ
@@ -27753,7 +27653,7 @@ Frees resourses of the \fBcache\fP\&.
27753
27653
  .IP \(bu 2
27754
27654
  \fBctx\fP \-\- その時点のコンテキスト。
27755
27655
  .IP \(bu 2
27756
- \fBcache\fP \-\- The cache object to be freed.
27656
+ \fBcache\fP \-\- キャッシュオブジェクトを解放する。
27757
27657
  .UNINDENT
27758
27658
  .TP
27759
27659
  .B 戻り値
@@ -27807,7 +27707,7 @@ Frees resourses of the \fBcache\fP\&.
27807
27707
  .IP \(bu 2
27808
27708
  \fBcache\fP \-\- 変更するキャッシュオブジェクト。
27809
27709
  .IP \(bu 2
27810
- \fBn\fP \-\- The new max number of entries of the cache object.
27710
+ \fBn\fP \-\- キャッシュオブジェクトの新しい最大エントリ数。
27811
27711
  .UNINDENT
27812
27712
  .TP
27813
27713
  .B 戻り値
@@ -27825,11 +27725,11 @@ Frees resourses of the \fBcache\fP\&.
27825
27725
  .IP \(bu 2
27826
27726
  \fBctx\fP \-\- その時点のコンテキスト。
27827
27727
  .IP \(bu 2
27828
- \fBcache\fP \-\- The target cache object.
27728
+ \fBcache\fP \-\- ターゲットキャッシュオブジェクト。
27829
27729
  .UNINDENT
27830
27730
  .TP
27831
27731
  .B 戻り値
27832
- The max number of entries of the cache object.
27732
+ キャッシュオブジェクトの最大エントリ数。
27833
27733
  .UNINDENT
27834
27734
  .UNINDENT
27835
27735
  .SS \fBgrn_column\fP
@@ -27843,10 +27743,17 @@ TODO...
27843
27743
  .INDENT 0.0
27844
27744
  .TP
27845
27745
  .B GRN_COLUMN_NAME_ID
27846
- It returns the name of \fB/reference/columns/pseudo\fP \fB_id\fP\&.
27746
+ \fB/reference/columns/pseudo\fP
27747
+ .nf
27748
+ \(ga\(ga
27749
+ .fi
27750
+ _id\(ga\(gaの名前を返す。
27847
27751
  .sp
27848
- It is useful to use with \fBGRN_COLUMN_NAME_ID_LEN\fP like
27849
- the following:
27752
+ :c:macro:
27753
+ .nf
27754
+ \(ga
27755
+ .fi
27756
+ GRN_COLUMN_NAME_ID_LEN\(gaは以下のような場合に利用できる:
27850
27757
  .INDENT 7.0
27851
27758
  .INDENT 3.5
27852
27759
  .sp
@@ -27859,14 +27766,14 @@ id_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_ID, GRN_COLUMN_NAME_ID_LEN);
27859
27766
  .UNINDENT
27860
27767
  .UNINDENT
27861
27768
  .sp
27862
- Since 3.1.1.
27769
+ 3.1.1から。
27863
27770
  .UNINDENT
27864
27771
  .INDENT 0.0
27865
27772
  .TP
27866
27773
  .B GRN_COLUMN_NAME_ID_LEN
27867
27774
  It returns the byte size of \fBGRN_COLUMN_NAME_ID\fP\&.
27868
27775
  .sp
27869
- Since 3.1.1.
27776
+ 3.1.1から。
27870
27777
  .UNINDENT
27871
27778
  .INDENT 0.0
27872
27779
  .TP
@@ -27887,14 +27794,14 @@ key_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_KEY, GRN_COLUMN_NAME_KEY_LEN);
27887
27794
  .UNINDENT
27888
27795
  .UNINDENT
27889
27796
  .sp
27890
- Since 3.1.1.
27797
+ 3.1.1から。
27891
27798
  .UNINDENT
27892
27799
  .INDENT 0.0
27893
27800
  .TP
27894
27801
  .B GRN_COLUMN_NAME_KEY_LEN
27895
27802
  It returns the byte size of \fBGRN_COLUMN_NAME_KEY\fP\&.
27896
27803
  .sp
27897
- Since 3.1.1.
27804
+ 3.1.1から。
27898
27805
  .UNINDENT
27899
27806
  .INDENT 0.0
27900
27807
  .TP
@@ -27915,22 +27822,29 @@ value_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_VALUE, GRN_COLUMN_NAME_VALUE_LEN
27915
27822
  .UNINDENT
27916
27823
  .UNINDENT
27917
27824
  .sp
27918
- Since 3.1.1.
27825
+ 3.1.1から。
27919
27826
  .UNINDENT
27920
27827
  .INDENT 0.0
27921
27828
  .TP
27922
27829
  .B GRN_COLUMN_NAME_VALUE_LEN
27923
27830
  It returns the byte size of \fBGRN_COLUMN_NAME_VALUE\fP\&.
27924
27831
  .sp
27925
- Since 3.1.1.
27832
+ 3.1.1から。
27926
27833
  .UNINDENT
27927
27834
  .INDENT 0.0
27928
27835
  .TP
27929
27836
  .B GRN_COLUMN_NAME_SCORE
27930
- It returns the name of \fB/reference/columns/pseudo\fP \fB_score\fP\&.
27837
+ \fB/reference/columns/pseudo\fP
27838
+ .nf
27839
+ \(ga\(ga
27840
+ .fi
27841
+ _score\(ga\(gaの名前を返す。
27931
27842
  .sp
27932
- It is useful to use with \fBGRN_COLUMN_NAME_SCORE_LEN\fP like
27933
- the following:
27843
+ :c:macro:
27844
+ .nf
27845
+ \(ga
27846
+ .fi
27847
+ GRN_COLUMN_NAME_SCORE_LEN\(gaは以下のような場合に利用できる:
27934
27848
  .INDENT 7.0
27935
27849
  .INDENT 3.5
27936
27850
  .sp
@@ -27943,22 +27857,29 @@ score_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_SCORE, GRN_COLUMN_NAME_SCORE_LEN
27943
27857
  .UNINDENT
27944
27858
  .UNINDENT
27945
27859
  .sp
27946
- Since 3.1.1.
27860
+ 3.1.1から。
27947
27861
  .UNINDENT
27948
27862
  .INDENT 0.0
27949
27863
  .TP
27950
27864
  .B GRN_COLUMN_NAME_SCORE_LEN
27951
- It returns the byte size of \fBGRN_COLUMN_NAME_SCORE\fP\&.
27865
+ :c:macro:
27866
+ .nf
27867
+ \(ga
27868
+ .fi
27869
+ GRN_COLUMN_NAME_SCORE\(gaのサイズをバイト数で返す。
27952
27870
  .sp
27953
- Since 3.1.1.
27871
+ 3.1.1から。
27954
27872
  .UNINDENT
27955
27873
  .INDENT 0.0
27956
27874
  .TP
27957
27875
  .B GRN_COLUMN_NAME_NSUBRECS
27958
- It returns the name of \fB/reference/columns/pseudo\fP \fB_nsubrecs\fP\&.
27876
+ \fB/reference/columns/pseudo\fP \fB_nsubrecs\fP の名前を返す。
27959
27877
  .sp
27960
- It is useful to use with \fBGRN_COLUMN_NAME_NSUBRECS_LEN\fP like
27961
- the following:
27878
+ :c:macro:
27879
+ .nf
27880
+ \(ga
27881
+ .fi
27882
+ GRN_COLUMN_NAME_NSUBRECS_LEN\(gaは以下のような場合に利用できる:
27962
27883
  .INDENT 7.0
27963
27884
  .INDENT 3.5
27964
27885
  .sp
@@ -27971,14 +27892,14 @@ nsubrecs_column = grn_ctx_get(ctx, GRN_COLUMN_NAME_NSUBRECS, GRN_COLUMN_NAME_NSU
27971
27892
  .UNINDENT
27972
27893
  .UNINDENT
27973
27894
  .sp
27974
- Since 3.1.1.
27895
+ 3.1.1から。
27975
27896
  .UNINDENT
27976
27897
  .INDENT 0.0
27977
27898
  .TP
27978
27899
  .B GRN_COLUMN_NAME_NSUBRECS_LEN
27979
- It returns the byte size of \fBGRN_COLUMN_NAME_NSUBRECS\fP\&.
27900
+ \fBGRN_COLUMN_NAME_NSUBRECS\fP のサイズをバイト数で返す。
27980
27901
  .sp
27981
- Since 3.1.1.
27902
+ 3.1.1から。
27982
27903
  .UNINDENT
27983
27904
  .INDENT 0.0
27984
27905
  .TP
@@ -28213,7 +28134,23 @@ ctxを初期化します。
28213
28134
  .B grn_rc grn_ctx_fin(grn_ctx\fI\ *ctx\fP)
28214
28135
  ctxの管理するメモリを解放し、使用を終了します。
28215
28136
  .sp
28216
- If \fBctx\fP is initialized by \fBgrn_ctx_open()\fP not \fBgrn_ctx_init()\fP\&. You need also to call \fBgrn_ctx_close()\fP\&.
28137
+
28138
+ .nf
28139
+ \(ga\(ga
28140
+ .fi
28141
+ ctx\(ga\(gaを:c:func:
28142
+ .nf
28143
+ \(ga
28144
+ .fi
28145
+ grn_ctx_init()\(gaではなく:c:func:
28146
+ .nf
28147
+ \(ga
28148
+ .fi
28149
+ grn_ctx_open()\(gaで初期化した場合、:c:func:
28150
+ .nf
28151
+ \(ga
28152
+ .fi
28153
+ grn_ctx_close()\(gaを呼び出さなければならない。
28217
28154
  .INDENT 7.0
28218
28155
  .TP
28219
28156
  .B パラメタ
@@ -28249,13 +28186,25 @@ If \fBctx\fP is initialized by \fBgrn_ctx_open()\fP not \fBgrn_ctx_init()\fP\&.
28249
28186
  .INDENT 0.0
28250
28187
  .TP
28251
28188
  .B grn_rc grn_ctx_close(grn_ctx\fI\ *ctx\fP)
28252
- It calls \fBgrn_ctx_fin()\fP and frees allocated memory for \fBctx\fP by \fBgrn_ctx_open()\fP\&.
28189
+ :c:func:
28190
+ .nf
28191
+ \(ga
28192
+ .fi
28193
+ grn_ctx_fin()\(gaを呼び出し、:c:func:
28194
+ .nf
28195
+ \(ga
28196
+ .fi
28197
+ grn_ctx_open()\(gaによって割り当てられた\(ga\(gactx\(ga\(gaへのメモリを開放する。
28253
28198
  .INDENT 7.0
28254
28199
  .TP
28255
28200
  .B パラメタ
28256
28201
  .INDENT 7.0
28257
28202
  .IP \(bu 2
28258
- \fBctx\fP \-\- no longer needed \fBgrn_ctx\fP\&.
28203
+ \fBctx\fP \-\- :c:type:
28204
+ .nf
28205
+ \(ga
28206
+ .fi
28207
+ grn_ctx\(gaは不要となる。
28259
28208
  .UNINDENT
28260
28209
  .TP
28261
28210
  .B 戻り値
@@ -28303,7 +28252,15 @@ command_versionを変更します。
28303
28252
  .B grn_rc grn_ctx_use(grn_ctx\fI\ *ctx\fP, grn_obj\fI\ *db\fP)
28304
28253
  ctxが操作対象とするdbを指定します。NULLを指定した場合は、dbを操作しない状態(init直後の状態)になります。
28305
28254
  .sp
28306
- Don\(aqt use it with \fBgrn_ctx\fP that has \fBGRN_CTX_PER_DB\fP flag.
28255
+
28256
+ .nf
28257
+ \(ga\(ga
28258
+ .fi
28259
+ GRN_CTX_PER_DB\(ga\(gaフラグと同時に:c:type:
28260
+ .nf
28261
+ \(ga
28262
+ .fi
28263
+ grn_ctx\(gaを使ってはならない。
28307
28264
  .INDENT 7.0
28308
28265
  .TP
28309
28266
  .B パラメタ
@@ -28329,7 +28286,7 @@ ctxが使用するdbからnameに対応するオブジェクトを検索して
28329
28286
  .IP \(bu 2
28330
28287
  \fBname\fP \-\- 検索しようとするオブジェクトの名前。
28331
28288
  .IP \(bu 2
28332
- \fBname_size\fP \-\- The number of bytes of name. If negative value is specified, name is assumed that NULL\-terminated string.
28289
+ \fBname_size\fP \-\- 名前のバイト数。負の値が指定された場合は、終端をNULL文字とした文字列として扱われる。
28333
28290
  .UNINDENT
28334
28291
  .UNINDENT
28335
28292
  .UNINDENT
@@ -28364,7 +28321,11 @@ TODO...
28364
28321
  .INDENT 0.0
28365
28322
  .TP
28366
28323
  .B grn_db_create_optarg
28367
- It is used for specifying options for \fBgrn_db_create()\fP\&.
28324
+ :c:func:
28325
+ .nf
28326
+ \(ga
28327
+ .fi
28328
+ grn_db_create\(gaのオプションを指定するのに利用されます。
28368
28329
  .UNINDENT
28369
28330
  .INDENT 0.0
28370
28331
  .TP
@@ -28476,9 +28437,9 @@ TODO...
28476
28437
  .INDENT 0.0
28477
28438
  .TP
28478
28439
  .B const char *grn_encoding_to_string(grn_encoding\fI\ encoding\fP)
28479
- Returns string representation for the encoding. For example, \(aqgrn_encoding_to_string(\fBGRN_ENC_UTF8\fP)\(aq returns \(aq"utf8"\(aq.
28440
+ エンコーディングの形式を文字列で返します。たとえば\(aqgrn_encoding_to_string(\fBGRN_ENC_UTF8\fP)\(aq "utf8"を返します。
28480
28441
  .sp
28481
- "unknown" is returned for invalid encoding.
28442
+ 無効なエンコーディングの場合は"unknown"を返します。
28482
28443
  .INDENT 7.0
28483
28444
  .TP
28484
28445
  .B パラメタ
@@ -28491,37 +28452,49 @@ Returns string representation for the encoding. For example, \(aqgrn_encoding_to
28491
28452
  .INDENT 0.0
28492
28453
  .TP
28493
28454
  .B grn_encoding grn_encoding_parse(const char\fI\ *name\fP)
28494
- Parses encoding name and returns grn_encoding. For example, \(aqgrn_encoding_parse("UTF8")\(aq returns \(aq\fBGRN_ENC_UTF8\fP\(aq.
28455
+ エンコーディング名をパースし、grn_encodingを返します。たとえば、\(aqgrn_encoding_parse("UTF8")\(aq は\(aq\fBGRN_ENC_UTF8\fP\(aqを返します。
28495
28456
  .sp
28496
- \fBGRN_ENC_UTF8\fP is returned for invalid encoding name.
28457
+ \fBGRN_ENC_UTF8\fP は無効なエンコーディング名が与えた時に返されます。
28497
28458
  .INDENT 7.0
28498
28459
  .TP
28499
28460
  .B パラメタ
28500
28461
  .INDENT 7.0
28501
28462
  .IP \(bu 2
28502
- \fBname\fP \-\- その時点のエンコーディング。
28463
+ \fBname\fP \-\- エンコーディング名。
28503
28464
  .UNINDENT
28504
28465
  .UNINDENT
28505
28466
  .UNINDENT
28506
28467
  .SS grn_expr
28507
28468
  .sp
28508
- \fIgrn_expr\fP is an \fBgrn_obj\fP that represents an expression. Here
28509
- is a list of what expression can do:
28469
+
28470
+ .nf
28471
+ \(ga
28472
+ .fi
28473
+ grn_expr\(gaは:c:type:
28474
+ .nf
28475
+ \(ga
28476
+ .fi
28477
+ grn_obj\(gaを式として表現したものです。以下はどのような表現があるかのリストです。
28510
28478
  .INDENT 0.0
28511
28479
  .INDENT 3.5
28512
28480
  .INDENT 0.0
28513
28481
  .IP \(bu 2
28514
- Expression can apply some operations to a record by
28515
- \fBgrn_expr_exec()\fP\&.
28482
+ 式は:c:func:
28483
+ .nf
28484
+ \(ga
28485
+ .fi
28486
+ grn_expr_exec\(gaによって登録されたものが適用される。
28516
28487
  .IP \(bu 2
28517
- Expression can represents search condition. \fBgrn_table_select()\fP
28518
- can select records that match against the search condition represented
28519
- by expression.
28488
+ 検索条件を式として表現することができます。:c:func:
28489
+ .nf
28490
+ \(ga
28491
+ .fi
28492
+ grn_table_select\(gaは検索条件文にマッチしたレコードの選択ができます。
28520
28493
  .UNINDENT
28521
28494
  .UNINDENT
28522
28495
  .UNINDENT
28523
28496
  .sp
28524
- There are two string representations of expression:
28497
+ 文字列を式で表現する手段は2種類あります。
28525
28498
  .INDENT 0.0
28526
28499
  .INDENT 3.5
28527
28500
  .INDENT 0.0
@@ -28533,8 +28506,11 @@ There are two string representations of expression:
28533
28506
  .UNINDENT
28534
28507
  .UNINDENT
28535
28508
  .sp
28536
- \fBgrn_expr_parse()\fP parses string represented expression and
28537
- appends the parsed expression to another expression.
28509
+ :c:func:
28510
+ .nf
28511
+ \(ga
28512
+ .fi
28513
+ grn_expr_parse\(gaは式の記述された文字列をパースし、その結果を別の式に追加します。
28538
28514
  .SS 実行例:
28539
28515
  .sp
28540
28516
  TODO...
@@ -28578,32 +28554,39 @@ TODO...
28578
28554
  .INDENT 0.0
28579
28555
  .TP
28580
28556
  .B grn_rc grn_expr_syntax_escape(grn_ctx\fI\ *ctx\fP, const char\fI\ *string\fP, int\fI\ string_size\fP, const char\fI\ *target_characters\fP, char\fI\ escape_character\fP, grn_obj\fI\ *escaped_string\fP)
28581
- Escapes \fBtarget_characters\fP in \fBstring\fP by \fBescape_character\fP\&.
28557
+
28558
+ .nf
28559
+ \(ga\(ga
28560
+ .fi
28561
+ string\(ga\(ga中の\(ga\(gatarget_characters\(ga\(gaは\(ga\(gaescape_character\(ga\(gaによってエスケープされます。
28582
28562
  .INDENT 7.0
28583
28563
  .TP
28584
28564
  .B パラメタ
28585
28565
  .INDENT 7.0
28586
28566
  .IP \(bu 2
28587
- \fBctx\fP \-\- Its encoding must be the same encoding of \fBstring\fP\&.
28588
- It is used for allocating buffer for \fBescaped_string\fP\&.
28567
+ \fBctx\fP \-\- エンコーディングは\(ga\(gastring\(ga\(gaと同じでなければいけません。
28568
+ .nf
28569
+ \(ga\(ga
28570
+ .fi
28571
+ escaped_string\(ga\(gaのバッファ確保のために利用されます。
28589
28572
  .IP \(bu 2
28590
- \fBstring\fP \-\- String expression representation.
28573
+ \fBstring\fP \-\- 文字列式表現
28591
28574
  .IP \(bu 2
28592
- \fBstring_size\fP \-\- The byte size of \fBstring\fP\&. \fB\-1\fP means \fBstring\fP
28593
- is NULL terminated string.
28575
+ \fBstring_size\fP \-\- \fBstring\(ga\(gaのバイトサイズが\fP\-1\(ga\(gaの場合は\(ga\(gastring\(ga\(gaがNULL終端文字列であることを意味しています。
28594
28576
  .IP \(bu 2
28595
- \fBtarget_characters\fP \-\- NULL terminated escape target characters.
28596
- For example, \fB"+\-><~*()\e"\e\e:"\fP is
28597
- \fBtarget_characters\fP for
28598
- \fB/reference/grn_expr/query_syntax\fP\&.
28577
+ \fBtarget_characters\fP \-\- NULL終端されたエスケープ対象文字。たとえば、
28578
+ .nf
28579
+ \(ga\(ga
28580
+ .fi
28581
+ "+\-><~*()"\e:"\fIは\(ga\(gatarget_characters\(ga\(gaと:doc:\fP/reference/grn_expr/query_syntax\(gaで説明されています。
28599
28582
  .IP \(bu 2
28600
- \fBescape_character\fP \-\- The character to use escape a character in
28601
- \fBtarget_characters\fP\&. For example, \fB\e\e\fP
28602
- (backslash) is \fBescaped_character\fP for
28603
- \fB/reference/grn_expr/query_syntax\fP\&.
28583
+ \fBescape_character\fP \-\- エスケープ用の文字として\(ga\(gatarget_characters\(ga\(gaに指定するもの。たとえば、\fB\e\e\fP が\(ga\(gaescaped_character\(ga\(gaとして:doc:
28584
+ .nf
28585
+ \(ga
28586
+ .fi
28587
+ /reference/grn_expr/query_syntax\(gaに説明されています。
28604
28588
  .IP \(bu 2
28605
- \fBescaped_string\fP \-\- The output of escaped \fBstring\fP\&. It should be
28606
- text typed bulk.
28589
+ \fBescaped_string\fP \-\- エスケープされた\(ga\(gastring\(ga\(gaの出力。テキスト型用のbulkに使用されます。
28607
28590
  .UNINDENT
28608
28591
  .TP
28609
28592
  .B 戻り値
@@ -28619,16 +28602,17 @@ text typed bulk.
28619
28602
  .B パラメタ
28620
28603
  .INDENT 7.0
28621
28604
  .IP \(bu 2
28622
- \fBctx\fP \-\- Its encoding must be the same encoding of \fBquery\fP\&.
28623
- It is used for allocating buffer for \fBescaped_query\fP\&.
28605
+ \fBctx\fP \-\- このエンコーディングは\(ga\(gaquery\(ga\(gaのエンコーディングと同じでなければなりません。
28606
+ .nf
28607
+ \(ga\(ga
28608
+ .fi
28609
+ escaped_query\(ga\(gaのバッファ確保に使われます。
28624
28610
  .IP \(bu 2
28625
28611
  \fBquery\fP \-\- \fB/reference/grn_expr/query_syntax\fP にある文字列式の表現。
28626
28612
  .IP \(bu 2
28627
- \fBquery_size\fP \-\- The byte size of \fBquery\fP\&. \fB\-1\fP means \fBquery\fP
28628
- is NULL terminated string.
28613
+ \fBquery_size\fP \-\- \fBquery\(ga\(gaのバイトサイズ。\fP\-1\(ga\(gaは\(ga\(gaquery\(ga\(gaがNULL終端文字列であることを意味します。
28629
28614
  .IP \(bu 2
28630
- \fBescaped_query\fP \-\- The output of escaped \fBquery\fP\&. It should be
28631
- text typed bulk.
28615
+ \fBescaped_query\fP \-\- エスケープされた\(ga\(gaquery\(ga\(gaの出力。テキスト型用のbulkを返す。
28632
28616
  .UNINDENT
28633
28617
  .TP
28634
28618
  .B 戻り値
@@ -30374,7 +30358,7 @@ It initializes a \fIgrn_expr_var\fP\&.
30374
30358
  .UNINDENT
30375
30359
  .TP
30376
30360
  .B 戻り値
30377
- \fBGRN_SUCCESS\fP\&. It doesn\(aqt fail.
30361
+ \fBGRN_SUCCESS\fP 。この関数は失敗しません。
30378
30362
  .UNINDENT
30379
30363
  .UNINDENT
30380
30364
  .INDENT 0.0
@@ -31349,7 +31333,9 @@ Groongaについてまわりの人に話してください。
31349
31333
  どちらのやり方でも大丈夫です。
31350
31334
  .SS 課題追跡システムへ登録する
31351
31335
  .sp
31352
- Groonga用の課題追跡システム(ITS, Issue Tracking System)が2つあります。1つは \fI\%Redmine\fP でもう1つは \fI\%GitHub issue tracker\fP です。Redmineは日本語を使っていて、GitHub issue trackerは英語または日本語(できれば英語、苦手なら日本語でも可)を使っています。どちらにバグレポートをしても大丈夫です。
31336
+ Groongaプロジェクトは \fI\%Github issue tracker\fP を使っています。
31337
+ .sp
31338
+ GitHub issue tracker へのバグレポートは英語または日本語で大丈夫です。
31353
31339
  .SS メーリングリストへ報告する
31354
31340
  .sp
31355
31341
  GroongaプロジェクトではGroongaについて議論するための \fB/community\fP があります。バグを説明したメールを送ってください。