rroonga 2.1.3-x86-mingw32 → 3.0.0-x86-mingw32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (429) hide show
  1. data/bin/grndump +1 -1
  2. data/doc/text/news.textile +22 -4
  3. data/ext/groonga/rb-grn-accessor.c +1 -1
  4. data/ext/groonga/rb-grn-array-cursor.c +1 -1
  5. data/ext/groonga/rb-grn-array.c +218 -2
  6. data/ext/groonga/rb-grn-column.c +1 -1
  7. data/ext/groonga/rb-grn-context.c +1 -1
  8. data/ext/groonga/rb-grn-database.c +1 -1
  9. data/ext/groonga/rb-grn-double-array-trie-cursor.c +1 -1
  10. data/ext/groonga/rb-grn-double-array-trie.c +1 -1
  11. data/ext/groonga/rb-grn-encoding-support.c +1 -1
  12. data/ext/groonga/rb-grn-encoding.c +1 -1
  13. data/ext/groonga/rb-grn-exception.c +1 -1
  14. data/ext/groonga/rb-grn-expression-builder.c +1 -1
  15. data/ext/groonga/rb-grn-expression.c +1 -1
  16. data/ext/groonga/rb-grn-fix-size-column.c +1 -1
  17. data/ext/groonga/rb-grn-geo-point.c +1 -1
  18. data/ext/groonga/rb-grn-hash-cursor.c +1 -1
  19. data/ext/groonga/rb-grn-hash.c +1 -1
  20. data/ext/groonga/rb-grn-index-column.c +1 -1
  21. data/ext/groonga/rb-grn-index-cursor.c +1 -1
  22. data/ext/groonga/rb-grn-logger.c +1 -1
  23. data/ext/groonga/rb-grn-normalizer.c +1 -1
  24. data/ext/groonga/rb-grn-object.c +7 -7
  25. data/ext/groonga/rb-grn-operator.c +1 -1
  26. data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
  27. data/ext/groonga/rb-grn-patricia-trie.c +1 -1
  28. data/ext/groonga/rb-grn-plugin.c +1 -1
  29. data/ext/groonga/rb-grn-posting.c +1 -1
  30. data/ext/groonga/rb-grn-procedure.c +1 -1
  31. data/ext/groonga/rb-grn-record.c +1 -1
  32. data/ext/groonga/rb-grn-snippet.c +1 -1
  33. data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
  34. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  35. data/ext/groonga/rb-grn-table-key-support.c +1 -1
  36. data/ext/groonga/rb-grn-table.c +1 -1
  37. data/ext/groonga/rb-grn-type.c +1 -1
  38. data/ext/groonga/rb-grn-utils.c +1 -1
  39. data/ext/groonga/rb-grn-variable-size-column.c +1 -1
  40. data/ext/groonga/rb-grn-variable.c +1 -1
  41. data/ext/groonga/rb-grn.h +4 -4
  42. data/ext/groonga/rb-groonga.c +1 -1
  43. data/lib/1.9/groonga.so +0 -0
  44. data/lib/2.0/groonga.so +0 -0
  45. data/lib/groonga/context.rb +93 -13
  46. data/rroonga-build.rb +2 -2
  47. data/test/groonga-test-utils.rb +2 -1
  48. data/test/test-array.rb +86 -2
  49. data/test/test-context.rb +22 -2
  50. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  51. data/vendor/local/bin/groonga.exe +0 -0
  52. data/vendor/local/bin/libgroonga-0.dll +0 -0
  53. data/vendor/local/bin/libmecab-1.dll +0 -0
  54. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  55. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  56. data/vendor/local/bin/mecab.exe +0 -0
  57. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +1 -1
  58. data/vendor/local/include/groonga/groonga.h +16 -8
  59. data/vendor/local/include/groonga/groonga/nfkc.h +32 -0
  60. data/vendor/local/include/groonga/groonga/plugin.h +39 -21
  61. data/vendor/local/include/groonga/groonga/tokenizer.h +4 -0
  62. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  63. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  64. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  65. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  66. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  67. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  68. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  69. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  70. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  71. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  72. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  73. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  74. data/vendor/local/lib/libgroonga.a +0 -0
  75. data/vendor/local/lib/libgroonga.dll.a +0 -0
  76. data/vendor/local/lib/libmecab.a +0 -0
  77. data/vendor/local/lib/libmecab.dll.a +0 -0
  78. data/vendor/local/lib/libmsgpack.a +0 -0
  79. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  80. data/vendor/local/lib/libmsgpackc.a +0 -0
  81. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  82. data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
  83. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  84. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  85. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  86. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  87. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  88. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  89. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development.txt +1 -0
  90. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +9 -0
  91. data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +12 -0
  92. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +20 -4
  93. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +28 -4
  94. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +12 -4
  95. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +8 -4
  96. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  97. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  98. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +36 -4
  99. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +11 -11
  100. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +112 -0
  101. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +2 -2
  102. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/check.txt +2 -2
  103. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +2 -2
  104. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +2 -2
  105. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_remove.txt +1 -1
  106. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +79 -0
  107. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/define_selector.txt +2 -2
  108. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt +2 -2
  109. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +2 -2
  110. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +51 -51
  111. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +2 -2
  112. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_put.txt +2 -2
  113. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_reopen.txt +2 -2
  114. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +85 -0
  115. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +98 -89
  116. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +5 -5
  117. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +2 -2
  118. data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +73 -0
  119. data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +124 -0
  120. data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +24 -0
  121. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -5
  122. data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
  123. data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
  124. data/vendor/local/share/doc/groonga/en/html/contribution.html +58 -57
  125. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -16
  126. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +18 -18
  127. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +25 -25
  128. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +61 -61
  129. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +104 -95
  130. data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +138 -0
  131. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +37 -37
  132. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +9 -9
  133. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  135. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  136. data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
  137. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
  139. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/index.html +36 -30
  141. data/vendor/local/share/doc/groonga/en/html/install.html +6 -6
  142. data/vendor/local/share/doc/groonga/en/html/install/centos.html +23 -9
  143. data/vendor/local/share/doc/groonga/en/html/install/debian.html +30 -9
  144. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +16 -9
  145. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +13 -13
  146. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  147. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  148. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +37 -9
  149. data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -16
  150. data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/news.html +251 -120
  152. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  153. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  158. data/vendor/local/share/doc/groonga/en/html/reference.html +28 -23
  159. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/reference/command.html +25 -22
  163. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  164. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  165. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +8 -9
  167. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +71 -87
  168. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +8 -9
  169. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +8 -9
  170. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  171. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +13 -14
  172. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +321 -0
  173. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +35 -36
  174. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +32 -33
  175. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -33
  176. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +27 -27
  177. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +70 -69
  178. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +34 -35
  179. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +34 -35
  180. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +37 -38
  181. data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +218 -0
  182. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +28 -28
  183. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +23 -23
  184. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +294 -288
  185. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +27 -27
  186. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +38 -41
  187. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +31 -31
  188. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +47 -47
  189. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +27 -27
  190. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +33 -34
  191. data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +268 -0
  192. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +6 -6
  198. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  199. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  200. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +11 -9
  202. data/vendor/local/share/doc/groonga/en/html/reference/function.html +6 -5
  203. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  206. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
  209. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +10 -10
  211. data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +292 -0
  212. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  215. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +10 -10
  216. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  217. data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +32 -7
  218. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  222. data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
  223. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/reference/types.html +10 -10
  225. data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  227. data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
  228. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  229. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  230. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  231. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  232. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  233. data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
  234. data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
  235. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  236. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  237. data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
  238. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  239. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  240. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  241. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  242. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  243. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
  244. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  245. data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
  246. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  247. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  248. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  249. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  250. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  251. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
  252. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  253. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  254. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  255. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +9 -9
  256. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  257. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  258. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development.txt +1 -0
  259. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +9 -0
  260. data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +12 -0
  261. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +20 -4
  262. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +28 -4
  263. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +12 -4
  264. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +8 -4
  265. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  266. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  267. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +36 -4
  268. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +11 -11
  269. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +112 -0
  270. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +2 -2
  271. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/check.txt +2 -2
  272. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +2 -2
  273. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +2 -2
  274. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_remove.txt +1 -1
  275. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +79 -0
  276. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/define_selector.txt +2 -2
  277. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt +2 -2
  278. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +2 -2
  279. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +51 -51
  280. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +2 -2
  281. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_put.txt +2 -2
  282. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_reopen.txt +2 -2
  283. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +85 -0
  284. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +98 -89
  285. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +5 -5
  286. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +2 -2
  287. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +73 -0
  288. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +124 -0
  289. data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +24 -0
  290. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -5
  291. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
  292. data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
  293. data/vendor/local/share/doc/groonga/ja/html/contribution.html +58 -57
  294. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -16
  295. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +18 -18
  296. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +25 -25
  297. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +61 -61
  298. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +104 -95
  299. data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +139 -0
  300. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +37 -37
  301. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +9 -9
  302. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
  303. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
  304. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
  308. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
  309. data/vendor/local/share/doc/groonga/ja/html/index.html +36 -30
  310. data/vendor/local/share/doc/groonga/ja/html/install.html +6 -6
  311. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +19 -9
  312. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +24 -9
  313. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +14 -9
  314. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +13 -13
  315. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  316. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  317. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +29 -9
  318. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -16
  319. data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
  320. data/vendor/local/share/doc/groonga/ja/html/news.html +225 -124
  321. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  322. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  323. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  324. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +7 -7
  325. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  326. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  327. data/vendor/local/share/doc/groonga/ja/html/reference.html +28 -23
  328. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  329. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  330. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  331. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +25 -22
  332. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  333. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  334. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  335. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +8 -9
  336. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +71 -87
  337. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +8 -9
  338. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +8 -9
  339. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  340. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +13 -14
  341. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +321 -0
  342. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +35 -36
  343. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +32 -33
  344. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -33
  345. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +27 -27
  346. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +56 -61
  347. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +34 -35
  348. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +34 -35
  349. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +37 -38
  350. data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +213 -0
  351. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +28 -28
  352. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +23 -23
  353. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +235 -229
  354. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +27 -27
  355. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +38 -41
  356. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +31 -31
  357. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +47 -47
  358. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +27 -27
  359. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +33 -34
  360. data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +268 -0
  361. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
  362. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
  363. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
  364. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  365. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  366. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
  367. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
  368. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  369. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  370. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +11 -9
  371. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +6 -5
  372. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  373. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  374. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  375. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  376. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
  377. data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
  378. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
  379. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +10 -10
  380. data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +291 -0
  381. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +7 -7
  382. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  383. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  384. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +10 -10
  385. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
  386. data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +30 -7
  387. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  388. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
  389. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  390. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  391. data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
  392. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  393. data/vendor/local/share/doc/groonga/ja/html/reference/types.html +10 -10
  394. data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
  395. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  396. data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
  397. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  398. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  399. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +9 -9
  400. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  401. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  402. data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
  403. data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
  404. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  405. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  406. data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
  407. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  408. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  409. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  410. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  411. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  412. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
  413. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  414. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
  415. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +9 -9
  416. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  417. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  418. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  419. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  420. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
  421. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  422. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  423. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  424. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +10 -10
  425. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  426. data/vendor/local/share/man/ja/man1/groonga.1 +1231 -420
  427. data/vendor/local/share/man/man1/groonga.1 +1370 -521
  428. metadata +1025 -998
  429. data/lib/1.8/groonga.so +0 -0
@@ -1,4 +1,4 @@
1
- .TH "GROONGA" "1" "January 28, 2013" "2.1.2" "groonga"
1
+ .TH "GROONGA" "1" "March 28, 2013" "3.0.2" "groonga"
2
2
  .SH NAME
3
3
  groonga \- groonga documentation
4
4
  .
@@ -112,7 +112,7 @@ Start command prompt \fBcmd.exe\fP and download x86 executable binary by default
112
112
  .sp
113
113
  .nf
114
114
  .ft C
115
- > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-2.1.2\-x86.exe
115
+ > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x86.exe
116
116
  .ft P
117
117
  .fi
118
118
  .sp
@@ -124,7 +124,7 @@ Start command prompt \fBcmd.exe\fP and download x64 executable binary by default
124
124
  .sp
125
125
  .nf
126
126
  .ft C
127
- > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-2.1.2\-x64.exe
127
+ > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x64.exe
128
128
  .ft P
129
129
  .fi
130
130
  .sp
@@ -141,7 +141,7 @@ Start command prompt \fBcmd.exe\fP and download x86 zip archive by default brows
141
141
  .sp
142
142
  .nf
143
143
  .ft C
144
- > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-2.1.2\-x86.zip
144
+ > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x86.zip
145
145
  .ft P
146
146
  .fi
147
147
  .sp
@@ -153,7 +153,7 @@ Start command prompt \fBcmd.exe\fP and download x64 zip archive by default brows
153
153
  .sp
154
154
  .nf
155
155
  .ft C
156
- > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-2.1.2\-x64.zip
156
+ > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x64.zip
157
157
  .ft P
158
158
  .fi
159
159
  .sp
@@ -185,7 +185,7 @@ Visual Studio 2010 Express and download it by default browser:
185
185
  .nf
186
186
  .ft C
187
187
  > cd c:\eUsers\e%USERNAME%\eDownloads
188
- > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-2.1.2.zip
188
+ > "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-3.0.2.zip
189
189
  .ft P
190
190
  .fi
191
191
  .sp
