rroonga 4.0.3-x64-mingw32 → 4.0.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (683) hide show
  1. checksums.yaml +13 -5
  2. data/Gemfile +1 -1
  3. data/README.textile +1 -1
  4. data/Rakefile +8 -1
  5. data/bin/grndump +1 -1
  6. data/bin/grntest-log-analyze +1 -1
  7. data/bin/groonga-database-inspect +1 -1
  8. data/bin/groonga-index-dump +1 -1
  9. data/doc/text/news.textile +28 -0
  10. data/ext/groonga/extconf.rb +12 -2
  11. data/ext/groonga/rb-grn-accessor.c +2 -1
  12. data/ext/groonga/rb-grn-array-cursor.c +1 -1
  13. data/ext/groonga/rb-grn-array.c +1 -1
  14. data/ext/groonga/rb-grn-column.c +1 -1
  15. data/ext/groonga/rb-grn-context.c +7 -5
  16. data/ext/groonga/rb-grn-database.c +1 -1
  17. data/ext/groonga/rb-grn-double-array-trie-cursor.c +1 -1
  18. data/ext/groonga/rb-grn-double-array-trie.c +1 -1
  19. data/ext/groonga/rb-grn-encoding-support.c +1 -1
  20. data/ext/groonga/rb-grn-encoding.c +1 -1
  21. data/ext/groonga/rb-grn-exception.c +1 -1
  22. data/ext/groonga/rb-grn-expression-builder.c +1 -1
  23. data/ext/groonga/rb-grn-expression.c +1 -1
  24. data/ext/groonga/rb-grn-fix-size-column.c +1 -1
  25. data/ext/groonga/rb-grn-geo-point.c +1 -1
  26. data/ext/groonga/rb-grn-hash-cursor.c +1 -1
  27. data/ext/groonga/rb-grn-hash.c +1 -1
  28. data/ext/groonga/rb-grn-index-column.c +1 -1
  29. data/ext/groonga/rb-grn-index-cursor.c +1 -1
  30. data/ext/groonga/rb-grn-logger.c +1 -1
  31. data/ext/groonga/rb-grn-normalizer.c +1 -1
  32. data/ext/groonga/rb-grn-object.c +71 -45
  33. data/ext/groonga/rb-grn-operator.c +1 -1
  34. data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
  35. data/ext/groonga/rb-grn-patricia-trie.c +1 -1
  36. data/ext/groonga/rb-grn-plugin.c +1 -1
  37. data/ext/groonga/rb-grn-posting.c +1 -1
  38. data/ext/groonga/rb-grn-procedure-type.c +40 -0
  39. data/ext/groonga/rb-grn-procedure.c +17 -4
  40. data/ext/groonga/rb-grn-query-logger.c +1 -1
  41. data/ext/groonga/rb-grn-record.c +1 -1
  42. data/ext/groonga/rb-grn-snippet.c +1 -1
  43. data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
  44. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  45. data/ext/groonga/rb-grn-table-key-support.c +1 -1
  46. data/ext/groonga/rb-grn-table.c +3 -2
  47. data/ext/groonga/rb-grn-type.c +1 -1
  48. data/ext/groonga/rb-grn-utils.c +1 -1
  49. data/ext/groonga/rb-grn-variable-size-column.c +55 -27
  50. data/ext/groonga/rb-grn-variable.c +1 -1
  51. data/ext/groonga/rb-grn.h +4 -2
  52. data/ext/groonga/rb-groonga.c +3 -2
  53. data/extconf.rb +1 -1
  54. data/lib/1.9/groonga.so +0 -0
  55. data/lib/2.0/groonga.so +0 -0
  56. data/lib/2.1/groonga.so +0 -0
  57. data/lib/groonga/column.rb +1 -1
  58. data/lib/groonga/context/command-executor.rb +1 -1
  59. data/lib/groonga/context.rb +1 -1
  60. data/lib/groonga/database-inspector.rb +1 -1
  61. data/lib/groonga/database.rb +1 -1
  62. data/lib/groonga/dumper.rb +1 -1
  63. data/lib/groonga/expression-builder-19.rb +1 -1
  64. data/lib/groonga/expression-builder.rb +1 -1
  65. data/lib/groonga/geo-point.rb +1 -1
  66. data/lib/groonga/grntest-log.rb +1 -1
  67. data/lib/groonga/index-column.rb +1 -1
  68. data/lib/groonga/logger.rb +1 -1
  69. data/lib/groonga/memory-pool.rb +1 -2
  70. data/lib/groonga/pagination.rb +1 -1
  71. data/lib/groonga/patricia-trie.rb +1 -1
  72. data/lib/groonga/posting.rb +1 -1
  73. data/lib/groonga/query-logger.rb +1 -1
  74. data/lib/groonga/record.rb +6 -2
  75. data/lib/groonga/schema.rb +1 -1
  76. data/lib/groonga/statistic-measurer.rb +1 -1
  77. data/lib/groonga/sub-records.rb +1 -1
  78. data/lib/groonga/table.rb +1 -1
  79. data/lib/groonga.rb +1 -1
  80. data/misc/grnop2ruby.rb +1 -1
  81. data/rroonga-build.rb +4 -4
  82. data/rroonga.gemspec +3 -3
  83. data/test/groonga-test-utils.rb +4 -4
  84. data/test/run-test.rb +1 -1
  85. data/test/test-accessor.rb +1 -1
  86. data/test/test-array.rb +1 -1
  87. data/test/test-column.rb +1 -1
  88. data/test/test-command-select.rb +1 -1
  89. data/test/test-context.rb +21 -16
  90. data/test/test-convert.rb +1 -1
  91. data/test/test-database-dumper.rb +1 -1
  92. data/test/test-database-inspector.rb +1 -1
  93. data/test/test-database.rb +38 -25
  94. data/test/test-double-array-trie.rb +1 -1
  95. data/test/test-encoding.rb +1 -1
  96. data/test/test-exception.rb +12 -7
  97. data/test/test-expression-builder.rb +1 -1
  98. data/test/test-expression.rb +1 -1
  99. data/test/test-fix-size-column.rb +1 -1
  100. data/test/test-geo-point.rb +1 -1
  101. data/test/test-gqtp.rb +1 -1
  102. data/test/test-hash.rb +1 -1
  103. data/test/test-index-column.rb +1 -1
  104. data/test/test-index-cursor.rb +1 -1
  105. data/test/test-lock-timeout.rb +1 -1
  106. data/test/test-logger.rb +1 -1
  107. data/test/test-memory-pool.rb +1 -1
  108. data/test/test-normalizer.rb +1 -1
  109. data/test/test-pagination.rb +1 -1
  110. data/test/test-patricia-trie.rb +1 -1
  111. data/test/test-plugin.rb +1 -1
  112. data/test/test-procedure.rb +9 -2
  113. data/test/test-record.rb +1 -1
  114. data/test/test-remote.rb +1 -1
  115. data/test/test-schema-create-table.rb +1 -1
  116. data/test/test-schema-dumper.rb +1 -1
  117. data/test/test-schema-type.rb +1 -1
  118. data/test/test-schema.rb +1 -1
  119. data/test/test-snippet.rb +1 -1
  120. data/test/test-statistic-measurer.rb +1 -1
  121. data/test/test-sub-records.rb +1 -1
  122. data/test/test-table-dumper.rb +1 -1
  123. data/test/test-table-key-support.rb +1 -1
  124. data/test/test-table-offset-and-limit.rb +1 -1
  125. data/test/test-table-select-mecab.rb +1 -1
  126. data/test/test-table-select-normalize.rb +1 -1
  127. data/test/test-table-select-weight.rb +1 -1
  128. data/test/test-table-select.rb +1 -1
  129. data/test/test-table-traverse.rb +1 -1
  130. data/test/test-table.rb +1 -1
  131. data/test/test-type.rb +1 -1
  132. data/test/test-variable-size-column.rb +136 -67
  133. data/test/test-variable.rb +1 -1
  134. data/test/test-vector-column.rb +1 -1
  135. data/test/test-version.rb +1 -1
  136. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  137. data/vendor/local/bin/groonga.exe +0 -0
  138. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  139. data/vendor/local/bin/libgroonga-0.dll +0 -0
  140. data/vendor/local/bin/libmecab-1.dll +0 -0
  141. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  142. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  143. data/vendor/local/bin/libstdc++-6.dll +0 -0
  144. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  145. data/vendor/local/bin/mecab-config +0 -0
  146. data/vendor/local/bin/mecab.exe +0 -0
  147. data/vendor/local/include/groonga/groonga/plugin.h +11 -83
  148. data/vendor/local/include/groonga/groonga/tokenizer.h +10 -5
  149. data/vendor/local/include/groonga/groonga.h +38 -5
  150. data/vendor/local/include/msgpack/fbuffer.h +47 -0
  151. data/vendor/local/include/msgpack/fbuffer.hpp +56 -0
  152. data/vendor/local/include/msgpack/object.hpp +12 -3
  153. data/vendor/local/include/msgpack/pack.h +7 -3
  154. data/vendor/local/include/msgpack/pack.hpp +26 -7
  155. data/vendor/local/include/msgpack/pack_template.h +34 -7
  156. data/vendor/local/include/msgpack/sbuffer.h +3 -2
  157. data/vendor/local/include/msgpack/sbuffer.hpp +1 -1
  158. data/vendor/local/include/msgpack/sysdep.h +27 -14
  159. data/vendor/local/include/msgpack/type/define.hpp +747 -561
  160. data/vendor/local/include/msgpack/type/float.hpp +24 -4
  161. data/vendor/local/include/msgpack/type/int.hpp +78 -13
  162. data/vendor/local/include/msgpack/type/tr1/unordered_map.hpp +31 -10
  163. data/vendor/local/include/msgpack/type/tr1/unordered_set.hpp +30 -10
  164. data/vendor/local/include/msgpack/type.hpp +2 -1
  165. data/vendor/local/include/msgpack/unpack.h +9 -9
  166. data/vendor/local/include/msgpack/unpack_define.h +16 -14
  167. data/vendor/local/include/msgpack/unpack_template.h +19 -8
  168. data/vendor/local/include/msgpack/version.h +1 -1
  169. data/vendor/local/include/msgpack/vrefbuffer.h +10 -9
  170. data/vendor/local/include/msgpack/vrefbuffer.hpp +4 -2
  171. data/vendor/local/include/msgpack/zbuffer.h +3 -2
  172. data/vendor/local/include/msgpack/zbuffer.hpp +4 -2
  173. data/vendor/local/include/msgpack/zone.h +5 -4
  174. data/vendor/local/include/msgpack/zone.hpp +10 -1
  175. data/vendor/local/include/msgpack.h +1 -0
  176. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  177. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  178. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  179. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +1 -1
  180. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  181. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  182. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  183. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +1 -1
  184. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  185. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  186. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  187. data/vendor/local/lib/groonga/plugins/table/table.la +1 -1
  188. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  189. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  190. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  191. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  192. data/vendor/local/lib/libgroonga.a +0 -0
  193. data/vendor/local/lib/libgroonga.dll.a +0 -0
  194. data/vendor/local/lib/libgroonga.la +1 -1
  195. data/vendor/local/lib/libmecab.a +0 -0
  196. data/vendor/local/lib/libmecab.dll.a +0 -0
  197. data/vendor/local/lib/libmecab.la +2 -2
  198. data/vendor/local/lib/libmsgpack.a +0 -0
  199. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  200. data/vendor/local/lib/libmsgpack.la +1 -1
  201. data/vendor/local/lib/libmsgpackc.a +0 -0
  202. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  203. data/vendor/local/lib/libmsgpackc.la +1 -1
  204. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  205. data/vendor/local/lib/pkgconfig/msgpack.pc +10 -0
  206. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  207. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  208. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  209. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  210. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  211. data/vendor/local/sbin/groonga-httpd-restart +0 -0
  212. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  213. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +2 -6
  214. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -26
  215. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +9 -5
  216. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +13 -15
  217. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  218. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
  219. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  220. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
  222. data/vendor/local/share/doc/groonga/en/html/_sources/news/1.3.x.txt +49 -0
  223. data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +617 -0
  224. data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +536 -0
  225. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +149 -1194
  226. data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/plugin.txt +122 -3
  227. data/vendor/local/share/doc/groonga/en/html/_sources/reference/columns/vector.txt +0 -1
  228. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/check.txt +50 -55
  229. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +25 -31
  230. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_remove.txt +26 -29
  231. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/define_selector.txt +20 -26
  232. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt +26 -29
  233. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/dump.txt +28 -28
  234. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +20 -26
  235. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_put.txt +20 -26
  236. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_reopen.txt +29 -34
  237. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalizer_list.txt +3 -3
  238. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/quit.txt +20 -20
  239. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +2 -2
  240. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/shutdown.txt +19 -20
  241. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +19 -24
  242. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +78 -87
  243. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_list.txt +20 -22
  244. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +19 -24
  245. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +27 -0
  246. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenizer_list.txt +3 -3
  247. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +17 -5
  248. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +17 -8
  249. data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +2 -2
  250. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +132 -0
  251. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +100 -0
  252. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +1 -1
  253. data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +1 -1
  254. data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/mmap_cannot_allocate_memory.txt +1 -1
  255. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +6 -2
  256. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +3 -2
  257. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +28 -25
  258. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +26 -21
  259. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +3 -3
  260. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +17 -12
  261. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +44 -42
  262. data/vendor/local/share/doc/groonga/en/html/_static/basic.css +0 -18
  263. data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +2 -0
  264. data/vendor/local/share/doc/groonga/en/html/characteristic.html +17 -19
  265. data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
  266. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
  267. data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
  268. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
  269. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +17 -19
  270. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
  271. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
  272. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
  273. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
  274. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
  275. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +17 -19
  276. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
  277. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
  278. data/vendor/local/share/doc/groonga/en/html/contribution.html +17 -19
  279. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +17 -19
  280. data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
  281. data/vendor/local/share/doc/groonga/en/html/genindex.html +136 -26
  282. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +17 -19
  283. data/vendor/local/share/doc/groonga/en/html/index.html +56 -56
  284. data/vendor/local/share/doc/groonga/en/html/install/centos.html +43 -50
  285. data/vendor/local/share/doc/groonga/en/html/install/debian.html +59 -35
  286. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +40 -44
  287. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +20 -22
  288. data/vendor/local/share/doc/groonga/en/html/install/others.html +21 -23
  289. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +20 -22
  290. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +33 -35
  291. data/vendor/local/share/doc/groonga/en/html/install/windows.html +26 -28
  292. data/vendor/local/share/doc/groonga/en/html/install.html +17 -19
  293. data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -19
  294. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
  295. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +17 -19
  296. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
  297. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +17 -19
  298. data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +160 -0
  299. data/vendor/local/share/doc/groonga/en/html/news/2.x.html +804 -0
  300. data/vendor/local/share/doc/groonga/en/html/news/3.x.html +727 -0
  301. data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
  302. data/vendor/local/share/doc/groonga/en/html/news.html +320 -1367
  303. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  304. data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +19 -21
  305. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +23 -25
  306. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +23 -25
  307. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +19 -21
  308. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +28 -30
  309. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +21 -23
  310. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +21 -23
  311. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +30 -32
  312. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +21 -23
  313. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +21 -23
  314. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +21 -23
  315. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +19 -21
  316. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +21 -23
  317. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +21 -23
  318. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +40 -42
  319. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +20 -22
  320. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +18 -20
  321. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +35 -37
  322. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +25 -27
  323. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +18 -20
  324. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +18 -20
  325. data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +226 -24
  326. data/vendor/local/share/doc/groonga/en/html/reference/api.html +17 -19
  327. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
  328. data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -19
  329. data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +17 -19
  330. data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +17 -20
  331. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
  332. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +17 -19
  333. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +17 -19
  334. data/vendor/local/share/doc/groonga/en/html/reference/command.html +33 -35
  335. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +18 -20
  336. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +73 -85
  337. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +50 -62
  338. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +18 -20
  339. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +18 -20
  340. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +53 -65
  341. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +19 -21
  342. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +45 -57
  343. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +49 -59
  344. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +19 -21
  345. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +47 -51
  346. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +19 -21
  347. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +44 -56
  348. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +45 -57
  349. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +54 -63
  350. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +18 -20
  351. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +21 -23
  352. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +42 -46
  353. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +20 -22
  354. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +18 -20
  355. data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +17 -19
  356. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +18 -20
  357. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +41 -46
  358. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +52 -64
  359. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +201 -213
  360. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +19 -21
  361. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +74 -81
  362. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +42 -54
  363. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +174 -20
  364. data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +20 -22
  365. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +17 -19
  366. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +17 -19
  367. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +31 -24
  368. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +17 -19
  369. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +17 -19
  370. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
  371. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +17 -19
  372. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +38 -27
  373. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +19 -21
  374. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +17 -19
  375. data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -25
  376. data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +17 -19
  377. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +17 -19
  378. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +17 -19
  379. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +17 -19
  380. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +22 -24
  381. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +311 -0
  382. data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +278 -0
  383. data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +42 -44
  384. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +37 -39
  385. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +53 -55
  386. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +39 -41
  387. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +40 -42
  388. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +39 -41
  389. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +17 -19
  390. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +17 -19
  391. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +17 -19
  392. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -23
  393. data/vendor/local/share/doc/groonga/en/html/reference/log.html +18 -20
  394. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +17 -19
  395. data/vendor/local/share/doc/groonga/en/html/reference/output.html +17 -19
  396. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +17 -19
  397. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
  398. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +17 -19
  399. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -19
  400. data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +17 -19
  401. data/vendor/local/share/doc/groonga/en/html/reference/types.html +17 -19
  402. data/vendor/local/share/doc/groonga/en/html/reference.html +41 -41
  403. data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
  404. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  405. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -19
  406. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +18 -20
  407. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +17 -19
  408. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +17 -19
  409. data/vendor/local/share/doc/groonga/en/html/server/http.html +17 -19
  410. data/vendor/local/share/doc/groonga/en/html/server/package.html +17 -19
  411. data/vendor/local/share/doc/groonga/en/html/server.html +17 -19
  412. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +17 -19
  413. data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
  414. data/vendor/local/share/doc/groonga/en/html/spec.html +17 -19
  415. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +17 -19
  416. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +17 -19
  417. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +17 -19
  418. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +17 -19
  419. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +17 -19
  420. data/vendor/local/share/doc/groonga/en/html/suggest.html +17 -19
  421. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
  422. data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
  423. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
  424. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +21 -23
  425. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +28 -29
  426. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +52 -52
  427. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
  428. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +21 -23
  429. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +57 -56
  430. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +22 -24
  431. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +20 -22
  432. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +46 -44
  433. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +17 -19
  434. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +71 -69
  435. data/vendor/local/share/doc/groonga/en/html/tutorial.html +32 -34
  436. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  437. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +2 -6
  438. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -26
  439. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +9 -5
  440. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +13 -15
  441. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  442. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
  443. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  444. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +5 -5
  445. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
  446. data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.3.x.txt +49 -0
  447. data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +617 -0
  448. data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +536 -0
  449. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +149 -1194
  450. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/plugin.txt +122 -3
  451. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/columns/vector.txt +0 -1
  452. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/check.txt +50 -55
  453. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +25 -31
  454. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_remove.txt +26 -29
  455. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/define_selector.txt +20 -26
  456. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt +26 -29
  457. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/dump.txt +28 -28
  458. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +20 -26
  459. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_put.txt +20 -26
  460. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_reopen.txt +29 -34
  461. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalizer_list.txt +3 -3
  462. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/quit.txt +20 -20
  463. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +2 -2
  464. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/shutdown.txt +19 -20
  465. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +19 -24
  466. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +78 -87
  467. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_list.txt +20 -22
  468. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +19 -24
  469. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +27 -0
  470. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenizer_list.txt +3 -3
  471. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +17 -5
  472. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +17 -8
  473. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +2 -2
  474. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +132 -0
  475. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +100 -0
  476. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +1 -1
  477. data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +1 -1
  478. data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/mmap_cannot_allocate_memory.txt +1 -1
  479. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +6 -2
  480. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +3 -2
  481. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +28 -25
  482. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +26 -21
  483. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +3 -3
  484. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +17 -12
  485. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +44 -42
  486. data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +0 -18
  487. data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +2 -0
  488. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
  489. data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
  490. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
  491. data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
  492. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
  493. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +17 -19
  494. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
  495. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
  496. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
  497. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
  498. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +19 -21
  499. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +17 -19
  500. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
  501. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +18 -20
  502. data/vendor/local/share/doc/groonga/ja/html/contribution.html +17 -19
  503. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +17 -19
  504. data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
  505. data/vendor/local/share/doc/groonga/ja/html/genindex.html +136 -26
  506. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +17 -19
  507. data/vendor/local/share/doc/groonga/ja/html/index.html +53 -53
  508. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +44 -50
  509. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +62 -36
  510. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +33 -35
  511. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +20 -22
  512. data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -23
  513. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +20 -22
  514. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +34 -36
  515. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +26 -28
  516. data/vendor/local/share/doc/groonga/ja/html/install.html +17 -19
  517. data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -19
  518. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
  519. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +17 -19
  520. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
  521. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +17 -19
  522. data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +180 -0
  523. data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +950 -0
  524. data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +831 -0
  525. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
  526. data/vendor/local/share/doc/groonga/ja/html/news.html +354 -1643
  527. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  528. data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +19 -21
  529. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -26
  530. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +23 -25
  531. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +19 -21
  532. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +28 -30
  533. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +21 -23
  534. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +21 -23
  535. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +30 -32
  536. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +21 -23
  537. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +21 -23
  538. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +21 -23
  539. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +19 -21
  540. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +21 -23
  541. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +21 -23
  542. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +40 -42
  543. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +20 -22
  544. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +18 -20
  545. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +35 -37
  546. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +25 -27
  547. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +18 -20
  548. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +18 -20
  549. data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +226 -24
  550. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +17 -19
  551. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
  552. data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -19
  553. data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +17 -19
  554. data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +17 -21
  555. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
  556. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +17 -19
  557. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +17 -19
  558. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +33 -35
  559. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +18 -20
  560. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +73 -85
  561. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +50 -62
  562. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +18 -20
  563. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +42 -57
  564. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +53 -65
  565. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +27 -35
  566. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +45 -57
  567. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +49 -59
  568. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +19 -21
  569. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +47 -51
  570. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +19 -21
  571. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +44 -56
  572. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +45 -57
  573. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +54 -63
  574. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +20 -22
  575. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +27 -30
  576. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +42 -46
  577. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +20 -22
  578. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +18 -20
  579. data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +17 -19
  580. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +18 -20
  581. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +41 -46
  582. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +52 -64
  583. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +195 -207
  584. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +19 -21
  585. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +74 -81
  586. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +42 -54
  587. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +172 -21
  588. data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +26 -29
  589. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +17 -19
  590. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +17 -19
  591. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +31 -24
  592. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +17 -19
  593. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +17 -19
  594. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
  595. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +17 -19
  596. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +38 -27
  597. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +19 -21
  598. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +17 -19
  599. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -25
  600. data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +18 -21
  601. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +17 -19
  602. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +17 -19
  603. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +17 -19
  604. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +22 -24
  605. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +294 -0
  606. data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +266 -0
  607. data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +42 -44
  608. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +37 -39
  609. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +55 -62
  610. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +39 -41
  611. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +39 -41
  612. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +39 -41
  613. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +17 -19
  614. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -19
  615. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +17 -19
  616. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -23
  617. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +18 -20
  618. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +17 -19
  619. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +17 -19
  620. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +17 -19
  621. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
  622. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +17 -19
  623. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +17 -19
  624. data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +17 -19
  625. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +17 -19
  626. data/vendor/local/share/doc/groonga/ja/html/reference.html +41 -41
  627. data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
  628. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  629. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -19
  630. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +18 -20
  631. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +17 -19
  632. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +17 -19
  633. data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -19
  634. data/vendor/local/share/doc/groonga/ja/html/server/package.html +17 -19
  635. data/vendor/local/share/doc/groonga/ja/html/server.html +17 -19
  636. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +17 -19
  637. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
  638. data/vendor/local/share/doc/groonga/ja/html/spec.html +17 -19
  639. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +17 -19
  640. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +17 -19
  641. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +17 -19
  642. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +17 -19
  643. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +17 -19
  644. data/vendor/local/share/doc/groonga/ja/html/suggest.html +17 -19
  645. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
  646. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
  647. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
  648. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +24 -26
  649. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +28 -31
  650. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +33 -35
  651. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +20 -22
  652. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
  653. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +43 -43
  654. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +19 -21
  655. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +21 -23
  656. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +39 -38
  657. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +17 -19
  658. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +68 -64
  659. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +29 -31
  660. data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
  661. data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +2 -2
  662. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
  663. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
  664. data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
  665. data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
  666. data/vendor/local/share/groonga/examples/dictionary/html/index.html +2 -2
  667. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.7.2.min.js +4 -0
  668. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-ui-1.8.18.custom.min.js +356 -0
  669. data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
  670. data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
  671. data/vendor/local/share/groonga/html/admin/css/groonga-admin.css +11 -0
  672. data/vendor/local/share/groonga/html/admin/index.html +75 -75
  673. data/vendor/local/share/groonga/html/admin/index.ja.html +301 -0
  674. data/vendor/local/share/groonga/html/admin/js/groonga-admin.ja.js +1372 -0
  675. data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +28 -28
  676. data/vendor/local/share/license/groonga/README.md +49 -0
  677. data/vendor/local/share/man/ja/man1/groonga.1 +1934 -1247
  678. data/vendor/local/share/man/man1/groonga.1 +2008 -1240
  679. metadata +112 -84
  680. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  681. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.6.0.min.js +0 -16
  682. data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-ui-1.8.12.min.js +0 -406
  683. data/vendor/local/share/license/groonga/AUTHORS +0 -17
@@ -1,6 +1,6 @@
1
1
  .\" Man page generated from reStructuredText.
2
2
  .
3
- .TH "GROONGA" "1" "2014 年 0529 日" "4.0.2" "Groonga"
3
+ .TH "GROONGA" "1" "2014 年 0828 日" "4.0.5" "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.2\-x86.exe\fP
100
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-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.2\-x64.exe\fP
112
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-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.2\-x86.zip\fP
127
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-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.2\-x64.zip\fP
139
+ \fI\%http://packages.groonga.org/windows/groonga/groonga\-4.0.5\-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.2.zip\fP
166
+ \fI\%http://packages.groonga.org/source/groonga/groonga\-4.0.5.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.2
179
+ > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-4.0.5
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.2> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
191
+ groonga\-4.0.5> 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.2> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\
200
200
  .sp
201
201
  .nf
202
202
  .ft C
203
- groonga\-4.0.2> cmake \-\-build . \-\-config Release
203
+ groonga\-4.0.5> cmake \-\-build . \-\-config Release
204
204
  .ft P
205
205
  .fi
206
206
  .UNINDENT
@@ -212,7 +212,7 @@ groonga\-4.0.2> cmake \-\-build . \-\-config Release
212
212
  .sp
213
213
  .nf
214
214
  .ft C
215
- groonga\-4.0.2> cmake \-\-build . \-\-config Release \-\-target Install
215
+ groonga\-4.0.5> cmake \-\-build . \-\-config Release \-\-target Install
216
216
  .ft P
217
217
  .fi
218
218
  .UNINDENT
@@ -270,9 +270,9 @@ groonga\-4.0.2> 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.2.tar.gz
274
- % tar xvzf groonga\-4.0.2.tar.gz
275
- % cd groonga\-4.0.2
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
276
276
  .ft P
277
277
  .fi
278
278
  .UNINDENT