@@ -195,7 +195,7 @@ Move to the groonga\(aqs source folder:
195
195
  .sp
196
196
  .nf
197
197
  .ft C
198
- > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-2.1.2
198
+ > cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-3.0.2
199
199
  .ft P
200
200
  .fi
201
201
  .sp
@@ -205,7 +205,7 @@ parameter instead:
205
205
  .sp
206
206
  .nf
207
207
  .ft C
208
- groonga\-2.1.2> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
208
+ groonga\-3.0.2> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
209
209
  .ft P
210
210
  .fi
211
211
  .sp
@@ -213,7 +213,7 @@ Build by Visual C++ 2010 Express:
213
213
  .sp
214
214
  .nf
215
215
  .ft C
216
- groonga\-2.1.2> msbuild groonga.sln /p:Configuration=Release
216
+ groonga\-3.0.2> msbuild groonga.sln /p:Configuration=Release
217
217
  .ft P
218
218
  .fi
219
219
  .sp
@@ -221,7 +221,7 @@ Install by Visual C++ 2010 Express:
221
221
  .sp
222
222
  .nf
223
223
  .ft C
224
- groonga\-2.1.2> msbuild groonga.sln /p:Configuration=Release /t:Install
224
+ groonga\-3.0.2> msbuild groonga.sln /p:Configuration=Release /t:Install
225
225
  .ft P
226
226
  .fi
227
227
  .sp
@@ -231,7 +231,7 @@ Build by Visual Studio 2010:
231
231
  .sp
232
232
  .nf
233
233
  .ft C
234
- groonga\-2.1.2> devenv groonga.sln /Build Release
234
+ groonga\-3.0.2> devenv groonga.sln /Build Release
235
235
  .ft P
236
236
  .fi
237
237
  .sp
@@ -239,7 +239,7 @@ Install by Visual Studio 2010:
239
239
  .sp
240
240
  .nf
241
241
  .ft C
242
- groonga\-2.1.2> devenv groonga.sln /Build Release /Project Install
242
+ groonga\-3.0.2> devenv groonga.sln /Build Release /Project Install
243
243
  .ft P
244
244
  .fi
245
245
  .sp
@@ -281,9 +281,9 @@ Download source:
281
281
  .sp
282
282
  .nf
283
283
  .ft C
284
- % curl \-O http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
285
- % tar xvzf groonga\-2.1.2.tar.gz
286
- % cd groonga\-2.1.2
284
+ % curl \-O http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
285
+ % tar xvzf groonga\-3.0.2.tar.gz
286
+ % cd groonga\-3.0.2
287
287
  .ft P
288
288
  .fi
289
289
  .sp
@@ -307,7 +307,7 @@ Install:
307
307
  .sp
308
308
  .nf
309
309
  .ft C
310
- % sudo make intall
310
+ % sudo make install
311
311
  .ft P
312
312
  .fi
313
313
  .SS Debian GNU/Linux
@@ -382,6 +382,18 @@ Install groonga\-munin\-plugins package:
382
382
  % sudo aptitude \-V \-D \-y install groonga\-munin\-plugins
383
383
  .ft P
384
384
  .fi
385
+ .sp
386
+ There is a package that provides MySQL compatible normalizer as
387
+ groonga plugins.
388
+ If you want to use that one, install groonga\-normalizer\-mysql package.
389
+ .sp
390
+ Install groonga\-normalizer\-mysql package:
391
+ .sp
392
+ .nf
393
+ .ft C
394
+ % sudo aptitude \-V \-D \-y install groonga\-normalizer\-mysql
395
+ .ft P
396
+ .fi
385
397
  .SS wheezy
386
398
  .sp
387
399
  Add the groonga apt repository.
@@ -427,6 +439,18 @@ Install groonga\-munin\-plugins package:
427
439
  % sudo aptitude \-V \-D \-y install groonga\-munin\-plugins
428
440
  .ft P
429
441
  .fi
442
+ .sp
443
+ There is a package that provides MySQL compatible normalizer as
444
+ groonga plugins.
445
+ If you want to use that one, install groonga\-normalizer\-mysql package.
446
+ .sp
447
+ Install groonga\-normalizer\-mysql package:
448
+ .sp
449
+ .nf
450
+ .ft C
451
+ % sudo aptitude \-V \-D \-y install groonga\-normalizer\-mysql
452
+ .ft P
453
+ .fi
430
454
  .SS sid
431
455
  .sp
432
456
  Add the groonga apt repository.
@@ -472,6 +496,18 @@ Install groonga\-munin\-plugins package:
472
496
  % sudo aptitude \-V \-D \-y install groonga\-munin\-plugins
473
497
  .ft P
474
498
  .fi
499
+ .sp
500
+ There is a package that provides MySQL compatible normalizer as
501
+ groonga plugins.
502
+ If you want to use that one, install groonga\-normalizer\-mysql package.
503
+ .sp
504
+ Install groonga\-normalizer\-mysql package:
505
+ .sp
506
+ .nf
507
+ .ft C
508
+ % sudo aptitude \-V \-D \-y install groonga\-normalizer\-mysql
509
+ .ft P
510
+ .fi
475
511
  .SS Build from source
476
512
  .sp
477
513
  Install required packages to build groonga:
@@ -486,9 +522,9 @@ Download source:
486
522
  .sp
487
523
  .nf
488
524
  .ft C
489
- % wget http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
490
- % tar xvzf groonga\-2.1.2.tar.gz
491
- % cd groonga\-2.1.2
525
+ % wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
526
+ % tar xvzf groonga\-3.0.2.tar.gz
527
+ % cd groonga\-3.0.2
492
528
  .ft P
493
529
  .fi
494
530
  .sp
@@ -512,7 +548,7 @@ Install:
512
548
  .sp
513
549
  .nf
514
550
  .ft C
515
- % sudo make intall
551
+ % sudo make install
516
552
  .ft P
517
553
  .fi
518
554
  .SS Ubuntu
@@ -597,6 +633,18 @@ Install groonga\-munin\-plugins package:
597
633
  % sudo apt\-get \-y install groonga\-munin\-plugins
598
634
  .ft P
599
635
  .fi
636
+ .sp
637
+ There is a package that provides MySQL compatible normalizer as
638
+ groonga plugins.
639
+ If you want to use that one, install groonga\-normalizer\-mysql package.
640
+ .sp
641
+ Install groonga\-normalizer\-mysql package:
642
+ .sp
643
+ .nf
644
+ .ft C
645
+ % sudo apt\-get \-y install groonga\-normalizer\-mysql
646
+ .ft P
647
+ .fi
600
648
  .SS 11.10 Oneiric Ocelot
601
649
  .IP Note
602
650
  Enable the universe repository to install groonga:
@@ -652,6 +700,18 @@ Install groonga\-munin\-plugins package:
652
700
  % sudo apt\-get \-y install groonga\-munin\-plugins
653
701
  .ft P
654
702
  .fi
703
+ .sp
704
+ There is a package that provides MySQL compatible normalizer as
705
+ groonga plugins.
706
+ If you want to use that one, install groonga\-normalizer\-mysql package.
707
+ .sp
708
+ Install groonga\-normalizer\-mysql package:
709
+ .sp
710
+ .nf
711
+ .ft C
712
+ % sudo apt\-get \-y install groonga\-normalizer\-mysql
713
+ .ft P
714
+ .fi
655
715
  .SS 12.04 LTS Precise Pangolin
656
716
  .IP Note
657
717
  Enable the universe repository to install groonga:
@@ -707,6 +767,18 @@ Install groonga\-munin\-plugins package:
707
767
  % sudo apt\-get \-y install groonga\-munin\-plugins
708
768
  .ft P
709
769
  .fi
770
+ .sp
771
+ There is a package that provides MySQL compatible normalizer as
772
+ groonga plugins.
773
+ If you want to use that one, install groonga\-normalizer\-mysql package.
774
+ .sp
775
+ Install groonga\-normalizer\-mysql package:
776
+ .sp
777
+ .nf
778
+ .ft C
779
+ % sudo apt\-get \-y install groonga\-normalizer\-mysql
780
+ .ft P
781
+ .fi
710
782
  .SS 12.10 Quantal Quetzal
711
783
  .IP Note
712
784
  Enable the universe repository to install groonga:
@@ -762,6 +834,18 @@ Install groonga\-munin\-plugins package:
762
834
  % sudo apt\-get \-y install groonga\-munin\-plugins
763
835
  .ft P
764
836
  .fi
837
+ .sp
838
+ There is a package that provides MySQL compatible normalizer as
839
+ groonga plugins.
840
+ If you want to use that one, install groonga\-normalizer\-mysql package.
841
+ .sp
842
+ Install groonga\-normalizer\-mysql package:
843
+ .sp
844
+ .nf
845
+ .ft C
846
+ % sudo apt\-get \-y install groonga\-normalizer\-mysql
847
+ .ft P
848
+ .fi
765
849
  .SS Build from source
766
850
  .sp
767
851
  Install required packages to build groonga:
@@ -776,9 +860,9 @@ Download source:
776
860
  .sp
777
861
  .nf
778
862
  .ft C
779
- % wget http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
780
- % tar xvzf groonga\-2.1.2.tar.gz
781
- % cd groonga\-2.1.2
863
+ % wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
864
+ % tar xvzf groonga\-3.0.2.tar.gz
865
+ % cd groonga\-3.0.2
782
866
  .ft P
783
867
  .fi
784
868
  .sp
@@ -802,7 +886,7 @@ Install:
802
886
  .sp
803
887
  .nf
804
888
  .ft C
805
- % sudo make intall
889
+ % sudo make install
806
890
  .ft P
807
891
  .fi
808
892
  .SS CentOS
@@ -917,6 +1001,18 @@ Install groonga\-munin\-plugins package:
917
1001
  % sudo yum install \-y groonga\-munin\-plugins
918
1002
  .ft P
919
1003
  .fi
1004
+ .sp
1005
+ There is a package that provides MySQL compatible normalizer as
1006
+ groonga plugins.
1007
+ If you want to use that one, install groonga\-normalizer\-mysql package.
1008
+ .sp
1009
+ Install groonga\-normalizer\-mysql package:
1010
+ .sp
1011
+ .nf
1012
+ .ft C
1013
+ % sudo yum install \-y install groonga\-normalizer\-mysql
1014
+ .ft P
1015
+ .fi
920
1016
  .SS CentOS 6
921
1017
  .sp
922
1018
  Install:
@@ -982,6 +1078,18 @@ Install groonga\-munin\-plugins package:
982
1078
  % sudo yum install \-y groonga\-munin\-plugins
983
1079
  .ft P
984
1080
  .fi
1081
+ .sp
1082
+ There is a package that provides MySQL compatible normalizer as
1083
+ groonga plugins.
1084
+ If you want to use that one, install groonga\-normalizer\-mysql package.
1085
+ .sp
1086
+ Install groonga\-normalizer\-mysql package:
1087
+ .sp
1088
+ .nf
1089
+ .ft C
1090
+ % sudo yum install \-y install groonga\-normalizer\-mysql
1091
+ .ft P
1092
+ .fi
985
1093
  .SS Build from source
986
1094
  .sp
987
1095
  Install required packages to build groonga:
@@ -996,9 +1104,9 @@ Download source:
996
1104
  .sp
997
1105
  .nf
998
1106
  .ft C
999
- % wget http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
1000
- % tar xvzf groonga\-2.1.2.tar.gz
1001
- % cd groonga\-2.1.2
1107
+ % wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
1108
+ % tar xvzf groonga\-3.0.2.tar.gz
1109
+ % cd groonga\-3.0.2
1002
1110
  .ft P
1003
1111
  .fi
1004
1112
  .sp
@@ -1022,7 +1130,7 @@ Install:
1022
1130
  .sp
1023
1131
  .nf
1024
1132
  .ft C
1025
- % sudo make intall
1133
+ % sudo make install
1026
1134
  .ft P
1027
1135
  .fi
1028
1136
  .SS Fedora
@@ -1111,6 +1219,18 @@ Install groonga\-munin\-plugins package:
1111
1219
  % sudo yum install \-y groonga\-munin\-plugins
1112
1220
  .ft P
1113
1221
  .fi
1222
+ .sp
1223
+ There is a package that provides MySQL compatible normalizer as
1224
+ groonga plugins.
1225
+ If you want to use that one, install groonga\-normalizer\-mysql package.
1226
+ .sp
1227
+ Install groonga\-normalizer\-mysql package:
1228
+ .sp
1229
+ .nf
1230
+ .ft C
1231
+ % sudo yum install \-y install groonga\-normalizer\-mysql
1232
+ .ft P
1233
+ .fi
1114
1234
  .SS Build from source
1115
1235
  .sp
1116
1236
  Install required packages to build groonga:
@@ -1125,9 +1245,9 @@ Download source:
1125
1245
  .sp
1126
1246
  .nf
1127
1247
  .ft C
1128
- % wget http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
1129
- % tar xvzf groonga\-2.1.2.tar.gz
1130
- % cd groonga\-2.1.2
1248
+ % wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
1249
+ % tar xvzf groonga\-3.0.2.tar.gz
1250
+ % cd groonga\-3.0.2
1131
1251
  .ft P
1132
1252
  .fi
1133
1253
  .sp
@@ -1151,7 +1271,7 @@ Install:
1151
1271
  .sp
1152
1272
  .nf
1153
1273
  .ft C
1154
- % sudo make intall
1274
+ % sudo make install
1155
1275
  .ft P
1156
1276
  .fi
1157
1277
  .SS Oracle Solaris
@@ -1172,9 +1292,9 @@ Download source:
1172
1292
  .sp
1173
1293
  .nf
1174
1294
  .ft C
1175
- % wget http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
1176
- % gtar xvzf groonga\-2.1.2.tar.gz
1177
- % cd groonga\-2.1.2
1295
+ % wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
1296
+ % gtar xvzf groonga\-3.0.2.tar.gz
1297
+ % cd groonga\-3.0.2
1178
1298
  .ft P
1179
1299
  .fi
1180
1300
  .sp
@@ -1298,9 +1418,9 @@ steps:
1298
1418
  .sp
1299
1419
  .nf
1300
1420
  .ft C
1301
- % wget http://packages.groonga.org/source/groonga/groonga\-2.1.2.tar.gz
1302
- % tar xvzf groonga\-2.1.2.tar.gz
1303
- % cd groonga\-2.1.2
1421
+ % wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
1422
+ % tar xvzf groonga\-3.0.2.tar.gz
1423
+ % cd groonga\-3.0.2
1304
1424
  % ./configure
1305
1425
  % make
1306
1426
  % sudo make install
@@ -6601,7 +6721,7 @@ load \-\-table Synonym
6601
6721
  この例では、ユーザが"シークァーサー"と入力しても、"シークヮーサー"と入力しても、それぞれの異なる表記の文書をもれなく検索するための置換テーブルを作成しています。
6602
6722
  .SS 検索
6603
6723
  .sp
6604
- それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expansionパラメータを指定せずにselectコマンドを使って検索してみます。
6724
+ それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expanderパラメータを指定せずにselectコマンドを使って検索してみます。
6605
6725
  .sp
6606
6726
  Execution example:
6607
6727
  .sp
@@ -6678,13 +6798,13 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー"
6678
6798
  .ft P
6679
6799
  .fi
6680
6800
  .sp
6681
- 指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expansionパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。
6801
+ 指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expanderパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。
6682
6802
  .sp
6683
6803
  Execution example:
6684
6804
  .sp
6685
6805
  .nf
6686
6806
  .ft C
6687
- select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_expansion Synonym.body
6807
+ select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_expander Synonym.body
6688
6808
  # [
6689
6809
  # [
6690
6810
  # 0,
@@ -6723,7 +6843,7 @@ select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_ex
6723
6843
  # ]
6724
6844
  # ]
6725
6845
  # ]
6726
- select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-query_expansion Synonym.body
6846
+ select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-query_expander Synonym.body
6727
6847
  # [
6728
6848
  # [
6729
6849
  # 0,
@@ -8859,11 +8979,13 @@ groongaのデータベースは、groongaコマンドかCライブラリイン
8859
8979
  .TP
8860
8980
  .B \-a, \-\-address <ip/hostname>
8861
8981
  Deprecated since version 1.2.2: Use \fI\-\-bind\-address\fP instead.
8982
+
8862
8983
  .UNINDENT
8863
8984
  .INDENT 0.0
8864
8985
  .TP
8865
8986
  .B \-\-bind\-address <ip/hostname>
8866
8987
  New in version 1.2.2.
8988
+
8867
8989
  .sp
8868
8990
  サーバモードかデーモンモードで実行するとき、listenするアドレスを指定します。(デフォルトは \fIhostname\fP の返すホスト名)
8869
8991
  .UNINDENT
@@ -10148,12 +10270,15 @@ maxが指定されなかった場合には、クエリキャッシュの最大
10148
10270
  .nf
10149
10271
  .ft C
10150
10272
  [以前の設定値]
10151
-
10152
- \(ga\(ga以前の設定値\(ga\(ga
10153
-
10154
- すでに設定されていたクエリキャッシュの最大件数を返す。
10155
10273
  .ft P
10156
10274
  .fi
10275
+ .sp
10276
+ \fB以前の設定値\fP
10277
+ .INDENT 0.0
10278
+ .INDENT 3.5
10279
+ すでに設定されていたクエリキャッシュの最大件数を返す。
10280
+ .UNINDENT
10281
+ .UNINDENT
10157
10282
  .SS 例
10158
10283
  .sp
10159
10284
  .nf
@@ -10198,90 +10323,156 @@ checkコマンドは、groongaプロセス内の指定したオブジェクト
10198
10323
  下記のような配列が出力されます。
10199
10324
 
10200
10325
  [インデックスの状態, バッファの状態1, バッファの状態2, ...]
10201
-
10202
- \(ga\(gaインデックスの状態\(ga\(gaには下記の項目がハッシュ形式で出力されます。
10203
-
10204
- \(ga\(gaflags\(ga\(ga
10205
-
10206
- 指定されているフラグ値です。16進数で表現されています。
10207
-
10208
- \(ga\(gamax sid\(ga\(ga
10209
-
10210
- セグメントのうち最も大きなIDです。
10211
-
10212
- \(ga\(ganumber of garbage segments\(ga\(ga
10213
-
10214
- ゴミセグメントの数です。
10215
-
10216
- \(ga\(ganumber of array segments\(ga\(ga
10217
-
10218
- 配列セグメントの数です。
10219
-
10220
- \(ga\(gamax id of array segment\(ga\(ga
10221
-
10222
- 配列セグメントのうち最も大きなIDです。
10223
-
10224
- \(ga\(ganumber of buffer segments\(ga\(ga
10225
-
10226
- バッファセグメントの数です。
10227
-
10228
- \(ga\(gamax id of buffer segment\(ga\(ga
10229
-
10230
- バッファセグメントのうち最も大きなIDです。
10231
-
10232
- \(ga\(gamax id of physical segment in use\(ga\(ga
10233
-
10234
- 使用中の論理セグメントのうち最も大きなIDです。
10235
-
10236
- \(ga\(ganumber of unmanaged segments\(ga\(ga
10237
-
10238
- 管理されていないセグメントの数です。
10239
-
10240
- \(ga\(gatotal chunk size\(ga\(ga
10241
-
10242
- チャンクサイズの合計です。
10243
-
10244
- \(ga\(gamax id of chunk segments in use\(ga\(ga
10245
-
10246
- 使用中のチャンクセグメントのうち最も大きなIDです。
10247
-
10248
- \(ga\(ganumber of garbage chunk\(ga\(ga
10249
-
10250
- 各チャンク毎のゴミの数です。
10251
-
10252
- \(ga\(gaバッファの状態\(ga\(gaには下記の項目がハッシュ形式で出力されます。
10253
-
10254
- \(ga\(gabuffer id\(ga\(ga
10255
-
10256
- バッファIDです。
10257
-
10258
- \(ga\(gachunk size\(ga\(ga
10259
-
10260
- チャンクのサイズです。
10261
-
10262
- \(ga\(gabuffer term\(ga\(ga
10263
-
10264
- バッファ内にある語の一覧です。各語の状態は以下のような配列となっています。
10265
-
10266
- [語, バッファに登録されている語のID, 用語集に登録されている語のID, バッファ内でのサイズ, チャンク内でのサイズ]
10267
-
10268
- \(ga\(gabuffer free\(ga\(ga
10269
-
10270
- バッファの空き容量です。
10271
-
10272
- \(ga\(gasize in buffer\(ga\(ga
10273
-
10274
- バッファの使用量です。
10275
-
10276
- \(ga\(ganterms\(ga\(ga
10277
-
10278
- バッファ内にある語の数です。
10279
-
10280
- \(ga\(ganterms with chunk\(ga\(ga
10281
-
10282
- バッファ内にある語のうち、チャンクを使っている語の数です。
10283
10326
  .ft P
10284
10327
  .fi
10328
+ .sp
10329
+ \fBインデックスの状態\fP には下記の項目がハッシュ形式で出力されます。
10330
+ .INDENT 0.0
10331
+ .INDENT 3.5
10332
+ \fBflags\fP
10333
+ .INDENT 0.0
10334
+ .INDENT 3.5
10335
+ 指定されているフラグ値です。16進数で表現されています。
10336
+ .UNINDENT
10337
+ .UNINDENT
10338
+ .sp
10339
+ \fBmax sid\fP
10340
+ .INDENT 0.0
10341
+ .INDENT 3.5
10342
+ セグメントのうち最も大きなIDです。
10343
+ .UNINDENT
10344
+ .UNINDENT
10345
+ .sp
10346
+ \fBnumber of garbage segments\fP
10347
+ .INDENT 0.0
10348
+ .INDENT 3.5
10349
+ ゴミセグメントの数です。
10350
+ .UNINDENT
10351
+ .UNINDENT
10352
+ .sp
10353
+ \fBnumber of array segments\fP
10354
+ .INDENT 0.0
10355
+ .INDENT 3.5
10356
+ 配列セグメントの数です。
10357
+ .UNINDENT
10358
+ .UNINDENT
10359
+ .sp
10360
+ \fBmax id of array segment\fP
10361
+ .INDENT 0.0
10362
+ .INDENT 3.5
10363
+ 配列セグメントのうち最も大きなIDです。
10364
+ .UNINDENT
10365
+ .UNINDENT
10366
+ .sp
10367
+ \fBnumber of buffer segments\fP
10368
+ .INDENT 0.0
10369
+ .INDENT 3.5
10370
+ バッファセグメントの数です。
10371
+ .UNINDENT
10372
+ .UNINDENT
10373
+ .sp
10374
+ \fBmax id of buffer segment\fP
10375
+ .INDENT 0.0
10376
+ .INDENT 3.5
10377
+ バッファセグメントのうち最も大きなIDです。
10378
+ .UNINDENT
10379
+ .UNINDENT
10380
+ .sp
10381
+ \fBmax id of physical segment in use\fP
10382
+ .INDENT 0.0
10383
+ .INDENT 3.5
10384
+ 使用中の論理セグメントのうち最も大きなIDです。
10385
+ .UNINDENT
10386
+ .UNINDENT
10387
+ .sp
10388
+ \fBnumber of unmanaged segments\fP
10389
+ .INDENT 0.0
10390
+ .INDENT 3.5
10391
+ 管理されていないセグメントの数です。
10392
+ .UNINDENT
10393
+ .UNINDENT
10394
+ .sp
10395
+ \fBtotal chunk size\fP
10396
+ .INDENT 0.0
10397
+ .INDENT 3.5
10398
+ チャンクサイズの合計です。
10399
+ .UNINDENT
10400
+ .UNINDENT
10401
+ .sp
10402
+ \fBmax id of chunk segments in use\fP
10403
+ .INDENT 0.0
10404
+ .INDENT 3.5
10405
+ 使用中のチャンクセグメントのうち最も大きなIDです。
10406
+ .UNINDENT
10407
+ .UNINDENT
10408
+ .sp
10409
+ \fBnumber of garbage chunk\fP
10410
+ .INDENT 0.0
10411
+ .INDENT 3.5
10412
+ 各チャンク毎のゴミの数です。
10413
+ .UNINDENT
10414
+ .UNINDENT
10415
+ .UNINDENT
10416
+ .UNINDENT
10417
+ .sp
10418
+ \fBバッファの状態\fP には下記の項目がハッシュ形式で出力されます。
10419
+ .INDENT 0.0
10420
+ .INDENT 3.5
10421
+ \fBbuffer id\fP
10422
+ .INDENT 0.0
10423
+ .INDENT 3.5
10424
+ バッファIDです。
10425
+ .UNINDENT
10426
+ .UNINDENT
10427
+ .sp
10428
+ \fBchunk size\fP
10429
+ .INDENT 0.0
10430
+ .INDENT 3.5
10431
+ チャンクのサイズです。
10432
+ .UNINDENT
10433
+ .UNINDENT
10434
+ .sp
10435
+ \fBbuffer term\fP
10436
+ .INDENT 0.0
10437
+ .INDENT 3.5
10438
+ バッファ内にある語の一覧です。各語の状態は以下のような配列となっています。
10439
+ .INDENT 0.0
10440
+ .INDENT 3.5
10441
+ [語, バッファに登録されている語のID, 用語集に登録されている語のID, バッファ内でのサイズ, チャンク内でのサイズ]
10442
+ .UNINDENT
10443
+ .UNINDENT
10444
+ .UNINDENT
10445
+ .UNINDENT
10446
+ .sp
10447
+ \fBbuffer free\fP
10448
+ .INDENT 0.0
10449
+ .INDENT 3.5
10450
+ バッファの空き容量です。
10451
+ .UNINDENT
10452
+ .UNINDENT
10453
+ .sp
10454
+ \fBsize in buffer\fP
10455
+ .INDENT 0.0
10456
+ .INDENT 3.5
10457
+ バッファの使用量です。
10458
+ .UNINDENT
10459
+ .UNINDENT
10460
+ .sp
10461
+ \fBnterms\fP
10462
+ .INDENT 0.0
10463
+ .INDENT 3.5
10464
+ バッファ内にある語の数です。
10465
+ .UNINDENT
10466
+ .UNINDENT
10467
+ .sp
10468
+ \fBnterms with chunk\fP
10469
+ .INDENT 0.0
10470
+ .INDENT 3.5
10471
+ バッファ内にある語のうち、チャンクを使っている語の数です。
10472
+ .UNINDENT
10473
+ .UNINDENT
10474
+ .UNINDENT
10475
+ .UNINDENT
10285
10476
  .SS 例
10286
10477
  .sp
10287
10478
  テーブルTermsのインデックスカラムnameの状態を表示します。:
@@ -10353,12 +10544,15 @@ clearlockは、対象となるオブジェクト(データベース,テーブル
10353
10544
  .nf
10354
10545
  .ft C
10355
10546
  [成功かどうかのフラグ]
10356
-
10357
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
10358
-
10359
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10360
10547
  .ft P
10361
10548
  .fi
10549
+ .sp
10550
+ \fB成功かどうかのフラグ\fP
10551
+ .INDENT 0.0
10552
+ .INDENT 3.5
10553
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10554
+ .UNINDENT
10555
+ .UNINDENT
10362
10556
  .SS 例
10363
10557
  .sp
10364
10558
  開いているデータベースのロックをすべて解除する:
@@ -10466,12 +10660,15 @@ column_createは、使用しているデータベースのテーブルに対し
10466
10660
  .nf
10467
10661
  .ft C
10468
10662
  [成功かどうかのフラグ]
10469
-
10470
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
10471
-
10472
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10473
10663
  .ft P
10474
10664
  .fi
10665
+ .sp
10666
+ \fB成功かどうかのフラグ\fP
10667
+ .INDENT 0.0
10668
+ .INDENT 3.5
10669
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10670
+ .UNINDENT
10671
+ .UNINDENT
10475
10672
  .SS 例
10476
10673
  .sp
10477
10674
  テーブルEntryに、ShortText型の値を格納するカラム、bodyを作成します。:
@@ -10660,12 +10857,15 @@ column_removeはテーブルに定義されているカラムを削除します
10660
10857
  .nf
10661
10858
  .ft C
10662
10859
  [成功かどうかのフラグ]
10663
-
10664
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
10665
-
10666
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10667
10860
  .ft P
10668
10861
  .fi
10862
+ .sp
10863
+ \fB成功かどうかのフラグ\fP
10864
+ .INDENT 0.0
10865
+ .INDENT 3.5
10866
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10867
+ .UNINDENT
10868
+ .UNINDENT
10669
10869
  .SS 例
10670
10870
  .sp
10671
10871
  .nf
@@ -10678,8 +10878,188 @@ column_remove Entry body
10678
10878
  脚注
10679
10879
  .IP [1] 5
10680
10880
  マルチセクションインデックスの一部である場合も、インデックスが削除されます。
10681
- .SS define_selector
10682
- .SS 名前
10881
+ .SS \fBcolumn_rename\fP
10882
+ .SS Summary
10883
+ .sp
10884
+ \fBcolumn_rename\fP command renames specified column name of table.
10885
+ .SS Syntax
10886
+ .sp
10887
+ \fBcolumn_rename\fP command takes two parameters.
10888
+ .sp
10889
+ The required parameter is \fBtable\fP and \fBcolumn_name\fP:
10890
+ .sp
10891
+ .nf
10892
+ .ft C
10893
+ column_rename table column
10894
+ .ft P
10895
+ .fi
10896
+ .SS Usage
10897
+ .sp
10898
+ Here is a simple example of \fBcolumn_rename\fP command.
10899
+ .sp
10900
+ Execution example:
10901
+ .sp
10902
+ .nf
10903
+ .ft C
10904
+ table_create Users TABLE_PAT_KEY ShortText
10905
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
10906
+ column_create Users score COLUMN_SCALAR Int32
10907
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
10908
+ load \-\-table Users
10909
+ [
10910
+ {"_key": "Alice", "score": 2},
10911
+ {"_key": "Bob", "score": 0},
10912
+ {"_key": "Carlos", "score": \-1}
10913
+ ]
10914
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
10915
+ column_rename Users score point
10916
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
10917
+ column_list Users
10918
+ # [
10919
+ # [
10920
+ # 0,
10921
+ # 1337566253.89858,
10922
+ # 0.000355720520019531
10923
+ # ],
10924
+ # [
10925
+ # [
10926
+ # [
10927
+ # "id",
10928
+ # "UInt32"
10929
+ # ],
10930
+ # [
10931
+ # "name",
10932
+ # "ShortText"
10933
+ # ],
10934
+ # [
10935
+ # "path",
10936
+ # "ShortText"
10937
+ # ],
10938
+ # [
10939
+ # "type",
10940
+ # "ShortText"
10941
+ # ],
10942
+ # [
10943
+ # "flags",
10944
+ # "ShortText"
10945
+ # ],
10946
+ # [
10947
+ # "domain",
10948
+ # "ShortText"
10949
+ # ],
10950
+ # [
10951
+ # "range",
10952
+ # "ShortText"
10953
+ # ],
10954
+ # [
10955
+ # "source",
10956
+ # "ShortText"
10957
+ # ]
10958
+ # ],
10959
+ # [
10960
+ # 256,
10961
+ # "_key",
10962
+ # "",
10963
+ # "",
10964
+ # "COLUMN_SCALAR",
10965
+ # "Users",
10966
+ # "ShortText",
10967
+ # []
10968
+ # ],
10969
+ # [
10970
+ # 257,
10971
+ # "point",
10972
+ # "/tmp/groonga\-databases/commands_column_rename.0000101",
10973
+ # "fix",
10974
+ # "COLUMN_SCALAR|PERSISTENT",
10975
+ # "Users",
10976
+ # "Int32",
10977
+ # []
10978
+ # ]
10979
+ # ]
10980
+ # ]
10981
+ select Users
10982
+ # [
10983
+ # [
10984
+ # 0,
10985
+ # 1337566253.89858,
10986
+ # 0.000355720520019531
10987
+ # ],
10988
+ # [
10989
+ # [
10990
+ # [
10991
+ # 3
10992
+ # ],
10993
+ # [
10994
+ # [
10995
+ # "_id",
10996
+ # "UInt32"
10997
+ # ],
10998
+ # [
10999
+ # "_key",
11000
+ # "ShortText"
11001
+ # ],
11002
+ # [
11003
+ # "point",
11004
+ # "Int32"
11005
+ # ]
11006
+ # ],
11007
+ # [
11008
+ # 1,
11009
+ # "Alice",
11010
+ # 2
11011
+ # ],
11012
+ # [
11013
+ # 2,
11014
+ # "Bob",
11015
+ # 0
11016
+ # ],
11017
+ # [
11018
+ # 3,
11019
+ # "Carlos",
11020
+ # \-1
11021
+ # ]
11022
+ # ]
11023
+ # ]
11024
+ # ]
11025
+ .ft P
11026
+ .fi
11027
+ .SS Parameters
11028
+ .sp
11029
+ This section describes parameters of \fBcolumn_rename\fP.
11030
+ .SS Required parameter
11031
+ .sp
11032
+ There are required parameters, \fBtable_name\fP and \fBcolumn_name\fP.
11033
+ .SS \fBtable_name\fP
11034
+ .sp
11035
+ It specifies the name of table.
11036
+ .SS \fBcolumn_name\fP
11037
+ .sp
11038
+ It specifies the name of column.
11039
+ .SS Return value
11040
+ .sp
11041
+ .nf
11042
+ .ft C
11043
+ [HEADER, SUCCEEDED_OR_NOT]
11044
+ .ft P
11045
+ .fi
11046
+ .sp
11047
+ \fBHEADER\fP
11048
+ .INDENT 0.0
11049
+ .INDENT 3.5
11050
+ The format of HEADER is [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME].
11051
+ See \fB/reference/command/output_format\fP about HEADER.
11052
+ .UNINDENT
11053
+ .UNINDENT
11054
+ .sp
11055
+ \fBSUCCEEDED_OR_NOT\fP
11056
+ .INDENT 0.0
11057
+ .INDENT 3.5
11058
+ If command succeeded, it returns true, otherwise it returns false on error.
11059
+ .UNINDENT
11060
+ .UNINDENT
11061
+ .SS define_selector
11062
+ .SS 名前
10683
11063
  .sp
10684
11064
  define_selector \- 検索コマンドを定義
10685
11065
  .SS 書式
@@ -10808,12 +11188,15 @@ define_selectorは、検索条件をカスタマイズした新たな検索コ
10808
11188
  .nf
10809
11189
  .ft C
10810
11190
  [成功かどうかのフラグ]
10811
-
10812
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
10813
-
10814
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10815
11191
  .ft P
10816
11192
  .fi
11193
+ .sp
11194
+ \fB成功かどうかのフラグ\fP
11195
+ .INDENT 0.0
11196
+ .INDENT 3.5
11197
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11198
+ .UNINDENT
11199
+ .UNINDENT
10817
11200
  .SS 例
10818
11201
  .sp
10819
11202
  テーブルEntryの全レコード・全カラムの値を出力するselectorコマンドを定義します。:
@@ -10857,12 +11240,15 @@ defragは、対象となるオブジェクト(データベースか可変長サ
10857
11240
  .nf
10858
11241
  .ft C
10859
11242
  [フラグメンテーション解消を実行したセグメントの数]
10860
-
10861
- \(ga\(gaフラグメンテーション解消を実行したセグメントの数\(ga\(ga
10862
-
10863
- フラグメンテーション解消を実行したセグメントの数を返す。
10864
11243
  .ft P
10865
11244
  .fi
11245
+ .sp
11246
+ \fBフラグメンテーション解消を実行したセグメントの数\fP
11247
+ .INDENT 0.0
11248
+ .INDENT 3.5
11249
+ フラグメンテーション解消を実行したセグメントの数を返す。
11250
+ .UNINDENT
11251
+ .UNINDENT
10866
11252
  .SS 例
10867
11253
  .sp
10868
11254
  開いているデータベースのフラグメンテーションを解消する:
@@ -10935,12 +11321,15 @@ script形式のgrn_expr文字列によってレコードを指定します。fil
10935
11321
  .nf
10936
11322
  .ft C
10937
11323
  [成功かどうかのフラグ]
10938
-
10939
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
10940
-
10941
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
10942
11324
  .ft P
10943
11325
  .fi
11326
+ .sp
11327
+ \fB成功かどうかのフラグ\fP
11328
+ .INDENT 0.0
11329
+ .INDENT 3.5
11330
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11331
+ .UNINDENT
11332
+ .UNINDENT
10944
11333
  .SS 例
10945
11334
  .sp
10946
11335
  テーブルEntryからレコードを削除します。:
@@ -11042,116 +11431,116 @@ load \-\-table Sites
11042
11431
  ]
11043
11432
  .ft P
11044
11433
  .fi
11045
- .SS load
11046
- .SS 名前
11434
+ .SS \fBload\fP
11435
+ .SS Summary
11047
11436
  .sp
11048
- load \- データのロード
11049
- .SS 書式
11437
+ \fBload\fP loads data as records in the current database and updates values of each columns.
11438
+ .SS Syntax
11050
11439
  .sp
11051
11440
  .nf
11052
11441
  .ft C
11053
11442
  load values table [columns [ifexists [input_type]]]
11054
11443
  .ft P
11055
11444
  .fi
11056
- .SS 説明
11057
- .sp
11058
- groonga組込コマンドの一つであるloadについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
11445
+ .SS Parameters
11059
11446
  .sp
11060
- loadは、使用しているデータベースのテーブルにレコードを登録し、カラムの値を更新します。
11061
- .SS 引数
11447
+ This section describes all parameters.
11062
11448
  .sp
11063
11449
  \fBvalues\fP
11064
11450
  .INDENT 0.0
11065
11451
  .INDENT 3.5
11066
- input_typeに指定する形式で登録するレコードの値を表現した文字列を渡します。
11067
- .sp
11068
- input_typeがjsonである場合には、以下のいずれかの形式が使用できます。
11452
+ It specifies values loaded to records.
11453
+ Values should satisfy \fBinput_type\fP format.
11454
+ If you specify "json" as \fBinput_type\fP, you can choose a format from below:
11069
11455
  .INDENT 0.0
11070
11456
  .TP
11071
- .B \fB形式1\fP
11072
- [[カラム名1, カラム名2,..], [カラム値1, カラム値2,..], [カラム値1, カラム値2,..],..]
11457
+ .B \fBFormat 1:\fP
11458
+ [[COLUMN_NAME1, COLUMN_NAME2,..], [VALUE1, VALUE2,..], [VALUE1, VALUE2,..],..]
11073
11459
  .TP
11074
- .B \fB形式2\fP
11075
- [{カラム名1: カラム値1, カラム名2: カラム値2}, {カラム名1: カラム値1, カラム名2: カラム値2},..]
11460
+ .B \fBFormat 2:\fP
11461
+ [{COLUMN_NAME1: VALUE1, COLUMN_NAME2: VALUE2}, {COLUMN_NAME1: VALUE1, COLUMN_NAME2: VALUE2},..]
11076
11462
  .UNINDENT
11077
11463
  .sp
11078
- 形式1の[カラム名1, カラム名2,..]の要素はcolumns引数が省略された場合のみ有効です。
11464
+ \fB[COLUMN_NAME1, COLUMN_NAME2,..]\fP format in \fBFormat 1\fP is effective only when \fBcolumn\fP parameter isn\(aqt specified.
11079
11465
  .sp
11080
- 対象のテーブルが主キーを持つテーブルであった場合は、カラム名の中に\(aq_key\(aq(主キーを示す疑似カラム名)が含まれていなければなりません。
11466
+ When a target table contains primary key, you must specify \fB_key\fP column (pseudo column associated primary key) as the one of \fBCOLUMN_NAME\fP.
11081
11467
  .sp
11082
- values引数が省略された場合には、括弧の対応が取れるまで標準入力からvaluesの値を読み取ります。引数として値を指定する場合は、文字列のエスケープが必要ですが、標準入力から与える文字列はエスケープする必要がありません。
11468
+ If \fBvalues\fP isn\(aqt specified any values, they are read from the standard input until all opened parenthes match their closed ones.
11469
+ You don\(aqt have to enclose them with single\-quotes or double\-quotes, but if you specified values with \fBvalues\fP parameter, you should do.
11083
11470
  .sp
11084
- 続きの文字列については、空白文字(\(aq \(aq)をエスケープする必要はありません。
11471
+ In following values, you also don\(aqt have to enclose any spaces (\(aq \(aq) with single\-quotes or double\-quotes.
11085
11472
  .UNINDENT
11086
11473
  .UNINDENT
11087
11474
  .sp
11088
11475
  \fBtable\fP
11089
11476
  .INDENT 0.0
11090
11477
  .INDENT 3.5
11091
- レコードを追加しようとするテーブルの名前を指定します。
11478
+ It specifies a table name you want to add records.
11092
11479
  .UNINDENT
11093
11480
  .UNINDENT
11094
11481
  .sp
11095
11482
  \fBcolumns\fP
11096
11483
  .INDENT 0.0
11097
11484
  .INDENT 3.5
11098
- テーブルに登録するレコードに値を設定するカラム名のリストを、カンマ区切りで指定します。
11485
+ It specifies column names in added records with comma separations.
11099
11486
  .UNINDENT
11100
11487
  .UNINDENT
11101
11488
  .sp
11102
11489
  \fBifexists\fP
11103
11490
  .INDENT 0.0
11104
11491
  .INDENT 3.5
11105
- 指定した主キーに対応するレコードが既にテーブルに登録済みであった場合に実行するscript形式のgrn_expr文字列を指定します。ifexistsにgrn_exprが指定された場合は、式の値が真である場合に限り、その他のカラムの値が更新されます。(デフォルトはtrue)
11492
+ It specifies executed \fBgrn_expr\fP string when the same primary key
11493
+ as added records already exists in your table.
11494
+ If \fBifexists\fP specifies \fBgrn_expr\fP string (default: true) and
11495
+ its value is true, values in other (all columns excluding \fB_key\fP
11496
+ column) columns is updated.
11106
11497
  .UNINDENT
11107
11498
  .UNINDENT
11108
11499
  .sp
11109
11500
  \fBinput_type\fP
11110
11501
  .INDENT 0.0
11111
11502
  .INDENT 3.5
11112
- 入力形式を指定します。JSONのみに対応しています。
11113
- .UNINDENT
11114
- .UNINDENT
11115
- .SS 返値
11116
- .SS JSON形式
11117
- .sp
11118
- .nf
11119
- .ft C
11120
- [登録件数]
11121
- .ft P
11122
- .fi
11123
- .sp
11124
- \fB登録件数\fP
11125
- .INDENT 0.0
11126
- .INDENT 3.5
11127
- テーブルに登録されたレコードの件数が返されます。
11503
+ It specifies an input format for \fBvalues\fP. It supports JSON only.
11128
11504
  .UNINDENT
11129
11505
  .UNINDENT
11130
- .SS
11506
+ .SS Usage
11131
11507
  .sp
11132
- テーブルEntryにレコードを登録します。:
11508
+ Here is an example to add records to "Entry" table.
11133
11509
  .sp
11134
11510
  .nf
11135
11511
  .ft C
11136
- load \-\-table Entry \-\-input_type json \-\-values [{\e"_key\e":\e"abandon\e",\e"body\e":\e"放棄する\e"}]
11512
+ load \-\-table Entry \-\-input_type json \-\-values [{\e"_key\e":\e"Groonga\e",\e"body\e":\e"It\(aqs very fast!!\e"}]
11137
11513
 
11138
11514
  [1]
11139
11515
  .ft P
11140
11516
  .fi
11141
11517
  .sp
11142
- 標準入力からvaluesの値を与えます。:
11518
+ This example shows how to add values from standard input.
11143
11519
  .sp
11144
11520
  .nf
11145
11521
  .ft C
11146
11522
  load \-\-table Entry \-\-input_type json
11147
11523
  [
11148
- {"_key": "abbreviate", "body": "短縮する"}
11524
+ {"_key": "Groonga", "body": "It\(aqs very fast!!"}
11149
11525
  ]
11150
11526
 
11151
11527
  [1]
11152
11528
  .ft P
11153
11529
  .fi
11154
- .SS 関連項目
11530
+ .SS Return value
11531
+ .SS JSON format
11532
+ .INDENT 0.0
11533
+ .INDENT 3.5
11534
+ \fBload\fP returns the number of added records such as
11535
+ .sp
11536
+ .nf
11537
+ .ft C
11538
+ [NUMBER]
11539
+ .ft P
11540
+ .fi
11541
+ .UNINDENT
11542
+ .UNINDENT
11543
+ .SS See also
11155
11544
  .sp
11156
11545
  \fB/reference/grn_expr\fP
11157
11546
  .SS log_level
@@ -11196,12 +11585,15 @@ debug
11196
11585
  .nf
11197
11586
  .ft C
11198
11587
  [成功かどうかのフラグ]
11199
-
11200
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
11201
-
11202
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11203
11588
  .ft P
11204
11589
  .fi
11590
+ .sp
11591
+ \fB成功かどうかのフラグ\fP
11592
+ .INDENT 0.0
11593
+ .INDENT 3.5
11594
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11595
+ .UNINDENT
11596
+ .UNINDENT
11205
11597
  .SS 例
11206
11598
  .sp
11207
11599
  .nf
@@ -11263,12 +11655,15 @@ debug
11263
11655
  .nf
11264
11656
  .ft C
11265
11657
  [成功かどうかのフラグ]
11266
-
11267
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
11268
-
11269
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11270
11658
  .ft P
11271
11659
  .fi
11660
+ .sp
11661
+ \fB成功かどうかのフラグ\fP
11662
+ .INDENT 0.0
11663
+ .INDENT 3.5
11664
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11665
+ .UNINDENT
11666
+ .UNINDENT
11272
11667
  .SS 例
11273
11668
  .sp
11274
11669
  .nf
@@ -11308,12 +11703,15 @@ log_reopenは、ログファイルを再読み込みします。
11308
11703
  .nf
11309
11704
  .ft C
11310
11705
  [成功かどうかのフラグ]
11311
-
11312
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
11313
-
11314
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11315
11706
  .ft P
11316
11707
  .fi
11708
+ .sp
11709
+ \fB成功かどうかのフラグ\fP
11710
+ .INDENT 0.0
11711
+ .INDENT 3.5
11712
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
11713
+ .UNINDENT
11714
+ .UNINDENT
11317
11715
  .SS 例
11318
11716
  .sp
11319
11717
  .nf
@@ -11338,49 +11736,123 @@ log_reopenコマンドを実行する。
11338
11736
  .sp
11339
11737
  \fBlog_level\fP
11340
11738
  \fBlog_put\fP
11341
- .SS quit
11342
- .SS 名前
11739
+ .SS \fBnormalize\fP
11740
+ .IP Caution
11741
+ \fBnormalize\fP command is the experimental feature.
11742
+ This command may be changed in the future.
11743
+ .RE
11744
+ .SS Summary
11343
11745
  .sp
11344
- quit \- セッション終了
11345
- .SS 書式
11746
+ \fBnormalize\fP command normalizes text by the specified normalizer.
11747
+ .sp
11748
+ There is no need to create table to use \fBnormalize\fP command.
11749
+ It is usefull for you to check the results of normalizer.
11750
+ .SS Syntax
11751
+ .sp
11752
+ \fBnormalize\fP commands takes two parameters \- \fBnormalizer\fP and \fBstring\fP.
11753
+ Both of them are required.
11346
11754
  .sp
11347
11755
  .nf
11348
11756
  .ft C
11349
- quit
11757
+ normalize normalizer string
11350
11758
  .ft P
11351
11759
  .fi
11352
- .SS 説明
11353
- .sp
11354
- groonga組込コマンドの一つであるquitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
11355
- .sp
11356
- quitは、groongaプロセスとのセッションを終了します。クライアントプロセスならばgroongaプロセスとの接続を切ります。
11357
- .SS 引数
11760
+ .SS Usage
11358
11761
  .sp
11359
- ありません。
11360
- .SS 返値
11762
+ Here is a simple example of \fBnormalize\fP command.
11361
11763
  .sp
11362
- ありません。
11363
- .SS 例
11764
+ Execution example:
11364
11765
  .sp
11365
11766
  .nf
11366
11767
  .ft C
11367
- quit
11768
+ normalize NormalizerAuto "aBcDe 123"
11769
+ # [[0, 1337566253.89858, 0.000355720520019531], "abcde 123"]
11368
11770
  .ft P
11369
11771
  .fi
11370
- .SS register
11371
- .SS Summary
11772
+ .SS Parameters
11372
11773
  .sp
11373
- \fBregister\fP command registers a plugin. You need to register a plugin
11374
- before you use a plugin.
11774
+ This section describes parameters of \fBnormalizer\fP.
11775
+ .SS Required parameter
11375
11776
  .sp
11376
- You need just one \fBregister\fP command for a plugin in the same
11377
- database because registered plugin information is written into the
11378
- database. When you restart your \fBgroonga\fP process, \fBgroonga\fP
11379
- process loads all registered plugins without \fBregister\fP command.
11380
- .IP Note
11381
- Registered plugins can\(aqt be removed for now.
11382
- .RE
11383
- .SS Syntax
11777
+ There are required parameters, \fBnormalizer\fP and \fBstring\fP.
11778
+ .SS \fBnormalizer\fP
11779
+ .sp
11780
+ It specifies the name of normalizer.
11781
+ Currently, \fBnormalize\fP command accepts \fBNormalizerAuto\fP or \fBNormalizerNFKC51\fP as built\-in normalizer.
11782
+ If you want to try another normalizer, you need to register additional normalizer plugin by \fBregister\fP command.
11783
+ .SS \fBstring\fP
11784
+ .sp
11785
+ It specifies any string which you want to normalize.
11786
+ .SS Return value
11787
+ .sp
11788
+ .nf
11789
+ .ft C
11790
+ [HEADER, normalized]
11791
+ .ft P
11792
+ .fi
11793
+ .sp
11794
+ \fBHEADER\fP
11795
+ .INDENT 0.0
11796
+ .INDENT 3.5
11797
+ The format of HEADER is [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME].
11798
+ See \fB/reference/command/output_format\fP about HEADER.
11799
+ .UNINDENT
11800
+ .UNINDENT
11801
+ .sp
11802
+ \fBnormalized\fP
11803
+ .INDENT 0.0
11804
+ .INDENT 3.5
11805
+ normalized is the normalized text by the specified normalizer.
11806
+ .UNINDENT
11807
+ .UNINDENT
11808
+ .SS See also
11809
+ .INDENT 0.0
11810
+ .IP \(bu 2
11811
+ \fB/reference/normalizers\fP
11812
+ .UNINDENT
11813
+ .SS quit
11814
+ .SS 名前
11815
+ .sp
11816
+ quit \- セッション終了
11817
+ .SS 書式
11818
+ .sp
11819
+ .nf
11820
+ .ft C
11821
+ quit
11822
+ .ft P
11823
+ .fi
11824
+ .SS 説明
11825
+ .sp
11826
+ groonga組込コマンドの一つであるquitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
11827
+ .sp
11828
+ quitは、groongaプロセスとのセッションを終了します。クライアントプロセスならばgroongaプロセスとの接続を切ります。
11829
+ .SS 引数
11830
+ .sp
11831
+ ありません。
11832
+ .SS 返値
11833
+ .sp
11834
+ ありません。
11835
+ .SS 例
11836
+ .sp
11837
+ .nf
11838
+ .ft C
11839
+ quit
11840
+ .ft P
11841
+ .fi
11842
+ .SS register
11843
+ .SS Summary
11844
+ .sp
11845
+ \fBregister\fP command registers a plugin. You need to register a plugin
11846
+ before you use a plugin.
11847
+ .sp
11848
+ You need just one \fBregister\fP command for a plugin in the same
11849
+ database because registered plugin information is written into the
11850
+ database. When you restart your \fBgroonga\fP process, \fBgroonga\fP
11851
+ process loads all registered plugins without \fBregister\fP command.
11852
+ .IP Note
11853
+ Registered plugins can\(aqt be removed for now.
11854
+ .RE
11855
+ .SS Syntax
11384
11856
  .sp
11385
11857
  \fBregister\fP has a parameter \fBpath\fP. It is required parameter:
11386
11858
  .sp
@@ -11455,6 +11927,7 @@ select table
11455
11927
  [match_escalation_threshold=0]
11456
11928
  [query_expansion=null]
11457
11929
  [query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
11930
+ [query_expander=null]
11458
11931
  .ft P
11459
11932
  .fi
11460
11933
  .SS Usage
@@ -12569,74 +13042,59 @@ records (0) is larger than \fBmatch_escalation_threshold\fP (\-1). So no
12569
13042
  more searches aren\(aqt executed. And no records are matched.
12570
13043
  .SS \fBquery_expansion\fP
12571
13044
  .sp
12572
- It\(aqs for query expansion. Query expansion substitutes specific words
12573
- to another words in query. Nomally, it\(aqs used for synonym search.
13045
+ Deprecated. Use \fIquery\-expander\fP instead.
13046
+ .SS \fBquery_flags\fP
12574
13047
  .sp
12575
- It specifies a column that is used to substitute \fBquery\fP parameter
12576
- value. The format of this parameter value is
12577
- "\fB${TABLE}.${COLUMN}\fP". For example, "\fBTerms.synonym\fP" specifies
12578
- \fBsynonym\fP column in \fBTerms\fP table.
13048
+ It customs \fBquery\fP parameter syntax. You cannot update column value
13049
+ by \fBquery\fP parameter by default. But if you specify
13050
+ \fBALLOW_COLUMN|ALLOW_UPDATE\fP as \fBquery_flags\fP, you can update
13051
+ column value by \fBquery\fP.
12579
13052
  .sp
12580
- Table for query expansion is called "substitution table". Substitution
12581
- table\(aqs key must be \fBShortText\fP. So array table (\fBTABLE_NO_KEY\fP)
12582
- can\(aqt be used for query expansion. Because array table doesn\(aqt have
12583
- key.
13053
+ Here are available values:
13054
+ .INDENT 0.0
13055
+ .IP \(bu 2
13056
+ \fBALLOW_PRAGMA\fP
13057
+ .IP \(bu 2
13058
+ \fBALLOW_COLUMN\fP
13059
+ .IP \(bu 2
13060
+ \fBALLOW_UPDATE\fP
13061
+ .IP \(bu 2
13062
+ \fBALLOW_LEADING_NOT\fP
13063
+ .IP \(bu 2
13064
+ \fBNONE\fP
13065
+ .UNINDENT
12584
13066
  .sp
12585
- Column for query expansion is called "substitution
12586
- column". Substitution column\(aqs value type must be
12587
- \fBShortText\fP. Column type must be vector (\fBCOLUMN_VECTOR\fP).
13067
+ \fBALLOW_PRAGMA\fP enables pragma at the head of \fBquery\fP. This is not
13068
+ implemented yet.
12588
13069
  .sp
12589
- Query expansion substitutes key of substitution table in query with
12590
- values in substitution column. If a word in \fBquery\fP is a key of
12591
- substitution table, the word is substituted with substitution column
12592
- value that is associated with the key. Substition isn\(aqt performed
12593
- recursively. It means that substitution target words in substituted
12594
- query aren\(aqt substituted.
13070
+ \fBALLOW_COLUMN\fP enables search againt columns that are not included
13071
+ in \fBmatch_columns\fP. To specify column, there are \fBCOLUMN:...\fP
13072
+ syntaxes.
12595
13073
  .sp
12596
- Here is a sample substitution table to show a simple
12597
- \fBquery_expansion\fP usage example.
13074
+ \fBALLOW_UPDATE\fP enables column update by \fBquery\fP with
13075
+ \fBCOLUMN:=NEW_VALUE\fP syntax. \fBALLOW_COLUMN\fP is also required to
13076
+ update column because the column update syntax specifies column.
12598
13077
  .sp
12599
- Execution example:
13078
+ \fBALLOW_LEADING_NOT\fP enables leading NOT condition with \fB\-WORD\fP
13079
+ syntax. The query searches records that doesn\(aqt match
13080
+ \fBWORD\fP. Leading NOT condition query is heavy query in many cases
13081
+ because it matches many records. So this flag is disabled by
13082
+ default. Be careful about it when you use the flag.
12600
13083
  .sp
12601
- .nf
12602
- .ft C
12603
- table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
12604
- # [[0, 1337566253.89858, 0.000355720520019531], true]
12605
- column_create Thesaurus synonym COLUMN_VECTOR ShortText
12606
- # [[0, 1337566253.89858, 0.000355720520019531], true]
12607
- load \-\-table Thesaurus
12608
- [
12609
- {"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
12610
- {"_key": "groonga", "synonym": ["groonga", "senna"]}
12611
- ]
12612
- # [[0, 1337566253.89858, 0.000355720520019531], 2]
12613
- .ft P
12614
- .fi
13084
+ \fBNONE\fP is just ignores. You can use \fBNONE\fP for specifying no flags.
12615
13085
  .sp
12616
- \fBThesaurus\fP substitution table has two synonyms, \fB"mroonga"\fP and
12617
- \fB"groonga"\fP. If an user searches with \fB"mroonga"\fP, groonga
12618
- searches with \fB"((mroonga) OR (tritonn) OR (groonga mysql))"\fP. If an
12619
- user searches with \fB"groonga"\fP, groonga searchs with \fB"((groonga)
12620
- OR (senna))"\fP. Nomrally, it\(aqs good idea that substitution table has
12621
- \fBKEY_NORMALIZE\fP flag. If the flag is used, substitute target word is
12622
- matched in case insensitive manner.
13086
+ They can be combined by separated \fB|\fP such as
13087
+ \fBALLOW_COLUMN|ALLOW_UPDATE\fP.
12623
13088
  .sp
12624
- Note that those synonym values include the key value such as
12625
- \fB"mroonga"\fP and \fB"groonga"\fP. It\(aqs recommended that you include the
12626
- key value. If you don\(aqt include key value, substituted value doesn\(aqt
12627
- include the original substitute target value. Normally, including the
12628
- original value is better search result. If you have a word that you
12629
- don\(aqt want to be searched, you should not include the original
12630
- word. For example, you can implement "stop words" by an empty vector
12631
- value.
13089
+ The default value is \fBALLOW_PRAGMA|ALLOW_COLUMN\fP.
12632
13090
  .sp
12633
- Here is a simple \fBquery_expansion\fP usage example.
13091
+ Here is a usage example of \fBALLOW_COLUMN\fP.
12634
13092
  .sp
12635
13093
  Execution example:
12636
13094
  .sp
12637
13095
  .nf
12638
13096
  .ft C
12639
- select Entries \-\-match_columns content \-\-query "mroonga"
13097
+ select Entries \-\-query content:@mroonga \-\-query_flags ALLOW_COLUMN
12640
13098
  # [
12641
13099
  # [
12642
13100
  # 0,
@@ -12675,7 +13133,29 @@ select Entries \-\-match_columns content \-\-query "mroonga"
12675
13133
  # ]
12676
13134
  # ]
12677
13135
  # ]
12678
- select Entries \-\-match_columns content \-\-query "mroonga" \-\-query_expansion Thesaurus.synonym
13136
+ .ft P
13137
+ .fi
13138
+ .sp
13139
+ The \fBselect\fP command searches records that contain \fBmroonga\fP in
13140
+ \fBcontent\fP column value from \fBEntries\fP table.
13141
+ .sp
13142
+ Here is a usage example of \fBALLOW_UPDATE\fP.
13143
+ .sp
13144
+ Execution example:
13145
+ .sp
13146
+ .nf
13147
+ .ft C
13148
+ table_create Users TABLE_HASH_KEY ShortText
13149
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
13150
+ column_create Users age COLUMN_SCALAR UInt32
13151
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
13152
+ load \-\-table Users
13153
+ [
13154
+ {"_key": "alice", "age": 18},
13155
+ {"_key": "bob", "age": 20}
13156
+ ]
13157
+ # [[0, 1337566253.89858, 0.000355720520019531], 2]
13158
+ select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
12679
13159
  # [
12680
13160
  # [
12681
13161
  # 0,
@@ -12697,30 +13177,24 @@ select Entries \-\-match_columns content \-\-query "mroonga" \-\-query_expansion
12697
13177
  # "ShortText"
12698
13178
  # ],
12699
13179
  # [
12700
- # "content",
12701
- # "Text"
12702
- # ],
12703
- # [
12704
- # "n_likes",
13180
+ # "age",
12705
13181
  # "UInt32"
12706
13182
  # ]
12707
13183
  # ],
12708
13184
  # [
12709
- # 3,
12710
- # "Mroonga",
12711
- # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
12712
- # 15
13185
+ # 1,
13186
+ # "alice",
13187
+ # 19
12713
13188
  # ],
12714
13189
  # [
12715
- # 5,
12716
- # "Good\-bye Tritonn",
12717
- # "I also migrated all Tritonn system!",
12718
- # 3
13190
+ # 2,
13191
+ # "bob",
13192
+ # 19
12719
13193
  # ]
12720
13194
  # ]
12721
13195
  # ]
12722
13196
  # ]
12723
- select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (groonga mysql))"
13197
+ select Users
12724
13198
  # [
12725
13199
  # [
12726
13200
  # 0,
@@ -12742,25 +13216,19 @@ select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (
12742
13216
  # "ShortText"
12743
13217
  # ],
12744
13218
  # [
12745
- # "content",
12746
- # "Text"
12747
- # ],
12748
- # [
12749
- # "n_likes",
13219
+ # "age",
12750
13220
  # "UInt32"
12751
13221
  # ]
12752
13222
  # ],
12753
13223
  # [
12754
- # 3,
12755
- # "Mroonga",
12756
- # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
12757
- # 15
13224
+ # 1,
13225
+ # "alice",
13226
+ # 19
12758
13227
  # ],
12759
13228
  # [
12760
- # 5,
12761
- # "Good\-bye Tritonn",
12762
- # "I also migrated all Tritonn system!",
12763
- # 3
13229
+ # 2,
13230
+ # "bob",
13231
+ # 19
12764
13232
  # ]
12765
13233
  # ]
12766
13234
  # ]
@@ -12768,28 +13236,17 @@ select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (
12768
13236
  .ft P
12769
13237
  .fi
12770
13238
  .sp
12771
- The first \fBselect\fP command doesn\(aqt use query expansion. So a record
12772
- that has \fB"tritonn"\fP isn\(aqt found. The second \fBselect\fP command uses
12773
- query expansion. So a record that has \fB"tritonn"\fP is found. The
12774
- third \fBselect\fP command doesn\(aqt use query expansion but it is same as
12775
- the second \fBselect\fP command. The third one uses expanded query.
12776
- .sp
12777
- Each substitute value can contain any \fB/reference/grn_expr/query_syntax\fP syntax
12778
- such as \fB(...)\fP and \fBOR\fP. You can use complex substitution by
12779
- using those syntax.
13239
+ The first \fBselect\fP command sets \fBage\fP column value of all records
13240
+ to \fB19\fP. The second \fBselect\fP command outputs updated \fBage\fP
13241
+ column values.
12780
13242
  .sp
12781
- Here is a complex substitution usage example that uses query syntax.
13243
+ Here is a usage example of \fBALLOW_LEADING_NOT\fP.
12782
13244
  .sp
12783
13245
  Execution example:
12784
13246
  .sp
12785
13247
  .nf
12786
13248
  .ft C
12787
- load \-\-table Thesaurus
12788
- [
12789
- {"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
12790
- ]
12791
- # [[0, 1337566253.89858, 0.000355720520019531], 1]
12792
- select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion Thesaurus.synonym
13249
+ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALLOW_LEADING_NOT
12793
13250
  # [
12794
13251
  # [
12795
13252
  # 0,
@@ -12799,7 +13256,7 @@ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion
12799
13256
  # [
12800
13257
  # [
12801
13258
  # [
12802
- # 2
13259
+ # 4
12803
13260
  # ],
12804
13261
  # [
12805
13262
  # [
@@ -12820,16 +13277,28 @@ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion
12820
13277
  # ]
12821
13278
  # ],
12822
13279
  # [
13280
+ # 1,
13281
+ # "The first post!",
13282
+ # "Welcome! This is my first post!",
13283
+ # 5
13284
+ # ],
13285
+ # [
12823
13286
  # 2,
12824
13287
  # "Groonga",
12825
13288
  # "I started to use groonga. It\(aqs very fast!",
12826
13289
  # 10
12827
13290
  # ],
12828
13291
  # [
12829
- # 3,
12830
- # "Mroonga",
12831
- # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
12832
- # 15
13292
+ # 4,
13293
+ # "Good\-bye Senna",
13294
+ # "I migrated all Senna system!",
13295
+ # 3
13296
+ # ],
13297
+ # [
13298
+ # 5,
13299
+ # "Good\-bye Tritonn",
13300
+ # "I also migrated all Tritonn system!",
13301
+ # 3
12833
13302
  # ]
12834
13303
  # ]
12835
13304
  # ]
@@ -12837,65 +13306,16 @@ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion
12837
13306
  .ft P
12838
13307
  .fi
12839
13308
  .sp
12840
- The \fBload\fP command registers a new synonym \fB"popular"\fP. It is
12841
- substituted with \fB((popular) OR (n_likes:>=10))\fP. The substituted
12842
- query means that "popular" is containing the word "popular" or 10 or
12843
- more liked entries.
12844
- .sp
12845
- The \fBselect\fP command outputs records that \fBn_likes\fP column value
12846
- is equal to or more than \fB10\fP from \fBEntries\fP table.
12847
- .SS \fBquery_flags\fP
12848
- .sp
12849
- It customs \fBquery\fP parameter syntax. You cannot update column value
12850
- by \fBquery\fP parameter by default. But if you specify
12851
- \fBALLOW_COLUMN|ALLOW_UPDATE\fP as \fBquery_flags\fP, you can update
12852
- column value by \fBquery\fP.
12853
- .sp
12854
- Here are available values:
12855
- .INDENT 0.0
12856
- .IP \(bu 2
12857
- \fBALLOW_PRAGMA\fP
12858
- .IP \(bu 2
12859
- \fBALLOW_COLUMN\fP
12860
- .IP \(bu 2
12861
- \fBALLOW_UPDATE\fP
12862
- .IP \(bu 2
12863
- \fBALLOW_LEADING_NOT\fP
12864
- .IP \(bu 2
12865
- \fBNONE\fP
12866
- .UNINDENT
12867
- .sp
12868
- \fBALLOW_PRAGMA\fP enables pragma at the head of \fBquery\fP. This is not
12869
- implemented yet.
12870
- .sp
12871
- \fBALLOW_COLUMN\fP enables search againt columns that are not included
12872
- in \fBmatch_columns\fP. To specify column, there are \fBCOLUMN:...\fP
12873
- syntaxes.
12874
- .sp
12875
- \fBALLOW_UPDATE\fP enables column update by \fBquery\fP with
12876
- \fBCOLUMN:=NEW_VALUE\fP syntax. \fBALLOW_COLUMN\fP is also required to
12877
- update column because the column update syntax specifies column.
12878
- .sp
12879
- \fBALLOW_LEADING_NOT\fP enables leading NOT condition with \fB\-WORD\fP
12880
- syntax. The query searches records that doesn\(aqt match
12881
- \fBWORD\fP. Leading NOT condition query is heavy query in many cases
12882
- because it matches many records. So this flag is disabled by
12883
- default. Be careful about it when you use the flag.
12884
- .sp
12885
- \fBNONE\fP is just ignores. You can use \fBNONE\fP for specifying no flags.
12886
- .sp
12887
- They can be combined by separated \fB|\fP such as
12888
- \fBALLOW_COLUMN|ALLOW_UPDATE\fP.
12889
- .sp
12890
- The default value is \fBALLOW_PRAGMA|ALLOW_COLUMN\fP.
13309
+ The \fBselect\fP command searches records that don\(aqt contain \fBmroonga\fP
13310
+ in \fBcontent\fP column value from \fBEntries\fP table.
12891
13311
  .sp
12892
- Here is a usage example of \fBALLOW_COLUMN\fP.
13312
+ Here is a usage example of \fBNONE\fP.
12893
13313
  .sp
12894
13314
  Execution example:
12895
13315
  .sp
12896
13316
  .nf
12897
13317
  .ft C
12898
- select Entries \-\-query content:@mroonga \-\-query_flags ALLOW_COLUMN
13318
+ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(aq \-\-query_flags NONE
12899
13319
  # [
12900
13320
  # [
12901
13321
  # 0,
@@ -12937,26 +13357,83 @@ select Entries \-\-query content:@mroonga \-\-query_flags ALLOW_COLUMN
12937
13357
  .ft P
12938
13358
  .fi
12939
13359
  .sp
12940
- The \fBselect\fP command searches records that contain \fBmroonga\fP in
12941
- \fBcontent\fP column value from \fBEntries\fP table.
13360
+ The \fBselect\fP command searches records that contain one of two words
13361
+ \fBmroonga\fP or \fB_key:Groonga\fP in \fBcontent\fP from \fBEntries\fP table.
13362
+ Note that \fB_key:Groonga\fP doesn\(aqt mean that the value of \fB_key\fP
13363
+ column is equal to \fBGroonga\fP. Because \fBALLOW_COLUMN\fP flag is not
13364
+ specified.
13365
+ .sp
13366
+ See also \fB/reference/grn_expr/query_syntax\fP.
13367
+ .SS \fBquery_expander\fP
13368
+ .sp
13369
+ It\(aqs for query expansion. Query expansion substitutes specific words
13370
+ to another words in query. Nomally, it\(aqs used for synonym search.
13371
+ .sp
13372
+ It specifies a column that is used to substitute \fBquery\fP parameter
13373
+ value. The format of this parameter value is
13374
+ "\fB${TABLE}.${COLUMN}\fP". For example, "\fBTerms.synonym\fP" specifies
13375
+ \fBsynonym\fP column in \fBTerms\fP table.
13376
+ .sp
13377
+ Table for query expansion is called "substitution table". Substitution
13378
+ table\(aqs key must be \fBShortText\fP. So array table (\fBTABLE_NO_KEY\fP)
13379
+ can\(aqt be used for query expansion. Because array table doesn\(aqt have
13380
+ key.
13381
+ .sp
13382
+ Column for query expansion is called "substitution
13383
+ column". Substitution column\(aqs value type must be
13384
+ \fBShortText\fP. Column type must be vector (\fBCOLUMN_VECTOR\fP).
13385
+ .sp
13386
+ Query expansion substitutes key of substitution table in query with
13387
+ values in substitution column. If a word in \fBquery\fP is a key of
13388
+ substitution table, the word is substituted with substitution column
13389
+ value that is associated with the key. Substition isn\(aqt performed
13390
+ recursively. It means that substitution target words in substituted
13391
+ query aren\(aqt substituted.
13392
+ .sp
13393
+ Here is a sample substitution table to show a simple
13394
+ \fBquery_expander\fP usage example.
13395
+ .sp
13396
+ Execution example:
13397
+ .sp
13398
+ .nf
13399
+ .ft C
13400
+ table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
13401
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
13402
+ column_create Thesaurus synonym COLUMN_VECTOR ShortText
13403
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
13404
+ load \-\-table Thesaurus
13405
+ [
13406
+ {"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
13407
+ {"_key": "groonga", "synonym": ["groonga", "senna"]}
13408
+ ]
13409
+ # [[0, 1337566253.89858, 0.000355720520019531], 2]
13410
+ .ft P
13411
+ .fi
13412
+ .sp
13413
+ \fBThesaurus\fP substitution table has two synonyms, \fB"mroonga"\fP and
13414
+ \fB"groonga"\fP. If an user searches with \fB"mroonga"\fP, groonga
13415
+ searches with \fB"((mroonga) OR (tritonn) OR (groonga mysql))"\fP. If an
13416
+ user searches with \fB"groonga"\fP, groonga searchs with \fB"((groonga)
13417
+ OR (senna))"\fP. Nomrally, it\(aqs good idea that substitution table has
13418
+ \fBKEY_NORMALIZE\fP flag. If the flag is used, substitute target word is
13419
+ matched in case insensitive manner.
13420
+ .sp
13421
+ Note that those synonym values include the key value such as
13422
+ \fB"mroonga"\fP and \fB"groonga"\fP. It\(aqs recommended that you include the
13423
+ key value. If you don\(aqt include key value, substituted value doesn\(aqt
13424
+ include the original substitute target value. Normally, including the
13425
+ original value is better search result. If you have a word that you
13426
+ don\(aqt want to be searched, you should not include the original
13427
+ word. For example, you can implement "stop words" by an empty vector
13428
+ value.
12942
13429
  .sp
12943
- Here is a usage example of \fBALLOW_UPDATE\fP.
13430
+ Here is a simple \fBquery_expander\fP usage example.
12944
13431
  .sp
12945
13432
  Execution example:
12946
13433
  .sp
12947
13434
  .nf
12948
13435
  .ft C
12949
- table_create Users TABLE_HASH_KEY ShortText
12950
- # [[0, 1337566253.89858, 0.000355720520019531], true]
12951
- column_create Users age COLUMN_SCALAR UInt32
12952
- # [[0, 1337566253.89858, 0.000355720520019531], true]
12953
- load \-\-table Users
12954
- [
12955
- {"_key": "alice", "age": 18},
12956
- {"_key": "bob", "age": 20}
12957
- ]
12958
- # [[0, 1337566253.89858, 0.000355720520019531], 2]
12959
- select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
13436
+ select Entries \-\-match_columns content \-\-query "mroonga"
12960
13437
  # [
12961
13438
  # [
12962
13439
  # 0,
@@ -12966,7 +13443,7 @@ select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
12966
13443
  # [
12967
13444
  # [
12968
13445
  # [
12969
- # 2
13446
+ # 1
12970
13447
  # ],
12971
13448
  # [
12972
13449
  # [
@@ -12978,24 +13455,24 @@ select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
12978
13455
  # "ShortText"
12979
13456
  # ],
12980
13457
  # [
12981
- # "age",
13458
+ # "content",
13459
+ # "Text"
13460
+ # ],
13461
+ # [
13462
+ # "n_likes",
12982
13463
  # "UInt32"
12983
13464
  # ]
12984
13465
  # ],
12985
13466
  # [
12986
- # 1,
12987
- # "alice",
12988
- # 19
12989
- # ],
12990
- # [
12991
- # 2,
12992
- # "bob",
12993
- # 19
13467
+ # 3,
13468
+ # "Mroonga",
13469
+ # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
13470
+ # 15
12994
13471
  # ]
12995
13472
  # ]
12996
13473
  # ]
12997
13474
  # ]
12998
- select Users
13475
+ select Entries \-\-match_columns content \-\-query "mroonga" \-\-query_expander Thesaurus.synonym
12999
13476
  # [
13000
13477
  # [
13001
13478
  # 0,
@@ -13017,37 +13494,30 @@ select Users
13017
13494
  # "ShortText"
13018
13495
  # ],
13019
13496
  # [
13020
- # "age",
13497
+ # "content",
13498
+ # "Text"
13499
+ # ],
13500
+ # [
13501
+ # "n_likes",
13021
13502
  # "UInt32"
13022
13503
  # ]
13023
13504
  # ],
13024
13505
  # [
13025
- # 1,
13026
- # "alice",
13027
- # 19
13506
+ # 3,
13507
+ # "Mroonga",
13508
+ # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
13509
+ # 15
13028
13510
  # ],
13029
13511
  # [
13030
- # 2,
13031
- # "bob",
13032
- # 19
13512
+ # 5,
13513
+ # "Good\-bye Tritonn",
13514
+ # "I also migrated all Tritonn system!",
13515
+ # 3
13033
13516
  # ]
13034
13517
  # ]
13035
13518
  # ]
13036
13519
  # ]
13037
- .ft P
13038
- .fi
13039
- .sp
13040
- The first \fBselect\fP command sets \fBage\fP column value of all records
13041
- to \fB19\fP. The second \fBselect\fP command outputs updated \fBage\fP
13042
- column values.
13043
- .sp
13044
- Here is a usage example of \fBALLOW_LEADING_NOT\fP.
13045
- .sp
13046
- Execution example:
13047
- .sp
13048
- .nf
13049
- .ft C
13050
- select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALLOW_LEADING_NOT
13520
+ select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (groonga mysql))"
13051
13521
  # [
13052
13522
  # [
13053
13523
  # 0,
@@ -13057,7 +13527,7 @@ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALL
13057
13527
  # [
13058
13528
  # [
13059
13529
  # [
13060
- # 4
13530
+ # 2
13061
13531
  # ],
13062
13532
  # [
13063
13533
  # [
@@ -13078,22 +13548,10 @@ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALL
13078
13548
  # ]
13079
13549
  # ],
13080
13550
  # [
13081
- # 1,
13082
- # "The first post!",
13083
- # "Welcome! This is my first post!",
13084
- # 5
13085
- # ],
13086
- # [
13087
- # 2,
13088
- # "Groonga",
13089
- # "I started to use groonga. It\(aqs very fast!",
13090
- # 10
13091
- # ],
13092
- # [
13093
- # 4,
13094
- # "Good\-bye Senna",
13095
- # "I migrated all Senna system!",
13096
- # 3
13551
+ # 3,
13552
+ # "Mroonga",
13553
+ # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
13554
+ # 15
13097
13555
  # ],
13098
13556
  # [
13099
13557
  # 5,
@@ -13107,16 +13565,28 @@ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALL
13107
13565
  .ft P
13108
13566
  .fi
13109
13567
  .sp
13110
- The \fBselect\fP command searches records that don\(aqt contain \fBmroonga\fP
13111
- in \fBcontent\fP column value from \fBEntries\fP table.
13568
+ The first \fBselect\fP command doesn\(aqt use query expansion. So a record
13569
+ that has \fB"tritonn"\fP isn\(aqt found. The second \fBselect\fP command uses
13570
+ query expansion. So a record that has \fB"tritonn"\fP is found. The
13571
+ third \fBselect\fP command doesn\(aqt use query expansion but it is same as
13572
+ the second \fBselect\fP command. The third one uses expanded query.
13112
13573
  .sp
13113
- Here is a usage example of \fBNONE\fP.
13574
+ Each substitute value can contain any \fB/reference/grn_expr/query_syntax\fP syntax
13575
+ such as \fB(...)\fP and \fBOR\fP. You can use complex substitution by
13576
+ using those syntax.
13577
+ .sp
13578
+ Here is a complex substitution usage example that uses query syntax.
13114
13579
  .sp
13115
13580
  Execution example:
13116
13581
  .sp
13117
13582
  .nf
13118
13583
  .ft C
13119
- select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(aq \-\-query_flags NONE
13584
+ load \-\-table Thesaurus
13585
+ [
13586
+ {"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
13587
+ ]
13588
+ # [[0, 1337566253.89858, 0.000355720520019531], 1]
13589
+ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expander Thesaurus.synonym
13120
13590
  # [
13121
13591
  # [
13122
13592
  # 0,
@@ -13126,7 +13596,7 @@ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(
13126
13596
  # [
13127
13597
  # [
13128
13598
  # [
13129
- # 1
13599
+ # 2
13130
13600
  # ],
13131
13601
  # [
13132
13602
  # [
@@ -13147,6 +13617,12 @@ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(
13147
13617
  # ]
13148
13618
  # ],
13149
13619
  # [
13620
+ # 2,
13621
+ # "Groonga",
13622
+ # "I started to use groonga. It\(aqs very fast!",
13623
+ # 10
13624
+ # ],
13625
+ # [
13150
13626
  # 3,
13151
13627
  # "Mroonga",
13152
13628
  # "I also started to use mroonga. It\(aqs also very fast! Really fast!",
@@ -13158,13 +13634,13 @@ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(
13158
13634
  .ft P
13159
13635
  .fi
13160
13636
  .sp
13161
- The \fBselect\fP command searches records that contain one of two words
13162
- \fBmroonga\fP or \fB_key:Groonga\fP in \fBcontent\fP from \fBEntries\fP table.
13163
- Note that \fB_key:Groonga\fP doesn\(aqt mean that the value of \fB_key\fP
13164
- column is equal to \fBGroonga\fP. Because \fBALLOW_COLUMN\fP flag is not
13165
- specified.
13637
+ The \fBload\fP command registers a new synonym \fB"popular"\fP. It is
13638
+ substituted with \fB((popular) OR (n_likes:>=10))\fP. The substituted
13639
+ query means that "popular" is containing the word "popular" or 10 or
13640
+ more liked entries.
13166
13641
  .sp
13167
- See also \fB/reference/grn_expr/query_syntax\fP.
13642
+ The \fBselect\fP command outputs records that \fBn_likes\fP column value
13643
+ is equal to or more than \fB10\fP from \fBEntries\fP table.
13168
13644
  .SS Output related parameters
13169
13645
  .SS \fBoutput_columns\fP
13170
13646
  .sp
@@ -13906,20 +14382,29 @@ statusコマンドは、groongaプロセスの状態を表示します。主にg
13906
14382
  .nf
13907
14383
  .ft C
13908
14384
  下記の項目がハッシュ形式で出力されます。
13909
-
13910
- \(ga\(gaalloc_count\(ga\(ga
13911
-
13912
- groongaプロセスの内部でアロケートされ、まだ解放されてないメモリブロックの数を示します。groongaをbuildする際に、configureオプションで \-\-enable\-exact\-alloc\-countが指定されていたならば、正確な値を返します。それ以外の場合は不正確な値を返す場合があります。
13913
-
13914
- \(ga\(gastarttime\(ga\(ga
13915
-
13916
- groongaプロセスが起動した時刻のtvsec値を返します。
13917
-
13918
- \(ga\(gauptime\(ga\(ga
13919
-
13920
- groongaプロセスが起動してから経過した秒数を返します。
13921
14385
  .ft P
13922
14386
  .fi
14387
+ .sp
14388
+ \fBalloc_count\fP
14389
+ .INDENT 0.0
14390
+ .INDENT 3.5
14391
+ groongaプロセスの内部でアロケートされ、まだ解放されてないメモリブロックの数を示します。groongaをbuildする際に、configureオプションで \-\-enable\-exact\-alloc\-countが指定されていたならば、正確な値を返します。それ以外の場合は不正確な値を返す場合があります。
14392
+ .UNINDENT
14393
+ .UNINDENT
14394
+ .sp
14395
+ \fBstarttime\fP
14396
+ .INDENT 0.0
14397
+ .INDENT 3.5
14398
+ groongaプロセスが起動した時刻のtvsec値を返します。
14399
+ .UNINDENT
14400
+ .UNINDENT
14401
+ .sp
14402
+ \fBuptime\fP
14403
+ .INDENT 0.0
14404
+ .INDENT 3.5
14405
+ groongaプロセスが起動してから経過した秒数を返します。
14406
+ .UNINDENT
14407
+ .UNINDENT
13923
14408
  .SS 例
13924
14409
  .sp
13925
14410
  Execution example:
@@ -14955,62 +15440,194 @@ table_list
14955
15440
  # null
14956
15441
  # ],
14957
15442
  # [
14958
- # 258,
14959
- # "Tags",
14960
- # "/tmp/groonga\-databases/commands_table_create.0000102",
14961
- # "TABLE_HASH_KEY|PERSISTENT",
14962
- # "ShortText",
14963
- # null,
14964
- # null,
14965
- # null
15443
+ # 258,
15444
+ # "Tags",
15445
+ # "/tmp/groonga\-databases/commands_table_create.0000102",
15446
+ # "TABLE_HASH_KEY|PERSISTENT",
15447
+ # "ShortText",
15448
+ # null,
15449
+ # null,
15450
+ # null
15451
+ # ]
15452
+ # ]
15453
+ # ]
15454
+ .ft P
15455
+ .fi
15456
+ .SS table_remove
15457
+ .SS 名前
15458
+ .sp
15459
+ table_remove \- テーブルの削除
15460
+ .SS 書式
15461
+ .sp
15462
+ .nf
15463
+ .ft C
15464
+ table_remove name
15465
+ .ft P
15466
+ .fi
15467
+ .SS 説明
15468
+ .sp
15469
+ groonga組込コマンドの一つであるtable_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
15470
+ .sp
15471
+ table_removeはテーブルと定義されているカラムを削除します。カラムに付随するインデックスも再帰的に削除されます。
15472
+ .SS 引数
15473
+ .INDENT 0.0
15474
+ .TP
15475
+ .B \fBname\fP
15476
+ 削除対象のカラムが定義されているテーブルの名前を指定します。
15477
+ .UNINDENT
15478
+ .SS 返値
15479
+ .SS json形式
15480
+ .sp
15481
+ .nf
15482
+ .ft C
15483
+ [成功かどうかのフラグ]
15484
+ .ft P
15485
+ .fi
15486
+ .sp
15487
+ \fB成功かどうかのフラグ\fP
15488
+ .INDENT 0.0
15489
+ .INDENT 3.5
15490
+ エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
15491
+ .UNINDENT
15492
+ .UNINDENT
15493
+ .SS 例
15494
+ .sp
15495
+ .nf
15496
+ .ft C
15497
+ table_remove Entry
15498
+
15499
+ [true]
15500
+ .ft P
15501
+ .fi
15502
+ .SS \fBtruncate\fP
15503
+ .SS Summary
15504
+ .sp
15505
+ \fBtruncate\fP command deletes all records from specified table.
15506
+ .SS Syntax
15507
+ .sp
15508
+ \fBtruncate\fP command takes only one parameter.
15509
+ .sp
15510
+ The required parameter is only \fBtable\fP:
15511
+ .sp
15512
+ .nf
15513
+ .ft C
15514
+ truncate table
15515
+ .ft P
15516
+ .fi
15517
+ .SS Usage
15518
+ .sp
15519
+ Here is a simple example of \fBtruncate\fP command.
15520
+ .sp
15521
+ Execution example:
15522
+ .sp
15523
+ .nf
15524
+ .ft C
15525
+ table_create Users TABLE_PAT_KEY ShortText
15526
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
15527
+ load \-\-table Users
15528
+ [
15529
+ {"_key": "Alice", "score": 2},
15530
+ {"_key": "Bob", "score": 0},
15531
+ {"_key": "Carlos", "score": \-1}
15532
+ ]
15533
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
15534
+ select Users
15535
+ # [
15536
+ # [
15537
+ # 0,
15538
+ # 1337566253.89858,
15539
+ # 0.000355720520019531
15540
+ # ],
15541
+ # [
15542
+ # [
15543
+ # [
15544
+ # 3
15545
+ # ],
15546
+ # [
15547
+ # [
15548
+ # "_id",
15549
+ # "UInt32"
15550
+ # ],
15551
+ # [
15552
+ # "_key",
15553
+ # "ShortText"
15554
+ # ]
15555
+ # ],
15556
+ # [
15557
+ # 1,
15558
+ # "Alice"
15559
+ # ],
15560
+ # [
15561
+ # 2,
15562
+ # "Bob"
15563
+ # ],
15564
+ # [
15565
+ # 3,
15566
+ # "Carlos"
15567
+ # ]
15568
+ # ]
15569
+ # ]
15570
+ # ]
15571
+ truncate Users
15572
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
15573
+ select Users
15574
+ # [
15575
+ # [
15576
+ # 0,
15577
+ # 1337566253.89858,
15578
+ # 0.000355720520019531
15579
+ # ],
15580
+ # [
15581
+ # [
15582
+ # [
15583
+ # 0
15584
+ # ],
15585
+ # [
15586
+ # [
15587
+ # "_id",
15588
+ # "UInt32"
15589
+ # ],
15590
+ # [
15591
+ # "_key",
15592
+ # "ShortText"
15593
+ # ]
15594
+ # ]
14966
15595
  # ]
14967
15596
  # ]
14968
15597
  # ]
14969
15598
  .ft P
14970
15599
  .fi
14971
- .SS table_remove
14972
- .SS 名前
15600
+ .SS Parameters
14973
15601
  .sp
14974
- table_remove \- テーブルの削除
14975
- .SS 書式
15602
+ This section describes parameters of \fBtruncate\fP.
15603
+ .SS Required parameter
15604
+ .sp
15605
+ There is required parameter, \fBtable_name\fP.
15606
+ .SS \fBtable_name\fP
15607
+ .sp
15608
+ It specifies the name of table.
15609
+ .SS Return value
14976
15610
  .sp
14977
15611
  .nf
14978
15612
  .ft C
14979
- table_remove name
15613
+ [HEADER, SUCCEEDED_OR_NOT]
14980
15614
  .ft P
14981
15615
  .fi
14982
- .SS 説明
14983
- .sp
14984
- groonga組込コマンドの一つであるtable_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
14985
15616
  .sp
14986
- table_removeはテーブルと定義されているカラムを削除します。カラムに付随するインデックスも再帰的に削除されます。
14987
- .SS 引数
15617
+ \fBHEADER\fP
14988
15618
  .INDENT 0.0
14989
- .TP
14990
- .B \fBname\fP
14991
- 削除対象のカラムが定義されているテーブルの名前を指定します。
15619
+ .INDENT 3.5
15620
+ The format of HEADER is [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME].
15621
+ See \fB/reference/command/output_format\fP about HEADER.
15622
+ .UNINDENT
14992
15623
  .UNINDENT
14993
- .SS 返値
14994
- .SS json形式
14995
- .sp
14996
- .nf
14997
- .ft C
14998
- [成功かどうかのフラグ]
14999
-
15000
- \(ga\(ga成功かどうかのフラグ\(ga\(ga
15001
-
15002
- エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
15003
- .ft P
15004
- .fi
15005
- .SS 例
15006
15624
  .sp
15007
- .nf
15008
- .ft C
15009
- table_remove Entry
15010
-
15011
- [true]
15012
- .ft P
15013
- .fi
15625
+ \fBSUCCEEDED_OR_NOT\fP
15626
+ .INDENT 0.0
15627
+ .INDENT 3.5
15628
+ If command succeeded, it returns true, otherwise it returns false on error.
15629
+ .UNINDENT
15630
+ .UNINDENT
15014
15631
  .SS データ型
15015
15632
  .SS 名前
15016
15633
  .sp
@@ -15607,6 +16224,43 @@ table_create NFKC51Lexicon TABLE_HASH_KEY ShortText \-\-normalizer NormalizerNFK
15607
16224
  # [[0, 1337566253.89858, 0.000355720520019531], true]
15608
16225
  .ft P
15609
16226
  .fi
16227
+ .SS Additional normalizers
16228
+ .sp
16229
+ Here is a list of additional normalizers provided by \fBgroonga\-normalizer\-mysql\fP plugins:
16230
+ .INDENT 0.0
16231
+ .INDENT 3.5
16232
+ .INDENT 0.0
16233
+ .IP \(bu 2
16234
+ \fBNormalizerMySQLGeneralCI\fP
16235
+ .UNINDENT
16236
+ .UNINDENT
16237
+ .UNINDENT
16238
+ .sp
16239
+ \fBgroonga\-normalizer\-mysql\fP is a groonga plugin.
16240
+ It provides MySQL compatible normalizers to groonga.
16241
+ \fBNormalizerMySQLGeneralCI\fP corresponds to \fButf8mb4_general_ci\fP.
16242
+ .sp
16243
+ You need to register \fBnormalizers/mysql\fP plugin in advance.
16244
+ .sp
16245
+ Execution example:
16246
+ .sp
16247
+ .nf
16248
+ .ft C
16249
+ register normalizers/mysql
16250
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
16251
+ .ft P
16252
+ .fi
16253
+ .sp
16254
+ Here is an example that uses \fBNormalizerMySQLGeneralCI\fP normalizer:
16255
+ .sp
16256
+ Execution example:
16257
+ .sp
16258
+ .nf
16259
+ .ft C
16260
+ table_create MySQLGeneralLexicon TABLE_HASH_KEY ShortText \-\-normalizer NormalizerMySQLGeneralCI
16261
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
16262
+ .ft P
16263
+ .fi
15610
16264
  .SS See also
15611
16265
  .INDENT 0.0
15612
16266
  .IP \(bu 2
@@ -20479,6 +21133,177 @@ Support options by object literal.
20479
21133
  .IP \(bu 2
20480
21134
  \fB/reference/commands/select\fP
20481
21135
  .UNINDENT
21136
+ .SS sub_filter
21137
+ .SS Summary
21138
+ .sp
21139
+ \fBsub_filter\fP evaluates \fBquery_string\fP in \fBmatch_column\fP context.
21140
+ .sp
21141
+ \fBsub_filter\fP can be used in only \fB\-\-filter\fP in \fB/reference/commands/select\fP.
21142
+ .SS Syntax
21143
+ .sp
21144
+ \fBsub_filter\fP requires two arguments \- \fBmatch_column\fP and \fBquery_string\fP.
21145
+ .sp
21146
+ .nf
21147
+ .ft C
21148
+ sub_filter(match_column, query_string)
21149
+ .ft P
21150
+ .fi
21151
+ .SS Usage
21152
+ .sp
21153
+ Here are a schema definition and sample data to show usage.
21154
+ .sp
21155
+ Sample schema:
21156
+ .sp
21157
+ Execution example:
21158
+ .sp
21159
+ .nf
21160
+ .ft C
21161
+ table_create Comment TABLE_PAT_KEY UInt32
21162
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21163
+ column_create Comment name COLUMN_SCALAR ShortText
21164
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21165
+ column_create Comment content COLUMN_SCALAR ShortText
21166
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21167
+ table_create Blog TABLE_PAT_KEY ShortText
21168
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21169
+ column_create Blog title COLUMN_SCALAR ShortText
21170
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21171
+ column_create Blog content COLUMN_SCALAR ShortText
21172
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21173
+ column_create Blog comments COLUMN_VECTOR Comment
21174
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21175
+ column_create Comment blog_comment_index COLUMN_INDEX Blog comments
21176
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21177
+ table_create Lexicon TABLE_PAT_KEY ShortText \-\-default_tokenizer TokenBigram
21178
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21179
+ column_create Lexicon comment_content COLUMN_INDEX|WITH_POSITION Comment content
21180
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21181
+ column_create Lexicon comment_name COLUMN_INDEX|WITH_POSITION Comment name
21182
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21183
+ column_create Lexicon blog_content COLUMN_INDEX|WITH_POSITION Blog content
21184
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
21185
+ .ft P
21186
+ .fi
21187
+ .sp
21188
+ Sample data:
21189
+ .sp
21190
+ Execution example:
21191
+ .sp
21192
+ .nf
21193
+ .ft C
21194
+ load \-\-table Comment
21195
+ [
21196
+ {"_key": 1, "name": "A", "content": "groonga"},
21197
+ {"_key": 2, "name": "B", "content": "groonga"},
21198
+ {"_key": 3, "name": "C", "content": "rroonga"},
21199
+ {"_key": 4, "name": "A", "content": "mroonga"},
21200
+ ]
21201
+ # [[0, 1337566253.89858, 0.000355720520019531], 4]
21202
+ load \-\-table Blog
21203
+ [
21204
+ {"_key": "groonga\(aqs blog", "content": "content of groonga\(aqs blog", comments: [1, 2, 3]},
21205
+ {"_key": "mroonga\(aqs blog", "content": "content of mroonga\(aqs blog", comments: [2, 3, 4]},
21206
+ {"_key": "rroonga\(aqs blog", "content": "content of rroonga\(aqs blog", comments: [3]},
21207
+ ]
21208
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
21209
+ .ft P
21210
+ .fi
21211
+ .INDENT 0.0
21212
+ .TP
21213
+ .B Here is the simple usage of \fBsub_filter\fP function which extracts the blog entry
21214
+ user \(aqA\(aq commented out.
21215
+ .UNINDENT
21216
+ .sp
21217
+ Execution example:
21218
+ .sp
21219
+ .nf
21220
+ .ft C
21221
+ select Blog \-\-output_columns _key \e
21222
+ \-\-filter "comments.name @ \e"A\e" && comments.content @ \e"groonga\e""
21223
+ .ft P
21224
+ .fi
21225
+ .sp
21226
+ When executing above query, not only "groonga\(aqs blog", but also "mroonga\(aqs blog".
21227
+ This is not what you want because user "A" does not mention "groonga" to "mroonga\(aqs blog".
21228
+ .sp
21229
+ Without sub_filter, it means that following conditions are met.
21230
+ .INDENT 0.0
21231
+ .IP \(bu 2
21232
+ There is at least one record that user "A" commented out.
21233
+ .IP \(bu 2
21234
+ There is at least one record that mentioned about "groonga".
21235
+ .UNINDENT
21236
+ .sp
21237
+ Execution example:
21238
+ .sp
21239
+ .nf
21240
+ .ft C
21241
+ select Blog \-\-output_columns _key \e
21242
+ # [
21243
+ # [
21244
+ # 0,
21245
+ # 1337566253.89858,
21246
+ # 0.000355720520019531
21247
+ # ],
21248
+ # [
21249
+ # [
21250
+ # [
21251
+ # 2
21252
+ # ],
21253
+ # [
21254
+ # [
21255
+ # "_key",
21256
+ # "ShortText"
21257
+ # ]
21258
+ # ],
21259
+ # [
21260
+ # "groonga\(aqs blog"
21261
+ # ],
21262
+ # [
21263
+ # "mroonga\(aqs blog"
21264
+ # ]
21265
+ # ]
21266
+ # ]
21267
+ # ]
21268
+ \-\-filter \(aqsub_filter(comments, "name @ \e\e"A\e\e" && content @ \e\e"groonga\e\e"")\(aq
21269
+ .ft P
21270
+ .fi
21271
+ .sp
21272
+ On the other hand, executing above query returns the intended result.
21273
+ Because the arguments of sub_filter is evaluated in comments column\(aqs context.
21274
+ .sp
21275
+ It means that sub_filter requires following condition is met.
21276
+ .INDENT 0.0
21277
+ .IP \(bu 2
21278
+ There are the records that user "A" mentions about "groonga".
21279
+ .UNINDENT
21280
+ .SS Parameters
21281
+ .sp
21282
+ There are two required parameter, \fBmatch_column\fP and \fBquery_string\fP.
21283
+ .SS \fBmatch_column\fP
21284
+ .INDENT 0.0
21285
+ .INDENT 3.5
21286
+ It specifies \fBmatch_column\fP equivalent parameter.
21287
+ .UNINDENT
21288
+ .UNINDENT
21289
+ .sp
21290
+ See \fIselect\-match\-columns\fP about match_column.
21291
+ .SS \fBquery_string\fP
21292
+ .INDENT 0.0
21293
+ .INDENT 3.5
21294
+ It specifies \fBquery\fP equivalent parameter.
21295
+ .UNINDENT
21296
+ .UNINDENT
21297
+ .sp
21298
+ See \fIselect\-query\fP about query string.
21299
+ .SS Return value
21300
+ .sp
21301
+ \fBsub_filter\fP returns a value of boolean (true or false).
21302
+ .SS See also
21303
+ .INDENT 0.0
21304
+ .IP \(bu 2
21305
+ \fB/reference/commands/select\fP
21306
+ .UNINDENT
20482
21307
  .SS Indexing
20483
21308
  .sp
20484
21309
  Groonga supports both online index construction and offline
@@ -21853,6 +22678,17 @@ one of them to report a bug.
21853
22678
  Groonga project has \fB/community\fP for discussing about groonga.
21854
22679
  Please send a mail that describes a bug.
21855
22680
  .SS groonga開発者向け情報
22681
+ .SS Repository
22682
+ .sp
22683
+ There is \fI\%the repository of groonga on GitHub\fP. If you want to check\-out groonga, type the below command:
22684
+ .sp
22685
+ .nf
22686
+ .ft C
22687
+ % git clone git://github.com/groonga/groonga.git
22688
+ .ft P
22689
+ .fi
22690
+ .sp
22691
+ There is \fI\%the list of related projects of groonga\fP (grntest, fluent\-plugin\-groonga and so on).
21856
22692
  .SS groonga 通信アーキテクチャ
21857
22693
  .SS gqtpでのアーキテクチャ
21858
22694
  .INDENT 0.0
@@ -22957,6 +23793,17 @@ centosの場合、CENTOS_VERSIONSを指定することで特定のバージョ
22957
23793
  .sp
22958
23794
  パッケージの署名に必要な秘密鍵のパスフレーズについては
22959
23795
  リリース担当者向けの秘密鍵を復号したテキストの1行目に記載してあります。
23796
+ .SS バージョンを明示的に指定してドキュメントを生成したい
23797
+ .sp
23798
+ リリース後にドキュメントの一部を差し替えたい場合、特に何も指定しないと生成したHTMLに埋め込まれるバージョンが「v3.0.1\-xxxxxドキュメント」となってしまうことがあります。gitでのコミット時ハッシュの一部が使われるためです。
23799
+ .sp
23800
+ これを回避するには、以下のようにDOCUMENT_VERSIONやDOCUMENT_VERSION_FULLを明示的に指定します。:
23801
+ .sp
23802
+ .nf
23803
+ .ft C
23804
+ % make update\-document DOCUMENT_VERSION=3.0.1 DOCUMENT_VERSION_FULL=3.0.1
23805
+ .ft P
23806
+ .fi
22960
23807
  .SS テスト方法
22961
23808
  .SS テスト環境の構築
22962
23809
  .SS Cutterのインストール
@@ -23256,6 +24103,7 @@ Here are command lines to send pull request:
23256
24103
  Now you can send pull request on GitHub. You just access
23257
24104
  your repository page on GitHub and press \fIPull Request\fP
23258
24105
  button.
24106
+ .IP See also
23259
24107
  \fI\%Help.GitHub - Sending pull requests\fP.
23260
24108
  .RE
23261
24109
  .SS How to send patch
@@ -23291,6 +24139,7 @@ Here are command lines to add new translation language:
23291
24139
  .sp
23292
24140
  Please substitute \fI${LANGUAGE}\fP with your language code such
23293
24141
  as \(aqja\(aq.
24142
+ .IP See also
23294
24143
  \fI\%Codes for the Representation of Names of Languages\fP.
23295
24144
  .RE
23296
24145
  .INDENT 0.0