@@ -318,25 +318,6 @@ configureを実行します( \fBconfigure\fP のオプションについては
318
318
  このセクションではDebian GNU/Linux上でGroonga関連のdebパッケージをインストールする方法を説明します。これらのパッケージは \fBapt\fP でインストールできます。
319
319
  .sp
320
320
  32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
321
- .sp
322
- \fBノート:\fP
323
- .INDENT 0.0
324
- .INDENT 3.5
325
- \(aqgroonga\(aqパッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
326
- .sp
327
- サーバー用途のための3つのパッケージがあります。
328
- .INDENT 0.0
329
- .IP \(bu 2
330
- groonga\-server\-http (簡易HTTPサーバー)
331
- .IP \(bu 2
332
- groonga\-httpd (nginxを元にしたHTTPサーバー)
333
- .IP \(bu 2
334
- groonga\-server\-gqtp (GQTPサーバー)
335
- .UNINDENT
336
- .sp
337
- 詳細は \fB/server\fP を参照してください。
338
- .UNINDENT
339
- .UNINDENT
340
321
  .SS wheezy
341
322
  .sp
342
323
  Groongaのaptリポジトリを追加します。
@@ -369,6 +350,25 @@ deb\-src http://packages.groonga.org/debian/ wheezy main
369
350
  .UNINDENT
370
351
  .UNINDENT
371
352
  .sp
353
+ \fBノート:\fP
354
+ .INDENT 0.0
355
+ .INDENT 3.5
356
+ \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
357
+ .sp
358
+ サーバー用途のための3つのパッケージがあります。
359
+ .INDENT 0.0
360
+ .IP \(bu 2
361
+ groonga\-server\-http (簡易HTTPサーバー)
362
+ .IP \(bu 2
363
+ groonga\-httpd (nginxを元にしたHTTPサーバー)
364
+ .IP \(bu 2
365
+ groonga\-server\-gqtp (GQTPサーバー)
366
+ .UNINDENT
367
+ .sp
368
+ 詳細は \fB/server\fP を参照してください。
369
+ .UNINDENT
370
+ .UNINDENT
371
+ .sp
372
372
  \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
373
373
  .sp
374
374
  groonga\-tokenizer\-mecabパッケージのインストール:
@@ -442,6 +442,25 @@ deb\-src http://packages.groonga.org/debian/ jessie main
442
442
  .UNINDENT
443
443
  .UNINDENT
444
444
  .sp
445
+ \fBノート:\fP
446
+ .INDENT 0.0
447
+ .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
+ .sp
460
+ 詳細は \fB/server\fP を参照してください。
461
+ .UNINDENT
462
+ .UNINDENT
463
+ .sp
445
464
  \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
446
465
  .sp
447
466
  groonga\-tokenizer\-mecabパッケージのインストール:
@@ -515,6 +534,25 @@ deb\-src http://packages.groonga.org/debian/ unstable main
515
534
  .UNINDENT
516
535
  .UNINDENT
517
536
  .sp
537
+ \fBノート:\fP
538
+ .INDENT 0.0
539
+ .INDENT 3.5
540
+ \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
541
+ .sp
542
+ サーバー用途のための3つのパッケージがあります。
543
+ .INDENT 0.0
544
+ .IP \(bu 2
545
+ groonga\-server\-http (簡易HTTPサーバー)
546
+ .IP \(bu 2
547
+ groonga\-httpd (nginxを元にしたHTTPサーバー)
548
+ .IP \(bu 2
549
+ groonga\-server\-gqtp (GQTPサーバー)
550
+ .UNINDENT
551
+ .sp
552
+ 詳細は \fB/server\fP を参照してください。
553
+ .UNINDENT
554
+ .UNINDENT
555
+ .sp
518
556
  \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
519
557
  .sp
520
558
  groonga\-tokenizer\-mecabパッケージのインストール:
@@ -576,9 +614,9 @@ Groongaをビルドするために必要なパッケージをインストール
576
614
  .sp
577
615
  .nf
578
616
  .ft C
579
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.2.tar.gz
580
- % tar xvzf groonga\-4.0.2.tar.gz
581
- % cd groonga\-4.0.2
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
582
620
  .ft P
583
621
  .fi
584
622
  .UNINDENT
@@ -624,25 +662,6 @@ configureを実行します( \fBconfigure\fP のオプションについては
624
662
  このセクションではUbuntu上でGroonga関連のdebパッケージをインストールする方法を説明します。これらのパッケージは \fBapt\fP でインストールできます。
625
663
  .sp
626
664
  32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
627
- .sp
628
- \fBノート:\fP
629
- .INDENT 0.0
630
- .INDENT 3.5
631
- \(aqgroonga\(aqパッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
632
- .sp
633
- サーバー用途のための3つのパッケージがあります。
634
- .INDENT 0.0
635
- .IP \(bu 2
636
- groonga\-server\-http (簡易HTTPサーバー)
637
- .IP \(bu 2
638
- groonga\-httpd (nginxを元にしたHTTPサーバー)
639
- .IP \(bu 2
640
- groonga\-server\-gqtp (GQTPサーバー)
641
- .UNINDENT
642
- .sp
643
- 詳細は \fB/server\fP を参照してください。
644
- .UNINDENT
645
- .UNINDENT
646
665
  .SS PPA(Personal Package Archive)
647
666
  .sp
648
667
  Ubuntu用のGroongaのAPTリポジトリーはLaunchpad上のPPA(Personal Package Archive)を使っています。このPPAからAPTでGroongaをインストールできます。
@@ -699,6 +718,25 @@ Groongaをインストールするためにuniverseリポジトリを有効に
699
718
  .UNINDENT
700
719
  .UNINDENT
701
720
  .sp
721
+ \fBノート:\fP
722
+ .INDENT 0.0
723
+ .INDENT 3.5
724
+ \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
725
+ .sp
726
+ サーバー用途のための3つのパッケージがあります。
727
+ .INDENT 0.0
728
+ .IP \(bu 2
729
+ groonga\-server\-http (簡易HTTPサーバー)
730
+ .IP \(bu 2
731
+ groonga\-httpd (nginxを元にしたHTTPサーバー)
732
+ .IP \(bu 2
733
+ groonga\-server\-gqtp (GQTPサーバー)
734
+ .UNINDENT
735
+ .sp
736
+ 詳細は \fB/server\fP を参照してください。
737
+ .UNINDENT
738
+ .UNINDENT
739
+ .sp
702
740
  \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
703
741
  .sp
704
742
  groonga\-tokenizer\-mecabパッケージのインストール:
@@ -760,9 +798,9 @@ Groongaをビルドするために必要なパッケージをインストール
760
798
  .sp
761
799
  .nf
762
800
  .ft C
763
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.2.tar.gz
764
- % tar xvzf groonga\-4.0.2.tar.gz
765
- % cd groonga\-4.0.2
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
766
804
  .ft P
767
805
  .fi
768
806
  .UNINDENT
@@ -805,28 +843,9 @@ configureを実行します( \fBconfigure\fP のオプションについては
805
843
  .UNINDENT
806
844
  .SS CentOS
807
845
  .sp
808
- このセクションではCentOS上でGroonga関連のPRMパッケージをインストールする方法を説明します。これらのパッケージは \fByum\fP でインストールできます。
846
+ このセクションではCentOS上でGroonga関連のRPMパッケージをインストールする方法を説明します。これらのパッケージは \fByum\fP でインストールできます。
809
847
  .sp
810
848
  32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
811
- .sp
812
- \fBノート:\fP
813
- .INDENT 0.0
814
- .INDENT 3.5
815
- \(aqgroonga\(aqパッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
816
- .sp
817
- サーバー用途のための3つのパッケージがあります。
818
- .INDENT 0.0
819
- .IP \(bu 2
820
- groonga\-server\-http (簡易HTTPサーバー)
821
- .IP \(bu 2
822
- groonga\-httpd (nginxを元にしたHTTPサーバー)
823
- .IP \(bu 2
824
- groonga\-server\-gqtp (GQTPサーバー)
825
- .UNINDENT
826
- .sp
827
- 詳細は \fB/server\fP を参照してください。
828
- .UNINDENT
829
- .UNINDENT
830
849
  .SS CentOS 5
831
850
  .sp
832
851
  インストール:
@@ -843,41 +862,34 @@ groonga\-server\-gqtp (GQTPサーバー)
843
862
  .UNINDENT
844
863
  .UNINDENT
845
864
  .sp
846
- \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
847
- .sp
848
- groonga\-tokenizer\-mecabパッケージのインストール:
865
+ \fBノート:\fP
849
866
  .INDENT 0.0
850
867
  .INDENT 3.5
868
+ \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
851
869
  .sp
852
- .nf
853
- .ft C
854
- % sudo yum install \-y groonga\-tokenizer\-mecab
855
- .ft P
856
- .fi
857
- .UNINDENT
858
- .UNINDENT
859
- .sp
860
- それからMeCabの辞書をインストールします。(mecab\-ipadicもしくはmecab\-jumandic)
861
- .sp
862
- IPA辞書をインストールします:
870
+ サーバー用途のための3つのパッケージがあります。
863
871
  .INDENT 0.0
864
- .INDENT 3.5
872
+ .IP \(bu 2
873
+ groonga\-server\-http (簡易HTTPサーバー)
874
+ .IP \(bu 2
875
+ groonga\-httpd (nginxを元にしたHTTPサーバー)
876
+ .IP \(bu 2
877
+ groonga\-server\-gqtp (GQTPサーバー)
878
+ .UNINDENT
865
879
  .sp
866
- .nf
867
- .ft C
868
- % sudo yum install \-y mecab\-ipadic
869
- .ft P
870
- .fi
880
+ 詳細は \fB/server\fP を参照してください。
871
881
  .UNINDENT
872
882
  .UNINDENT
873
883
  .sp
874
- あるいはJuman辞書をインストールします:
884
+ \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
885
+ .sp
886
+ groonga\-tokenizer\-mecabパッケージのインストール:
875
887
  .INDENT 0.0
876
888
  .INDENT 3.5
877
889
  .sp
878
890
  .nf
879
891
  .ft C
880
- % sudo yum install \-y mecab\-jumandic
892
+ % sudo yum install \-y groonga\-tokenizer\-mecab
881
893
  .ft P
882
894
  .fi
883
895
  .UNINDENT
@@ -972,41 +984,34 @@ groonga\-normalizer\-mysqlパッケージのインストール:
972
984
  .UNINDENT
973
985
  .UNINDENT
974
986
  .sp
975
- \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
976
- .sp
977
- groonga\-tokenizer\-mecabパッケージのインストール:
987
+ \fBノート:\fP
978
988
  .INDENT 0.0
979
989
  .INDENT 3.5
990
+ \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
980
991
  .sp
981
- .nf
982
- .ft C
983
- % sudo yum install \-y groonga\-tokenizer\-mecab
984
- .ft P
985
- .fi
986
- .UNINDENT
987
- .UNINDENT
988
- .sp
989
- それからMeCabの辞書をインストールします。(mecab\-ipadicもしくはmecab\-jumandic)
990
- .sp
991
- IPA辞書をインストールします:
992
+ サーバー用途のための3つのパッケージがあります。
992
993
  .INDENT 0.0
993
- .INDENT 3.5
994
+ .IP \(bu 2
995
+ groonga\-server\-http (簡易HTTPサーバー)
996
+ .IP \(bu 2
997
+ groonga\-httpd (nginxを元にしたHTTPサーバー)
998
+ .IP \(bu 2
999
+ groonga\-server\-gqtp (GQTPサーバー)
1000
+ .UNINDENT
994
1001
  .sp
995
- .nf
996
- .ft C
997
- % sudo yum install \-y mecab\-ipadic
998
- .ft P
999
- .fi
1002
+ 詳細は \fB/server\fP を参照してください。
1000
1003
  .UNINDENT
1001
1004
  .UNINDENT
1002
1005
  .sp
1003
- あるいはJuman辞書をインストールします:
1006
+ \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
1007
+ .sp
1008
+ groonga\-tokenizer\-mecabパッケージのインストール:
1004
1009
  .INDENT 0.0
1005
1010
  .INDENT 3.5
1006
1011
  .sp
1007
1012
  .nf
1008
1013
  .ft C
1009
- % sudo yum install \-y mecab\-jumandic
1014
+ % sudo yum install \-y groonga\-tokenizer\-mecab
1010
1015
  .ft P
1011
1016
  .fi
1012
1017
  .UNINDENT
@@ -1078,9 +1083,9 @@ Groongaをビルドするために必要なパッケージをインストール
1078
1083
  .sp
1079
1084
  .nf
1080
1085
  .ft C
1081
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.2.tar.gz
1082
- % tar xvzf groonga\-4.0.2.tar.gz
1083
- % cd groonga\-4.0.2
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
1084
1089
  .ft P
1085
1090
  .fi
1086
1091
  .UNINDENT
@@ -1128,30 +1133,11 @@ configureを実行します( \fBconfigure\fP のオプションについては
1128
1133
  \fBノート:\fP
1129
1134
  .INDENT 0.0
1130
1135
  .INDENT 3.5
1131
- 3.0.2のリリースから、Groonga関連のRPMパッケージはFedoraの公式yumリポジトリでリリースしています。GroongaのyumリポジトリのかわりにFedoraの公式リポジトリを使います。ただ、いくつか例外があって、 \fBgroonga\-normalizer\-mysql\fP や MeCabの辞書 ( \fBmecab\-ipadic\fP や \fBmecab\-jumandic\fP )パッケージを使うにはGroongaのyumリポジトリを使います。将来的には \fBgroonga\-normalizer\-mysql\fP もFedora公式のyumリポジトリで提供することを計画しています。
1136
+ 3.0.2のリリースから、Groonga関連のRPMパッケージはFedoraの公式yumリポジトリでリリースしています。GroongaのyumリポジトリのかわりにFedoraの公式リポジトリを使います。ただ、いくつか例外があって、MeCabの辞書( \fBmecab\-ipadic\fP や \fBmecab\-jumandic\fP )パッケージを使うにはGroongaのyumリポジトリを使います。
1132
1137
  .UNINDENT
1133
1138
  .UNINDENT
1134
1139
  .sp
1135
1140
  32\-bit用と64\-bit用のパッケージを配布していますが、サーバ用途には64\-bitパッケージを利用することをオススメします。32\-bit用パッケージはテスト用か開発用にだけ使って下さい。32\-bit用パッケージを使った場合は、中程度のサイズのデータでもメモリ不足エラーになることがあります。
1136
- .sp
1137
- \fBノート:\fP
1138
- .INDENT 0.0
1139
- .INDENT 3.5
1140
- \(aqgroonga\(aqパッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
1141
- .sp
1142
- サーバー用途のための3つのパッケージがあります。
1143
- .INDENT 0.0
1144
- .IP \(bu 2
1145
- groonga\-server\-http (簡易HTTPサーバー)
1146
- .IP \(bu 2
1147
- groonga\-httpd (nginxを元にしたHTTPサーバー)
1148
- .IP \(bu 2
1149
- groonga\-server\-gqtp (GQTPサーバー)
1150
- .UNINDENT
1151
- .sp
1152
- 詳細は \fB/server\fP を参照してください。
1153
- .UNINDENT
1154
- .UNINDENT
1155
1141
  .SS Fedora 20
1156
1142
  .sp
1157
1143
  インストール:
@@ -1166,7 +1152,7 @@ groonga\-server\-gqtp (GQTPサーバー)
1166
1152
  .UNINDENT
1167
1153
  .UNINDENT
1168
1154
  .sp
1169
- \fBgroonga\-normalizer\-mysql\fP や \fBmecab\-ipadic\fP 、 \fBmecab\-jumandic\fP といったパッケージを使うには Groongaのyumリポジトリを提供する \fBgroonga\-release\fP パッケージをあらかじめインストールします。
1155
+ \fBmecab\-ipadic\fP 、 \fBmecab\-jumandic\fP といったパッケージを使うには Groongaのyumリポジトリを提供する \fBgroonga\-release\fP パッケージをあらかじめインストールします。
1170
1156
  .INDENT 0.0
1171
1157
  .INDENT 3.5
1172
1158
  .sp
@@ -1179,6 +1165,25 @@ groonga\-server\-gqtp (GQTPサーバー)
1179
1165
  .UNINDENT
1180
1166
  .UNINDENT
1181
1167
  .sp
1168
+ \fBノート:\fP
1169
+ .INDENT 0.0
1170
+ .INDENT 3.5
1171
+ \fBgroonga\fP パッケージは全文検索のための最小構成パッケージです。Groongaをサーバー用途で使うなら、設定済みの追加パッケージをインストールすることができます。
1172
+ .sp
1173
+ サーバー用途のための3つのパッケージがあります。
1174
+ .INDENT 0.0
1175
+ .IP \(bu 2
1176
+ groonga\-server\-http (簡易HTTPサーバー)
1177
+ .IP \(bu 2
1178
+ groonga\-httpd (nginxを元にしたHTTPサーバー)
1179
+ .IP \(bu 2
1180
+ groonga\-server\-gqtp (GQTPサーバー)
1181
+ .UNINDENT
1182
+ .sp
1183
+ 詳細は \fB/server\fP を参照してください。
1184
+ .UNINDENT
1185
+ .UNINDENT
1186
+ .sp
1182
1187
  \fI\%MeCab\fP をトークナイザーとして使いたいときは、groonga\-tokenizer\-mecabパッケージをインストールしてください。
1183
1188
  .sp
1184
1189
  groonga\-tokenizer\-mecabパッケージのインストール:
@@ -1266,9 +1271,9 @@ Groongaをビルドするために必要なパッケージをインストール
1266
1271
  .sp
1267
1272
  .nf
1268
1273
  .ft C
1269
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.2.tar.gz
1270
- % tar xvzf groonga\-4.0.2.tar.gz
1271
- % cd groonga\-4.0.2
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
1272
1277
  .ft P
1273
1278
  .fi
1274
1279
  .UNINDENT
@@ -1332,9 +1337,9 @@ Groongaをビルドするために必要なパッケージをインストール
1332
1337
  .sp
1333
1338
  .nf
1334
1339
  .ft C
1335
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.2.tar.gz
1336
- % gtar xvzf groonga\-4.0.2.tar.gz
1337
- % cd groonga\-4.0.2
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
1338
1343
  .ft P
1339
1344
  .fi
1340
1345
  .UNINDENT
@@ -1455,9 +1460,9 @@ GroongaはGNUビルドシステムを使っています。以下は一番簡単
1455
1460
  .sp
1456
1461
  .nf
1457
1462
  .ft C
1458
- % wget http://packages.groonga.org/source/groonga/groonga\-4.0.2.tar.gz
1459
- % tar xvzf groonga\-4.0.2.tar.gz
1460
- % cd groonga\-4.0.2
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
1461
1466
  % ./configure
1462
1467
  % make
1463
1468
  % sudo make install
@@ -1512,7 +1517,7 @@ GroongaはGNUビルドシステムを使っています。以下は一番簡単
1512
1517
  .sp
1513
1518
  ログファイルのデフォルトのパスを指定します。ログファイルのデフォルトのパスは \fB/reference/executables/groonga\fP の \fB\-\-log\-path\fP コマンドラインオプションで変更できます。そのため、このオプションはそんなに重要なビルドオプションではありません。少し便利にするためのオプションです。
1514
1519
  .sp
1515
- デフォルトは \fB/usr/local/var/log/groonga.log\fP です。 \fB/usr/local/var\fP の部分は \fB\-\-localestatedir\fP オプションで変更できます。
1520
+ デフォルトは \fB/usr/local/var/log/groonga.log\fP です。 \fB/usr/local/var\fP の部分は \fB\-\-localstatedir\fP オプションで変更できます。
1516
1521
  .sp
1517
1522
  以下はログファイルを共有しているNFSディレクトリ \fB/nfs/log/groonga.log\fP に置く例です:
1518
1523
  .INDENT 0.0
@@ -1775,7 +1780,7 @@ groonga \-n DB_PATH
1775
1780
  .UNINDENT
1776
1781
  .UNINDENT
1777
1782
  .sp
1778
- データベースを作成に成功すれば、/tmp/groonga\-databases以下にデータベースを構成するファイルが配置されます。
1783
+ データベースの作成に成功すれば、/tmp/groonga\-databases以下にデータベースを構成するファイルが配置されます。
1779
1784
  .SS データベースの操作
1780
1785
  .sp
1781
1786
  以下の書式は、既存のデータベースを操作する方法を示しています。
@@ -1889,7 +1894,7 @@ Groongaのテーブルには基本的に主キーが必要であり、テーブ
1889
1894
  .sp
1890
1895
  型には数値や文字列などがあります。ここではデータの種類を表しているものという程度に考えてください。詳細は \fB/reference/types\fP に記述されています。主キーの格納方法は、主キーを条件とする検索にかかる時間や、前方一致検索の可否などを左右します。こちらも後で説明します。
1891
1896
  .sp
1892
- それでは、テーブルを作成してみましょう。以下の例では、主キーのあるテーブルを作成します。 \fIname\fP 引数はテーブルの引数を指定します。 \fIflags\fP 引数は主キーの格納方法を指定するために使っています。 \fIkey_type\fP 引数は主キーの型を指定します。
1897
+ それでは、テーブルを作成してみましょう。以下の例では、主キーのあるテーブルを作成します。 \fIname\fP 引数はテーブルの名前を指定します。 \fIflags\fP 引数は主キーの格納方法を指定するために使っています。 \fIkey_type\fP 引数は主キーの型を指定します。
1893
1898
  .sp
1894
1899
  実行例:
1895
1900
  .INDENT 0.0
@@ -2453,7 +2458,7 @@ select \-\-table Site \-\-output_columns _key,title,_score \-\-query title:@test
2453
2458
  .UNINDENT
2454
2459
  .UNINDENT
2455
2460
  .sp
2456
- 上記の例では、_scoreカラムを含む3つのカラムを指定しています。_scoreカラムはgroongaの検索結果に含まれるカラムであり、全文検索の条件に合致するレコードほど高い数値が入ります。
2461
+ 上記の例では、_scoreカラムを含む3つのカラムを指定しています。_scoreカラムはGroongaの検索結果に含まれるカラムであり、全文検索の条件に合致するレコードほど高い数値が入ります。
2457
2462
  .SS 表示範囲指定
2458
2463
  .sp
2459
2464
  \fB/reference/commands/select\fP コマンドにおいて \fIoffset\fP 引数と \fIlimit\fP 引数を用いることで、検索結果の一部のみを表示することができます。大量の検索結果を分割してページ単位で表示したい場合などに有用です。
@@ -2868,7 +2873,7 @@ select \-\-table Site \-\-query title:@test \-\-output_columns _id,_score,title
2868
2873
  現在のバージョンでは、全文検索インデックスが存在する場合にのみ、 \fImatch_columns\fP 引数を利用することができます。通常のカラムでの絞り込みには利用できません。
2869
2874
  .SS リモートアクセス
2870
2875
  .sp
2871
- Groongaをサーバとして起動することにより、ネットワークを介してデータベースにアクセスできるようになります。groongaがサポートしているプロトコルは、Groongaの専用プロトコルであるGQTP、memcachedバイナリプロトコル、HTTPの三種類です。
2876
+ Groongaをサーバとして起動することにより、ネットワークを介してデータベースにアクセスできるようになります。Groongaがサポートしているプロトコルは、Groongaの専用プロトコルであるGQTP、memcachedバイナリプロトコル、HTTPの三種類です。
2872
2877
  .SS Groonga専用プロトコル(GQTP)
2873
2878
  .SS GQTPサーバの起動
2874
2879
  .sp
@@ -2886,7 +2891,7 @@ groonga [\-p PORT_NUMBER] \-s DB_PATH
2886
2891
  .UNINDENT
2887
2892
  .UNINDENT
2888
2893
  .sp
2889
- \fI\-s\fP オプションはGroongaをサーバとして起動するためのオプションです。DB_PATHには既存のデータベースのパスを指定します。 \fI\-p\fP オプションとその引数により、サーバのポート番号を指定することができます。ポート番号を省略した場合は10041が使用されます。
2894
+ \fI\-s\fP オプションはGroongaをサーバとして起動するためのオプションです。DB_PATHには既存のデータベースのパスを指定します。 \fI\-p\fP オプションとその引数により、サーバのポート番号を指定することができます。ポート番号を省略した場合は10043が使用されます。
2890
2895
  .sp
2891
2896
  以下のコマンドにより、デフォルトのポート番号で待ち受けるサーバを起動することができます。サーバは指定されたデータベースへの操作を受け付けます。
2892
2897
  .sp
@@ -2950,7 +2955,7 @@ groonga [\-p PORT_NUMBER] \-c [HOST_NAME_OR_IP_ADDRESS]
2950
2955
  .UNINDENT
2951
2956
  .UNINDENT
2952
2957
  .sp
2953
- 上記のコマンドによって起動されたクライアントは、サーバとの接続に成功すると対話モードに入ります。HOST_NAME_OR_IP_ADDRESSにはサーバのホスト名もしくはIPアドレスを指定します。HOST_NAME_OR_IP_ADDRESSが省略されたときは"localhost"をサーバのホスト名として採用します。また、 \fI\-p\fP オプションとその引数により、サーバのポート番号を指定することができます。ポート番号を省略した場合は10041が使用されます。
2958
+ 上記のコマンドによって起動されたクライアントは、サーバとの接続に成功すると対話モードに入ります。HOST_NAME_OR_IP_ADDRESSにはサーバのホスト名もしくはIPアドレスを指定します。HOST_NAME_OR_IP_ADDRESSが省略されたときは"localhost"をサーバのホスト名として採用します。また、 \fI\-p\fP オプションとその引数により、サーバのポート番号を指定することができます。ポート番号を省略した場合は10043が使用されます。
2954
2959
  .sp
2955
2960
  実行例:
2956
2961
  .INDENT 0.0
@@ -3037,7 +3042,7 @@ groonga [\-p PORT_NUMBER] \-d \-\-protocol http DB_PATH
3037
3042
  .UNINDENT
3038
3043
  .UNINDENT
3039
3044
  .sp
3040
- \fI\-\-protocol\fP オプションとその引数により、サーバのプロトコルを指定することができます。"http"はHTTPサーバの起動を指示しています。
3045
+ \fI\-\-protocol\fP オプションとその引数により、サーバのプロトコルを指定することができます。"http"はHTTPサーバの起動を指示しています。\fI\-p\fP オプションを省略した場合は10041のポート番号が使用されます。
3041
3046
  .sp
3042
3047
  以下のコマンドは、ポート番号80で待ち受けるHTTPサーバをデーモンとして起動します。
3043
3048
  .sp
@@ -3170,7 +3175,7 @@ GroongaをHTTPサーバとして起動しているときは、ブラウザベー
3170
3175
  Groongaのサーバには認証機能がありません。誰でもデータベースの内容を閲覧・修正することができます。iptablesなどを用いてアクセス元IPアドレスを制限することを推奨します。
3171
3176
  .SS いろいろなデータの保存
3172
3177
  .sp
3173
- Groongaは全文検索エンジンを起源として独自のカラムストアを持つに至るわけですが、索引語や文書を保存するだけでなく、数値や文字列、日時や経緯度など、いろいろなデータを保存することができます。本チュートリアルでは、Groongaで保存できるデータの種類、およびに保存の方法を説明します。
3178
+ Groongaは全文検索エンジンを起源として独自のカラムストアを持つに至るわけですが、索引語や文書を保存するだけでなく、数値や文字列、日時や経緯度など、いろいろなデータを保存することができます。本チュートリアルでは、Groongaで保存できるデータの種類、および保存の方法を説明します。
3174
3179
  .SS データの種類
3175
3180
  .sp
3176
3181
  Groongaにおいて利用できる基本型は、真偽値、数値、文字列、日時、経緯度の5種類に大別できます。基本型において、数値は整数・浮動小数点数の違い、符号の有無と割り当てるビット数によって細分化できるほか、文字列は長さの上限によって細分化できます。また、経緯度には測地系による分類があります。詳しくは \fB/reference/types\fP を参照してください。
@@ -3526,7 +3531,7 @@ select \-\-table ToyBox \-\-output_columns _key,location
3526
3531
  .sp
3527
3532
  Groongaでは、テーブル参照のカラム、すなわち関連付けたテーブルを参照するカラムを作成できます。より正確には、カラム作成時に参照先となるテーブルとの関連付けをおこない、参照先テーブルにおけるレコードIDを格納しておくことにより、参照先のレコードにアクセスできるようにします。
3528
3533
  .sp
3529
- テーブル参照のカラムがあるときは、 \fBreference/commands/select\fP コマンドの \fIoutput_columns\fP 引数に "参照元カラム.参照先カラム" と指定することにより、参照先カラムの値を取り出すことができます。参照元カラムのみを指定したときは、 "参照元カラム名._key" と同様の扱いとなり、参照先レコードの主キーが取り出されます。テーブル参照が有効なレコードを指していないときは、参照先カラムのデフォルト値が取り出されるようになっています。
3534
+ テーブル参照のカラムがあるときは、 \fB/reference/commands/select\fP コマンドの \fIoutput_columns\fP 引数に "参照元カラム.参照先カラム" と指定することにより、参照先カラムの値を取り出すことができます。参照元カラムのみを指定したときは、 "参照元カラム名._key" と同様の扱いとなり、参照先レコードの主キーが取り出されます。テーブル参照が有効なレコードを指していないときは、参照先カラムのデフォルト値が取り出されるようになっています。
3530
3535
  .sp
3531
3536
  ここでは、先のチュートリアルで作成したSiteテーブルにlinkという新たなカラムを作成し、サイト間のリンク関係を保存できるようにしてみましょう。
3532
3537
  .sp
@@ -3588,7 +3593,7 @@ select \-\-table Site \-\-output_columns _key,title,link._key,link.title \-\-que
3588
3593
  テーブル参照のカラムを作成するときは、 \fB/reference/commands/column_create\fP コマンドの \fItype\fP 引数に参照先テーブルを指定します。この例では、同じテーブルに含まれる別のレコードを参照させたいので、Siteを指定することになります。次に、 "\fI\%http://example.org/\fP" から "\fI\%http://example.net/\fP" へのリンクを登録しています。テーブル参照を作成するときは、IDではなく主キーを指定することに注意してください。最後に、リンクの内容を確認しています。この例では、 \fIoutput_columns\fP 引数に link._key と link.title を指定しているので、参照先の主キーとタイトルが表示されています。
3589
3594
  .SS ベクターカラム
3590
3595
  .sp
3591
- \fB/reference/commands/column_create\fP コマンドでカラムを作成するとき、 \fIflags\fP 引数にCOLUMN_VECTORフラグを指定すると、 \fItype\fP 引数に指定した型の配列を格納するカラムになります。このようなカラムのことは、ベクターカラムと呼びます。ベクターカラムは、各レコードに複数の値を格納できるため、一対多の参照関係を表すのに便利です。
3596
+ \fB/reference/commands/column_create\fP コマンドでカラムを作成するとき、 \fIflags\fP 引数にCOLUMN_VECTORフラグを指定すると、 \fItype\fP 引数に指定した型の配列を格納するカラムになります。このようなカラムのことを、ベクターカラムと呼びます。ベクターカラムは、各レコードに複数の値を格納できるため、一対多の参照関係を表すのに便利です。
3592
3597
  .sp
3593
3598
  さきほどテーブル参照の例として作成したカラムでは、各サイトに一つのリンクしか保存できませんでした。通常は一つのサイトから多くのサイトにリンクが張られているので、これでは残念な仕様になってしまいます。そこで、ベクターカラムを使って、複数のリンクを保存できるようにしてみましょう。
3594
3599
  .sp
@@ -3656,12 +3661,12 @@ select \-\-table Site \-\-output_columns _key,title,links._key,links.title \-\-q
3656
3661
  .UNINDENT
3657
3662
  .sp
3658
3663
  新たなカラムにはSiteテーブルに対する参照の配列を格納するので、 \fItype\fP 引数にSiteを指定するとともに、 \fIflags\fP 引数にCOLUMN_VECTORフラグを指定しています。次に、 \fB/reference/commands/load\fP による更新では、 "\fI\%http://example.org/\fP" から "\fI\%http://example.net/\fP" へのリンクに加えて、 "\fI\%http://example.org/\fP" と "\fI\%http://example.com/\fP" へのリンクも登録しています。そして、最後にリンクの内容を確認しています。この例では、 \fIoutput_columns\fP 引数に links._key と links.title を指定しているので、参照先の主キーとタイトルをそれぞれ配列にしたものが表示されています。
3659
- .SS さまざまな検索条件の指定
3664
+ .SS さまざまな検索条件
3660
3665
  .sp
3661
3666
  Groongaは、JavaScriptに似た文法での条件絞込や、計算した値を用いたソートを行うことができます。また、位置情報(緯度・経度)を用いた絞込・ソートを行うことができます。
3662
3667
  .SS JavaScriptに似た文法での絞込・全文検索
3663
3668
  .sp
3664
- selectコマンドのfilterパラメータは、queryパラメータと同様に、レコードの検索条件を指定します。filterパラメータとqueryパラメータが異なる点は、filterパラメータには、JavaScriptの式に似た文法で条件を指定する点です。
3669
+ \fBselect\fP コマンドの \fBfilter\fP パラメータは、レコードの検索条件を指定します。 \fBfilter\fP パラメータと \fBquery\fP パラメータでは、 \fBfilter\fP パラメータにはJavaScriptの式に似た文法で条件を指定する点が違います。
3665
3670
  .sp
3666
3671
  実行例:
3667
3672
  .INDENT 0.0
@@ -3703,16 +3708,21 @@ select \-\-table Site \-\-filter "_id <= 1" \-\-output_columns _id,_key
3703
3708
  .UNINDENT
3704
3709
  .UNINDENT
3705
3710
  .sp
3706
- ここで、filterパラメータには
3711
+ 上記クエリの詳細をみてみましょう。 \fBfilter\fP パラメータではこのように条件が指定されています:
3707
3712
  .INDENT 0.0
3708
3713
  .INDENT 3.5
3714
+ .sp
3715
+ .nf
3716
+ .ft C
3709
3717
  _id <= 1
3718
+ .ft P
3719
+ .fi
3710
3720
  .UNINDENT
3711
3721
  .UNINDENT
3712
3722
  .sp
3713
- という条件を指定しています。この場合は_idの値が1以下のレコードが検索結果として得られます。
3723
+ このケースでは、 \fB_id\fP の値が1であるという条件に合致するレコードを返します。
3714
3724
  .sp
3715
- また、&&|| を使って、条件のAND・OR指定をすることもできます。
3725
+ また、 \fB&&\fP \fB||\fP を使って、条件のAND・OR指定をすることもできます。
3716
3726
  .sp
3717
3727
  実行例:
3718
3728
  .INDENT 0.0
@@ -3807,14 +3817,12 @@ select \-\-table Site \-\-filter "_id <= 2 || _id >= 7" \-\-output_columns _id,_
3807
3817
  .UNINDENT
3808
3818
  .UNINDENT
3809
3819
  .sp
3810
- queryパラメータとfilterパラメータを同時に指定すると、両者の条件をともに満たすレコードが結果として返ります。
3811
- .SS scorerを利用したソート
3820
+ \fBquery\fP パラメータと \fBfilter\fP パラメータを同時に指定すると、両者の条件をともに満たすレコードが結果として返ります。
3821
+ .SS \fBscorer\fP を利用したソート
3812
3822
  .sp
3813
- selectコマンドのscorerパラメータは、
3814
- 全文検索を行った結果の各レコードに対して処理を行うためのパラメータです。
3823
+ \fBselect\fP コマンドの \fBscorer\fP パラメータは、 全文検索を行った結果の各レコードに対して処理を行うためのパラメータです。
3815
3824
  .sp
3816
- filterパラメータと同様に、
3817
- JavaScriptの式に似たな文法で様々な条件を指定することができます。
3825
+ \fBfilter\fP パラメータと同様に、 JavaScriptの式に似た文法で様々な条件を指定することができます。
3818
3826
  .sp
3819
3827
  実行例:
3820
3828
  .INDENT 0.0
@@ -3975,46 +3983,58 @@ select \-\-table Site \-\-filter "1" \-\-scorer "_score = rand()" \-\-output_col
3975
3983
  .UNINDENT
3976
3984
  .UNINDENT
3977
3985
  .sp
3978
- 検索結果には、\(aq_score\(aqという名前の、全文検索のスコアが代入されている仮想的なカラムが付与されることをチュートリアル中ソートの項目で説明しました。
3986
+ \(aq_score\(aqは仮想的なカラムです。全文検索のスコアが代入されています。仮想的なカラムの詳細については、 \fB/reference/columns/pseudo\fP を参照してください。
3979
3987
  .sp
3980
- 上記の実行例では、scorerパラメータに
3988
+ 上記のクエリでは \fBscorer\fP パラメータの条件はこのとおりです:
3981
3989
  .INDENT 0.0
3982
3990
  .INDENT 3.5
3991
+ .sp
3992
+ .nf
3993
+ .ft C
3983
3994
  _score = rand()
3995
+ .ft P
3996
+ .fi
3984
3997
  .UNINDENT
3985
3998
  .UNINDENT
3986
3999
  .sp
3987
- という条件を指定しています。ここでは、rand()という乱数を返す関数を用いて、全文検索のスコアを乱数で上書きしています。
4000
+ このケースでは、rand()という乱数を返す関数を用いて、全文検索のスコアを乱数で上書きしています。
3988
4001
  .sp
3989
- sortbyパラメータには、
4002
+ \fBsortby\fP パラメータの条件は次のとおりです:
3990
4003
  .INDENT 0.0
3991
4004
  .INDENT 3.5
4005
+ .sp
4006
+ .nf
4007
+ .ft C
3992
4008
  _score
4009
+ .ft P
4010
+ .fi
3993
4011
  .UNINDENT
3994
4012
  .UNINDENT
3995
4013
  .sp
3996
- を指定しています。これは、スコア順に昇順にソートすることを意味しています。
4014
+ これは、スコア順に検索結果を昇順にソートすることを意味しています。
3997
4015
  .sp
3998
4016
  よって、上記のクエリは実行されるたびに検索結果の並び順がランダムに変わります。
3999
4017
  .SS 位置情報を用いた絞込・ソート
4000
4018
  .sp
4001
4019
  Groongaでは、位置情報(経緯度)を保存することができます。また、保存した経緯度を用いて絞込やソートができます。
4002
4020
  .sp
4003
- 位置情報を保存するためのカラムの型として、TokyoGeoPoint/WGS84GeoPointの2つの型があります。前者は日本測地系、後者は世界測地系(WGS84相当)の経緯度を保存します。
4021
+ Groongaでは位置情報を保存するためのカラムの型として、TokyoGeoPoint/WGS84GeoPointの2つの型があります。前者は日本測地系、後者は世界測地系(WGS84相当)の経緯度を保存します。
4004
4022
  .sp
4005
- 経緯度は以下のいずれかの形式の文字列として指定します。
4023
+ 以下のようにして経緯度を指定します:
4006
4024
  .INDENT 0.0
4007
4025
  .IP \(bu 2
4008
- "[緯度のミリ秒]x[経度のミリ秒]"(例: "128452975x503157902")
4026
+ "経度のミリ秒表記x緯度のミリ秒表記" (例: "128452975x503157902")
4009
4027
  .IP \(bu 2
4010
- "[緯度のミリ秒],[経度のミリ秒]"(例: "128452975,503157902")
4028
+ "経度のミリ秒表記,緯度のミリ秒表記" (例: "128452975,503157902")
4011
4029
  .IP \(bu 2
4012
- "[緯度の小数表記の度数]x[経度の小数表記の度数]"(例: "35.6813819x139.7660839")
4030
+ "経度の度数表記x緯度の度数表記" (例: "35.6813819x139.7660839")
4013
4031
  .IP \(bu 2
4014
- "[緯度の小数表記の度数],[経度の小数表記の度数]"(例: "35.6813819,139.7660839")
4032
+ "経度の度数表記,緯度の度数表記" (例: "35.6813819,139.7660839")
4015
4033
  .UNINDENT
4016
4034
  .sp
4017
- ここでは、ためしに東京駅と新宿駅とついて、世界測地系での位置情報を保存してみましょう。東京駅は緯度が35度40分52.975秒、経度が139度45分57.902秒です。新宿駅は緯度が35度41分27.316秒、経度が139度42分0.929秒です。よって、ミリ秒表記の場合はそれぞれ"128452975x503157902"/"128487316x502920929"となります。度数表記の場合はそれぞれ"35.6813819x139.7660839"/"35.6909211x139.7002581"となります。ここではミリ秒表記で登録しましょう。
4035
+ ここでは、ためしに東京駅と新宿駅とついて、世界測地系での位置情報を保存してみましょう。東京駅は緯度が35度40分52.975秒、経度が139度45分57.902秒です。新宿駅は緯度が35度41分27.316秒、経度が139度42分0.929秒です。よって、ミリ秒表記の場合はそれぞれ"128452975x503157902"/"128487316x502920929"となります。度数表記の場合はそれぞれ"35.6813819x139.7660839"/"35.6909211x139.7002581"となります。
4036
+ .sp
4037
+ ミリ秒表記で位置情報を登録してみましょう。
4018
4038
  .sp
4019
4039
  実行例:
4020
4040
  .INDENT 0.0
@@ -4068,7 +4088,7 @@ select \-\-table Site \-\-query "_id:1 OR _id:2" \-\-output_columns _key,locatio
4068
4088
  .UNINDENT
4069
4089
  .UNINDENT
4070
4090
  .sp
4071
- scorerパラメータにおいて、 \fB/reference/functions/geo_distance\fP 関数を用いることにより、2点間の距離を計算することができます。
4091
+ \fBscorer\fP パラメータに \fB/reference/functions/geo_distance\fP を使って計算した距離を設定します。
4072
4092
  .sp
4073
4093
  ここでは、秋葉原駅からの距離を表示させてみましょう。世界測地系では、秋葉原駅の位置は緯度が35度41分55.259秒、経度が139度46分27.188秒です。よって、geo_distance関数に与える文字列は"128515259x503187188"となります。
4074
4094
  .sp
@@ -4122,9 +4142,9 @@ select \-\-table Site \-\-query "_id:1 OR _id:2" \-\-output_columns _key,locatio
4122
4142
  .UNINDENT
4123
4143
  .UNINDENT
4124
4144
  .sp
4125
- この結果を見ると、東京駅と秋葉原駅は2054m、秋葉原駅と新宿駅は6720m離れているようです。
4145
+ 結果から、東京駅と秋葉原駅は2054m、秋葉原駅と新宿駅は6720m離れているようです。
4126
4146
  .sp
4127
- geo_distance関数は、_scoreを通じてソートでも用いることができます。
4147
+ \fBgeo_distance\fP 関数は、\fB_score\fP に値を設定することで、\fBsortby\fP パラメータによるソートでも用いることができます。
4128
4148
  .sp
4129
4149
  実行例:
4130
4150
  .INDENT 0.0
@@ -4176,9 +4196,9 @@ select \-\-table Site \-\-query "_id:1 OR _id:2" \-\-output_columns _key,locatio
4176
4196
  .UNINDENT
4177
4197
  .UNINDENT
4178
4198
  .sp
4179
- 「ある地点から何m以内に存在する」といった絞込も可能です。
4199
+ Groongaでは、「ある地点から何m以内に存在する」といった絞込も可能です。
4180
4200
  .sp
4181
- filterパラメータにおいて、 \fB/reference/functions/geo_in_circle\fP 関数を用いることにより、2点間の距離が指定のm以下におさまるかどうかを判定することができます。
4201
+ その場合には、 \fBfilter\fP パラメータで \fB/reference/functions/geo_in_circle\fP を指定します。
4182
4202
  .sp
4183
4203
  たとえば、秋葉原駅から5000m以内にあるレコードを検索してみましょう。
4184
4204
  .sp
@@ -4222,21 +4242,20 @@ select \-\-table Site \-\-output_columns _key,location \-\-filter \(aqgeo_in_cir
4222
4242
  .UNINDENT
4223
4243
  .UNINDENT
4224
4244
  .sp
4225
- また、経緯度が指定の矩形領域内であるかどうかを判定する \fB/reference/functions/geo_in_rectangle\fP 関数も存在します。
4245
+ 経緯度が指定の矩形領域内であるかどうかを判定する \fB/reference/functions/geo_in_rectangle\fP も存在します。
4226
4246
  .SS ドリルダウン
4227
4247
  .sp
4228
- You learned how to filter search results and sort ones in the previous sections.
4229
- Now that you can search as you likes, but how do you summarize the number of records which has specific value in the column?
4248
+ これまでのセクションで検索方法と検索結果をどのようにソートするかを学びました。思うがままに検索できるようになりましたね。それでは、次のことをするにはどうすればよいでしょか。まず、あるカラムに注目します。そして、そのカラムの値が同じレコードを集め、それぞれの値毎に集まったレコードの数を数えます。
4230
4249
  .sp
4231
- As you know, there is a naive solution to execute query by every the value of column, then you can get the number of records as a result. It is a simple way, but it is not reasonable to many records.
4250
+ 素朴な実現方法は、カラムのそれぞれの値で検索する方法です。結果として、すべてのカラムの値についてレコード数を求めることができます。シンプルな方法ですが、たくさんのレコードがある場合には現実的ではありません。
4232
4251
  .sp
4233
- If you are familiar with SQL, you will doubt with "Is there a similar SQL functionality to \fBGROUP BY\fP in Groonga?".
4252
+ SQLに慣れている人は、「GroongaにはSQLでいう \fBGROUP BY\fP 相当の機能はないの?」と思うでしょう。
4234
4253
  .sp
4235
- Of course, Groonga provides such a functionality. It\(aqs called as \fBdrilldown\fP\&.
4254
+ もちろん、Groongaはそのような機能を提供しています。それが \fBdrilldown\fP と呼んでいる機能です。
4236
4255
  .sp
4237
- \fBdrilldown\fP enables you to get the number of records which belongs to specific the value of column at once.
4256
+ \fBdrilldown\fP はカラムの値ごとにレコード数を数える機能を提供します。値ごとに別々のクエリーになるのではなく、1回のクエリーですべての値に対してレコード数を数えます。
4238
4257
  .sp
4239
- To illustrate this feature, imagine the case that classification by domain and grouping by country that domain belongs to.
4258
+ この機能を説明するために次のケースを考えます。ドメインで分類し、ドメインが属している国ごとにグループ化する、というケースです。
4240
4259
  .sp
4241
4260
  この機能を使った具体的な例を示します。
4242
4261
  .sp
@@ -4922,10 +4941,10 @@ select \-\-table Site \-\-limit 0 \-\-drilldown country \-\-drilldown_sortby _ns
4922
4941
  .UNINDENT
4923
4942
  .UNINDENT
4924
4943
  .sp
4925
- 文字列型のカラムに対するドリルダウンは、他の型でのドリルダウンに比べて低速です。文字列でのドリルダウンを行いたい場合には、このチュートリアルのように、文字列型を主キーとするテーブルを別途作成し、そのテーブルを型とするカラムを作成します。
4944
+ 文字列を格納しているカラムのドリルダウンは、他の型のカラムのドリルダウンよりも遅くなることに注意してください。文字列型のカラムでドリルダウンするときは、主キーの方が文字列のテーブルを作って、そのテーブルを参照するカラムにしてください。
4926
4945
  .SS タグ検索・参照関係の逆引き
4927
4946
  .sp
4928
- 本チュートリアルで、Groongaはカラム値として他のテーブルへの参照の配列を持つことができることを紹介いたしました。実は、テーブルへの参照の配列データを用いることによって、いわゆるタグ検索を行うことが可能となります。
4947
+ Groongaはカラム値として他のテーブルへの参照の配列を持つことができます。実は、テーブルへの参照の配列データを用いることによって、いわゆるタグ検索を行うことが可能となります。
4929
4948
  .sp
4930
4949
  タグ検索はGroongaの転置インデックスというデータ構造を用いて高速に行われます。
4931
4950
  .SS タグ検索
@@ -4935,6 +4954,7 @@ select \-\-table Site \-\-limit 0 \-\-drilldown country \-\-drilldown_sortby _ns
4935
4954
  実際に、動画情報のテーブルを作成し、検索をしてみましょう。
4936
4955
  .sp
4937
4956
  動画の情報を保存する、Videoテーブルを作成します。Videoテーブルでは、動画のタイトルをtitleカラムに、動画のタグ情報をtagsカラムにTagテーブル型で複数格納しています。
4957
+ .sp
4938
4958
  タグの情報を保存する、Tagテーブルを作成します。Tagテーブルでは、タグ文字列を主キーに格納し、Videoテーブルのtagsカラムに対するインデックスをindex_tagsカラムに格納しています。
4939
4959
  .sp
4940
4960
  実行例:
@@ -5313,7 +5333,7 @@ select \-\-table User \-\-limit 0 \-\-drilldown friends
5313
5333
  このように、テーブルの参照関係を逆にたどる検索ができました。
5314
5334
  .SS インデックス付きジオサーチ
5315
5335
  .sp
5316
- 位置情報のカラムに対して、インデックスを付与することが出来ます。大量の位置情報レコードを検索する場合に、検索速度が速くなります。
5336
+ Groongaでは位置情報のカラムに対して、インデックスを付与することが出来ます。大量の位置情報レコードを検索する場合に、検索速度が速くなります。
5317
5337
  .sp
5318
5338
  実行例:
5319
5339
  .INDENT 0.0
@@ -5365,7 +5385,7 @@ select \-\-table Site \-\-filter \(aqgeo_in_circle(location, "128515259x50318718
5365
5385
  .UNINDENT
5366
5386
  .UNINDENT
5367
5387
  .sp
5368
- 同様に、位置情報レコードを用いてソートする場合に、ソート速度が速くなります。
5388
+ これらのインデックスは、位置情報レコードを用いてソートする場合に使われます。
5369
5389
  .sp
5370
5390
  実行例:
5371
5391
  .INDENT 0.0
@@ -5417,15 +5437,18 @@ select \-\-table Site \-\-filter \(aqgeo_in_circle(location, "128515259x50318718
5417
5437
  .UNINDENT
5418
5438
  .UNINDENT
5419
5439
  .SS match_columnsパラメータ
5420
- .SS 複数のカラムを対象とした全文検索
5440
+ .SS 複数のカラムに対する全文検索
5421
5441
  .sp
5422
5442
  Groongaでは、複数のカラムを対象とした全文検索を行うことができます。例えば、ブログのテーブルで、タイトルと内容とがそれぞれ別のカラムに入ったものがあるとしましょう。「タイトルもしくは内容に特定の単語を含む」検索を行いたいとします。
5423
5443
  .sp
5424
5444
  この場合、2つのインデックス作成方式があります。1つは、それぞれのカラムに1つずつインデックスを付与する方式です。もう1つは、複数のカラムに対して1つのインデックスを付与する方式です。Groongaでは、どちらの形式のインデックスが存在している場合でも、同一の記法で全文検索を行うことができます。
5425
5445
  .SS カラムごとにインデックスを付与する場合
5426
5446
  .sp
5427
- Blog1テーブルを作り、タイトル文字列のtitleカラム、本文のmessageカラムを追加しています。
5428
- インデックス用のIndexBlog1テーブルも作り、titleカラムのインデックス用にindex_titleカラム、messageカラムのインデック用にindex_messageカラムと、それぞれ1カラムごとに1つずつ追加しています。
5447
+ カラムごとにインデックスを作成する方法はこの通りです。
5448
+ .sp
5449
+ まず、 \fBBlog1\fP テーブルを作成し、 \fBtitle\fP カラムと \fBmessage\fP カラムを追加します。 \fBtitle\fP カラムにブログのタイトルを保存し、 \fBmessage\fP カラムにブログの本文を保存します。
5450
+ .sp
5451
+ インデックス用の \fBIndexBlog1\fP テーブルも作り、 \fBtitle\fP カラムのインデックス用に \fBindex_title\fP カラム、 \fBmessage\fP カラムのインデック用に \fBindex_message\fP カラムと、それぞれ1カラムごとに1つずつ追加しています。
5429
5452
  .sp
5430
5453
  実行例:
5431
5454
  .INDENT 0.0
@@ -5457,9 +5480,9 @@ load \-\-table Blog1
5457
5480
  .UNINDENT
5458
5481
  .UNINDENT
5459
5482
  .sp
5460
- match_columnsオプションで、検索対象のカラムを複数指定することが出来ます。検索する文字列はqueryオプションで指定します。これを使うことで、タイトルと本文を全文検索することができます。
5483
+ \fBmatch_columns\fP オプションで、検索対象のカラムを複数指定することが出来ます。検索する文字列は \fBquery\fP オプションで指定します。これを使うことで、タイトルと本文を全文検索することができます。
5461
5484
  .sp
5462
- 実際に検索してみましょう。
5485
+ 実際にブログエントリを検索してみましょう。
5463
5486
  .sp
5464
5487
  実行例:
5465
5488
  .INDENT 0.0
@@ -5608,9 +5631,11 @@ select \-\-table Blog1 \-\-match_columns title \-\-query message
5608
5631
  .UNINDENT
5609
5632
  .SS 複数のカラムにまたがったインデックスを付与する場合
5610
5633
  .sp
5611
- 内容は上の例とほぼ同じですが、titleとmessageの2つのカラムに対するインデックスが共通になっており、インデックスカラムが1つしかありません。
5634
+ Groongaでは複数のカラムにまたがったインデックスもサポートしています。
5635
+ .sp
5636
+ インデックスカラムが1つしかないというのが違いです。 \fBtitle\fP と \fBmessage\fP の2つのカラムに対するインデックスが共通になっています。
5612
5637
  .sp
5613
- 共通のインデックスを用いても、titleカラムのみでの検索、messageカラムのみでの検索、titleもしくはmessageカラムでの検索、全ての検索を行うことができます。
5638
+ 共通のインデックスを用いても、 \fBtitle\fP カラムのみでの検索、 \fBmessage\fP カラムのみでの検索、 \fBtitle\fP もしくは \fBmessage\fP カラムでの検索、全ての検索を行うことができます。
5614
5639
  .sp
5615
5640
  実行例:
5616
5641
  .INDENT 0.0
@@ -5640,7 +5665,7 @@ load \-\-table Blog2
5640
5665
  .UNINDENT
5641
5666
  .UNINDENT
5642
5667
  .sp
5643
- 実際に検索してみましょう。結果は上の例と同じになります。
5668
+ 実際に前と同じ例で検索してみましょう。結果は上の例と同じになります。
5644
5669
  .sp
5645
5670
  実行例:
5646
5671
  .INDENT 0.0
@@ -6138,7 +6163,9 @@ select Articles2 \-\-match_columns comment.comment.content \-\-query mroonga \-\
6138
6163
  執筆中です。
6139
6164
  .SS パトリシア木による前方一致検索
6140
6165
  .sp
6141
- Groongaのテーブルは、テーブル作成時にパトリシア木オプションを指定すると、前方一致検索を行うことができます。また、追加のオプションを指定することにより、主キーの後方一致検索をも行うことができます。
6166
+ Groongaのテーブルは、テーブル作成時にパトリシア木オプションを指定すると、前方一致検索を行うことができます。
6167
+ .sp
6168
+ また、追加のオプションを指定することにより、主キーの後方一致検索をも行うことができます。
6142
6169
  .SS 主キーによる前方一致検索
6143
6170
  .sp
6144
6171
  table_createコマンドのflagsオプションにTABLE_PAT_KEYを指定することで、主キーによる前方一致検索ができるようになります。
@@ -6153,13 +6180,15 @@ table_create \-\-name PatPrefix \-\-flags TABLE_PAT_KEY \-\-key_type ShortText
6153
6180
  # [[0, 1337566253.89858, 0.000355720520019531], true]
6154
6181
  load \-\-table PatPrefix
6155
6182
  [
6156
- {"_key":"ひろゆき"},
6157
- {"_key":"まろゆき"},
6158
- {"_key":"ひろあき"},
6159
- {"_key":"ゆきひろ"}
6183
+ {"_key":"James"}
6184
+ {"_key":"Jason"}
6185
+ {"_key":"Jennifer"},
6186
+ {"_key":"Jeff"},
6187
+ {"_key":"John"},
6188
+ {"_key":"Joseph"},
6160
6189
  ]
6161
- # [[0, 1337566253.89858, 0.000355720520019531], 4]
6162
- select \-\-table PatPrefix \-\-query _key:^ひろ
6190
+ # [[0, 1337566253.89858, 0.000355720520019531], 6]
6191
+ select \-\-table PatPrefix \-\-query _key:^Je
6163
6192
  # [
6164
6193
  # [
6165
6194
  # 0,
@@ -6182,12 +6211,12 @@ select \-\-table PatPrefix \-\-query _key:^ひろ
6182
6211
  # ]
6183
6212
  # ],
6184
6213
  # [
6185
- # 1,
6186
- # "ひろゆき"
6214
+ # 3,
6215
+ # "Jennifer"
6187
6216
  # ],
6188
6217
  # [
6189
- # 3,
6190
- # "ひろあき"
6218
+ # 4,
6219
+ # "Jeff"
6191
6220
  # ]
6192
6221
  # ]
6193
6222
  # ]
@@ -9162,7 +9191,7 @@ _
9162
9191
  T{
9163
9192
  POST
9164
9193
  T} T{
9165
- ×
9194
+
9166
9195
  T} T{
9167
9196
 
9168
9197
  T}
@@ -9612,7 +9641,7 @@ Groongaのデータベースは、groongaコマンドかCライブラリイン
9612
9641
  .TP
9613
9642
  .B \-p, \-\-port <port number>
9614
9643
  クライアント、サーバ、またはデーモンモードで使用するTCPポート番号。
9615
- (デフォルトは10041番)
9644
+ (クライアントモードのデフォルトは10043番、サーバ、またはデーモンモードのデフォルトは、HTTPの場合、10041番、GQTPの場合、10043番)
9616
9645
  .UNINDENT
9617
9646
  .INDENT 0.0
9618
9647
  .TP
@@ -9698,7 +9727,7 @@ pid\-file=/var/run/groonga.pid
9698
9727
  .B dest
9699
9728
  使用するデータベースのパス名を指定します。
9700
9729
  .sp
9701
- クライアントモードの場合は接続先のホスト名とポート番号を指定します(デフォルト値は\(aqlocalhost:10041\(aq)。ポート番号を指定しない場合には、10041が指定されたものとします。
9730
+ クライアントモードの場合は接続先のホスト名とポート番号を指定します(デフォルト値は\(aqlocalhost:10043\(aq)。ポート番号を指定しない場合には、10043が指定されたものとします。
9702
9731
  .UNINDENT
9703
9732
  .INDENT 0.0
9704
9733
  .TP
@@ -9969,7 +9998,7 @@ test\-ユーザ名\-数字.log
9969
9998
  "#"で始まる行はコメントとして扱われます。
9970
9999
  .SS groonga\-benchmark命令
9971
10000
  .sp
9972
- 現在サポートされているgroonga\-benchmark命令は以下の8つです。
10001
+ 現在サポートされているgroonga\-benchmark命令は以下の11種類です。
9973
10002
  .INDENT 0.0
9974
10003
  .INDENT 3.5
9975
10004
  do_local コマンドファイル [スレッド数] [繰り返し数]
@@ -9982,7 +10011,14 @@ do_local コマンドファイル [スレッド数] [繰り返し数]
9982
10011
  do_gqpt コマンドファイル [スレッド数] [繰り返し数]
9983
10012
  .INDENT 0.0
9984
10013
  .INDENT 3.5
9985
- コマンドファイルをgroongaサーバで実行します。スレッド数や繰り返し数の意味はdo_localの場合と同じです。
10014
+ コマンドファイルをgroongaサーバでGQTP経由で実行します。スレッド数や繰り返し数の意味はdo_localの場合と同じです。
10015
+ .UNINDENT
10016
+ .UNINDENT
10017
+ .sp
10018
+ do_http コマンドファイル [スレッド数] [繰り返し数]
10019
+ .INDENT 0.0
10020
+ .INDENT 3.5
10021
+ コマンドファイルをgroongaサーバでHTTP経由で実行します。スレッド数や繰り返し数の意味はdo_localの場合と同じです。
9986
10022
  .UNINDENT
9987
10023
  .UNINDENT
9988
10024
  .sp
@@ -9996,7 +10032,14 @@ rep_local コマンドファイル [スレッド数] [繰り返し数]
9996
10032
  rep_gqpt コマンドファイル [スレッド数] [繰り返し数]
9997
10033
  .INDENT 0.0
9998
10034
  .INDENT 3.5
9999
- コマンドファイルをgroongaサーバで実行し、より詳細な報告を行います。 スレッド数や繰り返し数の意味はdo_localと 同じです。
10035
+ コマンドファイルをgroongaサーバでGQTP経由で実行し、より詳細な報告を行います。 スレッド数や繰り返し数の意味はdo_localと 同じです。
10036
+ .UNINDENT
10037
+ .UNINDENT
10038
+ .sp
10039
+ rep_http コマンドファイル [スレッド数] [繰り返し数]
10040
+ .INDENT 0.0
10041
+ .INDENT 3.5
10042
+ コマンドファイルをgroongaサーバでHTTP経由で実行し、より詳細な報告を行います。 スレッド数や繰り返し数の意味はdo_localと 同じです。
10000
10043
  .UNINDENT
10001
10044
  .UNINDENT
10002
10045
  .sp
@@ -10022,7 +10065,14 @@ groonga < コマンドファイル > 出力ファイル
10022
10065
  out_gqtp コマンドファイル 出力ファイル名
10023
10066
  .INDENT 0.0
10024
10067
  .INDENT 3.5
10025
- コマンドファイルをgroongaサーバで実行します。その他はout_local命令と同等です。
10068
+ コマンドファイルをgroongaサーバでGQTP経由で実行します。その他はout_local命令と同等です。
10069
+ .UNINDENT
10070
+ .UNINDENT
10071
+ .sp
10072
+ out_http コマンドファイル 出力ファイル名
10073
+ .INDENT 0.0
10074
+ .INDENT 3.5
10075
+ コマンドファイルをgroongaサーバでHTTP経由で実行します。その他はout_local命令と同等です。
10026
10076
  .UNINDENT
10027
10077
  .UNINDENT
10028
10078
  .INDENT 0.0
@@ -10061,7 +10111,7 @@ do_gqtp test.select 10 10; do_local test.status 10
10061
10111
  コメント行。
10062
10112
  .TP
10063
10113
  .B 2行目
10064
- test.dll というコマンドファイルをgroonga単体で実行し、詳細に報告する。
10114
+ test.ddl というコマンドファイルをgroonga単体で実行し、詳細に報告する。
10065
10115
  .TP
10066
10116
  .B 3行目
10067
10117
  test.load というコマンドファイルをgroonga単体で実行する。(最後の";"セミコロンは複数のgroonga\-benchmark命令を記述する場合に必要ですが、この例のように1つのgroonga\-benchmark命令を実行する場合に付与しても問題ありません。)
@@ -11306,23 +11356,34 @@ groonga\-suggest\-learner \-l logs testdb/db
11306
11356
  .SS Options
11307
11357
  .INDENT 0.0
11308
11358
  .TP
11309
- .B \-r
11310
- Specify endpoint for receiver.
11359
+ .B \-r <endpoint>, \-\-receive\-endpoint <endpoint>
11360
+ Uses \fB<endpoint>\fP as the receiver endpoint.
11311
11361
  .UNINDENT
11312
11362
  .INDENT 0.0
11313
11363
  .TP
11314
- .B \-s
11315
- Specify endpoint for sender.
11364
+ .B \-s <endpoint>, \-\-send\-endpoint <endpoint>
11365
+ Uses \fB<endpoint>\fP as the sender endpoint.
11316
11366
  .UNINDENT
11317
11367
  .INDENT 0.0
11318
11368
  .TP
11319
- .B \-d
11320
- Specify this option to daemonize.
11369
+ .B \-d, \-\-daemon
11370
+ Runs as a daemon.
11371
+ .UNINDENT
11372
+ .INDENT 0.0
11373
+ .TP
11374
+ .B \-l <directory>, \-\-log\-base\-path <directory>
11375
+ Reads logs from \fB<directory>\fP\&.
11376
+ .UNINDENT
11377
+ .INDENT 0.0
11378
+ .TP
11379
+ .B \-\-log\-path <path>
11380
+ Outputs log to \fB<path>\fP\&.
11321
11381
  .UNINDENT
11322
11382
  .INDENT 0.0
11323
11383
  .TP
11324
- .B \-l
11325
- Specify log directory.
11384
+ .B \-\-log\-level <level>
11385
+ Uses \fB<level>\fP for log level. \fB<level>\fP must be between 1 and 9.
11386
+ Larger level outputs more logs.
11326
11387
  .UNINDENT
11327
11388
  .SS 引数
11328
11389
  .sp
@@ -12172,11 +12233,15 @@ cache_limit
12172
12233
  .IP \(bu 2
12173
12234
  \fBselect\fP
12174
12235
  .UNINDENT
12175
- .SS check
12176
- .SS 名前
12236
+ .SS \fBcheck\fP
12237
+ .SS 概要
12177
12238
  .sp
12178
12239
  check \- オブジェクトの状態表示
12179
- .SS 書式
12240
+ .sp
12241
+ Groonga組込コマンドの一つであるcheckについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
12242
+ .sp
12243
+ checkコマンドは、groongaプロセス内の指定したオブジェクトの状態を表示します。主にデータベースが壊れた場合など異常時の問題解決のために使用することを想定しています。デバッグ用のため、返値のフォーマットが安定しているということは保証されません。(フォーマットが変更される可能性が高い)
12244
+ .SS 構文
12180
12245
  .INDENT 0.0
12181
12246
  .INDENT 3.5
12182
12247
  .sp
@@ -12187,11 +12252,51 @@ check obj
12187
12252
  .fi
12188
12253
  .UNINDENT
12189
12254
  .UNINDENT
12190
- .SS 説明
12255
+ .SS 使い方
12191
12256
  .sp
12192
- Groonga組込コマンドの一つであるcheckについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
12257
+ テーブルTermsのインデックスカラムnameの状態を表示します。:
12258
+ .INDENT 0.0
12259
+ .INDENT 3.5
12193
12260
  .sp
12194
- checkコマンドは、groongaプロセス内の指定したオブジェクトの状態を表示します。主にデータベースが壊れた場合など異常時の問題解決のために使用することを想定しています。デバッグ用のため、返値のフォーマットが安定しているということは保証されません。(フォーマットが変更される可能性が高い)
12261
+ .nf
12262
+ .ft C
12263
+ check Terms.name
12264
+ [{"flags":"00008202",
12265
+ "max sid":1,
12266
+ "number of garbage segments":0,
12267
+ "number of array segments":1,
12268
+ "max id of array segment":1,
12269
+ "number of buffer segments":110,
12270
+ "max id of buffer segment":111,
12271
+ "max id of physical segment in use":111,
12272
+ "number of unmanaged segments":4294967185,
12273
+ "total chunk size":7470239,
12274
+ "max id of chunk segments in use":127,
12275
+ "number of garbage chunk":[0,0,0,0,0,0,0,0,2,2,0,0,0,0,0]},
12276
+ {"buffer id":0,
12277
+ "chunk size":94392,
12278
+ "buffer term":["596","59777","6",...],
12279
+ "buffer free":152944,
12280
+ "size in buffer":7361,
12281
+ "nterms":237,
12282
+ "nterms with chunk":216,
12283
+ "buffer id":1,
12284
+ "chunk size":71236,
12285
+ "buffer term":[["に述",18149,18149,2,25,6,6],
12286
+ ["に追",4505,4505,76,485,136,174],
12287
+ ["に退",26568,26568,2,9,2,2],
12288
+ ...],
12289
+ "buffer free":120000,
12290
+ "size in buffer":11155,
12291
+ "nterms":121,
12292
+ "nterms with chunk":116},
12293
+ {"buffer id":1,
12294
+ ...},
12295
+ ...]
12296
+ .ft P
12297
+ .fi
12298
+ .UNINDENT
12299
+ .UNINDENT
12195
12300
  .SS 引数
12196
12301
  .sp
12197
12302
  \fBobj\fP
@@ -12200,8 +12305,7 @@ checkコマンドは、groongaプロセス内の指定したオブジェクト
12200
12305
  状態を表示するオブジェクトの名前を指定します。
12201
12306
  .UNINDENT
12202
12307
  .UNINDENT
12203
- .SS 返値
12204
- .SS json形式
12308
+ .SS 戻り値
12205
12309
  .sp
12206
12310
  チェックするオブジェクトにより返される値が変わります。
12207
12311
  .sp
@@ -12366,126 +12470,79 @@ checkコマンドは、groongaプロセス内の指定したオブジェクト
12366
12470
  .UNINDENT
12367
12471
  .UNINDENT
12368
12472
  .UNINDENT
12369
- .SS
12473
+ .SS \fBclearlock\fP
12474
+ .SS 概要
12370
12475
  .sp
12371
- テーブルTermsのインデックスカラムnameの状態を表示します。:
12476
+ clearlock \- オブジェクトにセットされたロックを解除する
12477
+ .sp
12478
+ Groonga組込コマンドの一つであるclearlockについて説明します。組込コマンドは、groonga実行ファイルの引数、標準>入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
12479
+ .sp
12480
+ clearlockは、対象となるオブジェクト(データベース,テーブル,インデックス等)を指定し、オブジェクトにかけられた>ロックを再帰的に解除します。
12481
+ .SS 構文
12372
12482
  .INDENT 0.0
12373
12483
  .INDENT 3.5
12374
12484
  .sp
12375
12485
  .nf
12376
12486
  .ft C
12377
- check Terms.name
12378
- [{"flags":"00008202",
12379
- "max sid":1,
12380
- "number of garbage segments":0,
12381
- "number of array segments":1,
12382
- "max id of array segment":1,
12383
- "number of buffer segments":110,
12384
- "max id of buffer segment":111,
12385
- "max id of physical segment in use":111,
12386
- "number of unmanaged segments":4294967185,
12387
- "total chunk size":7470239,
12388
- "max id of chunk segments in use":127,
12389
- "number of garbage chunk":[0,0,0,0,0,0,0,0,2,2,0,0,0,0,0]},
12390
- {"buffer id":0,
12391
- "chunk size":94392,
12392
- "buffer term":["596","59777","6",...],
12393
- "buffer free":152944,
12394
- "size in buffer":7361,
12395
- "nterms":237,
12396
- "nterms with chunk":216,
12397
- "buffer id":1,
12398
- "chunk size":71236,
12399
- "buffer term":[["に述",18149,18149,2,25,6,6],
12400
- ["に追",4505,4505,76,485,136,174],
12401
- ["に退",26568,26568,2,9,2,2],
12402
- ...],
12403
- "buffer free":120000,
12404
- "size in buffer":11155,
12405
- "nterms":121,
12406
- "nterms with chunk":116},
12407
- {"buffer id":1,
12408
- ...},
12409
- ...]
12487
+ clearlock objname
12410
12488
  .ft P
12411
12489
  .fi
12412
12490
  .UNINDENT
12413
12491
  .UNINDENT
12414
- .SS clearlock
12415
- .SS 名前
12492
+ .SS 使い方
12416
12493
  .sp
12417
- clearlock \- オブジェクトにセットされたロックを解除する
12418
- .SS 書式
12494
+ 開いているデータベースのロックをすべて解除する:
12419
12495
  .INDENT 0.0
12420
12496
  .INDENT 3.5
12421
12497
  .sp
12422
12498
  .nf
12423
12499
  .ft C
12424
- clearlock objname
12500
+ clearlock
12501
+ [true]
12425
12502
  .ft P
12426
12503
  .fi
12427
12504
  .UNINDENT
12428
12505
  .UNINDENT
12429
- .SS 説明
12430
- .sp
12431
- Groonga組込コマンドの一つであるclearlockについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
12432
12506
  .sp
12433
- clearlockは、対象となるオブジェクト(データベース,テーブル,インデックス等)を指定し、オブジェクトにかけられたロックを再帰的に解除します。
12434
- .SS 引数
12435
- .sp
12436
- \fBobjname\fP
12437
- .INDENT 0.0
12438
- .INDENT 3.5
12439
- 対象となるオブジェクト名を指定します。空の場合、開いているdbオブジェクトが対象となります。
12440
- .UNINDENT
12441
- .UNINDENT
12442
- .SS 返値
12443
- .SS json形式
12507
+ テーブル名 Entry のカラム body のロックを解除する:
12444
12508
  .INDENT 0.0
12445
12509
  .INDENT 3.5
12446
12510
  .sp
12447
12511
  .nf
12448
12512
  .ft C
12449
- [成功かどうかのフラグ]
12513
+ clearlock Entry.body
12514
+ [true]
12450
12515
  .ft P
12451
12516
  .fi
12452
12517
  .UNINDENT
12453
12518
  .UNINDENT
12519
+ .SS 引数
12454
12520
  .sp
12455
- \fB成功かどうかのフラグ\fP
12521
+ \fBobjname\fP
12456
12522
  .INDENT 0.0
12457
12523
  .INDENT 3.5
12458
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
12524
+ 対象となるオブジェクト名を指定します。空の場合、開いているdbオブジェクトが対象となります。
12459
12525
  .UNINDENT
12460
12526
  .UNINDENT
12461
- .SS
12462
- .sp
12463
- 開いているデータベースのロックをすべて解除する:
12527
+ .SS 戻り値
12464
12528
  .INDENT 0.0
12465
12529
  .INDENT 3.5
12466
12530
  .sp
12467
12531
  .nf
12468
12532
  .ft C
12469
- clearlock
12470
- [true]
12533
+ [成功かどうかのフラグ]
12471
12534
  .ft P
12472
12535
  .fi
12473
12536
  .UNINDENT
12474
12537
  .UNINDENT
12475
12538
  .sp
12476
- テーブル名 Entry のカラム body のロックを解除する:
12539
+ \fB成功かどうかのフラグ\fP
12477
12540
  .INDENT 0.0
12478
12541
  .INDENT 3.5
12479
- .sp
12480
- .nf
12481
- .ft C
12482
- clearlock Entry.body
12483
- [true]
12484
- .ft P
12485
- .fi
12542
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
12486
12543
  .UNINDENT
12487
12544
  .UNINDENT
12488
- .SS 関連項目
12545
+ .SS 参考
12489
12546
  .sp
12490
12547
  \fBload\fP
12491
12548
  .SS \fBcolumn_create\fP
@@ -12754,7 +12811,7 @@ column_list Users
12754
12811
  カラムの一覧を取得するテーブルの名前を指定します。
12755
12812
  .SS 戻り値
12756
12813
  .sp
12757
- \fBcolumn_list\fP returns the list of column information in the table:
12814
+ \fBcolumn_list\fP はテーブルのカラム一覧を返します。
12758
12815
  .INDENT 0.0
12759
12816
  .INDENT 3.5
12760
12817
  .sp
@@ -12784,10 +12841,9 @@ column_list Users
12784
12841
  \fBCOLUMN_LIST_HEADER\fP
12785
12842
  .INDENT 0.0
12786
12843
  .INDENT 3.5
12787
- \fBCOLUMN_LIST_HEADER\fP describes about content of each
12788
- \fBCOLUMN_INFORMATION\fP\&.
12844
+ \fBCOLUMN_LIST_HEADER\fP \fBCOLUMN_INFORMATION\fP の内容を説明します。
12789
12845
  .sp
12790
- \fBCOLUMN_LIST_HEADER\fP is the following format:
12846
+ \fBCOLUMN_LIST_HEADER\fP は以下の形式です:
12791
12847
  .INDENT 0.0
12792
12848
  .INDENT 3.5
12793
12849
  .sp
@@ -12822,17 +12878,16 @@ column_list Users
12822
12878
  .UNINDENT
12823
12879
  .UNINDENT
12824
12880
  .sp
12825
- See the following \fBCOLUMN_INFORMATION\fP description for details.
12881
+ 詳細については、次の \fBCOLUMN_INFORMATION\fP の説明を参照して下さい。
12826
12882
  .sp
12827
- This field provides meta\-data of column information. So this field
12828
- will be useful for programs rather than humans.
12883
+ このフィールドはカラムの情報のメタデータを提供します。したがって、このフィールドは人ではなくプログラムに有用です。
12829
12884
  .UNINDENT
12830
12885
  .UNINDENT
12831
12886
  .sp
12832
12887
  \fBCOLUMN_INFORMATION\fP
12833
12888
  .INDENT 0.0
12834
12889
  .INDENT 3.5
12835
- Each \fBCOLUMN_INFORMATION\fP is the following format:
12890
+ \fBCOLUMN_INFORMATION\fP は以下の形式です:
12836
12891
  .INDENT 0.0
12837
12892
  .INDENT 3.5
12838
12893
  .sp
@@ -12856,8 +12911,7 @@ Each \fBCOLUMN_INFORMATION\fP is the following format:
12856
12911
  \fBID\fP
12857
12912
  .INDENT 0.0
12858
12913
  .INDENT 3.5
12859
- The column ID in the Groonga database. Normally, you don\(aqt care
12860
- about it.
12914
+ GroongaデータベースのカラムIDです。通常、それを気にする必要はありません。
12861
12915
  .UNINDENT
12862
12916
  .UNINDENT
12863
12917
  .sp
@@ -12892,16 +12946,13 @@ _
12892
12946
  T{
12893
12947
  \fBfix\fP
12894
12948
  T} T{
12895
- The column is a fixed size column. Scalar column that its
12896
- type is fixed size type is fixed size column.
12949
+ このカラムは、固定長カラムです。固定長型のスカラーカラムは、固定長カラムです。
12897
12950
  T}
12898
12951
  _
12899
12952
  T{
12900
12953
  \fBvar\fP
12901
12954
  T} T{
12902
- The column is a variable size column. Vector column or
12903
- scalar column that its type is variable size type are
12904
- variable size column.
12955
+ このカラムは、可変長カラムです。ベクターカラムまたは可変長型のスカラーカラムは、可変長カラムです。
12905
12956
  T}
12906
12957
  _
12907
12958
  T{
@@ -12917,10 +12968,7 @@ _
12917
12968
  \fBFLAGS\fP
12918
12969
  .INDENT 0.0
12919
12970
  .INDENT 3.5
12920
- The flags of the column. Each flag is separated by \fB|\fP like
12921
- \fBCOLUMN_VECTOR|WITH_WEIGHT\fP\&. \fBFLAGS\fP must include one of
12922
- \fBCOLUMN_SCALAR\fP, \fBCOLUMN_VECTOR\fP or \fBCOLUMN_INDEX\fP\&. Other
12923
- flags are optional.
12971
+ カラムのフラグです。各フラグは、\fBCOLUMN_VECTOR|WITH_WEIGHT\fP のように \fB|\fP で分けられています。 \fBFLAGS\fP は、\fBCOLUMN_SCALAR\fP , \fBCOLUMN_VECTOR\fP , \fBCOLUMN_INDEX\fP のいずれか1つを含まなければいけません。他のフラグは省略可能です。
12924
12972
  .sp
12925
12973
  有効なフラグは以下の通りです。
12926
12974
  .TS
@@ -12954,16 +13002,13 @@ _
12954
13002
  T{
12955
13003
  \fBWITH_WEIGHT\fP
12956
13004
  T} T{
12957
- The column can have weight. \fBCOLUMN_VECTOR\fP and \fBCOLUMN_INDEX\fP
12958
- may have it. \fBCOLUMN_SCALAR\fP doesn\(aqt have it.
13005
+ このカラムは、重みを持つことができます。 \fBCOLUMN_VECTOR\fP \fBCOLUMN_INDEX\fP は重みを持てます。 \fBCOLUMN_SCALAR\fP は、重みを持ちません。
12959
13006
  T}
12960
13007
  _
12961
13008
  T{
12962
13009
  \fBWITH_SECTION\fP
12963
13010
  T} T{
12964
- The column can have section information. \fBCOLUMN_INDEX\fP
12965
- may have it. \fBCOLUMN_SCALAR\fP and \fBCOLUMN_VECTOR\fP don\(aqt
12966
- have it.
13011
+ このカラムはセクション(段落)情報を持つことができます。 \fBCOLUMN_INDEX\fP はセクション(段落)情報を持てます。 \fBCOLUMN_SCALAR\fP \fBCOLUMN_VECTOR\fP はセクション(段落)情報を持ちません。
12967
13012
  .sp
12968
13013
  マルチカラムインデックスはこのフラグを持ちます。
12969
13014
  T}
@@ -12971,9 +13016,7 @@ _
12971
13016
  T{
12972
13017
  \fBWITH_POSITION\fP
12973
13018
  T} T{
12974
- The column can have position information. \fBCOLUMN_INDEX\fP
12975
- may have it. \fBCOLUMN_SCALAR\fP and \fBCOLUMN_VECTOR\fP don\(aqt
12976
- have it.
13019
+ このカラムは出現位置情報を持つことができます。 \fBCOLUMN_INDEX\fP は出現位置情報を持てます。 \fBCOLUMN_SCALAR\fP \fBCOLUMN_VECTOR\fP は出現位置情報を持ちません。
12977
13020
  .sp
12978
13021
  全文検索インデックスはこのフラグを持つべきです。
12979
13022
  T}
@@ -12981,8 +13024,7 @@ _
12981
13024
  T{
12982
13025
  \fBPERSISTENT\fP
12983
13026
  T} T{
12984
- The column is a persistent column. It means that the column
12985
- isn\(aqt a \fB/reference/columns/pseudo\fP\&.
13027
+ このカラムは永続カラムです。それは \fB/reference/columns/pseudo\fP ではないことを意味します。
12986
13028
  T}
12987
13029
  _
12988
13030
  .TE
@@ -12992,27 +13034,23 @@ _
12992
13034
  \fBDOMAIN\fP
12993
13035
  .INDENT 0.0
12994
13036
  .INDENT 3.5
12995
- カラムを持っているテーブルの生です。
13037
+ カラムを持っているテーブルの名前です。
12996
13038
  .UNINDENT
12997
13039
  .UNINDENT
12998
13040
  .sp
12999
13041
  \fBRANGE\fP
13000
13042
  .INDENT 0.0
13001
13043
  .INDENT 3.5
13002
- The value type name of the column. It is a type name or a table
13003
- name.
13044
+ カラムの型名です。型名かテーブル名です。
13004
13045
  .UNINDENT
13005
13046
  .UNINDENT
13006
13047
  .sp
13007
13048
  \fBSOURCES\fP
13008
13049
  .INDENT 0.0
13009
13050
  .INDENT 3.5
13010
- An array of the source column names of the index. If the index
13011
- column is multiple column index, the array has two or more
13012
- source column names.
13051
+ インデックスのソースカラム名の配列です。インデックスカラムがマルチカラムインデックスの場合、配列は2つまたはそれ以上のソースカラム名を有します。
13013
13052
  .sp
13014
- It is always an empty array for \fBCOLUMN_SCALAR\fP and
13015
- \fBCOLUMN_VECTOR\fP\&.
13053
+ \fBCOLUMN_SCALAR\fP \fBCOLUMN_VECTOR\fP では常に空の配列です。
13016
13054
  .UNINDENT
13017
13055
  .UNINDENT
13018
13056
  .UNINDENT
@@ -13024,11 +13062,16 @@ It is always an empty array for \fBCOLUMN_SCALAR\fP and
13024
13062
  .IP \(bu 2
13025
13063
  \fB/reference/column\fP
13026
13064
  .UNINDENT
13027
- .SS column_remove
13028
- .SS 名前
13065
+ .SS \fBcolumn_remove\fP
13066
+ .SS 概要
13029
13067
  .sp
13030
13068
  column_remove \- テーブルに定義されているカラムの削除
13031
- .SS 書式
13069
+ .sp
13070
+ Groonga組込コマンドの一つであるcolumn_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、>標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13071
+ .sp
13072
+ column_removeはテーブルに定義されているカラムを削除します。
13073
+ また、付随するインデックスも削除されます。[1]
13074
+ .SS 構文
13032
13075
  .INDENT 0.0
13033
13076
  .INDENT 3.5
13034
13077
  .sp
@@ -13039,82 +13082,72 @@ column_remove table name
13039
13082
  .fi
13040
13083
  .UNINDENT
13041
13084
  .UNINDENT
13042
- .SS 説明
13043
- .sp
13044
- Groonga組込コマンドの一つであるcolumn_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13045
- .sp
13046
- column_removeはテーブルに定義されているカラムを削除します。
13047
- また、付随するインデックスも削除されます。[1]
13048
- .SS 引数
13049
- .INDENT 0.0
13050
- .TP
13051
- .B \fBtable\fP
13052
- 削除対象のカラムが定義されているテーブルの名前を指定します。
13053
- .TP
13054
- .B \fBname\fP
13055
- 削除対象のカラム名を指定します。
13056
- .UNINDENT
13057
- .SS 返値
13058
- .SS json形式
13085
+ .SS 使い方
13059
13086
  .INDENT 0.0
13060
13087
  .INDENT 3.5
13061
13088
  .sp
13062
13089
  .nf
13063
13090
  .ft C
13064
- [成功かどうかのフラグ]
13091
+ column_remove Entry body
13092
+
13093
+ [true]
13065
13094
  .ft P
13066
13095
  .fi
13067
13096
  .UNINDENT
13068
13097
  .UNINDENT
13098
+ 脚注
13099
+ .IP [1] 5
13100
+ マルチセクションインデックスの一部である場合も、インデックスが削除されます。
13101
+ .SS 引数
13069
13102
  .sp
13070
- \fB成功かどうかのフラグ\fP
13103
+ \fBtable\fP
13071
13104
  .INDENT 0.0
13072
13105
  .INDENT 3.5
13073
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
13106
+ 削除対象のカラムが定義されているテーブルの名前を指定します。
13074
13107
  .UNINDENT
13075
13108
  .UNINDENT
13076
- .SS 例
13109
+ .sp
13110
+ \fBname\fP
13111
+ .INDENT 0.0
13112
+ .INDENT 3.5
13113
+ 削除対象のカラム名を指定します。
13114
+ .UNINDENT
13115
+ .UNINDENT
13116
+ .SS 戻り値
13077
13117
  .INDENT 0.0
13078
13118
  .INDENT 3.5
13079
13119
  .sp
13080
13120
  .nf
13081
13121
  .ft C
13082
- column_remove Entry body
13083
-
13084
- [true]
13122
+ [成功かどうかのフラグ]
13085
13123
  .ft P
13086
13124
  .fi
13087
13125
  .UNINDENT
13088
13126
  .UNINDENT
13089
- 脚注
13090
- .IP [1] 5
13091
- マルチセクションインデックスの一部である場合も、インデックスが削除されます。
13127
+ .sp
13128
+ \fB成功かどうかのフラグ\fP
13129
+ .INDENT 0.0
13130
+ .INDENT 3.5
13131
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
13132
+ .UNINDENT
13133
+ .UNINDENT
13092
13134
  .SS \fBcolumn_rename\fP
13093
13135
  .SS 概要
13094
13136
  .sp
13095
13137
  \fBcolumn_rename\fP コマンドはカラム名を変更します。
13096
13138
  .sp
13097
- It is a light operation. It just changes a relationship between name
13098
- and the column object. It doesn\(aqt copy column values.
13139
+ 軽い操作です。名前とカラムオブジェクト間の関係を変更するだけです。カラムの値をコピーしません。
13099
13140
  .sp
13100
- It is a dangerous operation. You must stop all operations including
13101
- read operations while you run \fBcolumn_rename\fP\&. If the following case
13102
- is occurred, Groonga process may be crashed:
13141
+ 危険な操作です。 \fBcolumn_rename\fP が走っている間、読み取り操作を含む全ての操作を停止しなければいけません。以下のケースが起こった場合、Groongaプロセスはクラッシュするかもしれません。
13103
13142
  .INDENT 0.0
13104
13143
  .INDENT 3.5
13105
13144
  .INDENT 0.0
13106
13145
  .IP \(bu 2
13107
- Starts an operation (like \fBselect\fP) that accesses the column to
13108
- be renamed by the current column name. The current column name is
13109
- called as \fBthe old column name\fP in the below because the column
13110
- name is renamed.
13146
+ 現在のカラム名によって名前が変更されるカラムにアクセスする操作( \fBselect\fP のような)を開始します。カラム名が変更されるため、下記では現在のカラム名は \fB古いカラム名\fP と呼ばれます。
13111
13147
  .IP \(bu 2
13112
- Runs \fBcolumn_rename\fP\&. The \fBselect\fP is still running.
13148
+ \fBcolumn_rename\fP を走らせます。 \fBselect\fP はまだ実行されています。
13113
13149
  .IP \(bu 2
13114
- The \fBselect\fP accesses the column to be renamed by the old column
13115
- name. But the \fBselect\fP can\(aqt find the column by the old name
13116
- because the column has been renamed to the new column name. It may
13117
- crash the Groonga process.
13150
+ \fBselect\fP は古いカラム名によって名前が変更されたカラムにアクセスします。しかし、カラムはすでに新しいカラム名に変更されているため、\fBselect\fP は古いカラム名によってカラムを見つけることができません。Groongaプロセスはクラッシュするでしょう。
13118
13151
  .UNINDENT
13119
13152
  .UNINDENT
13120
13153
  .UNINDENT
@@ -13306,11 +13339,15 @@ select Users
13306
13339
  コマンドの実行が成功するとtrueを返します。失敗するとfalseを返します。
13307
13340
  .UNINDENT
13308
13341
  .UNINDENT
13309
- .SS define_selector
13310
- .SS 名前
13342
+ .SS \fBdefine_selector\fP
13343
+ .SS 概要
13311
13344
  .sp
13312
13345
  define_selector \- 検索コマンドを定義
13313
- .SS 書式
13346
+ .sp
13347
+ Groonga組込コマンドの一つであるdefine_selectorについて説明します。組込コマンドは、groonga実行ファイルの引数>、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13348
+ .sp
13349
+ define_selectorは、検索条件をカスタマイズした新たな検索コマンドを定義します。
13350
+ .SS 構文
13314
13351
  .INDENT 0.0
13315
13352
  .INDENT 3.5
13316
13353
  .sp
@@ -13323,18 +13360,27 @@ define_selector name table [match_columns [query [filter [scorer [sortby
13323
13360
  .fi
13324
13361
  .UNINDENT
13325
13362
  .UNINDENT
13326
- .SS 説明
13327
- .sp
13328
- Groonga組込コマンドの一つであるdefine_selectorについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13329
- .sp
13330
- define_selectorは、検索条件をカスタマイズした新たな検索コマンドを定義します。
13331
- .SS 引数
13363
+ .SS 使い方
13332
13364
  .sp
13333
- \fBname\fP
13365
+ テーブルEntryの全レコード・全カラムの値を出力するselectorコマンドを定義します。:
13334
13366
  .INDENT 0.0
13335
13367
  .INDENT 3.5
13336
- 定義するselectorコマンドの名前を指定します。
13337
- .UNINDENT
13368
+ .sp
13369
+ .nf
13370
+ .ft C
13371
+ define_selector entry_selector Entry
13372
+ [true]
13373
+ .ft P
13374
+ .fi
13375
+ .UNINDENT
13376
+ .UNINDENT
13377
+ .SS 引数
13378
+ .sp
13379
+ \fBname\fP
13380
+ .INDENT 0.0
13381
+ .INDENT 3.5
13382
+ 定義するselectorコマンドの名前を指定します。
13383
+ .UNINDENT
13338
13384
  .UNINDENT
13339
13385
  .sp
13340
13386
  \fBtable\fP
@@ -13434,8 +13480,7 @@ define_selectorは、検索条件をカスタマイズした新たな検索コ
13434
13480
  追加するselectorコマンドのdrilldown_limit引数のデフォルト値を指定します。
13435
13481
  .UNINDENT
13436
13482
  .UNINDENT
13437
- .SS 返値
13438
- .SS json形式
13483
+ .SS 戻り値
13439
13484
  .INDENT 0.0
13440
13485
  .INDENT 3.5
13441
13486
  .sp
@@ -13453,95 +13498,81 @@ define_selectorは、検索条件をカスタマイズした新たな検索コ
13453
13498
  エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
13454
13499
  .UNINDENT
13455
13500
  .UNINDENT
13456
- .SS
13501
+ .SS 参考
13457
13502
  .sp
13458
- テーブルEntryの全レコード・全カラムの値を出力するselectorコマンドを定義します。:
13503
+ \fB/reference/grn_expr\fP
13504
+ .SS \fBdefrag\fP
13505
+ .SS 概要
13506
+ .sp
13507
+ \fBdefrag\fP コマンドは指定されたオブジェクトのフラグメンテーションを解消します。
13508
+ .sp
13509
+ Groonga組込コマンドの一つであるdefragについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力
13510
+ 、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13511
+ .sp
13512
+ defragは、対象となるオブジェクト(データベースか可変長サイズカラム)を指定し、オブジェクトのフラグメンテーショ
13513
+ ンを解消します。
13514
+ .SS 構文
13459
13515
  .INDENT 0.0
13460
13516
  .INDENT 3.5
13461
13517
  .sp
13462
13518
  .nf
13463
13519
  .ft C
13464
- define_selector entry_selector Entry
13465
- [true]
13520
+ defrag objname threshold
13466
13521
  .ft P
13467
13522
  .fi
13468
13523
  .UNINDENT
13469
13524
  .UNINDENT
13470
- .SS 関連項目
13471
- .sp
13472
- \fB/reference/grn_expr\fP
13473
- .SS defrag
13474
- .SS 名前
13525
+ .SS 使い方
13475
13526
  .sp
13476
- \fBdefrag\fP コマンドは指定されたオブジェクトのフラグメンテーションを解消します。
13477
- .SS 書式
13527
+ 開いているデータベースのフラグメンテーションを解消する:
13478
13528
  .INDENT 0.0
13479
13529
  .INDENT 3.5
13480
13530
  .sp
13481
13531
  .nf
13482
13532
  .ft C
13483
- defrag objname threshold
13533
+ defrag
13534
+ [300]
13484
13535
  .ft P
13485
13536
  .fi
13486
13537
  .UNINDENT
13487
13538
  .UNINDENT
13488
- .SS 説明
13489
- .sp
13490
- Groonga組込コマンドの一つであるdefragについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13491
- .sp
13492
- defragは、対象となるオブジェクト(データベースか可変長サイズカラム)を指定し、オブジェクトのフラグメンテーションを解消します。
13493
- .SS 引数
13494
13539
  .sp
13495
- \fBobjname\fP
13496
- .INDENT 0.0
13497
- .INDENT 3.5
13498
- 対象となるオブジェクト名を指定します。空の場合、開いているdbオブジェクトが対象となります。
13499
- .UNINDENT
13500
- .UNINDENT
13501
- .SS 返値
13502
- .SS json形式
13540
+ テーブル名 Entry のカラム body のフラグメンテーションを解消する:
13503
13541
  .INDENT 0.0
13504
13542
  .INDENT 3.5
13505
13543
  .sp
13506
13544
  .nf
13507
13545
  .ft C
13508
- [フラグメンテーション解消を実行したセグメントの数]
13546
+ defrag Entry.body
13547
+ [30]
13509
13548
  .ft P
13510
13549
  .fi
13511
13550
  .UNINDENT
13512
13551
  .UNINDENT
13552
+ .SS 引数
13513
13553
  .sp
13514
- \fBフラグメンテーション解消を実行したセグメントの数\fP
13554
+ \fBobjname\fP
13515
13555
  .INDENT 0.0
13516
13556
  .INDENT 3.5
13517
- フラグメンテーション解消を実行したセグメントの数を返す。
13557
+ 対象となるオブジェクト名を指定します。空の場合、開いているdbオブジェクトが対象となります。
13518
13558
  .UNINDENT
13519
13559
  .UNINDENT
13520
- .SS
13521
- .sp
13522
- 開いているデータベースのフラグメンテーションを解消する:
13560
+ .SS 戻り値
13523
13561
  .INDENT 0.0
13524
13562
  .INDENT 3.5
13525
13563
  .sp
13526
13564
  .nf
13527
13565
  .ft C
13528
- defrag
13529
- [300]
13566
+ [フラグメンテーション解消を実行したセグメントの数]
13530
13567
  .ft P
13531
13568
  .fi
13532
13569
  .UNINDENT
13533
13570
  .UNINDENT
13534
13571
  .sp
13535
- テーブル名 Entry のカラム body のフラグメンテーションを解消する:
13572
+ \fBフラグメンテーション解消を実行したセグメントの数\fP
13536
13573
  .INDENT 0.0
13537
13574
  .INDENT 3.5
13538
- .sp
13539
- .nf
13540
- .ft C
13541
- defrag Entry.body
13542
- [30]
13543
- .ft P
13544
- .fi
13575
+ フラグメンテーション解消を実行したセグメントの数を返す。
13545
13576
  .UNINDENT
13546
13577
  .UNINDENT
13547
13578
  .SS \fBdelete\fP
@@ -13800,28 +13831,18 @@ select Users
13800
13831
  .SS 参考
13801
13832
  .sp
13802
13833
  \fBload\fP
13803
- .SS dump
13804
- .SS 名前
13834
+ .SS \fBdump\fP
13835
+ .SS 概要
13805
13836
  .sp
13806
13837
  dump \- データベースのスキーマとデータを出力する
13807
- .SS 書式
13808
- .INDENT 0.0
13809
- .INDENT 3.5
13810
- .sp
13811
- .nf
13812
- .ft C
13813
- dump [tables]
13814
- .ft P
13815
- .fi
13816
- .UNINDENT
13817
- .UNINDENT
13818
- .SS 説明
13819
13838
  .sp
13820
- Groonga組込コマンドの一つであるdumpについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13839
+ Groonga組込コマンドの一つであるdumpについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、
13840
+ またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
13821
13841
  .sp
13822
- dumpはデータベースのスキーマとデータを後から読み込めるフォーマットで出力します。dumpの結果は大きくなるため、主にコマンドラインから使うことを想定しています。データベースのバックアップが主な利用方法です。
13842
+ dumpはデータベースのスキーマとデータを後から読み込めるフォーマットで出力します。dumpの結果は大きくなるため、
13843
+ 主にコマンドラインから使うことを想定しています。データベースのバックアップが主な利用方法です。
13823
13844
  .sp
13824
- dumpが出力するフォーマットは直接Groongaが解釈できるフォーマットです。そのため、以下のようにしてデータベースをコピーすることができます。:
13845
+ dumpが出力するフォーマットは直接Groongaが解釈できるフォーマットです。そのため、以下のようにしてデータベース>をコピーすることができます。:
13825
13846
  .INDENT 0.0
13826
13847
  .INDENT 3.5
13827
13848
  .sp
@@ -13834,18 +13855,18 @@ dumpが出力するフォーマットは直接Groongaが解釈できるフォー
13834
13855
  .fi
13835
13856
  .UNINDENT
13836
13857
  .UNINDENT
13837
- .SS 引数
13838
- .sp
13839
- \fBtables\fP
13858
+ .SS 構文
13840
13859
  .INDENT 0.0
13841
13860
  .INDENT 3.5
13842
- 出力対象のテーブルを「,」(カンマ)区切りで指定します。存在しないテーブルを指定した場合は無視されます。
13861
+ .sp
13862
+ .nf
13863
+ .ft C
13864
+ dump [tables]
13865
+ .ft P
13866
+ .fi
13843
13867
  .UNINDENT
13844
13868
  .UNINDENT
13845
- .SS 返値
13846
- .sp
13847
- データベースのスキーマとデータをGroongaの組み込みコマンド呼び出し形式で出力します。output_type指定は無視されます。
13848
- .SS 例
13869
+ .SS 使い方
13849
13870
  .sp
13850
13871
  データベース内のすべてのデータを出力:
13851
13872
  .INDENT 0.0
@@ -13903,6 +13924,17 @@ load \-\-table Sites
13903
13924
  .fi
13904
13925
  .UNINDENT
13905
13926
  .UNINDENT
13927
+ .SS 引数
13928
+ .sp
13929
+ \fBtables\fP
13930
+ .INDENT 0.0
13931
+ .INDENT 3.5
13932
+ 出力対象のテーブルを「,」(カンマ)区切りで指定します。存在しないテーブルを指定した場合は無視されます。
13933
+ .UNINDENT
13934
+ .UNINDENT
13935
+ .SS 戻り値
13936
+ .sp
13937
+ データベースのスキーマとデータをGroongaの組み込みコマンド呼び出し形式で出力します。output_type指定は無視されます。
13906
13938
  .SS \fBload\fP
13907
13939
  .SS 概要
13908
13940
  .sp
@@ -14025,11 +14057,15 @@ load \-\-table Entry \-\-input_type json
14025
14057
  .SS 参考
14026
14058
  .sp
14027
14059
  \fB/reference/grn_expr\fP
14028
- .SS log_level
14029
- .SS 名前
14060
+ .SS \fBlog_level\fP
14061
+ .SS 概要
14030
14062
  .sp
14031
14063
  log_level \- ログ出力レベルの設定
14032
- .SS 書式
14064
+ .sp
14065
+ Groonga組込コマンドの一つであるlog_levelについて説明します。組込コマンドは、groonga実行ファイルの引数、標準>入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14066
+ .sp
14067
+ log_levelは、ログ出力レベルを設定します。
14068
+ .SS 構文
14033
14069
  .INDENT 0.0
14034
14070
  .INDENT 3.5
14035
14071
  .sp
@@ -14040,11 +14076,18 @@ log_level level
14040
14076
  .fi
14041
14077
  .UNINDENT
14042
14078
  .UNINDENT
14043
- .SS 説明
14044
- .sp
14045
- Groonga組込コマンドの一つであるlog_levelについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14079
+ .SS 使い方
14080
+ .INDENT 0.0
14081
+ .INDENT 3.5
14046
14082
  .sp
14047
- log_levelは、ログ出力レベルを設定します。
14083
+ .nf
14084
+ .ft C
14085
+ log_level warning
14086
+ [true]
14087
+ .ft P
14088
+ .fi
14089
+ .UNINDENT
14090
+ .UNINDENT
14048
14091
  .SS 引数
14049
14092
  .sp
14050
14093
  \fBlevel\fP
@@ -14065,8 +14108,7 @@ debug
14065
14108
  .UNINDENT
14066
14109
  .UNINDENT
14067
14110
  .UNINDENT
14068
- .SS 返値
14069
- .SS json形式
14111
+ .SS 戻り値
14070
14112
  .INDENT 0.0
14071
14113
  .INDENT 3.5
14072
14114
  .sp
@@ -14084,42 +14126,41 @@ debug
14084
14126
  エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
14085
14127
  .UNINDENT
14086
14128
  .UNINDENT
14087
- .SS
14129
+ .SS 参考
14130
+ .sp
14131
+ \fBlog_put\fP
14132
+ \fBlog_reopen\fP
14133
+ .SS \fBlog_put\fP
14134
+ .SS 概要
14135
+ .sp
14136
+ log_put \- ログ出力
14137
+ .sp
14138
+ groonga組込コマンドの一つであるlog_putについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入>力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14139
+ .sp
14140
+ log_putは、ログにmessageを出力します。
14141
+ .SS 構文
14088
14142
  .INDENT 0.0
14089
14143
  .INDENT 3.5
14090
14144
  .sp
14091
14145
  .nf
14092
14146
  .ft C
14093
- log_level warning
14094
- [true]
14147
+ log_put level message
14095
14148
  .ft P
14096
14149
  .fi
14097
14150
  .UNINDENT
14098
14151
  .UNINDENT
14099
- .SS 関連項目
14100
- .sp
14101
- \fBlog_put\fP
14102
- \fBlog_reopen\fP
14103
- .SS log_put
14104
- .SS 名前
14105
- .sp
14106
- log_put \- ログ出力
14107
- .SS 書式
14152
+ .SS 使い方
14108
14153
  .INDENT 0.0
14109
14154
  .INDENT 3.5
14110
14155
  .sp
14111
14156
  .nf
14112
14157
  .ft C
14113
- log_put level message
14158
+ log_put ERROR ****MESSAGE****
14159
+ [true]
14114
14160
  .ft P
14115
14161
  .fi
14116
14162
  .UNINDENT
14117
14163
  .UNINDENT
14118
- .SS 説明
14119
- .sp
14120
- groonga組込コマンドの一つであるlog_putについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14121
- .sp
14122
- log_putは、ログにmessageを出力します。
14123
14164
  .SS 引数
14124
14165
  .sp
14125
14166
  \fBlevel\fP
@@ -14147,8 +14188,7 @@ debug
14147
14188
  出力する文字列を指定します。
14148
14189
  .UNINDENT
14149
14190
  .UNINDENT
14150
- .SS 返値
14151
- .SS json形式
14191
+ .SS 戻り値
14152
14192
  .INDENT 0.0
14153
14193
  .INDENT 3.5
14154
14194
  .sp
@@ -14166,67 +14206,33 @@ debug
14166
14206
  エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
14167
14207
  .UNINDENT
14168
14208
  .UNINDENT
14169
- .SS
14170
- .INDENT 0.0
14171
- .INDENT 3.5
14172
- .sp
14173
- .nf
14174
- .ft C
14175
- log_put ERROR ****MESSAGE****
14176
- [true]
14177
- .ft P
14178
- .fi
14179
- .UNINDENT
14180
- .UNINDENT
14181
- .SS 関連項目
14209
+ .SS 参考
14182
14210
  .sp
14183
14211
  \fBlog_level\fP
14184
14212
  \fBlog_reopen\fP
14185
- .SS log_reopen
14186
- .SS 名前
14213
+ .SS \fBlog_reopen\fP
14214
+ .SS 概要
14187
14215
  .sp
14188
14216
  log_reopen \- ログファイルの再読み込み
14189
- .SS 書式
14190
- .INDENT 0.0
14191
- .INDENT 3.5
14192
14217
  .sp
14193
- .nf
14194
- .ft C
14195
- log_reopen
14196
- .ft P
14197
- .fi
14198
- .UNINDENT
14199
- .UNINDENT
14200
- .SS 説明
14201
- .sp
14202
- Groonga組込コマンドの一つであるlog_reopenについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14218
+ Groonga組込コマンドの一つであるlog_reopenについて説明します。組込コマンドは、groonga実行ファイルの引数、標準
14219
+ 入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14203
14220
  .sp
14204
14221
  log_reopenは、ログファイルを再読み込みします。
14205
14222
  .sp
14206
14223
  現在、デフォルトのログ関数を用いている場合のみに対応しています。
14207
- .SS 引数
14208
- .sp
14209
- ありません。
14210
- .SS 返値
14211
- .SS json形式
14224
+ .SS 構文
14212
14225
  .INDENT 0.0
14213
14226
  .INDENT 3.5
14214
14227
  .sp
14215
14228
  .nf
14216
14229
  .ft C
14217
- [成功かどうかのフラグ]
14230
+ log_reopen
14218
14231
  .ft P
14219
14232
  .fi
14220
14233
  .UNINDENT
14221
14234
  .UNINDENT
14222
- .sp
14223
- \fB成功かどうかのフラグ\fP
14224
- .INDENT 0.0
14225
- .INDENT 3.5
14226
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
14227
- .UNINDENT
14228
- .UNINDENT
14229
- .SS 例
14235
+ .SS 使い方
14230
14236
  .INDENT 0.0
14231
14237
  .INDENT 3.5
14232
14238
  .sp
@@ -14250,7 +14256,28 @@ log_reopenコマンドを実行する。
14250
14256
  既存のログファイル名と同じファイル名で、新たなログファイルが作成される。
14251
14257
  今後のログは新たなログファイルに書き込まれる。
14252
14258
  .UNINDENT
14253
- .SS 関連項目
14259
+ .SS 引数
14260
+ .sp
14261
+ ありません。
14262
+ .SS 戻り値
14263
+ .INDENT 0.0
14264
+ .INDENT 3.5
14265
+ .sp
14266
+ .nf
14267
+ .ft C
14268
+ [成功かどうかのフラグ]
14269
+ .ft P
14270
+ .fi
14271
+ .UNINDENT
14272
+ .UNINDENT
14273
+ .sp
14274
+ \fB成功かどうかのフラグ\fP
14275
+ .INDENT 0.0
14276
+ .INDENT 3.5
14277
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
14278
+ .UNINDENT
14279
+ .UNINDENT
14280
+ .SS 参考
14254
14281
  .sp
14255
14282
  \fBlog_level\fP
14256
14283
  \fBlog_put\fP
@@ -14438,8 +14465,7 @@ _
14438
14465
  T{
14439
14466
  \fBtypes\fP
14440
14467
  T} T{
14441
- An array of types of the normalized text. The N\-th \fBtypes\fP shows
14442
- the type of the N\-th character in \fBnormalized\fP\&.
14468
+ 正規化されたテキストのtype(文字種別)の配列です。N番目の \fBtypes\fP は正規化されたテキストのN番目の文字のtype(文字種別)を示しています。
14443
14469
  T}
14444
14470
  _
14445
14471
  .TE
@@ -14453,10 +14479,10 @@ _
14453
14479
  .SS \fBnormalizer_list\fP
14454
14480
  .SS 概要
14455
14481
  .sp
14456
- \fBnormalizer_list\fP command lists normalizers in a database.
14482
+ \fBnormalizer_list\fP コマンドはデータベースに登録されているノーマライザーの一覧を返します。
14457
14483
  .SS 構文
14458
14484
  .sp
14459
- \fBnormalizer_list\fP command takes no parameter.
14485
+ \fBnormalizer_list\fP コマンドに引数はありません。:
14460
14486
  .INDENT 0.0
14461
14487
  .INDENT 3.5
14462
14488
  .sp
@@ -14498,17 +14524,16 @@ normalzer_list
14498
14524
  .UNINDENT
14499
14525
  .UNINDENT
14500
14526
  .sp
14501
- It returns normalizers in a database.
14527
+ データベースに登録されているノーマライザーの一覧を返します。
14502
14528
  .SS 戻り値
14503
14529
  .sp
14504
- \fBnormalizer_list\fP command returns normalizers. Each normalizers has an attribute
14505
- that contains the name. The attribute will be increased in the feature:
14530
+ \fBnormalizer_list\fP コマンドはノーマライザーの一覧を返します。各ノーマライザーは属性を持っています。例えば名前です。将来、属性は増えるかもしれません。:
14506
14531
  .INDENT 0.0
14507
14532
  .INDENT 3.5
14508
14533
  .sp
14509
14534
  .nf
14510
14535
  .ft C
14511
- [HEADER, normalizer]
14536
+ [HEADER, normalizers]
14512
14537
  .ft P
14513
14538
  .fi
14514
14539
  .UNINDENT
@@ -14521,11 +14546,10 @@ that contains the name. The attribute will be increased in the feature:
14521
14546
  .UNINDENT
14522
14547
  .UNINDENT
14523
14548
  .sp
14524
- \fBnormalizer\fP
14549
+ \fBnormalizers\fP
14525
14550
  .INDENT 0.0
14526
14551
  .INDENT 3.5
14527
- \fBnormalizer\fP is an array of normalizer. Normalizer is an object that has the following
14528
- attributes.
14552
+ \fBnormalizers\fP はノーマライザーの配列です。ノーマライザーは次の属性を持つオブジェクトです。
14529
14553
  .TS
14530
14554
  center;
14531
14555
  |l|l|.
@@ -14539,7 +14563,7 @@ _
14539
14563
  T{
14540
14564
  \fBname\fP
14541
14565
  T} T{
14542
- Normalizer name.
14566
+ ノーマライザー名。
14543
14567
  T}
14544
14568
  _
14545
14569
  .TE
@@ -14552,11 +14576,17 @@ _
14552
14576
  .IP \(bu 2
14553
14577
  \fB/reference/commands/normalize\fP
14554
14578
  .UNINDENT
14555
- .SS quit
14556
- .SS 名前
14579
+ .SS \fBquit\fP
14580
+ .SS 概要
14557
14581
  .sp
14558
14582
  quit \- セッション終了
14559
- .SS 書式
14583
+ .sp
14584
+ Groonga組込コマンドの一つであるquitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、
14585
+ またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14586
+ .sp
14587
+ quitは、groongaプロセスとのセッションを終了します。クライアントプロセスならばgroongaプロセスとの接続を切りま
14588
+ す。
14589
+ .SS 構文
14560
14590
  .INDENT 0.0
14561
14591
  .INDENT 3.5
14562
14592
  .sp
@@ -14567,18 +14597,7 @@ quit
14567
14597
  .fi
14568
14598
  .UNINDENT
14569
14599
  .UNINDENT
14570
- .SS 説明
14571
- .sp
14572
- Groonga組込コマンドの一つであるquitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14573
- .sp
14574
- quitは、groongaプロセスとのセッションを終了します。クライアントプロセスならばgroongaプロセスとの接続を切ります。
14575
- .SS 引数
14576
- .sp
14577
- ありません。
14578
- .SS 返値
14579
- .sp
14580
- ありません。
14581
- .SS 例
14600
+ .SS 使い方
14582
14601
  .INDENT 0.0
14583
14602
  .INDENT 3.5
14584
14603
  .sp
@@ -14589,7 +14608,13 @@ quit
14589
14608
  .fi
14590
14609
  .UNINDENT
14591
14610
  .UNINDENT
14592
- .SS register
14611
+ .SS 引数
14612
+ .sp
14613
+ ありません。
14614
+ .SS 戻り値
14615
+ .sp
14616
+ ありません。
14617
+ .SS \fBregister\fP
14593
14618
  .SS 概要
14594
14619
  .sp
14595
14620
  \fBregister\fP コマンドはプラグインを登録します。プラグインを使う前にプラグインを登録する必要があります。
@@ -17458,11 +17483,16 @@ drilldown_output_columns, drilldown_offset, drilldown_limitによって指定さ
17458
17483
  .UNINDENT
17459
17484
  .UNINDENT
17460
17485
  .UNINDENT
17461
- .SS shutdown
17462
- .SS 名前
17486
+ .SS \fBshutdown\fP
17487
+ .SS 概要
17463
17488
  .sp
17464
17489
  shutdown \- サーバプロセスの停止
17465
- .SS 書式
17490
+ .sp
17491
+ Groonga組込コマンドの一つであるshutdownについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入
17492
+ 力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
17493
+ .sp
17494
+ shutdownは、接続しているgroongaサーバプロセスを停止します。
17495
+ .SS 構文
17466
17496
  .INDENT 0.0
17467
17497
  .INDENT 3.5
17468
17498
  .sp
@@ -17473,53 +17503,77 @@ shutdown
17473
17503
  .fi
17474
17504
  .UNINDENT
17475
17505
  .UNINDENT
17476
- .SS 説明
17477
- .sp
17478
- Groonga組込コマンドの一つであるshutdownについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
17506
+ .SS 使い方
17507
+ .INDENT 0.0
17508
+ .INDENT 3.5
17479
17509
  .sp
17480
- shutdownは、接続しているgroongaサーバプロセスを停止します。
17510
+ .nf
17511
+ .ft C
17512
+ shutdown
17513
+ .ft P
17514
+ .fi
17515
+ .UNINDENT
17516
+ .UNINDENT
17481
17517
  .SS 引数
17482
17518
  .sp
17483
17519
  ありません。
17484
- .SS 返値
17520
+ .SS 戻り値
17485
17521
  .sp
17486
17522
  ありません。
17487
- .SS
17523
+ .SS \fBstatus\fP
17524
+ .SS 概要
17525
+ .sp
17526
+ status \- groongaプロセスの状態表示
17527
+ .sp
17528
+ Groonga組込コマンドの一つであるstatusについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
17529
+ .sp
17530
+ statusコマンドは、groongaプロセスの状態を表示します。主にgroongaサーバプロセスに対して使用することを想定しています。
17531
+ .SS 構文
17488
17532
  .INDENT 0.0
17489
17533
  .INDENT 3.5
17490
17534
  .sp
17491
17535
  .nf
17492
17536
  .ft C
17493
- shutdown
17537
+ status
17494
17538
  .ft P
17495
17539
  .fi
17496
17540
  .UNINDENT
17497
17541
  .UNINDENT
17498
- .SS status
17499
- .SS 名前
17542
+ .SS 使い方
17500
17543
  .sp
17501
- status \- groongaプロセスの状態表示
17502
- .SS 書式
17544
+ 実行例:
17503
17545
  .INDENT 0.0
17504
17546
  .INDENT 3.5
17505
17547
  .sp
17506
17548
  .nf
17507
17549
  .ft C
17508
17550
  status
17551
+ # [
17552
+ # [
17553
+ # 0,
17554
+ # 1337566253.89858,
17555
+ # 0.000355720520019531
17556
+ # ],
17557
+ # {
17558
+ # "uptime": 7,
17559
+ # "max_command_version": 2,
17560
+ # "n_queries": 39,
17561
+ # "cache_hit_rate": 0.0,
17562
+ # "version": "4.0.1",
17563
+ # "alloc_count": 309,
17564
+ # "command_version": 1,
17565
+ # "starttime": 1395806014,
17566
+ # "default_command_version": 1
17567
+ # }
17568
+ # ]
17509
17569
  .ft P
17510
17570
  .fi
17511
17571
  .UNINDENT
17512
17572
  .UNINDENT
17513
- .SS 説明
17514
- .sp
17515
- Groonga組込コマンドの一つであるstatusについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
17516
- .sp
17517
- statusコマンドは、groongaプロセスの状態を表示します。主にgroongaサーバプロセスに対して使用することを想定しています。
17518
17573
  .SS 引数
17519
17574
  .sp
17520
17575
  ありません。
17521
- .SS 返値
17522
- .SS json形式
17576
+ .SS 戻り値
17523
17577
  .INDENT 0.0
17524
17578
  .INDENT 3.5
17525
17579
  .sp
@@ -17551,38 +17605,7 @@ groongaプロセスが起動した時刻のtvsec値を返します。
17551
17605
  groongaプロセスが起動してから経過した秒数を返します。
17552
17606
  .UNINDENT
17553
17607
  .UNINDENT
17554
- .SS
17555
- .sp
17556
- 実行例:
17557
- .INDENT 0.0
17558
- .INDENT 3.5
17559
- .sp
17560
- .nf
17561
- .ft C
17562
- status
17563
- # [
17564
- # [
17565
- # 0,
17566
- # 1337566253.89858,
17567
- # 0.000355720520019531
17568
- # ],
17569
- # {
17570
- # "uptime": 7,
17571
- # "max_command_version": 2,
17572
- # "n_queries": 39,
17573
- # "cache_hit_rate": 0.0,
17574
- # "version": "4.0.1",
17575
- # "alloc_count": 309,
17576
- # "command_version": 1,
17577
- # "starttime": 1395806014,
17578
- # "default_command_version": 1
17579
- # }
17580
- # ]
17581
- .ft P
17582
- .fi
17583
- .UNINDENT
17584
- .UNINDENT
17585
- .SS suggest
17608
+ .SS \fBsuggest\fP
17586
17609
  .sp
17587
17610
  \fBノート:\fP
17588
17611
  .INDENT 0.0
@@ -17590,10 +17613,14 @@ status
17590
17613
  サジェスト機能の仕様はまだ確定していません。仕様は変更される可能性があります。
17591
17614
  .UNINDENT
17592
17615
  .UNINDENT
17593
- .SS 名前
17616
+ .SS 概要
17594
17617
  .sp
17595
17618
  suggest \- 指定されたクエリーに対する補完・補正・提案候補を返す。
17596
- .SS 書式
17619
+ .sp
17620
+ suggestコマンドは指定されたクエリーに対する補完・補正・提案候補を返します。
17621
+ .sp
17622
+ 補完・補正・提案については \fB/suggest/introduction\fP を参照してください。
17623
+ .SS 構文
17597
17624
  .INDENT 0.0
17598
17625
  .INDENT 3.5
17599
17626
  .sp
@@ -17604,89 +17631,370 @@ suggest types table column query [sortby [output_columns [offset [limit [frequen
17604
17631
  .fi
17605
17632
  .UNINDENT
17606
17633
  .UNINDENT
17607
- .SS 説明
17634
+ .SS 使い方
17608
17635
  .sp
17609
- suggestコマンドは指定されたクエリーに対する補完・補正・提案候補を返します。
17636
+ 以下は補完用の学習データです。
17610
17637
  .sp
17611
- 補完・補正・提案については \fB/suggest/introduction\fP を参照してください。
17612
- .SS オプション
17638
+ 実行例:
17613
17639
  .INDENT 0.0
17614
- .TP
17615
- .B \fBtypes\fP
17616
- suggestコマンドでどの種類の候補を返すかを指定します。
17617
- .sp
17618
- 指定できる種類は以下の通りです。
17619
- .INDENT 7.0
17620
17640
  .INDENT 3.5
17621
- .INDENT 0.0
17622
- .TP
17623
- .B \fBcomplete\fP
17624
- 補完を実行します。
17625
- .TP
17626
- .B \fBcorrect\fP
17627
- 補正を実行します。
17628
- .TP
17629
- .B \fBsuggest\fP
17630
- 提案を実行します。
17631
- .UNINDENT
17641
+ .sp
17642
+ .nf
17643
+ .ft C
17644
+ load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
17645
+ [
17646
+ {"sequence": "1", "time": 1312950803.86057, "item": "e"},
17647
+ {"sequence": "1", "time": 1312950803.96857, "item": "en"},
17648
+ {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
17649
+ {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
17650
+ {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
17651
+ {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
17652
+ ]
17653
+ # [[0, 1337566253.89858, 0.000355720520019531], 6]
17654
+ .ft P
17655
+ .fi
17632
17656
  .UNINDENT
17633
17657
  .UNINDENT
17634
17658
  .sp
17635
- 1つ以上の種類を指定できます。複数の種類を指定する場合は \fB|\fP で区切ります。以下が例です。:
17636
- .INDENT 7.0
17637
- .INDENT 3.5
17638
- 補正候補を返します:
17659
+ 以下は補正用の学習データです。
17660
+ .sp
17661
+ 実行例:
17639
17662
  .INDENT 0.0
17640
17663
  .INDENT 3.5
17641
17664
  .sp
17642
17665
  .nf
17643
17666
  .ft C
17644
- correct
17667
+ load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
17668
+ [
17669
+ {"sequence": "2", "time": 1312950803.86057, "item": "s"},
17670
+ {"sequence": "2", "time": 1312950803.96857, "item": "sa"},
17671
+ {"sequence": "2", "time": 1312950804.26057, "item": "sae"},
17672
+ {"sequence": "2", "time": 1312950804.56057, "item": "saer"},
17673
+ {"sequence": "2", "time": 1312950804.76057, "item": "saerc"},
17674
+ {"sequence": "2", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
17675
+ {"sequence": "2", "time": 1312950809.76057, "item": "serch"},
17676
+ {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"}
17677
+ ]
17678
+ # [[0, 1337566253.89858, 0.000355720520019531], 8]
17645
17679
  .ft P
17646
17680
  .fi
17647
17681
  .UNINDENT
17648
17682
  .UNINDENT
17649
17683
  .sp
17650
- 補正候補と提案候補を返します:
17684
+ 以下は提案用の学習データです。
17685
+ .sp
17686
+ 実行例:
17651
17687
  .INDENT 0.0
17652
17688
  .INDENT 3.5
17653
17689
  .sp
17654
17690
  .nf
17655
17691
  .ft C
17656
- correct|suggest
17692
+ load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
17693
+ [
17694
+ {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
17695
+ {"sequence": "3", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
17696
+ ]
17697
+ # [[0, 1337566253.89858, 0.000355720520019531], 2]
17657
17698
  .ft P
17658
17699
  .fi
17659
17700
  .UNINDENT
17660
17701
  .UNINDENT
17661
17702
  .sp
17662
- 補完候補と補正候補と提案候補を返します:
17703
+ 以下は補完例です。
17704
+ .sp
17705
+ 実行例:
17663
17706
  .INDENT 0.0
17664
17707
  .INDENT 3.5
17665
17708
  .sp
17666
17709
  .nf
17667
17710
  .ft C
17668
- complete|correct|suggest
17711
+ suggest \-\-table item_query \-\-column kana \-\-types complete \-\-frequency_threshold 1 \-\-query en
17712
+ # [
17713
+ # [
17714
+ # 0,
17715
+ # 1337566253.89858,
17716
+ # 0.000355720520019531
17717
+ # ],
17718
+ # {
17719
+ # "complete": [
17720
+ # [
17721
+ # 1
17722
+ # ],
17723
+ # [
17724
+ # [
17725
+ # "_key",
17726
+ # "ShortText"
17727
+ # ],
17728
+ # [
17729
+ # "_score",
17730
+ # "Int32"
17731
+ # ]
17732
+ # ],
17733
+ # [
17734
+ # "engine",
17735
+ # 1
17736
+ # ]
17737
+ # ]
17738
+ # }
17739
+ # ]
17669
17740
  .ft P
17670
17741
  .fi
17671
17742
  .UNINDENT
17672
17743
  .UNINDENT
17673
- .UNINDENT
17674
- .UNINDENT
17675
- .TP
17676
- .B \fBtable\fP
17677
- \fBitem_${データセット名}\fP というフォーマットのテーブル名を指定します。例えば、以下のコマンドでデータセットを作成した場合はテーブル名として \fBitem_query\fP を指定します:
17678
- .INDENT 7.0
17744
+ .sp
17745
+ 以下は補正例です。
17746
+ .sp
17747
+ 実行例:
17748
+ .INDENT 0.0
17679
17749
  .INDENT 3.5
17680
17750
  .sp
17681
17751
  .nf
17682
17752
  .ft C
17683
- groonga\-suggest\-create\-dataset /tmp/db\-path query
17753
+ suggest \-\-table item_query \-\-column kana \-\-types correct \-\-frequency_threshold 1 \-\-query saerch
17754
+ # [
17755
+ # [
17756
+ # 0,
17757
+ # 1337566253.89858,
17758
+ # 0.000355720520019531
17759
+ # ],
17760
+ # {
17761
+ # "correct": [
17762
+ # [
17763
+ # 1
17764
+ # ],
17765
+ # [
17766
+ # [
17767
+ # "_key",
17768
+ # "ShortText"
17769
+ # ],
17770
+ # [
17771
+ # "_score",
17772
+ # "Int32"
17773
+ # ]
17774
+ # ],
17775
+ # [
17776
+ # "search",
17777
+ # 1
17778
+ # ]
17779
+ # ]
17780
+ # }
17781
+ # ]
17684
17782
  .ft P
17685
17783
  .fi
17686
17784
  .UNINDENT
17687
17785
  .UNINDENT
17688
- .TP
17689
- .B \fBcolumn\fP
17786
+ .sp
17787
+ 以下は提案例です。
17788
+ .sp
17789
+ 実行例:
17790
+ .INDENT 0.0
17791
+ .INDENT 3.5
17792
+ .sp
17793
+ .nf
17794
+ .ft C
17795
+ suggest \-\-table item_query \-\-column kana \-\-types suggest \-\-frequency_threshold 1 \-\-query search
17796
+ # [
17797
+ # [
17798
+ # 0,
17799
+ # 1337566253.89858,
17800
+ # 0.000355720520019531
17801
+ # ],
17802
+ # {
17803
+ # "suggest": [
17804
+ # [
17805
+ # 2
17806
+ # ],
17807
+ # [
17808
+ # [
17809
+ # "_key",
17810
+ # "ShortText"
17811
+ # ],
17812
+ # [
17813
+ # "_score",
17814
+ # "Int32"
17815
+ # ]
17816
+ # ],
17817
+ # [
17818
+ # "search engine",
17819
+ # 1
17820
+ # ],
17821
+ # [
17822
+ # "web search realtime",
17823
+ # 1
17824
+ # ]
17825
+ # ]
17826
+ # }
17827
+ # ]
17828
+ .ft P
17829
+ .fi
17830
+ .UNINDENT
17831
+ .UNINDENT
17832
+ .sp
17833
+ 以下は補完・補正・提案を混ぜた例です。
17834
+ .sp
17835
+ 実行例:
17836
+ .INDENT 0.0
17837
+ .INDENT 3.5
17838
+ .sp
17839
+ .nf
17840
+ .ft C
17841
+ suggest \-\-table item_query \-\-column kana \-\-types complete|correct|suggest \-\-frequency_threshold 1 \-\-query search
17842
+ # [
17843
+ # [
17844
+ # 0,
17845
+ # 1337566253.89858,
17846
+ # 0.000355720520019531
17847
+ # ],
17848
+ # {
17849
+ # "suggest": [
17850
+ # [
17851
+ # 2
17852
+ # ],
17853
+ # [
17854
+ # [
17855
+ # "_key",
17856
+ # "ShortText"
17857
+ # ],
17858
+ # [
17859
+ # "_score",
17860
+ # "Int32"
17861
+ # ]
17862
+ # ],
17863
+ # [
17864
+ # "search engine",
17865
+ # 1
17866
+ # ],
17867
+ # [
17868
+ # "web search realtime",
17869
+ # 1
17870
+ # ]
17871
+ # ],
17872
+ # "complete": [
17873
+ # [
17874
+ # 2
17875
+ # ],
17876
+ # [
17877
+ # [
17878
+ # "_key",
17879
+ # "ShortText"
17880
+ # ],
17881
+ # [
17882
+ # "_score",
17883
+ # "Int32"
17884
+ # ]
17885
+ # ],
17886
+ # [
17887
+ # "search",
17888
+ # 2
17889
+ # ],
17890
+ # [
17891
+ # "search engine",
17892
+ # 2
17893
+ # ]
17894
+ # ],
17895
+ # "correct": [
17896
+ # [
17897
+ # 1
17898
+ # ],
17899
+ # [
17900
+ # [
17901
+ # "_key",
17902
+ # "ShortText"
17903
+ # ],
17904
+ # [
17905
+ # "_score",
17906
+ # "Int32"
17907
+ # ]
17908
+ # ],
17909
+ # [
17910
+ # "search",
17911
+ # 2
17912
+ # ]
17913
+ # ]
17914
+ # }
17915
+ # ]
17916
+ .ft P
17917
+ .fi
17918
+ .UNINDENT
17919
+ .UNINDENT
17920
+ .SS 引数
17921
+ .INDENT 0.0
17922
+ .TP
17923
+ .B \fBtypes\fP
17924
+ suggestコマンドでどの種類の候補を返すかを指定します。
17925
+ .sp
17926
+ 指定できる種類は以下の通りです。
17927
+ .INDENT 7.0
17928
+ .INDENT 3.5
17929
+ .INDENT 0.0
17930
+ .TP
17931
+ .B \fBcomplete\fP
17932
+ 補完を実行します。
17933
+ .TP
17934
+ .B \fBcorrect\fP
17935
+ 補正を実行します。
17936
+ .TP
17937
+ .B \fBsuggest\fP
17938
+ 提案を実行します。
17939
+ .UNINDENT
17940
+ .UNINDENT
17941
+ .UNINDENT
17942
+ .sp
17943
+ 1つ以上の種類を指定できます。複数の種類を指定する場合は \fB|\fP で区切ります。以下が例です。:
17944
+ .INDENT 7.0
17945
+ .INDENT 3.5
17946
+ 補正候補を返します:
17947
+ .INDENT 0.0
17948
+ .INDENT 3.5
17949
+ .sp
17950
+ .nf
17951
+ .ft C
17952
+ correct
17953
+ .ft P
17954
+ .fi
17955
+ .UNINDENT
17956
+ .UNINDENT
17957
+ .sp
17958
+ 補正候補と提案候補を返します:
17959
+ .INDENT 0.0
17960
+ .INDENT 3.5
17961
+ .sp
17962
+ .nf
17963
+ .ft C
17964
+ correct|suggest
17965
+ .ft P
17966
+ .fi
17967
+ .UNINDENT
17968
+ .UNINDENT
17969
+ .sp
17970
+ 補完候補と補正候補と提案候補を返します:
17971
+ .INDENT 0.0
17972
+ .INDENT 3.5
17973
+ .sp
17974
+ .nf
17975
+ .ft C
17976
+ complete|correct|suggest
17977
+ .ft P
17978
+ .fi
17979
+ .UNINDENT
17980
+ .UNINDENT
17981
+ .UNINDENT
17982
+ .UNINDENT
17983
+ .TP
17984
+ .B \fBtable\fP
17985
+ \fBitem_${データセット名}\fP というフォーマットのテーブル名を指定します。例えば、以下のコマンドでデータセットを作成した場合はテーブル名として \fBitem_query\fP を指定します:
17986
+ .INDENT 7.0
17987
+ .INDENT 3.5
17988
+ .sp
17989
+ .nf
17990
+ .ft C
17991
+ groonga\-suggest\-create\-dataset /tmp/db\-path query
17992
+ .ft P
17993
+ .fi
17994
+ .UNINDENT
17995
+ .UNINDENT
17996
+ .TP
17997
+ .B \fBcolumn\fP
17690
17998
  \fBtable\fP で指定したテーブルにあるふりがな情報を含むカラムを指定します。ふりがなはカタカナで指定します。
17691
17999
  .TP
17692
18000
  .B \fBquery\fP
@@ -17778,349 +18086,62 @@ groonga\-suggest\-create\-dataset /tmp/db\-path query
17778
18086
  .INDENT 7.0
17779
18087
  .INDENT 3.5
17780
18088
  .INDENT 0.0
17781
- .TP
17782
- .B \fByes\fP
17783
- 常に類似検索を実行します。
17784
- .TP
17785
- .B \fBno\fP
17786
- 類似検索を実行しません。
17787
- .TP
17788
- .B \fBauto\fP
17789
- 他の検索でレコードが見つからない場合のみ類似検索を実行します。
17790
- .UNINDENT
17791
- .UNINDENT
17792
- .UNINDENT
17793
- .INDENT 7.0
17794
- .TP
17795
- .B Default:
17796
- \fBauto\fP
17797
- .UNINDENT
17798
- .UNINDENT
17799
- .SS 戻り値
17800
- .SS JSON形式
17801
- .sp
17802
- 返されるJSON形式は以下の通りです:
17803
- .INDENT 0.0
17804
- .INDENT 3.5
17805
- .sp
17806
- .nf
17807
- .ft C
17808
- {"type1": [["candidate1", score of candidate1],
17809
- ["candidate2", score of candidate2],
17810
- ...],
17811
- "type2": [["candidate1", score of candidate1],
17812
- ["candidate2", score of candidate2],
17813
- ...],
17814
- ...}
17815
- .ft P
17816
- .fi
17817
- .UNINDENT
17818
- .UNINDENT
17819
- .sp
17820
- \fBtype\fP
17821
- .INDENT 0.0
17822
- .INDENT 3.5
17823
- \fBtypes\fP で指定した値。
17824
- .UNINDENT
17825
- .UNINDENT
17826
- .sp
17827
- \fBcandidate\fP
17828
- .INDENT 0.0
17829
- .INDENT 3.5
17830
- 補完・補正・提案候補。
17831
- .UNINDENT
17832
- .UNINDENT
17833
- .sp
17834
- \fBscore of candidate\fP
17835
- .INDENT 0.0
17836
- .INDENT 3.5
17837
- 対応する \fBcandidate\fP のスコアです。スコアが高いほど補完・補正・提案候補として有力という意味になります。デフォルトでは候補は \fBscore of candidate\fP の降順でソートされています。
17838
- .UNINDENT
17839
- .UNINDENT
17840
- .SS 例
17841
- .sp
17842
- 以下は補完用の学習データです。
17843
- .sp
17844
- 実行例:
17845
- .INDENT 0.0
17846
- .INDENT 3.5
17847
- .sp
17848
- .nf
17849
- .ft C
17850
- load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
17851
- [
17852
- {"sequence": "1", "time": 1312950803.86057, "item": "e"},
17853
- {"sequence": "1", "time": 1312950803.96857, "item": "en"},
17854
- {"sequence": "1", "time": 1312950804.26057, "item": "eng"},
17855
- {"sequence": "1", "time": 1312950804.56057, "item": "engi"},
17856
- {"sequence": "1", "time": 1312950804.76057, "item": "engin"},
17857
- {"sequence": "1", "time": 1312950805.86057, "item": "engine", "type": "submit"}
17858
- ]
17859
- # [[0, 1337566253.89858, 0.000355720520019531], 6]
17860
- .ft P
17861
- .fi
17862
- .UNINDENT
17863
- .UNINDENT
17864
- .sp
17865
- 以下は補正用の学習データです。
17866
- .sp
17867
- 実行例:
17868
- .INDENT 0.0
17869
- .INDENT 3.5
17870
- .sp
17871
- .nf
17872
- .ft C
17873
- load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
17874
- [
17875
- {"sequence": "2", "time": 1312950803.86057, "item": "s"},
17876
- {"sequence": "2", "time": 1312950803.96857, "item": "sa"},
17877
- {"sequence": "2", "time": 1312950804.26057, "item": "sae"},
17878
- {"sequence": "2", "time": 1312950804.56057, "item": "saer"},
17879
- {"sequence": "2", "time": 1312950804.76057, "item": "saerc"},
17880
- {"sequence": "2", "time": 1312950805.76057, "item": "saerch", "type": "submit"},
17881
- {"sequence": "2", "time": 1312950809.76057, "item": "serch"},
17882
- {"sequence": "2", "time": 1312950810.86057, "item": "search", "type": "submit"}
17883
- ]
17884
- # [[0, 1337566253.89858, 0.000355720520019531], 8]
17885
- .ft P
17886
- .fi
17887
- .UNINDENT
17888
- .UNINDENT
17889
- .sp
17890
- 以下は提案用の学習データです。
17891
- .sp
17892
- 実行例:
17893
- .INDENT 0.0
17894
- .INDENT 3.5
17895
- .sp
17896
- .nf
17897
- .ft C
17898
- load \-\-table event_query \-\-each \(aqsuggest_preparer(_id, type, item, sequence, time, pair_query)\(aq
17899
- [
17900
- {"sequence": "3", "time": 1312950803.86057, "item": "search engine", "type": "submit"},
17901
- {"sequence": "3", "time": 1312950808.86057, "item": "web search realtime", "type": "submit"}
17902
- ]
17903
- # [[0, 1337566253.89858, 0.000355720520019531], 2]
17904
- .ft P
17905
- .fi
17906
- .UNINDENT
17907
- .UNINDENT
17908
- .sp
17909
- 以下は補完例です。
17910
- .sp
17911
- 実行例:
17912
- .INDENT 0.0
17913
- .INDENT 3.5
17914
- .sp
17915
- .nf
17916
- .ft C
17917
- suggest \-\-table item_query \-\-column kana \-\-types complete \-\-frequency_threshold 1 \-\-query en
17918
- # [
17919
- # [
17920
- # 0,
17921
- # 1337566253.89858,
17922
- # 0.000355720520019531
17923
- # ],
17924
- # {
17925
- # "complete": [
17926
- # [
17927
- # 1
17928
- # ],
17929
- # [
17930
- # [
17931
- # "_key",
17932
- # "ShortText"
17933
- # ],
17934
- # [
17935
- # "_score",
17936
- # "Int32"
17937
- # ]
17938
- # ],
17939
- # [
17940
- # "engine",
17941
- # 1
17942
- # ]
17943
- # ]
17944
- # }
17945
- # ]
17946
- .ft P
17947
- .fi
17948
- .UNINDENT
17949
- .UNINDENT
17950
- .sp
17951
- 以下は補正例です。
17952
- .sp
17953
- 実行例:
17954
- .INDENT 0.0
17955
- .INDENT 3.5
17956
- .sp
17957
- .nf
17958
- .ft C
17959
- suggest \-\-table item_query \-\-column kana \-\-types correct \-\-frequency_threshold 1 \-\-query saerch
17960
- # [
17961
- # [
17962
- # 0,
17963
- # 1337566253.89858,
17964
- # 0.000355720520019531
17965
- # ],
17966
- # {
17967
- # "correct": [
17968
- # [
17969
- # 1
17970
- # ],
17971
- # [
17972
- # [
17973
- # "_key",
17974
- # "ShortText"
17975
- # ],
17976
- # [
17977
- # "_score",
17978
- # "Int32"
17979
- # ]
17980
- # ],
17981
- # [
17982
- # "search",
17983
- # 1
17984
- # ]
17985
- # ]
17986
- # }
17987
- # ]
17988
- .ft P
17989
- .fi
18089
+ .TP
18090
+ .B \fByes\fP
18091
+ 常に類似検索を実行します。
18092
+ .TP
18093
+ .B \fBno\fP
18094
+ 類似検索を実行しません。
18095
+ .TP
18096
+ .B \fBauto\fP
18097
+ 他の検索でレコードが見つからない場合のみ類似検索を実行します。
17990
18098
  .UNINDENT
17991
18099
  .UNINDENT
18100
+ .UNINDENT
18101
+ .INDENT 7.0
18102
+ .TP
18103
+ .B Default:
18104
+ \fBauto\fP
18105
+ .UNINDENT
18106
+ .UNINDENT
18107
+ .SS 戻り値
17992
18108
  .sp
17993
- 以下は提案例です。
17994
- .sp
17995
- 実行例:
18109
+ 返されるJSON形式は以下の通りです:
17996
18110
  .INDENT 0.0
17997
18111
  .INDENT 3.5
17998
18112
  .sp
17999
18113
  .nf
18000
18114
  .ft C
18001
- suggest \-\-table item_query \-\-column kana \-\-types suggest \-\-frequency_threshold 1 \-\-query search
18002
- # [
18003
- # [
18004
- # 0,
18005
- # 1337566253.89858,
18006
- # 0.000355720520019531
18007
- # ],
18008
- # {
18009
- # "suggest": [
18010
- # [
18011
- # 2
18012
- # ],
18013
- # [
18014
- # [
18015
- # "_key",
18016
- # "ShortText"
18017
- # ],
18018
- # [
18019
- # "_score",
18020
- # "Int32"
18021
- # ]
18022
- # ],
18023
- # [
18024
- # "search engine",
18025
- # 1
18026
- # ],
18027
- # [
18028
- # "web search realtime",
18029
- # 1
18030
- # ]
18031
- # ]
18032
- # }
18033
- # ]
18115
+ {"type1": [["candidate1", score of candidate1],
18116
+ ["candidate2", score of candidate2],
18117
+ ...],
18118
+ "type2": [["candidate1", score of candidate1],
18119
+ ["candidate2", score of candidate2],
18120
+ ...],
18121
+ ...}
18034
18122
  .ft P
18035
18123
  .fi
18036
18124
  .UNINDENT
18037
18125
  .UNINDENT
18038
18126
  .sp
18039
- 以下は補完・補正・提案を混ぜた例です。
18127
+ \fBtype\fP
18128
+ .INDENT 0.0
18129
+ .INDENT 3.5
18130
+ \fBtypes\fP で指定した値。
18131
+ .UNINDENT
18132
+ .UNINDENT
18040
18133
  .sp
18041
- 実行例:
18134
+ \fBcandidate\fP
18042
18135
  .INDENT 0.0
18043
18136
  .INDENT 3.5
18137
+ 補完・補正・提案候補。
18138
+ .UNINDENT
18139
+ .UNINDENT
18044
18140
  .sp
18045
- .nf
18046
- .ft C
18047
- suggest \-\-table item_query \-\-column kana \-\-types complete|correct|suggest \-\-frequency_threshold 1 \-\-query search
18048
- # [
18049
- # [
18050
- # 0,
18051
- # 1337566253.89858,
18052
- # 0.000355720520019531
18053
- # ],
18054
- # {
18055
- # "suggest": [
18056
- # [
18057
- # 2
18058
- # ],
18059
- # [
18060
- # [
18061
- # "_key",
18062
- # "ShortText"
18063
- # ],
18064
- # [
18065
- # "_score",
18066
- # "Int32"
18067
- # ]
18068
- # ],
18069
- # [
18070
- # "search engine",
18071
- # 1
18072
- # ],
18073
- # [
18074
- # "web search realtime",
18075
- # 1
18076
- # ]
18077
- # ],
18078
- # "complete": [
18079
- # [
18080
- # 2
18081
- # ],
18082
- # [
18083
- # [
18084
- # "_key",
18085
- # "ShortText"
18086
- # ],
18087
- # [
18088
- # "_score",
18089
- # "Int32"
18090
- # ]
18091
- # ],
18092
- # [
18093
- # "search",
18094
- # 2
18095
- # ],
18096
- # [
18097
- # "search engine",
18098
- # 2
18099
- # ]
18100
- # ],
18101
- # "correct": [
18102
- # [
18103
- # 1
18104
- # ],
18105
- # [
18106
- # [
18107
- # "_key",
18108
- # "ShortText"
18109
- # ],
18110
- # [
18111
- # "_score",
18112
- # "Int32"
18113
- # ]
18114
- # ],
18115
- # [
18116
- # "search",
18117
- # 2
18118
- # ]
18119
- # ]
18120
- # }
18121
- # ]
18122
- .ft P
18123
- .fi
18141
+ \fBscore of candidate\fP
18142
+ .INDENT 0.0
18143
+ .INDENT 3.5
18144
+ 対応する \fBcandidate\fP のスコアです。スコアが高いほど補完・補正・提案候補として有力という意味になります。デフォルトでは候補は \fBscore of candidate\fP の降順でソートされています。
18124
18145
  .UNINDENT
18125
18146
  .UNINDENT
18126
18147
  .SS 参考
@@ -18395,139 +18416,58 @@ Groonga 2.1.0から \fBKEY_NORMALIZE\fP フラグは非推奨になりました
18395
18416
  .sp
18396
18417
  ノーマライザーの一覧は \fB/reference/normalizers\fP にあります。
18397
18418
  .sp
18398
- デフォルト値はありません。
18399
- .SS 戻り値
18400
- .sp
18401
- \fBtable_create\fP が成功したときは以下のようにボディは \fBtrue\fP になります:
18402
- .INDENT 0.0
18403
- .INDENT 3.5
18404
- .sp
18405
- .nf
18406
- .ft C
18407
- [HEADER, true]
18408
- .ft P
18409
- .fi
18410
- .UNINDENT
18411
- .UNINDENT
18412
- .sp
18413
- \fBtable_create\fP が失敗すると、エラーの詳細は \fBHEADER\fP に含まれます。
18414
- .sp
18415
- \fBHEADER\fP については \fB/reference/command/output_format\fP を参照してください。
18416
- .SS 参考
18417
- .INDENT 0.0
18418
- .IP \(bu 2
18419
- \fB/reference/tables\fP
18420
- .IP \(bu 2
18421
- \fB/reference/commands/column_create\fP
18422
- .IP \(bu 2
18423
- \fB/reference/tokenizers\fP
18424
- .IP \(bu 2
18425
- \fB/reference/normalizers\fP
18426
- .IP \(bu 2
18427
- \fB/reference/command/output_format\fP
18428
- .UNINDENT
18429
- .SS table_list
18430
- .SS 名前
18431
- .sp
18432
- table_list \- DBに定義されているテーブルをリスト表示
18433
- .SS 書式
18434
- .INDENT 0.0
18435
- .INDENT 3.5
18436
- .sp
18437
- .nf
18438
- .ft C
18439
- table_list
18440
- .ft P
18441
- .fi
18442
- .UNINDENT
18443
- .UNINDENT
18444
- .SS 説明
18445
- .sp
18446
- Groonga組込コマンドの一つであるtable_listについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
18447
- .sp
18448
- table_listは、DBに定義されているテーブルのリストを表示します。
18449
- .SS 引数
18450
- .sp
18451
- ありません。
18452
- .SS 返値
18453
- .SS json形式
18454
- .sp
18455
- テーブル名一覧が以下の形式で返却されます。:
18456
- .INDENT 0.0
18457
- .INDENT 3.5
18458
- .sp
18459
- .nf
18460
- .ft C
18461
- [[[テーブル情報名1,テーブル情報型1],...], テーブル情報1,...]
18462
- .ft P
18463
- .fi
18464
- .UNINDENT
18465
- .UNINDENT
18466
- .sp
18467
- \fBテーブル情報名n\fP
18468
- .INDENT 0.0
18469
- .INDENT 3.5
18470
- \fBテーブル情報n\fP には複数の情報が含まれますが、そこに入る情報がどんな内容かを示す名前を出力します。
18471
- 情報名は以下の通りです。
18472
- .sp
18473
- \fBid\fP
18474
- .INDENT 0.0
18475
- .INDENT 3.5
18476
- テーブルオブジェクトに割り当てられたID
18477
- .UNINDENT
18478
- .UNINDENT
18479
- .sp
18480
- \fBname\fP
18481
- .INDENT 0.0
18482
- .INDENT 3.5
18483
- テーブル名
18484
- .UNINDENT
18485
- .UNINDENT
18486
- .sp
18487
- \fBpath\fP
18488
- .INDENT 0.0
18489
- .INDENT 3.5
18490
- テーブルのレコードを格納するファイル名
18491
- .UNINDENT
18492
- .UNINDENT
18493
- .sp
18494
- \fBflags\fP
18495
- .INDENT 0.0
18496
- .INDENT 3.5
18497
- テーブルのflags属性
18498
- .UNINDENT
18499
- .UNINDENT
18500
- .sp
18501
- \fBdomain\fP
18502
- .INDENT 0.0
18503
- .INDENT 3.5
18504
- 主キー値の属する型
18505
- .UNINDENT
18506
- .UNINDENT
18419
+ デフォルト値はありません。
18420
+ .SS 戻り値
18507
18421
  .sp
18508
- \fBrange\fP
18422
+ \fBtable_create\fP が成功したときは以下のようにボディは \fBtrue\fP になります:
18509
18423
  .INDENT 0.0
18510
18424
  .INDENT 3.5
18511
- valueが属する型
18512
- .UNINDENT
18513
- .UNINDENT
18425
+ .sp
18426
+ .nf
18427
+ .ft C
18428
+ [HEADER, true]
18429
+ .ft P
18430
+ .fi
18514
18431
  .UNINDENT
18515
18432
  .UNINDENT
18516
18433
  .sp
18517
- \fBテーブル情報型n\fP
18434
+ \fBtable_create\fP が失敗すると、エラーの詳細は \fBHEADER\fP に含まれます。
18435
+ .sp
18436
+ \fBHEADER\fP については \fB/reference/command/output_format\fP を参照してください。
18437
+ .SS 参考
18518
18438
  .INDENT 0.0
18519
- .INDENT 3.5
18520
- テーブル情報の型を出力します。
18521
- .UNINDENT
18439
+ .IP \(bu 2
18440
+ \fB/reference/tables\fP
18441
+ .IP \(bu 2
18442
+ \fB/reference/commands/column_create\fP
18443
+ .IP \(bu 2
18444
+ \fB/reference/tokenizers\fP
18445
+ .IP \(bu 2
18446
+ \fB/reference/normalizers\fP
18447
+ .IP \(bu 2
18448
+ \fB/reference/command/output_format\fP
18522
18449
  .UNINDENT
18450
+ .SS \fBtable_list\fP
18451
+ .SS 概要
18523
18452
  .sp
18524
- \fBテーブル情報n\fP
18453
+ table_list \- DBに定義されているテーブルをリスト表示
18454
+ .sp
18455
+ Groonga組込コマンドの一つであるtable_listについて説明します。組込コマンドは、groonga実行ファイルの引数、標準
18456
+ 入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
18457
+ .sp
18458
+ table_listは、DBに定義されているテーブルのリストを表示します。
18459
+ .SS 構文
18525
18460
  .INDENT 0.0
18526
18461
  .INDENT 3.5
18527
- \fBテーブル情報名n\fP で示された情報の配列を出力します。
18528
- 情報の順序は \fBテーブル情報名n\fP の順序と同じです。
18462
+ .sp
18463
+ .nf
18464
+ .ft C
18465
+ table_list
18466
+ .ft P
18467
+ .fi
18529
18468
  .UNINDENT
18530
18469
  .UNINDENT
18470
+ .SS 使い方
18531
18471
  .sp
18532
18472
  実行例:
18533
18473
  .INDENT 0.0
@@ -18623,34 +18563,126 @@ table_list
18623
18563
  .fi
18624
18564
  .UNINDENT
18625
18565
  .UNINDENT
18626
- .SS table_remove
18627
- .SS 名前
18566
+ .SS 引数
18628
18567
  .sp
18629
- table_remove \- テーブルの削除
18630
- .SS 書式
18568
+ ありません。
18569
+ .SS 戻り値
18570
+ .sp
18571
+ テーブル名一覧が以下の形式で返却されます。:
18631
18572
  .INDENT 0.0
18632
18573
  .INDENT 3.5
18633
18574
  .sp
18634
18575
  .nf
18635
18576
  .ft C
18636
- table_remove name
18577
+ [[[テーブル情報名1,テーブル情報型1],...], テーブル情報1,...]
18637
18578
  .ft P
18638
18579
  .fi
18639
18580
  .UNINDENT
18640
18581
  .UNINDENT
18641
- .SS 説明
18582
+ .sp
18583
+ \fBテーブル情報名n\fP
18584
+ .INDENT 0.0
18585
+ .INDENT 3.5
18586
+ \fBテーブル情報n\fP には複数の情報が含まれますが、そこに入る情報がどんな内容かを示す名前を出力します。
18587
+ 情報名は以下の通りです。
18588
+ .sp
18589
+ \fBid\fP
18590
+ .INDENT 0.0
18591
+ .INDENT 3.5
18592
+ テーブルオブジェクトに割り当てられたID
18593
+ .UNINDENT
18594
+ .UNINDENT
18595
+ .sp
18596
+ \fBname\fP
18597
+ .INDENT 0.0
18598
+ .INDENT 3.5
18599
+ テーブル名
18600
+ .UNINDENT
18601
+ .UNINDENT
18602
+ .sp
18603
+ \fBpath\fP
18604
+ .INDENT 0.0
18605
+ .INDENT 3.5
18606
+ テーブルのレコードを格納するファイル名
18607
+ .UNINDENT
18608
+ .UNINDENT
18609
+ .sp
18610
+ \fBflags\fP
18611
+ .INDENT 0.0
18612
+ .INDENT 3.5
18613
+ テーブルのflags属性
18614
+ .UNINDENT
18615
+ .UNINDENT
18616
+ .sp
18617
+ \fBdomain\fP
18618
+ .INDENT 0.0
18619
+ .INDENT 3.5
18620
+ 主キー値の属する型
18621
+ .UNINDENT
18622
+ .UNINDENT
18623
+ .sp
18624
+ \fBrange\fP
18625
+ .INDENT 0.0
18626
+ .INDENT 3.5
18627
+ valueが属する型
18628
+ .UNINDENT
18629
+ .UNINDENT
18630
+ .UNINDENT
18631
+ .UNINDENT
18632
+ .sp
18633
+ \fBテーブル情報型n\fP
18634
+ .INDENT 0.0
18635
+ .INDENT 3.5
18636
+ テーブル情報の型を出力します。
18637
+ .UNINDENT
18638
+ .UNINDENT
18639
+ .sp
18640
+ \fBテーブル情報n\fP
18641
+ .INDENT 0.0
18642
+ .INDENT 3.5
18643
+ \fBテーブル情報名n\fP で示された情報の配列を出力します。
18644
+ 情報の順序は \fBテーブル情報名n\fP の順序と同じです。
18645
+ .UNINDENT
18646
+ .UNINDENT
18647
+ .SS \fBtable_remove\fP
18648
+ .SS 概要
18649
+ .sp
18650
+ table_remove \- テーブルの削除
18642
18651
  .sp
18643
18652
  groonga組込コマンドの一つであるtable_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
18644
18653
  .sp
18645
18654
  table_removeはテーブルと定義されているカラムを削除します。カラムに付随するインデックスも再帰的に削除されます。
18655
+ .SS 構文
18656
+ .INDENT 0.0
18657
+ .INDENT 3.5
18658
+ .sp
18659
+ .nf
18660
+ .ft C
18661
+ table_remove name
18662
+ .ft P
18663
+ .fi
18664
+ .UNINDENT
18665
+ .UNINDENT
18666
+ .SS 使い方
18667
+ .INDENT 0.0
18668
+ .INDENT 3.5
18669
+ .sp
18670
+ .nf
18671
+ .ft C
18672
+ table_remove Entry
18673
+
18674
+ [true]
18675
+ .ft P
18676
+ .fi
18677
+ .UNINDENT
18678
+ .UNINDENT
18646
18679
  .SS 引数
18647
18680
  .INDENT 0.0
18648
18681
  .TP
18649
18682
  .B \fBname\fP
18650
18683
  削除対象のカラムが定義されているテーブルの名前を指定します。
18651
18684
  .UNINDENT
18652
- .SS 返値
18653
- .SS json形式
18685
+ .SS 戻り値
18654
18686
  .INDENT 0.0
18655
18687
  .INDENT 3.5
18656
18688
  .sp
@@ -18668,19 +18700,6 @@ table_removeはテーブルと定義されているカラムを削除します
18668
18700
  エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
18669
18701
  .UNINDENT
18670
18702
  .UNINDENT
18671
- .SS 例
18672
- .INDENT 0.0
18673
- .INDENT 3.5
18674
- .sp
18675
- .nf
18676
- .ft C
18677
- table_remove Entry
18678
-
18679
- [true]
18680
- .ft P
18681
- .fi
18682
- .UNINDENT
18683
- .UNINDENT
18684
18703
  .SS \fBtokenize\fP
18685
18704
  .SS 概要
18686
18705
  .sp
@@ -18697,6 +18716,7 @@ tokenize tokenizer
18697
18716
  string
18698
18717
  [normalizer=null]
18699
18718
  [flags=NONE]
18719
+ [mode=ADD]
18700
18720
  .ft P
18701
18721
  .fi
18702
18722
  .UNINDENT
@@ -19076,7 +19096,7 @@ tokenize TokenBigram "Groonga is a fast fulltext earch engine!"
19076
19096
  いくつか省略可能な引数があります。
19077
19097
  .SS \fBnormalizer\fP
19078
19098
  .sp
19079
- ノーマライザー名を指定します。 \fBtokenize\fP コマンドは \fBnormalizer\fP という名前のノーまライザーを使います。ノーまライザーは \fBTokenBigrma\fP など、N\-gram関連のトークナイザーにとってとても重要です。
19099
+ ノーマライザー名を指定します。 \fBtokenize\fP コマンドは \fBnormalizer\fP という名前のノーマライザーを使います。ノーマライザーは \fBTokenBigrma\fP など、N\-gram関連のトークナイザーにとってとても重要です。
19080
19100
  .sp
19081
19101
  ノーマライザーはノーマライズ中にそれぞれの文字の種類を検出します。N\-gram系のトークナイザーはトークナイズ中に文字の種類を利用します。
19082
19102
  .sp
@@ -19324,16 +19344,187 @@ tokenize TokenDelimit "Full
19324
19344
  # ],
19325
19345
  # [
19326
19346
  # {
19327
- # "position": 0,
19328
- # "value": "full"
19347
+ # "position": 0,
19348
+ # "value": "full"
19349
+ # },
19350
+ # {
19351
+ # "position": 1,
19352
+ # "value": "text sea"
19353
+ # },
19354
+ # {
19355
+ # "position": 2,
19356
+ # "value": "crch"
19357
+ # }
19358
+ # ]
19359
+ # ]
19360
+ .ft P
19361
+ .fi
19362
+ .UNINDENT
19363
+ .UNINDENT
19364
+ .sp
19365
+ \fBTokenDelimit\fP トークナイザーはトークナイズ済み区切り文字をサポートしているトークナイザーの1つです。 \fBENABLE_TOKENIZED_DELIMITER\fP でトークナイズ済み区切り文字を有効に出来ます。トークナイズ済み区切り文字はトークンの区切りを表す特別な文字です。この文字は \fBU+FFFE\fP です。この文字コードはどの文字にも割り当てられていません。つまり、通常の文字列にはこの文字は現れません。よって、トークンの区切りを表すという目的には適切な文字です。 \fBENABLE_TOKENIZED_DELIMITER\fP が有効のときは、対象文字列はすでにトークナイズ済みであると扱われます。トークナイザーは単にトークナイズ済み区切り文字で区切ってトークナイズします。
19366
+ .SS \fBmode\fP
19367
+ .sp
19368
+ トークナイズモードを指定します。 \fBADD\fP を指定すると、ドキュメント追加時と同じルールでトークナイズされます。 \fBGET\fP を指定すると、ドキュメント検索時と同じルールでトークナイズされます。省略された場合、 \fBADD\fP モードでトークナイズされます。
19369
+ .sp
19370
+ デフォルトのモードは \fBADD\fP です。
19371
+ .sp
19372
+ 以下は \fBADD\fP モードの例です。
19373
+ .sp
19374
+ 実行例:
19375
+ .INDENT 0.0
19376
+ .INDENT 3.5
19377
+ .sp
19378
+ .nf
19379
+ .ft C
19380
+ tokenize TokenBigram "Fulltext Search" \-\-mode ADD
19381
+ # [
19382
+ # [
19383
+ # 0,
19384
+ # 1408017697.66886,
19385
+ # 0.00126171112060547
19386
+ # ],
19387
+ # [
19388
+ # {
19389
+ # "value": "Fu",
19390
+ # "position": 0
19391
+ # },
19392
+ # {
19393
+ # "value": "ul",
19394
+ # "position": 1
19395
+ # },
19396
+ # {
19397
+ # "value": "ll",
19398
+ # "position": 2
19399
+ # },
19400
+ # {
19401
+ # "value": "lt",
19402
+ # "position": 3
19403
+ # },
19404
+ # {
19405
+ # "value": "te",
19406
+ # "position": 4
19407
+ # },
19408
+ # {
19409
+ # "value": "ex",
19410
+ # "position": 5
19411
+ # },
19412
+ # {
19413
+ # "value": "xt",
19414
+ # "position": 6
19415
+ # },
19416
+ # {
19417
+ # "value": "t ",
19418
+ # "position": 7
19419
+ # },
19420
+ # {
19421
+ # "value": " S",
19422
+ # "position": 8
19423
+ # },
19424
+ # {
19425
+ # "value": "Se",
19426
+ # "position": 9
19427
+ # },
19428
+ # {
19429
+ # "value": "ea",
19430
+ # "position": 10
19431
+ # },
19432
+ # {
19433
+ # "value": "ar",
19434
+ # "position": 11
19435
+ # },
19436
+ # {
19437
+ # "value": "rc",
19438
+ # "position": 12
19439
+ # },
19440
+ # {
19441
+ # "value": "ch",
19442
+ # "position": 13
19443
+ # },
19444
+ # {
19445
+ # "value": "h",
19446
+ # "position": 14
19447
+ # }
19448
+ # ]
19449
+ # ]
19450
+ .ft P
19451
+ .fi
19452
+ .UNINDENT
19453
+ .UNINDENT
19454
+ .sp
19455
+ 最後のアルファベットは1文字でトークナイズされています。
19456
+ .sp
19457
+ 以下は \fBGET\fP モードの例です。
19458
+ .sp
19459
+ 実行例:
19460
+ .INDENT 0.0
19461
+ .INDENT 3.5
19462
+ .sp
19463
+ .nf
19464
+ .ft C
19465
+ tokenize TokenBigram "Fulltext Search" \-\-mode GET
19466
+ # [
19467
+ # [
19468
+ # 0,
19469
+ # 1408017732.62883,
19470
+ # 0.000665903091430664
19471
+ # ],
19472
+ # [
19473
+ # {
19474
+ # "value": "Fu",
19475
+ # "position": 0
19329
19476
  # },
19330
19477
  # {
19331
- # "position": 1,
19332
- # "value": "text sea"
19478
+ # "value": "ul",
19479
+ # "position": 1
19333
19480
  # },
19334
19481
  # {
19335
- # "position": 2,
19336
- # "value": "crch"
19482
+ # "value": "ll",
19483
+ # "position": 2
19484
+ # },
19485
+ # {
19486
+ # "value": "lt",
19487
+ # "position": 3
19488
+ # },
19489
+ # {
19490
+ # "value": "te",
19491
+ # "position": 4
19492
+ # },
19493
+ # {
19494
+ # "value": "ex",
19495
+ # "position": 5
19496
+ # },
19497
+ # {
19498
+ # "value": "xt",
19499
+ # "position": 6
19500
+ # },
19501
+ # {
19502
+ # "value": "t ",
19503
+ # "position": 7
19504
+ # },
19505
+ # {
19506
+ # "value": " S",
19507
+ # "position": 8
19508
+ # },
19509
+ # {
19510
+ # "value": "Se",
19511
+ # "position": 9
19512
+ # },
19513
+ # {
19514
+ # "value": "ea",
19515
+ # "position": 10
19516
+ # },
19517
+ # {
19518
+ # "value": "ar",
19519
+ # "position": 11
19520
+ # },
19521
+ # {
19522
+ # "value": "rc",
19523
+ # "position": 12
19524
+ # },
19525
+ # {
19526
+ # "value": "ch",
19527
+ # "position": 13
19337
19528
  # }
19338
19529
  # ]
19339
19530
  # ]
@@ -19342,7 +19533,7 @@ tokenize TokenDelimit "Full
19342
19533
  .UNINDENT
19343
19534
  .UNINDENT
19344
19535
  .sp
19345
- \fBTokenDelimit\fP トークナイザーはトークナイズ済み区切り文字をサポートしているトークナイザーの1つです。 \fBENABLE_TOKENIZED_DELIMITER\fP でトークナイズ済み区切り文字を有効に出来ます。トークナイズ済み区切り文字はトークンの区切りを表す特別な文字です。この文字は \fBU+FFFE\fP です。この文字コードはどの文字にも割り当てられていません。つまり、通常の文字列にはこの文字は現れません。よって、トークンの区切りを表すという目的には適切な文字です。 \fBENABLE_TOKENIZED_DELIMITER\fP が有効のときは、対象文字列はすでにトークナイズ済みであると扱われます。トークナイザーは単にトークナイズ済み区切り文字で区切ってトークナイズします。
19536
+ 最後のアルファベットは2文字でトークナイズされています。
19346
19537
  .SS 戻り値
19347
19538
  .sp
19348
19539
  \fBtokenize\fP コマンドはトークナイズしたトークンをすべて返します。各トークンはトークン自身の文字列情報以外にいくつかの属性を持ちます。属性は今後増えていく可能性があります:
@@ -19401,10 +19592,10 @@ _
19401
19592
  .SS \fBtokenizer_list\fP
19402
19593
  .SS 概要
19403
19594
  .sp
19404
- \fBtokenizer_list\fP command lists tokenizers in a database.
19595
+ \fBtokenizer_list\fP コマンドはデータベースに登録されているトークナイザーの一覧を返します。
19405
19596
  .SS 構文
19406
19597
  .sp
19407
- \fBtokenizer_list\fP command takes no parameter.
19598
+ \fBtokenizer_list\fP コマンドに引数はありません。:
19408
19599
  .INDENT 0.0
19409
19600
  .INDENT 3.5
19410
19601
  .sp
@@ -19479,17 +19670,16 @@ tokenizer_list
19479
19670
  .UNINDENT
19480
19671
  .UNINDENT
19481
19672
  .sp
19482
- It returns tokenizers in a database.
19673
+ データベースに登録されているトークナイザーの一覧を返します。
19483
19674
  .SS 戻り値
19484
19675
  .sp
19485
- \fBtokenizer_list\fP command returns tokenizers. Each tokenizers has an attribute
19486
- that contains the name. The attribute will be increased in the feature:
19676
+ \fBtokenizer_list\fP コマンドはトークナイザーの一覧を返します。各トークナイザーは属性を持っています。例えば名前です。将来、属性は増えるかもしれません。:
19487
19677
  .INDENT 0.0
19488
19678
  .INDENT 3.5
19489
19679
  .sp
19490
19680
  .nf
19491
19681
  .ft C
19492
- [HEADER, tokenizer]
19682
+ [HEADER, tokenizers]
19493
19683
  .ft P
19494
19684
  .fi
19495
19685
  .UNINDENT
@@ -19502,11 +19692,10 @@ that contains the name. The attribute will be increased in the feature:
19502
19692
  .UNINDENT
19503
19693
  .UNINDENT
19504
19694
  .sp
19505
- \fBtokenizer\fP
19695
+ \fBtokenizers\fP
19506
19696
  .INDENT 0.0
19507
19697
  .INDENT 3.5
19508
- \fBtokenizer\fP is an array of tokenizer. Tokenizer is an object that has the following
19509
- attributes.
19698
+ \fBtokenizers\fP はトークナイザーの配列です。トークナイザーは次の属性を持つオブジェクトです。
19510
19699
  .TS
19511
19700
  center;
19512
19701
  |l|l|.
@@ -19520,7 +19709,7 @@ _
19520
19709
  T{
19521
19710
  \fBname\fP
19522
19711
  T} T{
19523
- Tokenizer name.
19712
+ トークナイザー名。
19524
19713
  T}
19525
19714
  _
19526
19715
  .TE
@@ -24459,8 +24648,7 @@ TODO: Add documentations about function.
24459
24648
  .SS between
24460
24649
  .SS 概要
24461
24650
  .sp
24462
- \fBbetween\fP is used for checking the specified value exists in the specific range.
24463
- It is often used for combination with \fIselect\-filter\fP option in \fB/reference/commands/select\fP\&.
24651
+ \fBbetween\fP は、指定された値が指定された範囲にあるかをチェックするために使われます。これは \fB/reference/commands/select\fP \fIselect\-filter\fP オプションと組み合わせてよく使われます。
24464
24652
  .SS 構文
24465
24653
  .sp
24466
24654
  \fBbetween\fP には引数が5つあります。
@@ -25306,127 +25494,451 @@ geo_in_circle() 関数は、pointに指定した座標が、centerに指定し
25306
25494
  .UNINDENT
25307
25495
  .UNINDENT
25308
25496
  .sp
25309
- \fBradious_or_point\fP
25310
- .INDENT 0.0
25311
- .INDENT 3.5
25312
- 円の半径を指定します。数値を指定した場合には、半径(単位:メートル)が指定されたものとみなします。
25313
- Point型の値、あるいは座標を示す文字列を指定した場合は、円周上の点の一つの座標が指定されたものとみなします。
25314
- .UNINDENT
25315
- .UNINDENT
25497
+ \fBradious_or_point\fP
25498
+ .INDENT 0.0
25499
+ .INDENT 3.5
25500
+ 円の半径を指定します。数値を指定した場合には、半径(単位:メートル)が指定されたものとみなします。
25501
+ Point型の値、あるいは座標を示す文字列を指定した場合は、円周上の点の一つの座標が指定されたものとみなします。
25502
+ .UNINDENT
25503
+ .UNINDENT
25504
+ .sp
25505
+ \fBapproximate_type\fP
25506
+ .INDENT 0.0
25507
+ .INDENT 3.5
25508
+ 半径からの距離を求めるために地形をどのように近似するかを指定します。指定できる値は以下の通りです。
25509
+ .sp
25510
+ \fB"rectangle"\fP
25511
+ .INDENT 0.0
25512
+ .INDENT 3.5
25513
+ 方形近似で近似します。単純な計算式で距離を求めることができるため高速ですが、極付近では誤差が大きくなります。
25514
+ .sp
25515
+ \fB"rect"\fP と省略して指定することもできます。
25516
+ .sp
25517
+ この近似方法がデフォルト値です。 \fBapproximate_type\fP を省略した場合は方形近似になります。
25518
+ .UNINDENT
25519
+ .UNINDENT
25520
+ .sp
25521
+ \fB"sphere"\fP
25522
+ .INDENT 0.0
25523
+ .INDENT 3.5
25524
+ 球面近似で近似します。 \fB"rectangle"\fP よりも遅くなりますが、誤差は小さいです。
25525
+ .sp
25526
+ \fB"sphr"\fP と省略して指定することもできます。
25527
+ .UNINDENT
25528
+ .UNINDENT
25529
+ .sp
25530
+ \fB"ellipsoid"\fP
25531
+ .INDENT 0.0
25532
+ .INDENT 3.5
25533
+ 楕円体近似で近似します。距離の計算にはヒュベニの距離計算式を用います。 \fB"sphere"\fP よりも遅くなりますが、誤差は小さくなります。
25534
+ .sp
25535
+ \fB"ellip"\fP と省略して指定することもできます。
25536
+ .UNINDENT
25537
+ .UNINDENT
25538
+ .UNINDENT
25539
+ .UNINDENT
25540
+ .SS 返値
25541
+ .sp
25542
+ pointに指定した座標が円の範囲内にあるかどうかをBool型の値で返します。
25543
+ .SS 例
25544
+ .INDENT 0.0
25545
+ .INDENT 3.5
25546
+ .sp
25547
+ .nf
25548
+ .ft C
25549
+ geo_in_circle(pos, "100x100", 100)
25550
+ true
25551
+ .ft P
25552
+ .fi
25553
+ .UNINDENT
25554
+ .UNINDENT
25555
+ 脚注
25556
+ .IP [1] 5
25557
+ TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
25558
+ .SS geo_in_rectangle
25559
+ .SS 名前
25560
+ .sp
25561
+ geo_in_rectangle \- 座標が矩形の範囲内に存在するかどうかを調べます。
25562
+ .SS 書式
25563
+ .INDENT 0.0
25564
+ .INDENT 3.5
25565
+ .sp
25566
+ .nf
25567
+ .ft C
25568
+ geo_in_rectangle(point, top_left, bottom_right)
25569
+ .ft P
25570
+ .fi
25571
+ .UNINDENT
25572
+ .UNINDENT
25573
+ .SS 説明
25574
+ .sp
25575
+ Groonga組込関数の一つであるgeo_in_rectangleについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。
25576
+ .sp
25577
+ geo_in_rectangle() 関数は、pointに指定した座標が、top_leftとbottom_rightがなす矩形の範囲内にあるかどうかを調べます。
25578
+ .SS 引数
25579
+ .sp
25580
+ \fBpoint\fP
25581
+ .INDENT 0.0
25582
+ .INDENT 3.5
25583
+ 矩形の範囲内に存在するかどうかを調べる座標を指定します。Point型の値を指定できます。 [1]
25584
+ .UNINDENT
25585
+ .UNINDENT
25586
+ .sp
25587
+ \fBtop_left\fP
25588
+ .INDENT 0.0
25589
+ .INDENT 3.5
25590
+ 矩形の左上隅となる座標を指定します。Point型の値、あるいは座標を示す文字列を指定できます。
25591
+ .UNINDENT
25592
+ .UNINDENT
25593
+ .sp
25594
+ \fBbottom_right\fP
25595
+ .INDENT 0.0
25596
+ .INDENT 3.5
25597
+ 矩形の右下隅となる座標を指定します。Point型の値、あるいは座標を示す文字列を指定できます。
25598
+ .UNINDENT
25599
+ .UNINDENT
25600
+ .SS 返値
25601
+ .sp
25602
+ pointに指定した座標が矩形の範囲内にあるかどうかをBool型の値で返します。
25603
+ .SS 例
25604
+ .INDENT 0.0
25605
+ .INDENT 3.5
25606
+ .sp
25607
+ .nf
25608
+ .ft C
25609
+ geo_in_rectangle(pos, "150x100", "100x150")
25610
+ true
25611
+ .ft P
25612
+ .fi
25613
+ .UNINDENT
25614
+ .UNINDENT
25615
+ 脚注
25616
+ .IP [1] 5
25617
+ TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
25618
+ .SS highlight_full
25619
+ .sp
25620
+ \fBご用心:\fP
25621
+ .INDENT 0.0
25622
+ .INDENT 3.5
25623
+ この機能は実験的です。APIが変わる可能性があります。
25624
+ .UNINDENT
25625
+ .UNINDENT
25626
+ .SS 概要
25627
+ .sp
25628
+ \fBhighlight_full\fP は対象テキストをタグ付けします。検索文字列をハイライトさせるために利用することができます。HTMLエスケープの有無、ノーマライザー名を指定することができ、キーワードごとにタグを変更することができます。
25629
+ .SS 構文
25630
+ .sp
25631
+ \fBhighlight_full\fP には必須引数と省略可能引数とがあります:
25632
+ .INDENT 0.0
25633
+ .INDENT 3.5
25634
+ .sp
25635
+ .nf
25636
+ .ft C
25637
+ highlight_full(column, normalizer_name, use_html_escape,
25638
+ keyword1, open_tag1, close_tag1,
25639
+ ...
25640
+ [keywordN, open_tagN, close_tagN])
25641
+ .ft P
25642
+ .fi
25643
+ .UNINDENT
25644
+ .UNINDENT
25645
+ .SS 使い方
25646
+ .sp
25647
+ 使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。
25648
+ .sp
25649
+ 実行例:
25650
+ .INDENT 0.0
25651
+ .INDENT 3.5
25652
+ .sp
25653
+ .nf
25654
+ .ft C
25655
+ table_create Entries TABLE_NO_KEY
25656
+ # [[0,1407692435.35498,0.0364797115325928],true]
25657
+ column_create Entries body COLUMN_SCALAR ShortText
25658
+ # [[0,1407692435.39156,0.0256640911102295],true]
25659
+ table_create Terms TABLE_PAT_KEY ShortText \-\-default_tokenizer TokenBigram \-\-normalizer NormalizerAuto
25660
+ # [[0,1407692435.423,0.0274741649627686],true]
25661
+ column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body
25662
+ # [[0,1407692435.45051,0.0534985065460205],true]
25663
+ load \-\-table Entries
25664
+ [
25665
+ {"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}
25666
+ ]
25667
+ # [[0,1407692435.50406,0.378907442092896],1]
25668
+ .ft P
25669
+ .fi
25670
+ .UNINDENT
25671
+ .UNINDENT
25672
+ .sp
25673
+ \fBhighlight_full\fP は \fB/reference/commands/select\fP コマンドの \fB\-\-output_columns\fP 内でのみ指定できます。
25674
+ .sp
25675
+ \fBhighlight_full\fP を使うにはGroonga 4.0.5以降が必要です。
25676
+ .sp
25677
+ \fBhighlight_full\fP を使うには コマンドバージョン 2以降を使う必要があります。
25678
+ .sp
25679
+ 以下の例はHTMLエスケープを使用し、ノーマライザーに \fBNormalizerAuto\fP を指定しています。この例では キーワード \fBgroonga\fP に \fB<span class="keyword1">\fP と \fB</span>\fP のタグを指定し、キーワード \fBmysql\fP に \fB<span class="keyword2">\fP と \fB</span>\fP のタグを指定しています。
25680
+ .sp
25681
+ 実行例:
25682
+ .INDENT 0.0
25683
+ .INDENT 3.5
25684
+ .sp
25685
+ .nf
25686
+ .ft C
25687
+ select Entries \-\-output_columns \(aqhighlight_full(body, "NormalizerAuto", true, "Groonga", "<span class=\e\e"keyword1\e\e">", "</span>", "mysql", "<span class=\e\e"keyword2\e\e">", "</span>")\(aq \-\-command_version 2
25688
+ # [
25689
+ # [
25690
+ # 0,
25691
+ # 1407695996.52987,
25692
+ # 0.00151872634887695
25693
+ # ],
25694
+ # [
25695
+ # [
25696
+ # [
25697
+ # 1
25698
+ # ],
25699
+ # [
25700
+ # [
25701
+ # "highlight_full",
25702
+ # "null"
25703
+ # ]
25704
+ # ],
25705
+ # [
25706
+ # "Mroonga is a <span class=\e"keyword2\e">MySQL</span> storage engine based on <span class=\e"keyword1\e">Groonga</span>. &lt;b&gt;Rroonga&lt;/b&gt; is a Ruby binding of <span class=\e"keyword1\e">Groonga</span>."
25707
+ # ]
25708
+ # ]
25709
+ # ]
25710
+ # ]
25711
+ .ft P
25712
+ .fi
25713
+ .UNINDENT
25714
+ .UNINDENT
25715
+ .sp
25716
+ キーワードとテキストは \fBNormalizerAuto\fP ノーマライザーで正規化されてタグ付けのためにスキャンされます。
25717
+ .sp
25718
+ \fB\-\-query "groonga mysql"\fP は最初のレコードにマッチします。 \fBhighlight_full\fP は、テキスト中に含まれるキーワード \fBgroonga\fP を \fB<span class="keyword1">\fP と \fB</span>\fP で囲み、 キーワード \fBmysql\fP を \fB<span class="keyword2">\fP と \fB</span>\fP で囲みます。
25719
+ .sp
25720
+ \fB<\fP や \fB>\fP などの特殊文字は &lt; や &gt; にエスケープされています。
25721
+ .sp
25722
+ カラムの代わりに文字列リテラルを指定することもできます。
25723
+ .sp
25724
+ 実行例:
25725
+ .INDENT 0.0
25726
+ .INDENT 3.5
25727
+ .sp
25728
+ .nf
25729
+ .ft C
25730
+ select Entries \-\-output_columns \(aqhighlight_full("Groonga is very fast fulltext search engine.", "NormalizerAuto", true, "Groonga", "<span class=\e\e"keyword1\e\e">", "</span>", "mysql", "<span class=\e\e"keyword2\e\e">", "</span>")\(aq \-\-command_version 2 \-\-match_columns body \-\-query "groonga"
25731
+ # [
25732
+ # [
25733
+ # 0,
25734
+ # 1407696157.1849,
25735
+ # 0.00164437294006348
25736
+ # ],
25737
+ # [
25738
+ # [
25739
+ # [
25740
+ # 1
25741
+ # ],
25742
+ # [
25743
+ # [
25744
+ # "highlight_full",
25745
+ # "null"
25746
+ # ]
25747
+ # ],
25748
+ # [
25749
+ # "<span class=\e"keyword1\e">Groonga</span> is very fast fulltext search engine."
25750
+ # ]
25751
+ # ]
25752
+ # ]
25753
+ # ]
25754
+ .ft P
25755
+ .fi
25756
+ .UNINDENT
25757
+ .UNINDENT
25758
+ .SS 引数
25759
+ .sp
25760
+ 必須引数は3つあります。 \fBcolumn\fP と \fBnormalizer_name\fP と \fBuse_html_escape\fP です。省略可能引数は3つ以上あります。 \fBkeywordN\fP と \fBopen_tagN\fP と \fBend_tagN\fP です。
25761
+ .SS \fBcolumn\fP
25316
25762
  .sp
25317
- \fBapproximate_type\fP
25318
- .INDENT 0.0
25319
- .INDENT 3.5
25320
- 半径からの距離を求めるために地形をどのように近似するかを指定します。指定できる値は以下の通りです。
25763
+ テーブルのカラムを指定します。
25764
+ .SS \fBnormalizer_name\fP
25321
25765
  .sp
25322
- \fB"rectangle"\fP
25323
- .INDENT 0.0
25324
- .INDENT 3.5
25325
- 方形近似で近似します。単純な計算式で距離を求めることができるため高速ですが、極付近では誤差が大きくなります。
25766
+ ノーマライザー名を指定します。
25767
+ .SS \fBuse_html_escape\fP
25326
25768
  .sp
25327
- \fB"rect"\fP と省略して指定することもできます。
25769
+ HTMLエスケープの有無を指定します。 \fBtrue\fP を指定すればHTMLエスケープされます。 \fBfalse\fP を指定すればHTMLエスケープされません。
25770
+ .SS \fBkeywordN\fP
25328
25771
  .sp
25329
- この近似方法がデフォルト値です。 \fBapproximate_type\fP を省略した場合は方形近似になります。
25330
- .UNINDENT
25331
- .UNINDENT
25772
+ タグ付けするキーワードを指定します。3つの引数ごとに複数のキーワードを指定することができます。
25773
+ .SS \fBopen_tagN\fP
25332
25774
  .sp
25333
- \fB"sphere"\fP
25334
- .INDENT 0.0
25335
- .INDENT 3.5
25336
- 球面近似で近似します。 \fB"rectangle"\fP よりも遅くなりますが、誤差は小さいです。
25775
+ 開始タグを指定します。3つの引数ごとに複数の開始タグを指定することができます。
25776
+ .SS \fBclose_tagN\fP
25337
25777
  .sp
25338
- \fB"sphr"\fP と省略して指定することもできます。
25339
- .UNINDENT
25778
+ 終了タグを指定します。3つの引数ごとに複数の終了タグを指定することができます。
25779
+ .SS 戻り値
25780
+ .sp
25781
+ \fBhighlight_full\fP はタグ付の文字列もしくは null を返します。\fBhighlight_full\fP は該当するキーワードがない場合に null を返します。
25782
+ .SS 参考
25783
+ .INDENT 0.0
25784
+ .IP \(bu 2
25785
+ \fB/reference/commands/select\fP
25786
+ .IP \(bu 2
25787
+ \fB/reference/functions/highlight_html\fP
25340
25788
  .UNINDENT
25789
+ .SS highlight_html
25341
25790
  .sp
25342
- \fB"ellipsoid"\fP
25791
+ \fBご用心:\fP
25343
25792
  .INDENT 0.0
25344
25793
  .INDENT 3.5
25345
- 楕円体近似で近似します。距離の計算にはヒュベニの距離計算式を用います。 \fB"sphere"\fP よりも遅くなりますが、誤差は小さくなります。
25346
- .sp
25347
- \fB"ellip"\fP と省略して指定することもできます。
25348
- .UNINDENT
25349
- .UNINDENT
25794
+ この機能は実験的です。APIが変わる可能性があります。
25350
25795
  .UNINDENT
25351
25796
  .UNINDENT
25352
- .SS 返値
25797
+ .SS 概要
25353
25798
  .sp
25354
- pointに指定した座標が円の範囲内にあるかどうかをBool型の値で返します。
25355
- .SS
25799
+ \fBhighlight_html\fP は対象テキストをタグ付けします。検索文字列をハイライトさせるために利用することができます。タグ付けされたテキストはHTML中に埋め込みやすいように処理されています。\fB<\fP や \fB>\fP などの特殊文字は &lt; や &gt; にエスケープされています。キーワードは \fB<span class="keyword">\fP と \fB</span>\fP で囲まれています。たとえば、 \fBI am a groonga user. <3\fP という対象テキストのキーワード \fBgroonga\fP でタグ付けされたテキストは \fBI am a <span class="keyword">groonga</span> user. &lt;3\fP となります。
25800
+ .SS 構文
25801
+ .sp
25802
+ \fBhighlight_html\fP の引数は1つだけです:
25356
25803
  .INDENT 0.0
25357
25804
  .INDENT 3.5
25358
25805
  .sp
25359
25806
  .nf
25360
25807
  .ft C
25361
- geo_in_circle(pos, "100x100", 100)
25362
- true
25808
+ highlight_html(column)
25363
25809
  .ft P
25364
25810
  .fi
25365
25811
  .UNINDENT
25366
25812
  .UNINDENT
25367
- 脚注
25368
- .IP [1] 5
25369
- TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
25370
- .SS geo_in_rectangle
25371
- .SS 名前
25813
+ .SS 使い方
25372
25814
  .sp
25373
- geo_in_rectangle \- 座標が矩形の範囲内に存在するかどうかを調べます。
25374
- .SS 書式
25815
+ 使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。
25816
+ .sp
25817
+ 実行例:
25375
25818
  .INDENT 0.0
25376
25819
  .INDENT 3.5
25377
25820
  .sp
25378
25821
  .nf
25379
25822
  .ft C
25380
- geo_in_rectangle(point, top_left, bottom_right)
25823
+ table_create Entries TABLE_NO_KEY
25824
+ # [[0,1407692435.35498,0.0364797115325928],true]
25825
+ column_create Entries body COLUMN_SCALAR ShortText
25826
+ # [[0,1407692435.39156,0.0256640911102295],true]
25827
+ table_create Terms TABLE_PAT_KEY ShortText \-\-default_tokenizer TokenBigram \-\-normalizer NormalizerAuto
25828
+ # [[0,1407692435.423,0.0274741649627686],true]
25829
+ column_create Terms document_index COLUMN_INDEX|WITH_POSITION Entries body
25830
+ # [[0,1407692435.45051,0.0534985065460205],true]
25831
+ load \-\-table Entries
25832
+ [
25833
+ {"body": "Mroonga is a MySQL storage engine based on Groonga. <b>Rroonga</b> is a Ruby binding of Groonga."}
25834
+ ]
25835
+ # [[0,1407692435.50406,0.378907442092896],1]
25381
25836
  .ft P
25382
25837
  .fi
25383
25838
  .UNINDENT
25384
25839
  .UNINDENT
25385
- .SS 説明
25386
25840
  .sp
25387
- Groonga組込関数の一つであるgeo_in_rectangleについて説明します。組込関数は、script形式のgrn_expr中で呼び出すことができます。
25841
+ \fBhighlight_html\fP は \fB/reference/commands/select\fP コマンドの \fB\-\-output_columns\fP 内でのみ指定できます。
25388
25842
  .sp
25389
- geo_in_rectangle() 関数は、pointに指定した座標が、top_leftとbottom_rightがなす矩形の範囲内にあるかどうかを調べます。
25390
- .SS 引数
25843
+ \fBhighlight_html\fP を使うにはGroonga 4.0.5以降が必要です。
25391
25844
  .sp
25392
- \fBpoint\fP
25393
- .INDENT 0.0
25394
- .INDENT 3.5
25395
- 矩形の範囲内に存在するかどうかを調べる座標を指定します。Point型の値を指定できます。 [1]
25396
- .UNINDENT
25397
- .UNINDENT
25845
+ \fBhighlight_html\fP を使うには コマンドバージョン 2以降を使う必要があります。
25398
25846
  .sp
25399
- \fBtop_left\fP
25400
- .INDENT 0.0
25401
- .INDENT 3.5
25402
- 矩形の左上隅となる座標を指定します。Point型の値、あるいは座標を示す文字列を指定できます。
25403
- .UNINDENT
25404
- .UNINDENT
25847
+ また、 \fB\-\-query\fP と \fB\-\-filter\fP オプションも指定する必要があります。(どちらか一方でも構いません。)これは、 \fB\-\-query\fP と \fB\-\-filter\fP オプションからキーワードを抽出しているためです。
25405
25848
  .sp
25406
- \fBbottom_right\fP
25849
+ 以下の例は \fB\-\-query "groonga mysql"\fP を使っています。この場合は、キーワードとして \fBgroonga\fP と \fBmysql\fP を使います。
25850
+ .sp
25851
+ 実行例:
25407
25852
  .INDENT 0.0
25408
25853
  .INDENT 3.5
25409
- 矩形の右下隅となる座標を指定します。Point型の値、あるいは座標を示す文字列を指定できます。
25854
+ .sp
25855
+ .nf
25856
+ .ft C
25857
+ select Entries \-\-output_columns \-\-match_columns body \-\-query \(aqgroonga mysql\(aq \-\-output_columns \(aqhighlight_html(body)\(aq \-\-command_version 2
25858
+ # [
25859
+ # [
25860
+ # 0,
25861
+ # 1407692444.86092,
25862
+ # 0.00188779830932617
25863
+ # ],
25864
+ # [
25865
+ # [
25866
+ # [
25867
+ # 1
25868
+ # ],
25869
+ # [
25870
+ # [
25871
+ # "highlight_html",
25872
+ # "null"
25873
+ # ]
25874
+ # ],
25875
+ # [
25876
+ # "Mroonga is a <span class=\e"keyword\e">MySQL</span> storage engine based on <span class=\e"keyword\e">Groonga</span>. &lt;b&gt;Rroonga&lt;/b&gt; is a Ruby binding of <span class=\e"keyword\e">Groonga</span>."
25877
+ # ]
25878
+ # ]
25879
+ # ]
25880
+ # ]
25881
+ .ft P
25882
+ .fi
25410
25883
  .UNINDENT
25411
25884
  .UNINDENT
25412
- .SS 返値
25413
25885
  .sp
25414
- pointに指定した座標が矩形の範囲内にあるかどうかをBool型の値で返します。
25415
- .SS 例
25886
+ キーワードとテキストは \fBNormalizerAuto\fP ノーマライザーで正規化されてタグ付けのためにスキャンされます。
25887
+ .sp
25888
+ \fB\-\-query "groonga mysql"\fP は最初のレコードにマッチします。\fBhighlight_html(body)\fP は、テキスト中に含まれるキーワード \fBgroonga\fP と \fBmysql\fP を \fB<span class="keyword">\fP と \fB</span>\fP で囲みます。
25889
+ .sp
25890
+ カラムの代わりに文字列リテラルを指定することもできます。
25891
+ .sp
25892
+ 実行例:
25416
25893
  .INDENT 0.0
25417
25894
  .INDENT 3.5
25418
25895
  .sp
25419
25896
  .nf
25420
25897
  .ft C
25421
- geo_in_rectangle(pos, "150x100", "100x150")
25422
- true
25898
+ select Entries \-\-output_columns \(aqhighlight_html("Groonga is very fast fulltext search engine.")\(aq \-\-command_version 2 \-\-match_columns body \-\-query "groonga"
25899
+ # [
25900
+ # [
25901
+ # 0,
25902
+ # 1407693081.99183,
25903
+ # 0.000126123428344727
25904
+ # ],
25905
+ # [
25906
+ # [
25907
+ # [
25908
+ # 1
25909
+ # ],
25910
+ # [
25911
+ # [
25912
+ # "highlight_html",
25913
+ # "null"
25914
+ # ]
25915
+ # ],
25916
+ # [
25917
+ # "<span class=\e"keyword\e">Groonga</span> is very fast fulltext search engine."
25918
+ # ]
25919
+ # ]
25920
+ # ]
25921
+ # ]
25423
25922
  .ft P
25424
25923
  .fi
25425
25924
  .UNINDENT
25426
25925
  .UNINDENT
25427
- 脚注
25428
- .IP [1] 5
25429
- TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
25926
+ .SS 引数
25927
+ .sp
25928
+ 引数は1つあります。 \fBcolumn\fP です。
25929
+ .SS \fBcolumn\fP
25930
+ .sp
25931
+ テーブルのカラムを指定します。
25932
+ .SS 戻り値
25933
+ .sp
25934
+ \fBhighlight_html\fP はタグ付の文字列もしくは null を返します。\fBhighlight_html\fP は該当するキーワードがない場合に null を返します。
25935
+ .SS 参考
25936
+ .INDENT 0.0
25937
+ .IP \(bu 2
25938
+ \fB/reference/commands/select\fP
25939
+ .IP \(bu 2
25940
+ \fB/reference/functions/highlight_full\fP
25941
+ .UNINDENT
25430
25942
  .SS html_untag
25431
25943
  .SS 概要
25432
25944
  .sp
@@ -25579,10 +26091,7 @@ now()
25579
26091
  .SS query
25580
26092
  .SS 概要
25581
26093
  .sp
25582
- \fBquery\fP provides \fB\-\-match_columns\fP and \fB\-\-query\fP parameters of
25583
- \fB/reference/commands/select\fP feature as function. You can specify
25584
- multiple \fBquery\fP functions in \fB\-\-filter\fP parameter in
25585
- \fB/reference/commands/select\fP\&.
26094
+ \fBquery\fP は、\fB/reference/commands/select\fP \fB\-\-match_columns\fP \fB\-\-query\fP 引数の機能を関数として提供します。\fB/reference/commands/select\fP の \fB\-\-filter\fP 引数で複数の \fBquery\fP 関数を指定することができます。
25586
26095
  .sp
25587
26096
  そのような柔軟性があるので、 複数の \fBquery\fP 関数を組合せることで全文検索の振舞いを制御することができます。
25588
26097
  .sp
@@ -25875,9 +26384,7 @@ select Users \-\-output_columns name,memo,_score \-\-filter \(aqquery("memo * 10
25875
26384
  詳細については \fIquery\-expander\fP を参照してください。
25876
26385
  .SS 戻り値
25877
26386
  .sp
25878
- \fBquery\fP returns whether any record is matched or not. If one or more
25879
- records are matched, it returns \fBtrue\fP\&. Otherwise, it returns
25880
- \fBfalse\fP\&.
26387
+ \fBquery\fP は1つでもレコードがマッチしたかどうかを返します。もし、1つ以上のレコードがマッチしたら \fBtrue\fP を返します。1つもマッチしなかったら \fBfalse\fP を返します。
25881
26388
  .SS TODO
25882
26389
  .INDENT 0.0
25883
26390
  .IP \(bu 2
@@ -27189,7 +27696,7 @@ case. If you open only one database or don\(aqt use
27189
27696
  \fBgrn_cache\fP object. It is \fI\%rroonga\fP case.
27190
27697
  .SS 実行例:
27191
27698
  .sp
27192
- 以下はキャシュを変更する例です。
27699
+ 以下はキャッシュを変更する例です。
27193
27700
  .INDENT 0.0
27194
27701
  .INDENT 3.5
27195
27702
  .sp
@@ -29707,13 +30214,193 @@ tutorial about it.
29707
30214
  .SS リファレンス
29708
30215
  .INDENT 0.0
29709
30216
  .TP
30217
+ .B grn_rc GRN_PLUGIN_INIT(grn_ctx\fI\ *ctx\fP)
30218
+ .UNINDENT
30219
+ .INDENT 0.0
30220
+ .TP
30221
+ .B grn_rc GRN_PLUGIN_REGISTER(grn_ctx\fI\ *ctx\fP)
30222
+ .UNINDENT
30223
+ .INDENT 0.0
30224
+ .TP
30225
+ .B grn_rc GRN_PLUGIN_FIN(grn_ctx\fI\ *ctx\fP)
30226
+ .UNINDENT
30227
+ .INDENT 0.0
30228
+ .TP
30229
+ .B GRN_PLUGIN_MALLOC(ctx, size)
30230
+ GRN_PLUGIN_MALLOC() allocates \fIsize\fP bytes and returns a pointer to the
30231
+ allocated memory space. Note that the memory space is associated with \fIctx\fP\&.
30232
+ .UNINDENT
30233
+ .INDENT 0.0
30234
+ .TP
30235
+ .B GRN_PLUGIN_REALLOC(ctx, ptr, size)
30236
+ GRN_PLUGIN_REALLOC() resizes the memory space pointed to by \fIptr\fP or
30237
+ allocates a new memory space of \fIsize\fP bytes. GRN_PLUGIN_REALLOC() returns
30238
+ a pointer to the memory space. The contents is unchanged or copied from the
30239
+ old memory space to the new memory space.
30240
+ .UNINDENT
30241
+ .INDENT 0.0
30242
+ .TP
30243
+ .B GRN_PLUGIN_FREE(ctx, ptr)
30244
+ GRN_PLUGIN_FREE() frees a memory space allocated by GRN_PLUGIN_MALLOC() or
30245
+ GRN_PLUGIN_REALLOC(). This means that \fIptr\fP must be a pointer returned by
30246
+ GRN_PLUGIN_MALLOC() or GRN_PLUGIN_REALLOC().
30247
+ .UNINDENT
30248
+ .INDENT 0.0
30249
+ .TP
30250
+ .B GRN_PLUGIN_LOG(ctx, level, \&...)
30251
+ GRN_PLUGIN_LOG() reports a log of \fIlevel\fP\&. Its error message is generated
30252
+ from the varying number of arguments, in which the first one is the format
30253
+ string and the rest are its arguments. See grn_log_level in "groonga.h" for
30254
+ more details of \fIlevel\fP\&.
30255
+ .UNINDENT
30256
+ .INDENT 0.0
30257
+ .TP
30258
+ .B GRN_PLUGIN_ERROR(ctx, error_code, \&...)
30259
+ GRN_PLUGIN_ERROR() reports an error of \fIerror_code\fP\&. Its error message is
30260
+ generated from the varying number of arguments, in which the first one is the
30261
+ format string and the rest are its arguments. See grn_rc in "groonga.h" for
30262
+ more details of \fIerror_code\fP\&.
30263
+ .UNINDENT
30264
+ .INDENT 0.0
30265
+ .TP
30266
+ .B grn_plugin_mutex
30267
+ grn_plugin_mutex is available to make a critical section. See the
30268
+ following functions.
30269
+ .UNINDENT
30270
+ .INDENT 0.0
30271
+ .TP
30272
+ .B grn_plugin_mutex *grn_plugin_mutex_open(grn_ctx\fI\ *ctx\fP)
30273
+ grn_plugin_mutex_open() returns a pointer to a new object of
30274
+ grn_plugin_mutex. Memory for the new object is obtained with
30275
+ GRN_PLUGIN_MALLOC(). grn_plugin_mutex_open() returns NULL if sufficient
30276
+ memory is not available.
30277
+ .UNINDENT
30278
+ .INDENT 0.0
30279
+ .TP
30280
+ .B void grn_plugin_mutex_close(grn_ctx\fI\ *ctx\fP, grn_plugin_mutex\fI\ *mutex\fP)
30281
+ grn_plugin_mutex_close() finalizes an object of grn_plugin_mutex and then
30282
+ frees memory allocated for that object.
30283
+ .UNINDENT
30284
+ .INDENT 0.0
30285
+ .TP
30286
+ .B void grn_plugin_mutex_lock(grn_ctx\fI\ *ctx\fP, grn_plugin_mutex\fI\ *mutex\fP)
30287
+ grn_plugin_mutex_lock() locks a mutex object. If the object is already
30288
+ locked, the calling thread waits until the object will be unlocked.
30289
+ .UNINDENT
30290
+ .INDENT 0.0
30291
+ .TP
30292
+ .B void grn_plugin_mutex_unlock(grn_ctx\fI\ *ctx\fP, grn_plugin_mutex\fI\ *mutex\fP)
30293
+ grn_plugin_mutex_unlock() unlocks a mutex object. grn_plugin_mutex_unlock()
30294
+ should not be called for an unlocked object.
30295
+ .UNINDENT
30296
+ .INDENT 0.0
30297
+ .TP
30298
+ .B grn_obj *grn_plugin_proc_alloc(grn_ctx\fI\ *ctx\fP, grn_user_data\fI\ *user_data\fP, grn_id\fI\ domain\fP, grn_obj_flags\fI\ flags\fP)
30299
+ grn_plugin_proc_alloc() allocates a \fIgrn_obj\fP object.
30300
+ You can use it in function that is registered as GRN_PROC_FUNCTION.
30301
+ .UNINDENT
30302
+ .INDENT 0.0
30303
+ .TP
29710
30304
  .B grn_obj grn_plugin_proc_get_var(grn_ctx\fI\ *ctx\fP, grn_user_data\fI\ *user_data\fP, const char\fI\ *name\fP, int\fI\ name_size\fP)
29711
- TODO...
30305
+ It gets a variable value from \fIgrn_user_data\fP by specifying the variable name.
30306
+ .INDENT 7.0
30307
+ .TP
30308
+ .B パラメタ
30309
+ .INDENT 7.0
30310
+ .IP \(bu 2
30311
+ \fBname\fP \-\- 変数名。
30312
+ .IP \(bu 2
30313
+ \fBname_size\fP \-\- The number of bytes of name. If \fIname_size\fP is negative, \fIname\fP must be NUL\-terminated. \fIname_size\fP is computed by \fIstrlen(name)\fP for the case.
30314
+ .UNINDENT
30315
+ .TP
30316
+ .B 戻り値
30317
+ 成功すると変数の値を返します。失敗するとNULLを返します。
30318
+ .UNINDENT
29712
30319
  .UNINDENT
29713
30320
  .INDENT 0.0
29714
30321
  .TP
29715
- .B grn_obj *grn_plugin_proc_get_var_by_offset(grn_ctx *ctx, grn_user_data *user_data, unsigned int offset);
29716
- TODO...
30322
+ .B grn_obj *grn_plugin_proc_get_var_by_offset(grn_ctx\fI\ *ctx\fP, grn_user_data\fI\ *user_data\fP, unsigned int\fI\ offset\fP)
30323
+ It gets a variable value from \fIgrn_user_data\fP by specifying the offset position of the variable.
30324
+ .INDENT 7.0
30325
+ .TP
30326
+ .B パラメタ
30327
+ .INDENT 7.0
30328
+ .IP \(bu 2
30329
+ \fBoffset\fP \-\- The offset position of the variable.
30330
+ .UNINDENT
30331
+ .TP
30332
+ .B 戻り値
30333
+ 成功すると変数の値を返します。失敗するとNULLを返します。
30334
+ .UNINDENT
30335
+ .UNINDENT
30336
+ .INDENT 0.0
30337
+ .TP
30338
+ .B const char *grn_plugin_win32_base_dir(void)
30339
+ grn_plugin_win32_base_dir() returns the groonga install directory.
30340
+ The install directory is computed from the directory that has
30341
+ \fIgroonga.dll\fP\&. You can use the directory to generate install
30342
+ directory aware path.
30343
+ It only works on Windows. It returns \fINULL\fP on other platforms.
30344
+ .UNINDENT
30345
+ .INDENT 0.0
30346
+ .TP
30347
+ .B int grn_plugin_charlen(grn_ctx\fI\ *ctx\fP, const char\fI\ *str_ptr\fP, unsigned int\fI\ str_length\fP, grn_encoding\fI\ encoding\fP)
30348
+ grn_plugin_charlen() returns the length (#bytes) of the first character
30349
+ in the string specified by \fIstr_ptr\fP and \fIstr_length\fP\&. If the starting bytes
30350
+ are invalid as a character, grn_plugin_charlen() returns 0. See
30351
+ grn_encoding in "groonga.h" for more details of \fIencoding\fP\&.
30352
+ .UNINDENT
30353
+ .INDENT 0.0
30354
+ .TP
30355
+ .B int grn_plugin_isspace(grn_ctx\fI\ *ctx\fP, const char\fI\ *str_ptr\fP, unsigned int\fI\ str_length\fP, grn_encoding\fI\ encoding\fP)
30356
+ grn_plugin_isspace() returns the length (#bytes) of the first character
30357
+ in the string specified by \fIstr_ptr\fP and \fIstr_length\fP if it is a space
30358
+ character. Otherwise, grn_plugin_isspace() returns 0.
30359
+ .UNINDENT
30360
+ .INDENT 0.0
30361
+ .TP
30362
+ .B grn_rc grn_plugin_expr_var_init(grn_ctx\fI\ *ctx\fP, grn_expr_var\fI\ *var\fP, const char\fI\ *name\fP, int\fI\ name_size\fP)
30363
+ It initializes a \fIgrn_expr_var\fP\&.
30364
+ .INDENT 7.0
30365
+ .TP
30366
+ .B パラメタ
30367
+ .INDENT 7.0
30368
+ .IP \(bu 2
30369
+ \fBvar\fP \-\- The pointer of \fIgrn_expr_var\fP object to be initialized.
30370
+ .IP \(bu 2
30371
+ \fBname\fP \-\- The name of \fIgrn_expr_var\fP object to be initialized.
30372
+ .IP \(bu 2
30373
+ \fBname_size\fP \-\- The number of bytes of name. If \fIname_size\fP is negative, \fIname\fP must be NUL\-terminated. \fIname_size\fP is computed by \fIstrlen(name)\fP for the case.
30374
+ .UNINDENT
30375
+ .TP
30376
+ .B 戻り値
30377
+ \fBGRN_SUCCESS\fP\&. It doesn\(aqt fail.
30378
+ .UNINDENT
30379
+ .UNINDENT
30380
+ .INDENT 0.0
30381
+ .TP
30382
+ .B grn_obj * grn_plugin_command_create(grn_ctx\fI\ *ctx\fP, const char\fI\ *name\fP, int\fI\ name_size\fP, grn_proc_func\fI\ func\fP, unsigned int\fI\ n_vars\fP, grn_expr_var\fI\ *vars\fP)
30383
+ It creates a command.
30384
+ .INDENT 7.0
30385
+ .TP
30386
+ .B パラメタ
30387
+ .INDENT 7.0
30388
+ .IP \(bu 2
30389
+ \fBname\fP \-\- The \fIproc\fP name of the command to be created.
30390
+ .IP \(bu 2
30391
+ \fBname_size\fP \-\- The number of bytes of name. If \fIname_size\fP is negative, \fIname\fP must be NUL\-terminated. \fIname_size\fP is computed by \fIstrlen(name)\fP for the case.
30392
+ .IP \(bu 2
30393
+ \fBfunc\fP \-\- The function name to be called by the created command.
30394
+ .IP \(bu 2
30395
+ \fBn_vars\fP \-\- The number of the variables of the command to create.
30396
+ .IP \(bu 2
30397
+ \fBvars\fP \-\- The pointer of initialized \fIgrn_expr_var\fP object.
30398
+ .UNINDENT
30399
+ .TP
30400
+ .B 戻り値
30401
+ The created command object if it creates a command successfully,
30402
+ \fINULL\fP otherwise. See \fIctx\fP for error details.
30403
+ .UNINDENT
29717
30404
  .UNINDENT
29718
30405
  .SH 仕様
29719
30406
  .SS GQTP
@@ -30565,7 +31252,7 @@ database size (16GB) = vm.max_map_count (65536) * memory chunks (256KB)
30565
31252
  .sp
30566
31253
  sudo sysctl \-w vm.max_map_count=65536 で一時的に vm.max_map_count を調整することができます。
30567
31254
  .sp
30568
- その後、設定値を /etc/sysctl.conf もしくは \fI/etc/sysctl.d/*.conf\fP へと保存します。
31255
+ その後、設定値を \fB/etc/sysctl.conf\fP もしくは \fB/etc/sysctl.d/*.conf\fP へと保存します。
30569
31256
  .sp
30570
31257
  チューニング関連のパラメータについては、 \fB/reference/tuning\fP のドキュメントを参照してください。
30571
31258
  .SH 開発
@@ -30662,7 +31349,7 @@ Groongaについてまわりの人に話してください。
30662
31349
  どちらのやり方でも大丈夫です。
30663
31350
  .SS 課題追跡システムへ登録する
30664
31351
  .sp
30665
- Groonga用の課題追跡システム(ITS, Issue Tracking System)が2つあります。1つは \fI\%Redmine\fP でもう1つは \fI\%GitHub issue tracker\fP です。Redmineは日本語で、GitHub issue trackerは英語を使っています。どちらにバグレポートをしても大丈夫です。
31352
+ Groonga用の課題追跡システム(ITS, Issue Tracking System)が2つあります。1つは \fI\%Redmine\fP でもう1つは \fI\%GitHub issue tracker\fP です。Redmineは日本語を使っていて、GitHub issue trackerは英語または日本語(できれば英語、苦手なら日本語でも可)を使っています。どちらにバグレポートをしても大丈夫です。
30666
31353
  .SS メーリングリストへ報告する
30667
31354
  .sp
30668
31355
  GroongaプロジェクトではGroongaについて議論するための \fB/community\fP があります。バグを説明したメールを送ってください。
@@ -30954,7 +31641,7 @@ pull requestを送るためのコマンドライン:
30954
31641
  \fB参考:\fP
30955
31642
  .INDENT 0.0
30956
31643
  .INDENT 3.5
30957
- pull requestの送り方
31644
+ \fI\%Help.GitHub \- pull requestを送る\fP\&.
30958
31645
  .UNINDENT
30959
31646
  .UNINDENT
30960
31647
  .SS パッチの送り方
@@ -31011,7 +31698,7 @@ doc/locale/${LANGUAGE}/LC_MESSAGES/以下を.tar.gzや.zipなどでアーカイ
31011
31698
  \fB参考:\fP
31012
31699
  .INDENT 0.0
31013
31700
  .INDENT 3.5
31014
- 言語名を表記するためのコード
31701
+ \fI\%言語名を表記するためのコードの一覧\fP\&.
31015
31702
  .UNINDENT
31016
31703
  .UNINDENT
31017
31704
  .SS C API