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

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -7,7 +7,7 @@
7
7
  <head>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
9
 
10
- <title>8.3.18. quit &mdash; groonga v2.1.2 documentation</title>
10
+ <title>8.3.20. quit &mdash; groonga v3.0.2 documentation</title>
11
11
 
12
12
  <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
13
13
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../../',
18
- VERSION: '2.1.2',
18
+ VERSION: '3.0.2',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -25,10 +25,10 @@
25
25
  <script type="text/javascript" src="../../_static/underscore.js"></script>
26
26
  <script type="text/javascript" src="../../_static/doctools.js"></script>
27
27
  <link rel="shortcut icon" href="../../_static/favicon.ico"/>
28
- <link rel="top" title="groonga v2.1.2 documentation" href="../../index.html" />
28
+ <link rel="top" title="groonga v3.0.2 documentation" href="../../index.html" />
29
29
  <link rel="up" title="8.3. Command" href="../command.html" />
30
- <link rel="next" title="8.3.19. register" href="register.html" />
31
- <link rel="prev" title="8.3.17. log_reopen" href="log_reopen.html" />
30
+ <link rel="next" title="8.3.21. register" href="register.html" />
31
+ <link rel="prev" title="8.3.19. normalize" href="normalize.html" />
32
32
  </head>
33
33
  <body>
34
34
  <div class="header">
@@ -55,12 +55,12 @@
55
55
  <a href="../../genindex.html" title="General Index"
56
56
  accesskey="I">index</a></li>
57
57
  <li class="right" >
58
- <a href="register.html" title="8.3.19. register"
58
+ <a href="register.html" title="8.3.21. register"
59
59
  accesskey="N">next</a> |</li>
60
60
  <li class="right" >
61
- <a href="log_reopen.html" title="8.3.17. log_reopen"
61
+ <a href="normalize.html" title="8.3.19. normalize"
62
62
  accesskey="P">previous</a> |</li>
63
- <li><a href="../../index.html">groonga v2.1.2 documentation</a> &raquo;</li>
63
+ <li><a href="../../index.html">groonga v3.0.2 documentation</a> &raquo;</li>
64
64
  <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
65
65
  <li><a href="../command.html" accesskey="U">8.3. Command</a> &raquo;</li>
66
66
  </ul>
@@ -72,32 +72,32 @@
72
72
  <div class="body">
73
73
 
74
74
  <div class="section" id="quit">
75
- <h1>8.3.18. quit<a class="headerlink" href="#quit" title="Permalink to this headline">¶</a></h1>
75
+ <h1>8.3.20. quit<a class="headerlink" href="#quit" title="Permalink to this headline">¶</a></h1>
76
76
  <div class="section" id="id1">
77
- <h2>8.3.18.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
77
+ <h2>8.3.20.1. 名前<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h2>
78
78
  <p>quit - セッション終了</p>
79
79
  </div>
80
80
  <div class="section" id="id2">
81
- <h2>8.3.18.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
81
+ <h2>8.3.20.2. 書式<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
82
82
  <div class="highlight-none"><div class="highlight"><pre>quit
83
83
  </pre></div>
84
84
  </div>
85
85
  </div>
86
86
  <div class="section" id="id3">
87
- <h2>8.3.18.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
87
+ <h2>8.3.20.3. 説明<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
88
88
  <p>groonga組込コマンドの一つであるquitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p>
89
89
  <p>quitは、groongaプロセスとのセッションを終了します。クライアントプロセスならばgroongaプロセスとの接続を切ります。</p>
90
90
  </div>
91
91
  <div class="section" id="id4">
92
- <h2>8.3.18.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
92
+ <h2>8.3.20.4. 引数<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
93
93
  <p>ありません。</p>
94
94
  </div>
95
95
  <div class="section" id="id5">
96
- <h2>8.3.18.5. 返値<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
96
+ <h2>8.3.20.5. 返値<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
97
97
  <p>ありません。</p>
98
98
  </div>
99
99
  <div class="section" id="id6">
100
- <h2>8.3.18.6. 例<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
100
+ <h2>8.3.20.6. 例<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
101
101
  <div class="highlight-none"><div class="highlight"><pre>quit
102
102
  </pre></div>
103
103
  </div>
@@ -112,23 +112,23 @@
112
112
  <div class="sphinxsidebarwrapper">
113
113
  <h3><a href="../../index.html">Table Of Contents</a></h3>
114
114
  <ul>
115
- <li><a class="reference internal" href="#">8.3.18. quit</a><ul>
116
- <li><a class="reference internal" href="#id1">8.3.18.1. 名前</a></li>
117
- <li><a class="reference internal" href="#id2">8.3.18.2. 書式</a></li>
118
- <li><a class="reference internal" href="#id3">8.3.18.3. 説明</a></li>
119
- <li><a class="reference internal" href="#id4">8.3.18.4. 引数</a></li>
120
- <li><a class="reference internal" href="#id5">8.3.18.5. 返値</a></li>
121
- <li><a class="reference internal" href="#id6">8.3.18.6. 例</a></li>
115
+ <li><a class="reference internal" href="#">8.3.20. quit</a><ul>
116
+ <li><a class="reference internal" href="#id1">8.3.20.1. 名前</a></li>
117
+ <li><a class="reference internal" href="#id2">8.3.20.2. 書式</a></li>
118
+ <li><a class="reference internal" href="#id3">8.3.20.3. 説明</a></li>
119
+ <li><a class="reference internal" href="#id4">8.3.20.4. 引数</a></li>
120
+ <li><a class="reference internal" href="#id5">8.3.20.5. 返値</a></li>
121
+ <li><a class="reference internal" href="#id6">8.3.20.6. 例</a></li>
122
122
  </ul>
123
123
  </li>
124
124
  </ul>
125
125
 
126
126
  <h4>Previous topic</h4>
127
- <p class="topless"><a href="log_reopen.html"
128
- title="previous chapter">8.3.17. log_reopen</a></p>
127
+ <p class="topless"><a href="normalize.html"
128
+ title="previous chapter">8.3.19. <tt class="docutils literal docutils literal docutils literal"><span class="pre">normalize</span></tt></a></p>
129
129
  <h4>Next topic</h4>
130
130
  <p class="topless"><a href="register.html"
131
- title="next chapter">8.3.19. register</a></p>
131
+ title="next chapter">8.3.21. register</a></p>
132
132
  <h3>This Page</h3>
133
133
  <ul class="this-page-menu">
134
134
  <li><a href="../../_sources/reference/commands/quit.txt"
@@ -158,12 +158,12 @@
158
158
  <a href="../../genindex.html" title="General Index"
159
159
  >index</a></li>
160
160
  <li class="right" >
161
- <a href="register.html" title="8.3.19. register"
161
+ <a href="register.html" title="8.3.21. register"
162
162
  >next</a> |</li>
163
163
  <li class="right" >
164
- <a href="log_reopen.html" title="8.3.17. log_reopen"
164
+ <a href="normalize.html" title="8.3.19. normalize"
165
165
  >previous</a> |</li>
166
- <li><a href="../../index.html">groonga v2.1.2 documentation</a> &raquo;</li>
166
+ <li><a href="../../index.html">groonga v3.0.2 documentation</a> &raquo;</li>
167
167
  <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
168
168
  <li><a href="../command.html" >8.3. Command</a> &raquo;</li>
169
169
  </ul>
@@ -7,7 +7,7 @@
7
7
  <head>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
9
 
10
- <title>8.3.19. register &mdash; groonga v2.1.2 documentation</title>
10
+ <title>8.3.21. register &mdash; groonga v3.0.2 documentation</title>
11
11
 
12
12
  <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
13
13
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../../',
18
- VERSION: '2.1.2',
18
+ VERSION: '3.0.2',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -25,10 +25,10 @@
25
25
  <script type="text/javascript" src="../../_static/underscore.js"></script>
26
26
  <script type="text/javascript" src="../../_static/doctools.js"></script>
27
27
  <link rel="shortcut icon" href="../../_static/favicon.ico"/>
28
- <link rel="top" title="groonga v2.1.2 documentation" href="../../index.html" />
28
+ <link rel="top" title="groonga v3.0.2 documentation" href="../../index.html" />
29
29
  <link rel="up" title="8.3. Command" href="../command.html" />
30
- <link rel="next" title="8.3.20. select" href="select.html" />
31
- <link rel="prev" title="8.3.18. quit" href="quit.html" />
30
+ <link rel="next" title="8.3.22. select" href="select.html" />
31
+ <link rel="prev" title="8.3.20. quit" href="quit.html" />
32
32
  </head>
33
33
  <body>
34
34
  <div class="header">
@@ -55,12 +55,12 @@
55
55
  <a href="../../genindex.html" title="General Index"
56
56
  accesskey="I">index</a></li>
57
57
  <li class="right" >
58
- <a href="select.html" title="8.3.20. select"
58
+ <a href="select.html" title="8.3.22. select"
59
59
  accesskey="N">next</a> |</li>
60
60
  <li class="right" >
61
- <a href="quit.html" title="8.3.18. quit"
61
+ <a href="quit.html" title="8.3.20. quit"
62
62
  accesskey="P">previous</a> |</li>
63
- <li><a href="../../index.html">groonga v2.1.2 documentation</a> &raquo;</li>
63
+ <li><a href="../../index.html">groonga v3.0.2 documentation</a> &raquo;</li>
64
64
  <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
65
65
  <li><a href="../command.html" accesskey="U">8.3. Command</a> &raquo;</li>
66
66
  </ul>
@@ -72,9 +72,9 @@
72
72
  <div class="body">
73
73
 
74
74
  <div class="section" id="register">
75
- <h1>8.3.19. register<a class="headerlink" href="#register" title="Permalink to this headline">¶</a></h1>
75
+ <h1>8.3.21. register<a class="headerlink" href="#register" title="Permalink to this headline">¶</a></h1>
76
76
  <div class="section" id="summary">
77
- <h2>8.3.19.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
77
+ <h2>8.3.21.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
78
78
  <p><tt class="docutils literal"><span class="pre">register</span></tt> command registers a plugin. You need to register a plugin
79
79
  before you use a plugin.</p>
80
80
  <p>You need just one <tt class="docutils literal"><span class="pre">register</span></tt> command for a plugin in the same
@@ -87,14 +87,14 @@ process loads all registered plugins without <tt class="docutils literal"><span
87
87
  </div>
88
88
  </div>
89
89
  <div class="section" id="syntax">
90
- <h2>8.3.19.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
90
+ <h2>8.3.21.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
91
91
  <p><tt class="docutils literal"><span class="pre">register</span></tt> has a parameter <tt class="docutils literal"><span class="pre">path</span></tt>. It is required parameter:</p>
92
92
  <div class="highlight-none"><div class="highlight"><pre>register path
93
93
  </pre></div>
94
94
  </div>
95
95
  </div>
96
96
  <div class="section" id="usage">
97
- <h2>8.3.19.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
97
+ <h2>8.3.21.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
98
98
  <p>Here is a sample that registers <tt class="docutils literal"><span class="pre">QueryExpanderTSV</span></tt> query expander
99
99
  that is included in
100
100
  <tt class="docutils literal"><span class="pre">${PREFIX}/lib/groonga/plugins/query_expanders/tsv.so</span></tt>.</p>
@@ -109,7 +109,7 @@ They are completed automatically.</p>
109
109
  <span class="pre">/usr/lib/groonga/plugins/query_expanders/tsv.so</span></tt>.</p>
110
110
  </div>
111
111
  <div class="section" id="return-value">
112
- <h2>8.3.19.4. Return value<a class="headerlink" href="#return-value" title="Permalink to this headline">¶</a></h2>
112
+ <h2>8.3.21.4. Return value<a class="headerlink" href="#return-value" title="Permalink to this headline">¶</a></h2>
113
113
  <p><tt class="docutils literal"><span class="pre">register</span></tt> returns <tt class="docutils literal"><span class="pre">true</span></tt> as body on success such as:</p>
114
114
  <div class="highlight-none"><div class="highlight"><pre>[HEADER, true]
115
115
  </pre></div>
@@ -127,21 +127,21 @@ They are completed automatically.</p>
127
127
  <div class="sphinxsidebarwrapper">
128
128
  <h3><a href="../../index.html">Table Of Contents</a></h3>
129
129
  <ul>
130
- <li><a class="reference internal" href="#">8.3.19. register</a><ul>
131
- <li><a class="reference internal" href="#summary">8.3.19.1. Summary</a></li>
132
- <li><a class="reference internal" href="#syntax">8.3.19.2. Syntax</a></li>
133
- <li><a class="reference internal" href="#usage">8.3.19.3. Usage</a></li>
134
- <li><a class="reference internal" href="#return-value">8.3.19.4. Return value</a></li>
130
+ <li><a class="reference internal" href="#">8.3.21. register</a><ul>
131
+ <li><a class="reference internal" href="#summary">8.3.21.1. Summary</a></li>
132
+ <li><a class="reference internal" href="#syntax">8.3.21.2. Syntax</a></li>
133
+ <li><a class="reference internal" href="#usage">8.3.21.3. Usage</a></li>
134
+ <li><a class="reference internal" href="#return-value">8.3.21.4. Return value</a></li>
135
135
  </ul>
136
136
  </li>
137
137
  </ul>
138
138
 
139
139
  <h4>Previous topic</h4>
140
140
  <p class="topless"><a href="quit.html"
141
- title="previous chapter">8.3.18. quit</a></p>
141
+ title="previous chapter">8.3.20. quit</a></p>
142
142
  <h4>Next topic</h4>
143
143
  <p class="topless"><a href="select.html"
144
- title="next chapter">8.3.20. <tt class="docutils literal"><span class="pre">select</span></tt></a></p>
144
+ title="next chapter">8.3.22. <tt class="docutils literal"><span class="pre">select</span></tt></a></p>
145
145
  <h3>This Page</h3>
146
146
  <ul class="this-page-menu">
147
147
  <li><a href="../../_sources/reference/commands/register.txt"
@@ -171,12 +171,12 @@ They are completed automatically.</p>
171
171
  <a href="../../genindex.html" title="General Index"
172
172
  >index</a></li>
173
173
  <li class="right" >
174
- <a href="select.html" title="8.3.20. select"
174
+ <a href="select.html" title="8.3.22. select"
175
175
  >next</a> |</li>
176
176
  <li class="right" >
177
- <a href="quit.html" title="8.3.18. quit"
177
+ <a href="quit.html" title="8.3.20. quit"
178
178
  >previous</a> |</li>
179
- <li><a href="../../index.html">groonga v2.1.2 documentation</a> &raquo;</li>
179
+ <li><a href="../../index.html">groonga v3.0.2 documentation</a> &raquo;</li>
180
180
  <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
181
181
  <li><a href="../command.html" >8.3. Command</a> &raquo;</li>
182
182
  </ul>
@@ -7,7 +7,7 @@
7
7
  <head>
8
8
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
9
 
10
- <title>8.3.20. select &mdash; groonga v2.1.2 documentation</title>
10
+ <title>8.3.22. select &mdash; groonga v3.0.2 documentation</title>
11
11
 
12
12
  <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
13
13
  <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
@@ -15,7 +15,7 @@
15
15
  <script type="text/javascript">
16
16
  var DOCUMENTATION_OPTIONS = {
17
17
  URL_ROOT: '../../',
18
- VERSION: '2.1.2',
18
+ VERSION: '3.0.2',
19
19
  COLLAPSE_INDEX: false,
20
20
  FILE_SUFFIX: '.html',
21
21
  HAS_SOURCE: true
@@ -25,10 +25,10 @@
25
25
  <script type="text/javascript" src="../../_static/underscore.js"></script>
26
26
  <script type="text/javascript" src="../../_static/doctools.js"></script>
27
27
  <link rel="shortcut icon" href="../../_static/favicon.ico"/>
28
- <link rel="top" title="groonga v2.1.2 documentation" href="../../index.html" />
28
+ <link rel="top" title="groonga v3.0.2 documentation" href="../../index.html" />
29
29
  <link rel="up" title="8.3. Command" href="../command.html" />
30
- <link rel="next" title="8.3.21. shutdown" href="shutdown.html" />
31
- <link rel="prev" title="8.3.19. register" href="register.html" />
30
+ <link rel="next" title="8.3.23. shutdown" href="shutdown.html" />
31
+ <link rel="prev" title="8.3.21. register" href="register.html" />
32
32
  </head>
33
33
  <body>
34
34
  <div class="header">
@@ -55,12 +55,12 @@
55
55
  <a href="../../genindex.html" title="General Index"
56
56
  accesskey="I">index</a></li>
57
57
  <li class="right" >
58
- <a href="shutdown.html" title="8.3.21. shutdown"
58
+ <a href="shutdown.html" title="8.3.23. shutdown"
59
59
  accesskey="N">next</a> |</li>
60
60
  <li class="right" >
61
- <a href="register.html" title="8.3.19. register"
61
+ <a href="register.html" title="8.3.21. register"
62
62
  accesskey="P">previous</a> |</li>
63
- <li><a href="../../index.html">groonga v2.1.2 documentation</a> &raquo;</li>
63
+ <li><a href="../../index.html">groonga v3.0.2 documentation</a> &raquo;</li>
64
64
  <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
65
65
  <li><a href="../command.html" accesskey="U">8.3. Command</a> &raquo;</li>
66
66
  </ul>
@@ -72,16 +72,16 @@
72
72
  <div class="body">
73
73
 
74
74
  <div class="section" id="select">
75
- <h1>8.3.20. <tt class="docutils literal"><span class="pre">select</span></tt><a class="headerlink" href="#select" title="Permalink to this headline">¶</a></h1>
75
+ <h1>8.3.22. <tt class="docutils literal"><span class="pre">select</span></tt><a class="headerlink" href="#select" title="Permalink to this headline">¶</a></h1>
76
76
  <div class="section" id="summary">
77
- <h2>8.3.20.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
77
+ <h2>8.3.22.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
78
78
  <p><tt class="docutils literal"><span class="pre">select</span></tt> searches records that are matched to specified conditions
79
79
  from a table and then outputs them.</p>
80
80
  <p><tt class="docutils literal"><span class="pre">select</span></tt> is the most important command in groonga. You need to
81
81
  understand <tt class="docutils literal"><span class="pre">select</span></tt> to use the full power of groonga.</p>
82
82
  </div>
83
83
  <div class="section" id="syntax">
84
- <h2>8.3.20.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
84
+ <h2>8.3.22.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
85
85
  <p><tt class="docutils literal"><span class="pre">select</span></tt> has many parameters. The required parameter is only
86
86
  <tt class="docutils literal"><span class="pre">table</span></tt> and others are optional:</p>
87
87
  <div class="highlight-none"><div class="highlight"><pre>select table
@@ -102,11 +102,12 @@ understand <tt class="docutils literal"><span class="pre">select</span></tt> to
102
102
  [match_escalation_threshold=0]
103
103
  [query_expansion=null]
104
104
  [query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
105
+ [query_expander=null]
105
106
  </pre></div>
106
107
  </div>
107
108
  </div>
108
109
  <div class="section" id="usage">
109
- <h2>8.3.20.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
110
+ <h2>8.3.22.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
110
111
  <p>Let's learn about <tt class="docutils literal"><span class="pre">select</span></tt> usage with examples. This section shows
111
112
  many popular usages.</p>
112
113
  <p>Here are a schema definition and sample data to show usage.</p>
@@ -153,7 +154,7 @@ using <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> tok
153
154
  <tt class="docutils literal"><span class="pre">Entries.content</span></tt> are fulltext search ready.</p>
154
155
  <p>OK. The schema and data for examples are ready.</p>
155
156
  <div class="section" id="simple-usage">
156
- <h3>8.3.20.3.1. Simple usage<a class="headerlink" href="#simple-usage" title="Permalink to this headline">¶</a></h3>
157
+ <h3>8.3.22.3.1. Simple usage<a class="headerlink" href="#simple-usage" title="Permalink to this headline">¶</a></h3>
157
158
  <p>Here is the most simple usage with the above schema and data. It outputs
158
159
  all records in <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
159
160
  <p>Execution example:</p>
@@ -230,12 +231,12 @@ command outputs 10 records at a maximum by default. There are only 5
230
231
  records. It is less than 10. So the command outputs all records.</p>
231
232
  </div>
232
233
  <div class="section" id="search-conditions">
233
- <h3>8.3.20.3.2. Search conditions<a class="headerlink" href="#search-conditions" title="Permalink to this headline">¶</a></h3>
234
+ <h3>8.3.22.3.2. Search conditions<a class="headerlink" href="#search-conditions" title="Permalink to this headline">¶</a></h3>
234
235
  <p>Search conditions are specified by <tt class="docutils literal"><span class="pre">query</span></tt> or <tt class="docutils literal"><span class="pre">filter</span></tt>. You can
235
236
  also specify both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt>. It means that selected
236
237
  records must be matched against both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt>.</p>
237
238
  <div class="section" id="search-condition-query">
238
- <h4>8.3.20.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#search-condition-query" title="Permalink to this headline">¶</a></h4>
239
+ <h4>8.3.22.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#search-condition-query" title="Permalink to this headline">¶</a></h4>
239
240
  <p><tt class="docutils literal"><span class="pre">query</span></tt> is designed for search box in Web page. Imagine a search box
240
241
  in google.com. You specify search conditions for <tt class="docutils literal"><span class="pre">query</span></tt> as space
241
242
  separated keywords. For example, <tt class="docutils literal"><span class="pre">search</span> <span class="pre">engine</span></tt> means a matched
@@ -302,7 +303,7 @@ in <tt class="docutils literal"><span class="pre">content</span></tt> column val
302
303
  <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for datails.</p>
303
304
  </div>
304
305
  <div class="section" id="search-condition-filter">
305
- <h4>8.3.20.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#search-condition-filter" title="Permalink to this headline">¶</a></h4>
306
+ <h4>8.3.22.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#search-condition-filter" title="Permalink to this headline">¶</a></h4>
306
307
  <p><tt class="docutils literal"><span class="pre">filter</span></tt> is designed for complex search conditions. You specify
307
308
  search conditions for <tt class="docutils literal"><span class="pre">filter</span></tt> as ECMAScript like syntax.</p>
308
309
  <p>Here is a simple <tt class="docutils literal"><span class="pre">filter</span></tt> usage example.</p>
@@ -360,7 +361,7 @@ datails.</p>
360
361
  </div>
361
362
  </div>
362
363
  <div class="section" id="paging">
363
- <h3>8.3.20.3.3. Paging<a class="headerlink" href="#paging" title="Permalink to this headline">¶</a></h3>
364
+ <h3>8.3.22.3.3. Paging<a class="headerlink" href="#paging" title="Permalink to this headline">¶</a></h3>
364
365
  <p>You can specify range of outputted records by <tt class="docutils literal"><span class="pre">offset</span></tt> and <tt class="docutils literal"><span class="pre">limit</span></tt>.
365
366
  Here is an example to output only the 2nd record.</p>
366
367
  <p>Execution example:</p>
@@ -412,7 +413,7 @@ means the number of output records is 1 at a maximium. If no records
412
413
  are matched, <tt class="docutils literal"><span class="pre">select</span></tt> command outputs no records.</p>
413
414
  </div>
414
415
  <div class="section" id="the-total-number-of-records">
415
- <h3>8.3.20.3.4. The total number of records<a class="headerlink" href="#the-total-number-of-records" title="Permalink to this headline">¶</a></h3>
416
+ <h3>8.3.22.3.4. The total number of records<a class="headerlink" href="#the-total-number-of-records" title="Permalink to this headline">¶</a></h3>
416
417
  <p>You can use <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> to retrieve the total number of recrods
417
418
  without any contents of records.</p>
418
419
  <p>Execution example:</p>
@@ -456,13 +457,13 @@ records.</p>
456
457
  </div>
457
458
  </div>
458
459
  <div class="section" id="parameters">
459
- <h2>8.3.20.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
460
+ <h2>8.3.22.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
460
461
  <p>This section describes all parameters. Parameters are categorized.</p>
461
462
  <div class="section" id="required-parameter">
462
- <h3>8.3.20.4.1. Required parameter<a class="headerlink" href="#required-parameter" title="Permalink to this headline">¶</a></h3>
463
+ <h3>8.3.22.4.1. Required parameter<a class="headerlink" href="#required-parameter" title="Permalink to this headline">¶</a></h3>
463
464
  <p>There is a required parameter, <tt class="docutils literal"><span class="pre">table</span></tt>.</p>
464
465
  <div class="section" id="table">
465
- <h4>8.3.20.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt><a class="headerlink" href="#table" title="Permalink to this headline">¶</a></h4>
466
+ <h4>8.3.22.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt><a class="headerlink" href="#table" title="Permalink to this headline">¶</a></h4>
466
467
  <p>It specifies a table to be searched. <tt class="docutils literal"><span class="pre">table</span></tt> must be specified.</p>
467
468
  <p>If nonexistent table is specified, an error is returned.</p>
468
469
  <p>Execution example:</p>
@@ -487,7 +488,7 @@ records.</p>
487
488
  </div>
488
489
  </div>
489
490
  <div class="section" id="search-related-parameters">
490
- <h3>8.3.20.4.2. Search related parameters<a class="headerlink" href="#search-related-parameters" title="Permalink to this headline">¶</a></h3>
491
+ <h3>8.3.22.4.2. Search related parameters<a class="headerlink" href="#search-related-parameters" title="Permalink to this headline">¶</a></h3>
491
492
  <p>There are search related parameters. Typically, <tt class="docutils literal"><span class="pre">match_columns</span></tt> and
492
493
  <tt class="docutils literal"><span class="pre">query</span></tt> parameters are used for implementing a search
493
494
  box. <tt class="docutils literal"><span class="pre">filter</span></tt> parameters is used for implementing complex search
@@ -496,7 +497,7 @@ feature.</p>
496
497
  be matched against both <tt class="docutils literal"><span class="pre">query</span></tt> and <tt class="docutils literal"><span class="pre">filter</span></tt>. If both <tt class="docutils literal"><span class="pre">query</span></tt>
497
498
  and <tt class="docutils literal"><span class="pre">filter</span></tt> aren't specified, all records are selected.</p>
498
499
  <div class="section" id="match-columns">
499
- <span id="select-match-columns"></span><h4>8.3.20.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt><a class="headerlink" href="#match-columns" title="Permalink to this headline">¶</a></h4>
500
+ <span id="select-match-columns"></span><h4>8.3.22.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt><a class="headerlink" href="#match-columns" title="Permalink to this headline">¶</a></h4>
500
501
  <p>It specifies the default target column for fulltext search by
501
502
  <tt class="docutils literal"><span class="pre">query</span></tt> parameter value. A target column for fulltext search can be
502
503
  specified in <tt class="docutils literal"><span class="pre">query</span></tt> parameter. The difference between
@@ -644,7 +645,7 @@ important rather than <tt class="docutils literal"><span class="pre">content</sp
644
645
  of blog entry is more important rather thatn content of blog entry.</p>
645
646
  </div>
646
647
  <div class="section" id="query">
647
- <span id="select-query"></span><h4>8.3.20.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#query" title="Permalink to this headline">¶</a></h4>
648
+ <span id="select-query"></span><h4>8.3.22.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#query" title="Permalink to this headline">¶</a></h4>
648
649
  <p>It specifies the query text. Normally, it is used for fulltext search
649
650
  with <tt class="docutils literal"><span class="pre">match_columns</span></tt> parameter. <tt class="docutils literal"><span class="pre">query</span></tt> parameter is designed for
650
651
  a fulltext search form in a Web page. A query text should be formatted
@@ -867,7 +868,7 @@ is less than <tt class="docutils literal"><span class="pre">11</span></tt> from
867
868
  <p>See <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for other operations.</p>
868
869
  </div>
869
870
  <div class="section" id="filter">
870
- <h4>8.3.20.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#filter" title="Permalink to this headline">¶</a></h4>
871
+ <h4>8.3.22.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#filter" title="Permalink to this headline">¶</a></h4>
871
872
  <p>It specifies the filter text. Normally, it is used for complex search
872
873
  conditions. <tt class="docutils literal"><span class="pre">filter</span></tt> can be used with <tt class="docutils literal"><span class="pre">query</span></tt> parameter. If both
873
874
  <tt class="docutils literal"><span class="pre">filter</span></tt> and <tt class="docutils literal"><span class="pre">query</span></tt> are specified, there are conbined with
@@ -991,9 +992,9 @@ is less than <tt class="docutils literal"><span class="pre">11</span></tt> from
991
992
  </div>
992
993
  </div>
993
994
  <div class="section" id="advanced-search-parameters">
994
- <h3>8.3.20.4.3. Advanced search parameters<a class="headerlink" href="#advanced-search-parameters" title="Permalink to this headline">¶</a></h3>
995
+ <h3>8.3.22.4.3. Advanced search parameters<a class="headerlink" href="#advanced-search-parameters" title="Permalink to this headline">¶</a></h3>
995
996
  <div class="section" id="match-escalation-threshold">
996
- <span id="id1"></span><h4>8.3.20.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt><a class="headerlink" href="#match-escalation-threshold" title="Permalink to this headline">¶</a></h4>
997
+ <span id="id1"></span><h4>8.3.22.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt><a class="headerlink" href="#match-escalation-threshold" title="Permalink to this headline">¶</a></h4>
997
998
  <p>It specifies threshold to determine whether search storategy
998
999
  escalation is used or not. The threshold is compared against the
999
1000
  number of matched records. If the number of matched records is equal
@@ -1108,59 +1109,43 @@ records (0) is larger than <tt class="docutils literal"><span class="pre">match_
1108
1109
  more searches aren't executed. And no records are matched.</p>
1109
1110
  </div>
1110
1111
  <div class="section" id="query-expansion">
1111
- <span id="id2"></span><h4>8.3.20.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt><a class="headerlink" href="#query-expansion" title="Permalink to this headline">¶</a></h4>
1112
- <p>It's for query expansion. Query expansion substitutes specific words
1113
- to another words in query. Nomally, it's used for synonym search.</p>
1114
- <p>It specifies a column that is used to substitute <tt class="docutils literal"><span class="pre">query</span></tt> parameter
1115
- value. The format of this parameter value is
1116
- &quot;<tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt>&quot;. For example, &quot;<tt class="docutils literal"><span class="pre">Terms.synonym</span></tt>&quot; specifies
1117
- <tt class="docutils literal"><span class="pre">synonym</span></tt> column in <tt class="docutils literal"><span class="pre">Terms</span></tt> table.</p>
1118
- <p>Table for query expansion is called &quot;substitution table&quot;. Substitution
1119
- table's key must be <tt class="docutils literal"><span class="pre">ShortText</span></tt>. So array table (<tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt>)
1120
- can't be used for query expansion. Because array table doesn't have
1121
- key.</p>
1122
- <p>Column for query expansion is called &quot;substitution
1123
- column&quot;. Substitution column's value type must be
1124
- <tt class="docutils literal"><span class="pre">ShortText</span></tt>. Column type must be vector (<tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt>).</p>
1125
- <p>Query expansion substitutes key of substitution table in query with
1126
- values in substitution column. If a word in <tt class="docutils literal"><span class="pre">query</span></tt> is a key of
1127
- substitution table, the word is substituted with substitution column
1128
- value that is associated with the key. Substition isn't performed
1129
- recursively. It means that substitution target words in substituted
1130
- query aren't substituted.</p>
1131
- <p>Here is a sample substitution table to show a simple
1132
- <tt class="docutils literal"><span class="pre">query_expansion</span></tt> usage example.</p>
1133
- <p>Execution example:</p>
1134
- <div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
1135
- # [[0, 1337566253.89858, 0.000355720520019531], true]
1136
- column_create Thesaurus synonym COLUMN_VECTOR ShortText
1137
- # [[0, 1337566253.89858, 0.000355720520019531], true]
1138
- load --table Thesaurus
1139
- [
1140
- {&quot;_key&quot;: &quot;mroonga&quot;, &quot;synonym&quot;: [&quot;mroonga&quot;, &quot;tritonn&quot;, &quot;groonga mysql&quot;]},
1141
- {&quot;_key&quot;: &quot;groonga&quot;, &quot;synonym&quot;: [&quot;groonga&quot;, &quot;senna&quot;]}
1142
- ]
1143
- # [[0, 1337566253.89858, 0.000355720520019531], 2]
1144
- </pre></div>
1112
+ <span id="id2"></span><h4>8.3.22.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt><a class="headerlink" href="#query-expansion" title="Permalink to this headline">¶</a></h4>
1113
+ <p>Deprecated. Use <a class="reference internal" href="#query-expander"><em>query_expander</em></a> instead.</p>
1145
1114
  </div>
1146
- <p><tt class="docutils literal"><span class="pre">Thesaurus</span></tt> substitution table has two synonyms, <tt class="docutils literal"><span class="pre">&quot;mroonga&quot;</span></tt> and
1147
- <tt class="docutils literal"><span class="pre">&quot;groonga&quot;</span></tt>. If an user searches with <tt class="docutils literal"><span class="pre">&quot;mroonga&quot;</span></tt>, groonga
1148
- searches with <tt class="docutils literal"><span class="pre">&quot;((mroonga)</span> <span class="pre">OR</span> <span class="pre">(tritonn)</span> <span class="pre">OR</span> <span class="pre">(groonga</span> <span class="pre">mysql))&quot;</span></tt>. If an
1149
- user searches with <tt class="docutils literal"><span class="pre">&quot;groonga&quot;</span></tt>, groonga searchs with <tt class="docutils literal"><span class="pre">&quot;((groonga)</span>
1150
- <span class="pre">OR</span> <span class="pre">(senna))&quot;</span></tt>. Nomrally, it's good idea that substitution table has
1151
- <tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt> flag. If the flag is used, substitute target word is
1152
- matched in case insensitive manner.</p>
1153
- <p>Note that those synonym values include the key value such as
1154
- <tt class="docutils literal"><span class="pre">&quot;mroonga&quot;</span></tt> and <tt class="docutils literal"><span class="pre">&quot;groonga&quot;</span></tt>. It's recommended that you include the
1155
- key value. If you don't include key value, substituted value doesn't
1156
- include the original substitute target value. Normally, including the
1157
- original value is better search result. If you have a word that you
1158
- don't want to be searched, you should not include the original
1159
- word. For example, you can implement &quot;stop words&quot; by an empty vector
1160
- value.</p>
1161
- <p>Here is a simple <tt class="docutils literal"><span class="pre">query_expansion</span></tt> usage example.</p>
1115
+ <div class="section" id="query-flags">
1116
+ <span id="id3"></span><h4>8.3.22.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt><a class="headerlink" href="#query-flags" title="Permalink to this headline">¶</a></h4>
1117
+ <p>It customs <tt class="docutils literal"><span class="pre">query</span></tt> parameter syntax. You cannot update column value
1118
+ by <tt class="docutils literal"><span class="pre">query</span></tt> parameter by default. But if you specify
1119
+ <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> as <tt class="docutils literal"><span class="pre">query_flags</span></tt>, you can update
1120
+ column value by <tt class="docutils literal"><span class="pre">query</span></tt>.</p>
1121
+ <p>Here are available values:</p>
1122
+ <ul class="simple">
1123
+ <li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
1124
+ <li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
1125
+ <li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
1126
+ <li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
1127
+ <li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
1128
+ </ul>
1129
+ <p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> enables pragma at the head of <tt class="docutils literal"><span class="pre">query</span></tt>. This is not
1130
+ implemented yet.</p>
1131
+ <p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> enables search againt columns that are not included
1132
+ in <tt class="docutils literal"><span class="pre">match_columns</span></tt>. To specify column, there are <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt>
1133
+ syntaxes.</p>
1134
+ <p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> enables column update by <tt class="docutils literal"><span class="pre">query</span></tt> with
1135
+ <tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> syntax. <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> is also required to
1136
+ update column because the column update syntax specifies column.</p>
1137
+ <p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> enables leading NOT condition with <tt class="docutils literal"><span class="pre">-WORD</span></tt>
1138
+ syntax. The query searches records that doesn't match
1139
+ <tt class="docutils literal"><span class="pre">WORD</span></tt>. Leading NOT condition query is heavy query in many cases
1140
+ because it matches many records. So this flag is disabled by
1141
+ default. Be careful about it when you use the flag.</p>
1142
+ <p><tt class="docutils literal"><span class="pre">NONE</span></tt> is just ignores. You can use <tt class="docutils literal"><span class="pre">NONE</span></tt> for specifying no flags.</p>
1143
+ <p>They can be combined by separated <tt class="docutils literal"><span class="pre">|</span></tt> such as
1144
+ <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt>.</p>
1145
+ <p>The default value is <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt>.</p>
1146
+ <p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt>.</p>
1162
1147
  <p>Execution example:</p>
1163
- <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query &quot;mroonga&quot;
1148
+ <div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
1164
1149
  # [
1165
1150
  # [
1166
1151
  # 0,
@@ -1199,7 +1184,23 @@ value.</p>
1199
1184
  # ]
1200
1185
  # ]
1201
1186
  # ]
1202
- select Entries --match_columns content --query &quot;mroonga&quot; --query_expansion Thesaurus.synonym
1187
+ </pre></div>
1188
+ </div>
1189
+ <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain <tt class="docutils literal"><span class="pre">mroonga</span></tt> in
1190
+ <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
1191
+ <p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt>.</p>
1192
+ <p>Execution example:</p>
1193
+ <div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
1194
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
1195
+ column_create Users age COLUMN_SCALAR UInt32
1196
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
1197
+ load --table Users
1198
+ [
1199
+ {&quot;_key&quot;: &quot;alice&quot;, &quot;age&quot;: 18},
1200
+ {&quot;_key&quot;: &quot;bob&quot;, &quot;age&quot;: 20}
1201
+ ]
1202
+ # [[0, 1337566253.89858, 0.000355720520019531], 2]
1203
+ select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
1203
1204
  # [
1204
1205
  # [
1205
1206
  # 0,
@@ -1221,30 +1222,24 @@ select Entries --match_columns content --query &quot;mroonga&quot; --query_expan
1221
1222
  # &quot;ShortText&quot;
1222
1223
  # ],
1223
1224
  # [
1224
- # &quot;content&quot;,
1225
- # &quot;Text&quot;
1226
- # ],
1227
- # [
1228
- # &quot;n_likes&quot;,
1225
+ # &quot;age&quot;,
1229
1226
  # &quot;UInt32&quot;
1230
1227
  # ]
1231
1228
  # ],
1232
1229
  # [
1233
- # 3,
1234
- # &quot;Mroonga&quot;,
1235
- # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
1236
- # 15
1230
+ # 1,
1231
+ # &quot;alice&quot;,
1232
+ # 19
1237
1233
  # ],
1238
1234
  # [
1239
- # 5,
1240
- # &quot;Good-bye Tritonn&quot;,
1241
- # &quot;I also migrated all Tritonn system!&quot;,
1242
- # 3
1235
+ # 2,
1236
+ # &quot;bob&quot;,
1237
+ # 19
1243
1238
  # ]
1244
1239
  # ]
1245
1240
  # ]
1246
1241
  # ]
1247
- select Entries --match_columns content --query &quot;((mroonga) OR (tritonn) OR (groonga mysql))&quot;
1242
+ select Users
1248
1243
  # [
1249
1244
  # [
1250
1245
  # 0,
@@ -1266,47 +1261,31 @@ select Entries --match_columns content --query &quot;((mroonga) OR (tritonn) OR
1266
1261
  # &quot;ShortText&quot;
1267
1262
  # ],
1268
1263
  # [
1269
- # &quot;content&quot;,
1270
- # &quot;Text&quot;
1271
- # ],
1272
- # [
1273
- # &quot;n_likes&quot;,
1264
+ # &quot;age&quot;,
1274
1265
  # &quot;UInt32&quot;
1275
1266
  # ]
1276
1267
  # ],
1277
1268
  # [
1278
- # 3,
1279
- # &quot;Mroonga&quot;,
1280
- # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
1281
- # 15
1269
+ # 1,
1270
+ # &quot;alice&quot;,
1271
+ # 19
1282
1272
  # ],
1283
1273
  # [
1284
- # 5,
1285
- # &quot;Good-bye Tritonn&quot;,
1286
- # &quot;I also migrated all Tritonn system!&quot;,
1287
- # 3
1274
+ # 2,
1275
+ # &quot;bob&quot;,
1276
+ # 19
1288
1277
  # ]
1289
1278
  # ]
1290
1279
  # ]
1291
1280
  # ]
1292
1281
  </pre></div>
1293
1282
  </div>
1294
- <p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command doesn't use query expansion. So a record
1295
- that has <tt class="docutils literal"><span class="pre">&quot;tritonn&quot;</span></tt> isn't found. The second <tt class="docutils literal"><span class="pre">select</span></tt> command uses
1296
- query expansion. So a record that has <tt class="docutils literal"><span class="pre">&quot;tritonn&quot;</span></tt> is found. The
1297
- third <tt class="docutils literal"><span class="pre">select</span></tt> command doesn't use query expansion but it is same as
1298
- the second <tt class="docutils literal"><span class="pre">select</span></tt> command. The third one uses expanded query.</p>
1299
- <p>Each substitute value can contain any <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> syntax
1300
- such as <tt class="docutils literal"><span class="pre">(...)</span></tt> and <tt class="docutils literal"><span class="pre">OR</span></tt>. You can use complex substitution by
1301
- using those syntax.</p>
1302
- <p>Here is a complex substitution usage example that uses query syntax.</p>
1283
+ <p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command sets <tt class="docutils literal"><span class="pre">age</span></tt> column value of all records
1284
+ to <tt class="docutils literal"><span class="pre">19</span></tt>. The second <tt class="docutils literal"><span class="pre">select</span></tt> command outputs updated <tt class="docutils literal"><span class="pre">age</span></tt>
1285
+ column values.</p>
1286
+ <p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt>.</p>
1303
1287
  <p>Execution example:</p>
1304
- <div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
1305
- [
1306
- {&quot;_key&quot;: &quot;popular&quot;, &quot;synonym&quot;: [&quot;popular&quot;, &quot;n_likes:&gt;=10&quot;]}
1307
- ]
1308
- # [[0, 1337566253.89858, 0.000355720520019531], 1]
1309
- select Entries --match_columns content --query &quot;popular&quot; --query_expansion Thesaurus.synonym
1288
+ <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
1310
1289
  # [
1311
1290
  # [
1312
1291
  # 0,
@@ -1316,7 +1295,7 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
1316
1295
  # [
1317
1296
  # [
1318
1297
  # [
1319
- # 2
1298
+ # 4
1320
1299
  # ],
1321
1300
  # [
1322
1301
  # [
@@ -1337,63 +1316,39 @@ select Entries --match_columns content --query &quot;popular&quot; --query_expan
1337
1316
  # ]
1338
1317
  # ],
1339
1318
  # [
1319
+ # 1,
1320
+ # &quot;The first post!&quot;,
1321
+ # &quot;Welcome! This is my first post!&quot;,
1322
+ # 5
1323
+ # ],
1324
+ # [
1340
1325
  # 2,
1341
1326
  # &quot;Groonga&quot;,
1342
1327
  # &quot;I started to use groonga. It&#39;s very fast!&quot;,
1343
1328
  # 10
1344
1329
  # ],
1345
1330
  # [
1346
- # 3,
1347
- # &quot;Mroonga&quot;,
1348
- # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
1349
- # 15
1331
+ # 4,
1332
+ # &quot;Good-bye Senna&quot;,
1333
+ # &quot;I migrated all Senna system!&quot;,
1334
+ # 3
1335
+ # ],
1336
+ # [
1337
+ # 5,
1338
+ # &quot;Good-bye Tritonn&quot;,
1339
+ # &quot;I also migrated all Tritonn system!&quot;,
1340
+ # 3
1350
1341
  # ]
1351
1342
  # ]
1352
1343
  # ]
1353
1344
  # ]
1354
1345
  </pre></div>
1355
1346
  </div>
1356
- <p>The <tt class="docutils literal"><span class="pre">load</span></tt> command registers a new synonym <tt class="docutils literal"><span class="pre">&quot;popular&quot;</span></tt>. It is
1357
- substituted with <tt class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:&gt;=10))</span></tt>. The substituted
1358
- query means that &quot;popular&quot; is containing the word &quot;popular&quot; or 10 or
1359
- more liked entries.</p>
1360
- <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value
1361
- is equal to or more than <tt class="docutils literal"><span class="pre">10</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
1362
- </div>
1363
- <div class="section" id="query-flags">
1364
- <span id="id3"></span><h4>8.3.20.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt><a class="headerlink" href="#query-flags" title="Permalink to this headline">¶</a></h4>
1365
- <p>It customs <tt class="docutils literal"><span class="pre">query</span></tt> parameter syntax. You cannot update column value
1366
- by <tt class="docutils literal"><span class="pre">query</span></tt> parameter by default. But if you specify
1367
- <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> as <tt class="docutils literal"><span class="pre">query_flags</span></tt>, you can update
1368
- column value by <tt class="docutils literal"><span class="pre">query</span></tt>.</p>
1369
- <p>Here are available values:</p>
1370
- <ul class="simple">
1371
- <li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
1372
- <li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
1373
- <li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
1374
- <li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
1375
- <li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
1376
- </ul>
1377
- <p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> enables pragma at the head of <tt class="docutils literal"><span class="pre">query</span></tt>. This is not
1378
- implemented yet.</p>
1379
- <p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> enables search againt columns that are not included
1380
- in <tt class="docutils literal"><span class="pre">match_columns</span></tt>. To specify column, there are <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt>
1381
- syntaxes.</p>
1382
- <p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> enables column update by <tt class="docutils literal"><span class="pre">query</span></tt> with
1383
- <tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> syntax. <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> is also required to
1384
- update column because the column update syntax specifies column.</p>
1385
- <p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> enables leading NOT condition with <tt class="docutils literal"><span class="pre">-WORD</span></tt>
1386
- syntax. The query searches records that doesn't match
1387
- <tt class="docutils literal"><span class="pre">WORD</span></tt>. Leading NOT condition query is heavy query in many cases
1388
- because it matches many records. So this flag is disabled by
1389
- default. Be careful about it when you use the flag.</p>
1390
- <p><tt class="docutils literal"><span class="pre">NONE</span></tt> is just ignores. You can use <tt class="docutils literal"><span class="pre">NONE</span></tt> for specifying no flags.</p>
1391
- <p>They can be combined by separated <tt class="docutils literal"><span class="pre">|</span></tt> such as
1392
- <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt>.</p>
1393
- <p>The default value is <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt>.</p>
1394
- <p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt>.</p>
1347
+ <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that don't contain <tt class="docutils literal"><span class="pre">mroonga</span></tt>
1348
+ in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
1349
+ <p>Here is a usage example of <tt class="docutils literal"><span class="pre">NONE</span></tt>.</p>
1395
1350
  <p>Execution example:</p>
1396
- <div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
1351
+ <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query &#39;mroonga OR _key:Groonga&#39; --query_flags NONE
1397
1352
  # [
1398
1353
  # [
1399
1354
  # 0,
@@ -1434,21 +1389,67 @@ default. Be careful about it when you use the flag.</p>
1434
1389
  # ]
1435
1390
  </pre></div>
1436
1391
  </div>
1437
- <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain <tt class="docutils literal"><span class="pre">mroonga</span></tt> in
1438
- <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
1439
- <p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt>.</p>
1392
+ <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain one of two words
1393
+ <tt class="docutils literal"><span class="pre">mroonga</span></tt> or <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.
1394
+ Note that <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> doesn't mean that the value of <tt class="docutils literal"><span class="pre">_key</span></tt>
1395
+ column is equal to <tt class="docutils literal"><span class="pre">Groonga</span></tt>. Because <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> flag is not
1396
+ specified.</p>
1397
+ <p>See also <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a>.</p>
1398
+ </div>
1399
+ <div class="section" id="query-expander">
1400
+ <span id="id4"></span><h4>8.3.22.4.3.4. <tt class="docutils literal"><span class="pre">query_expander</span></tt><a class="headerlink" href="#query-expander" title="Permalink to this headline">¶</a></h4>
1401
+ <p>It's for query expansion. Query expansion substitutes specific words
1402
+ to another words in query. Nomally, it's used for synonym search.</p>
1403
+ <p>It specifies a column that is used to substitute <tt class="docutils literal"><span class="pre">query</span></tt> parameter
1404
+ value. The format of this parameter value is
1405
+ &quot;<tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt>&quot;. For example, &quot;<tt class="docutils literal"><span class="pre">Terms.synonym</span></tt>&quot; specifies
1406
+ <tt class="docutils literal"><span class="pre">synonym</span></tt> column in <tt class="docutils literal"><span class="pre">Terms</span></tt> table.</p>
1407
+ <p>Table for query expansion is called &quot;substitution table&quot;. Substitution
1408
+ table's key must be <tt class="docutils literal"><span class="pre">ShortText</span></tt>. So array table (<tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt>)
1409
+ can't be used for query expansion. Because array table doesn't have
1410
+ key.</p>
1411
+ <p>Column for query expansion is called &quot;substitution
1412
+ column&quot;. Substitution column's value type must be
1413
+ <tt class="docutils literal"><span class="pre">ShortText</span></tt>. Column type must be vector (<tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt>).</p>
1414
+ <p>Query expansion substitutes key of substitution table in query with
1415
+ values in substitution column. If a word in <tt class="docutils literal"><span class="pre">query</span></tt> is a key of
1416
+ substitution table, the word is substituted with substitution column
1417
+ value that is associated with the key. Substition isn't performed
1418
+ recursively. It means that substitution target words in substituted
1419
+ query aren't substituted.</p>
1420
+ <p>Here is a sample substitution table to show a simple
1421
+ <tt class="docutils literal"><span class="pre">query_expander</span></tt> usage example.</p>
1440
1422
  <p>Execution example:</p>
1441
- <div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
1423
+ <div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
1442
1424
  # [[0, 1337566253.89858, 0.000355720520019531], true]
1443
- column_create Users age COLUMN_SCALAR UInt32
1425
+ column_create Thesaurus synonym COLUMN_VECTOR ShortText
1444
1426
  # [[0, 1337566253.89858, 0.000355720520019531], true]
1445
- load --table Users
1427
+ load --table Thesaurus
1446
1428
  [
1447
- {&quot;_key&quot;: &quot;alice&quot;, &quot;age&quot;: 18},
1448
- {&quot;_key&quot;: &quot;bob&quot;, &quot;age&quot;: 20}
1429
+ {&quot;_key&quot;: &quot;mroonga&quot;, &quot;synonym&quot;: [&quot;mroonga&quot;, &quot;tritonn&quot;, &quot;groonga mysql&quot;]},
1430
+ {&quot;_key&quot;: &quot;groonga&quot;, &quot;synonym&quot;: [&quot;groonga&quot;, &quot;senna&quot;]}
1449
1431
  ]
1450
1432
  # [[0, 1337566253.89858, 0.000355720520019531], 2]
1451
- select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
1433
+ </pre></div>
1434
+ </div>
1435
+ <p><tt class="docutils literal"><span class="pre">Thesaurus</span></tt> substitution table has two synonyms, <tt class="docutils literal"><span class="pre">&quot;mroonga&quot;</span></tt> and
1436
+ <tt class="docutils literal"><span class="pre">&quot;groonga&quot;</span></tt>. If an user searches with <tt class="docutils literal"><span class="pre">&quot;mroonga&quot;</span></tt>, groonga
1437
+ searches with <tt class="docutils literal"><span class="pre">&quot;((mroonga)</span> <span class="pre">OR</span> <span class="pre">(tritonn)</span> <span class="pre">OR</span> <span class="pre">(groonga</span> <span class="pre">mysql))&quot;</span></tt>. If an
1438
+ user searches with <tt class="docutils literal"><span class="pre">&quot;groonga&quot;</span></tt>, groonga searchs with <tt class="docutils literal"><span class="pre">&quot;((groonga)</span>
1439
+ <span class="pre">OR</span> <span class="pre">(senna))&quot;</span></tt>. Nomrally, it's good idea that substitution table has
1440
+ <tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt> flag. If the flag is used, substitute target word is
1441
+ matched in case insensitive manner.</p>
1442
+ <p>Note that those synonym values include the key value such as
1443
+ <tt class="docutils literal"><span class="pre">&quot;mroonga&quot;</span></tt> and <tt class="docutils literal"><span class="pre">&quot;groonga&quot;</span></tt>. It's recommended that you include the
1444
+ key value. If you don't include key value, substituted value doesn't
1445
+ include the original substitute target value. Normally, including the
1446
+ original value is better search result. If you have a word that you
1447
+ don't want to be searched, you should not include the original
1448
+ word. For example, you can implement &quot;stop words&quot; by an empty vector
1449
+ value.</p>
1450
+ <p>Here is a simple <tt class="docutils literal"><span class="pre">query_expander</span></tt> usage example.</p>
1451
+ <p>Execution example:</p>
1452
+ <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query &quot;mroonga&quot;
1452
1453
  # [
1453
1454
  # [
1454
1455
  # 0,
@@ -1458,7 +1459,7 @@ select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
1458
1459
  # [
1459
1460
  # [
1460
1461
  # [
1461
- # 2
1462
+ # 1
1462
1463
  # ],
1463
1464
  # [
1464
1465
  # [
@@ -1470,24 +1471,24 @@ select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
1470
1471
  # &quot;ShortText&quot;
1471
1472
  # ],
1472
1473
  # [
1473
- # &quot;age&quot;,
1474
+ # &quot;content&quot;,
1475
+ # &quot;Text&quot;
1476
+ # ],
1477
+ # [
1478
+ # &quot;n_likes&quot;,
1474
1479
  # &quot;UInt32&quot;
1475
1480
  # ]
1476
1481
  # ],
1477
1482
  # [
1478
- # 1,
1479
- # &quot;alice&quot;,
1480
- # 19
1481
- # ],
1482
- # [
1483
- # 2,
1484
- # &quot;bob&quot;,
1485
- # 19
1483
+ # 3,
1484
+ # &quot;Mroonga&quot;,
1485
+ # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
1486
+ # 15
1486
1487
  # ]
1487
1488
  # ]
1488
1489
  # ]
1489
1490
  # ]
1490
- select Users
1491
+ select Entries --match_columns content --query &quot;mroonga&quot; --query_expander Thesaurus.synonym
1491
1492
  # [
1492
1493
  # [
1493
1494
  # 0,
@@ -1509,31 +1510,30 @@ select Users
1509
1510
  # &quot;ShortText&quot;
1510
1511
  # ],
1511
1512
  # [
1512
- # &quot;age&quot;,
1513
+ # &quot;content&quot;,
1514
+ # &quot;Text&quot;
1515
+ # ],
1516
+ # [
1517
+ # &quot;n_likes&quot;,
1513
1518
  # &quot;UInt32&quot;
1514
1519
  # ]
1515
1520
  # ],
1516
1521
  # [
1517
- # 1,
1518
- # &quot;alice&quot;,
1519
- # 19
1522
+ # 3,
1523
+ # &quot;Mroonga&quot;,
1524
+ # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
1525
+ # 15
1520
1526
  # ],
1521
1527
  # [
1522
- # 2,
1523
- # &quot;bob&quot;,
1524
- # 19
1528
+ # 5,
1529
+ # &quot;Good-bye Tritonn&quot;,
1530
+ # &quot;I also migrated all Tritonn system!&quot;,
1531
+ # 3
1525
1532
  # ]
1526
1533
  # ]
1527
1534
  # ]
1528
1535
  # ]
1529
- </pre></div>
1530
- </div>
1531
- <p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command sets <tt class="docutils literal"><span class="pre">age</span></tt> column value of all records
1532
- to <tt class="docutils literal"><span class="pre">19</span></tt>. The second <tt class="docutils literal"><span class="pre">select</span></tt> command outputs updated <tt class="docutils literal"><span class="pre">age</span></tt>
1533
- column values.</p>
1534
- <p>Here is a usage example of <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt>.</p>
1535
- <p>Execution example:</p>
1536
- <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
1536
+ select Entries --match_columns content --query &quot;((mroonga) OR (tritonn) OR (groonga mysql))&quot;
1537
1537
  # [
1538
1538
  # [
1539
1539
  # 0,
@@ -1543,7 +1543,7 @@ column values.</p>
1543
1543
  # [
1544
1544
  # [
1545
1545
  # [
1546
- # 4
1546
+ # 2
1547
1547
  # ],
1548
1548
  # [
1549
1549
  # [
@@ -1564,22 +1564,10 @@ column values.</p>
1564
1564
  # ]
1565
1565
  # ],
1566
1566
  # [
1567
- # 1,
1568
- # &quot;The first post!&quot;,
1569
- # &quot;Welcome! This is my first post!&quot;,
1570
- # 5
1571
- # ],
1572
- # [
1573
- # 2,
1574
- # &quot;Groonga&quot;,
1575
- # &quot;I started to use groonga. It&#39;s very fast!&quot;,
1576
- # 10
1577
- # ],
1578
- # [
1579
- # 4,
1580
- # &quot;Good-bye Senna&quot;,
1581
- # &quot;I migrated all Senna system!&quot;,
1582
- # 3
1567
+ # 3,
1568
+ # &quot;Mroonga&quot;,
1569
+ # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
1570
+ # 15
1583
1571
  # ],
1584
1572
  # [
1585
1573
  # 5,
@@ -1592,11 +1580,22 @@ column values.</p>
1592
1580
  # ]
1593
1581
  </pre></div>
1594
1582
  </div>
1595
- <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that don't contain <tt class="docutils literal"><span class="pre">mroonga</span></tt>
1596
- in <tt class="docutils literal"><span class="pre">content</span></tt> column value from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
1597
- <p>Here is a usage example of <tt class="docutils literal"><span class="pre">NONE</span></tt>.</p>
1583
+ <p>The first <tt class="docutils literal"><span class="pre">select</span></tt> command doesn't use query expansion. So a record
1584
+ that has <tt class="docutils literal"><span class="pre">&quot;tritonn&quot;</span></tt> isn't found. The second <tt class="docutils literal"><span class="pre">select</span></tt> command uses
1585
+ query expansion. So a record that has <tt class="docutils literal"><span class="pre">&quot;tritonn&quot;</span></tt> is found. The
1586
+ third <tt class="docutils literal"><span class="pre">select</span></tt> command doesn't use query expansion but it is same as
1587
+ the second <tt class="docutils literal"><span class="pre">select</span></tt> command. The third one uses expanded query.</p>
1588
+ <p>Each substitute value can contain any <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> syntax
1589
+ such as <tt class="docutils literal"><span class="pre">(...)</span></tt> and <tt class="docutils literal"><span class="pre">OR</span></tt>. You can use complex substitution by
1590
+ using those syntax.</p>
1591
+ <p>Here is a complex substitution usage example that uses query syntax.</p>
1598
1592
  <p>Execution example:</p>
1599
- <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query &#39;mroonga OR _key:Groonga&#39; --query_flags NONE
1593
+ <div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
1594
+ [
1595
+ {&quot;_key&quot;: &quot;popular&quot;, &quot;synonym&quot;: [&quot;popular&quot;, &quot;n_likes:&gt;=10&quot;]}
1596
+ ]
1597
+ # [[0, 1337566253.89858, 0.000355720520019531], 1]
1598
+ select Entries --match_columns content --query &quot;popular&quot; --query_expander Thesaurus.synonym
1600
1599
  # [
1601
1600
  # [
1602
1601
  # 0,
@@ -1606,7 +1605,7 @@ in <tt class="docutils literal"><span class="pre">content</span></tt> column val
1606
1605
  # [
1607
1606
  # [
1608
1607
  # [
1609
- # 1
1608
+ # 2
1610
1609
  # ],
1611
1610
  # [
1612
1611
  # [
@@ -1627,6 +1626,12 @@ in <tt class="docutils literal"><span class="pre">content</span></tt> column val
1627
1626
  # ]
1628
1627
  # ],
1629
1628
  # [
1629
+ # 2,
1630
+ # &quot;Groonga&quot;,
1631
+ # &quot;I started to use groonga. It&#39;s very fast!&quot;,
1632
+ # 10
1633
+ # ],
1634
+ # [
1630
1635
  # 3,
1631
1636
  # &quot;Mroonga&quot;,
1632
1637
  # &quot;I also started to use mroonga. It&#39;s also very fast! Really fast!&quot;,
@@ -1637,18 +1642,18 @@ in <tt class="docutils literal"><span class="pre">content</span></tt> column val
1637
1642
  # ]
1638
1643
  </pre></div>
1639
1644
  </div>
1640
- <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command searches records that contain one of two words
1641
- <tt class="docutils literal"><span class="pre">mroonga</span></tt> or <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> in <tt class="docutils literal"><span class="pre">content</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.
1642
- Note that <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> doesn't mean that the value of <tt class="docutils literal"><span class="pre">_key</span></tt>
1643
- column is equal to <tt class="docutils literal"><span class="pre">Groonga</span></tt>. Because <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> flag is not
1644
- specified.</p>
1645
- <p>See also <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a>.</p>
1645
+ <p>The <tt class="docutils literal"><span class="pre">load</span></tt> command registers a new synonym <tt class="docutils literal"><span class="pre">&quot;popular&quot;</span></tt>. It is
1646
+ substituted with <tt class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:&gt;=10))</span></tt>. The substituted
1647
+ query means that &quot;popular&quot; is containing the word &quot;popular&quot; or 10 or
1648
+ more liked entries.</p>
1649
+ <p>The <tt class="docutils literal"><span class="pre">select</span></tt> command outputs records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value
1650
+ is equal to or more than <tt class="docutils literal"><span class="pre">10</span></tt> from <tt class="docutils literal"><span class="pre">Entries</span></tt> table.</p>
1646
1651
  </div>
1647
1652
  </div>
1648
1653
  <div class="section" id="output-related-parameters">
1649
- <h3>8.3.20.4.4. Output related parameters<a class="headerlink" href="#output-related-parameters" title="Permalink to this headline">¶</a></h3>
1654
+ <h3>8.3.22.4.4. Output related parameters<a class="headerlink" href="#output-related-parameters" title="Permalink to this headline">¶</a></h3>
1650
1655
  <div class="section" id="output-columns">
1651
- <h4>8.3.20.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt><a class="headerlink" href="#output-columns" title="Permalink to this headline">¶</a></h4>
1656
+ <h4>8.3.22.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt><a class="headerlink" href="#output-columns" title="Permalink to this headline">¶</a></h4>
1652
1657
  <p>It specifies output columns separated by <tt class="docutils literal"><span class="pre">,</span></tt>.</p>
1653
1658
  <p>Here is a simple <tt class="docutils literal"><span class="pre">output_columns</span></tt> usage example.</p>
1654
1659
  <p>Execution example:</p>
@@ -1732,7 +1737,7 @@ column value.</p>
1732
1737
  values except <tt class="docutils literal"><span class="pre">_score</span></tt> are outputted.</p>
1733
1738
  </div>
1734
1739
  <div class="section" id="sortby">
1735
- <h4>8.3.20.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt><a class="headerlink" href="#sortby" title="Permalink to this headline">¶</a></h4>
1740
+ <h4>8.3.22.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt><a class="headerlink" href="#sortby" title="Permalink to this headline">¶</a></h4>
1736
1741
  <p>It specifies sort keys separated by <tt class="docutils literal"><span class="pre">,</span></tt>. Each sort key is column
1737
1742
  name.</p>
1738
1743
  <p>Here is a simple <tt class="docutils literal"><span class="pre">sortby</span></tt> usage example.</p>
@@ -1920,7 +1925,7 @@ descending order and outputs record key and hit score.</p>
1920
1925
  it's just ignored but get a warning in log file.</p>
1921
1926
  </div>
1922
1927
  <div class="section" id="offset">
1923
- <h4>8.3.20.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt><a class="headerlink" href="#offset" title="Permalink to this headline">¶</a></h4>
1928
+ <h4>8.3.22.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt><a class="headerlink" href="#offset" title="Permalink to this headline">¶</a></h4>
1924
1929
  <p>It specifies offset to determine output records range. Offset is
1925
1930
  zero-origin. <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> means output range is started from the 2nd
1926
1931
  record.</p>
@@ -1994,7 +1999,7 @@ number of records is <tt class="docutils literal"><span class="pre">5</span></tt
1994
1999
  <p>The default value is <tt class="docutils literal"><span class="pre">0</span></tt>.</p>
1995
2000
  </div>
1996
2001
  <div class="section" id="limit">
1997
- <h4>8.3.20.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt><a class="headerlink" href="#limit" title="Permalink to this headline">¶</a></h4>
2002
+ <h4>8.3.22.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt><a class="headerlink" href="#limit" title="Permalink to this headline">¶</a></h4>
1998
2003
  <p>It specifies the max number of output records. If the number of
1999
2004
  matched records is less than <tt class="docutils literal"><span class="pre">limit</span></tt>, all records are outputted.</p>
2000
2005
  <p>Here is a simple <tt class="docutils literal"><span class="pre">limit</span></tt> usage example.</p>
@@ -2106,44 +2111,44 @@ records. It's very useful value to show all records.</p>
2106
2111
  <p>The default value is <tt class="docutils literal"><span class="pre">10</span></tt>.</p>
2107
2112
  </div>
2108
2113
  <div class="section" id="scorer">
2109
- <h4>8.3.20.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt><a class="headerlink" href="#scorer" title="Permalink to this headline">¶</a></h4>
2114
+ <h4>8.3.22.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt><a class="headerlink" href="#scorer" title="Permalink to this headline">¶</a></h4>
2110
2115
  <p>TODO: write in English and add example.</p>
2111
2116
  <p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
2112
2117
  <p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
2113
2118
  </div>
2114
2119
  </div>
2115
2120
  <div class="section" id="facet-related-parameters">
2116
- <h3>8.3.20.4.5. Facet related parameters<a class="headerlink" href="#facet-related-parameters" title="Permalink to this headline">¶</a></h3>
2121
+ <h3>8.3.22.4.5. Facet related parameters<a class="headerlink" href="#facet-related-parameters" title="Permalink to this headline">¶</a></h3>
2117
2122
  <div class="section" id="drilldown">
2118
- <h4>8.3.20.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt><a class="headerlink" href="#drilldown" title="Permalink to this headline">¶</a></h4>
2123
+ <h4>8.3.22.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt><a class="headerlink" href="#drilldown" title="Permalink to this headline">¶</a></h4>
2119
2124
  <p>TODO: write in English and add example.</p>
2120
2125
  <p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
2121
2126
  </div>
2122
2127
  <div class="section" id="drilldown-sortby">
2123
- <h4>8.3.20.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt><a class="headerlink" href="#drilldown-sortby" title="Permalink to this headline">¶</a></h4>
2128
+ <h4>8.3.22.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt><a class="headerlink" href="#drilldown-sortby" title="Permalink to this headline">¶</a></h4>
2124
2129
  <p>TODO: write in English and add example.</p>
2125
2130
  <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
2126
2131
  </div>
2127
2132
  <div class="section" id="drilldown-output-columns">
2128
- <h4>8.3.20.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt><a class="headerlink" href="#drilldown-output-columns" title="Permalink to this headline">¶</a></h4>
2133
+ <h4>8.3.22.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt><a class="headerlink" href="#drilldown-output-columns" title="Permalink to this headline">¶</a></h4>
2129
2134
  <p>TODO: write in English and add example.</p>
2130
2135
  <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
2131
2136
  </div>
2132
2137
  <div class="section" id="drilldown-offset">
2133
- <h4>8.3.20.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt><a class="headerlink" href="#drilldown-offset" title="Permalink to this headline">¶</a></h4>
2138
+ <h4>8.3.22.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt><a class="headerlink" href="#drilldown-offset" title="Permalink to this headline">¶</a></h4>
2134
2139
  <p>TODO: write in English and add example.</p>
2135
2140
  <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
2136
2141
  </div>
2137
2142
  <div class="section" id="drilldown-limit">
2138
- <h4>8.3.20.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt><a class="headerlink" href="#drilldown-limit" title="Permalink to this headline">¶</a></h4>
2143
+ <h4>8.3.22.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt><a class="headerlink" href="#drilldown-limit" title="Permalink to this headline">¶</a></h4>
2139
2144
  <p>TODO: write in English and add example.</p>
2140
2145
  <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
2141
2146
  </div>
2142
2147
  </div>
2143
2148
  <div class="section" id="cache-related-parameter">
2144
- <h3>8.3.20.4.6. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
2149
+ <h3>8.3.22.4.6. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
2145
2150
  <div class="section" id="cache">
2146
- <h4>8.3.20.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt><a class="headerlink" href="#cache" title="Permalink to this headline">¶</a></h4>
2151
+ <h4>8.3.22.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt><a class="headerlink" href="#cache" title="Permalink to this headline">¶</a></h4>
2147
2152
  <p>TODO: write in English and add example.</p>
2148
2153
  <p>クエリキャッシュに関する動作を設定します。</p>
2149
2154
  <p><tt class="docutils literal"><span class="pre">no</span></tt></p>
@@ -2152,8 +2157,8 @@ records. It's very useful value to show all records.</p>
2152
2157
  </div>
2153
2158
  </div>
2154
2159
  </div>
2155
- <div class="section" id="id4">
2156
- <h2>8.3.20.5. 返値<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
2160
+ <div class="section" id="id5">
2161
+ <h2>8.3.22.5. 返値<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
2157
2162
  <p>TODO: write in English and add example.</p>
2158
2163
  <p>以下のようなjson形式で値が返却されます。</p>
2159
2164
  <div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
@@ -2209,7 +2214,7 @@ records. It's very useful value to show all records.</p>
2209
2214
  </div></blockquote>
2210
2215
  </div>
2211
2216
  <div class="section" id="see-also">
2212
- <h2>8.3.20.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
2217
+ <h2>8.3.22.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
2213
2218
  <blockquote>
2214
2219
  <div><ul class="simple">
2215
2220
  <li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a></li>
@@ -2227,71 +2232,72 @@ records. It's very useful value to show all records.</p>
2227
2232
  <div class="sphinxsidebarwrapper">
2228
2233
  <h3><a href="../../index.html">Table Of Contents</a></h3>
2229
2234
  <ul>
2230
- <li><a class="reference internal" href="#">8.3.20. <tt class="docutils literal"><span class="pre">select</span></tt></a><ul>
2231
- <li><a class="reference internal" href="#summary">8.3.20.1. Summary</a></li>
2232
- <li><a class="reference internal" href="#syntax">8.3.20.2. Syntax</a></li>
2233
- <li><a class="reference internal" href="#usage">8.3.20.3. Usage</a><ul>
2234
- <li><a class="reference internal" href="#simple-usage">8.3.20.3.1. Simple usage</a></li>
2235
- <li><a class="reference internal" href="#search-conditions">8.3.20.3.2. Search conditions</a><ul>
2236
- <li><a class="reference internal" href="#search-condition-query">8.3.20.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
2237
- <li><a class="reference internal" href="#search-condition-filter">8.3.20.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
2235
+ <li><a class="reference internal" href="#">8.3.22. <tt class="docutils literal"><span class="pre">select</span></tt></a><ul>
2236
+ <li><a class="reference internal" href="#summary">8.3.22.1. Summary</a></li>
2237
+ <li><a class="reference internal" href="#syntax">8.3.22.2. Syntax</a></li>
2238
+ <li><a class="reference internal" href="#usage">8.3.22.3. Usage</a><ul>
2239
+ <li><a class="reference internal" href="#simple-usage">8.3.22.3.1. Simple usage</a></li>
2240
+ <li><a class="reference internal" href="#search-conditions">8.3.22.3.2. Search conditions</a><ul>
2241
+ <li><a class="reference internal" href="#search-condition-query">8.3.22.3.2.1. Search condition: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
2242
+ <li><a class="reference internal" href="#search-condition-filter">8.3.22.3.2.2. Search condition: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
2238
2243
  </ul>
2239
2244
  </li>
2240
- <li><a class="reference internal" href="#paging">8.3.20.3.3. Paging</a></li>
2241
- <li><a class="reference internal" href="#the-total-number-of-records">8.3.20.3.4. The total number of records</a></li>
2245
+ <li><a class="reference internal" href="#paging">8.3.22.3.3. Paging</a></li>
2246
+ <li><a class="reference internal" href="#the-total-number-of-records">8.3.22.3.4. The total number of records</a></li>
2242
2247
  </ul>
2243
2248
  </li>
2244
- <li><a class="reference internal" href="#parameters">8.3.20.4. Parameters</a><ul>
2245
- <li><a class="reference internal" href="#required-parameter">8.3.20.4.1. Required parameter</a><ul>
2246
- <li><a class="reference internal" href="#table">8.3.20.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt></a></li>
2249
+ <li><a class="reference internal" href="#parameters">8.3.22.4. Parameters</a><ul>
2250
+ <li><a class="reference internal" href="#required-parameter">8.3.22.4.1. Required parameter</a><ul>
2251
+ <li><a class="reference internal" href="#table">8.3.22.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt></a></li>
2247
2252
  </ul>
2248
2253
  </li>
2249
- <li><a class="reference internal" href="#search-related-parameters">8.3.20.4.2. Search related parameters</a><ul>
2250
- <li><a class="reference internal" href="#match-columns">8.3.20.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt></a></li>
2251
- <li><a class="reference internal" href="#query">8.3.20.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
2252
- <li><a class="reference internal" href="#filter">8.3.20.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
2254
+ <li><a class="reference internal" href="#search-related-parameters">8.3.22.4.2. Search related parameters</a><ul>
2255
+ <li><a class="reference internal" href="#match-columns">8.3.22.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt></a></li>
2256
+ <li><a class="reference internal" href="#query">8.3.22.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
2257
+ <li><a class="reference internal" href="#filter">8.3.22.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
2253
2258
  </ul>
2254
2259
  </li>
2255
- <li><a class="reference internal" href="#advanced-search-parameters">8.3.20.4.3. Advanced search parameters</a><ul>
2256
- <li><a class="reference internal" href="#match-escalation-threshold">8.3.20.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></a></li>
2257
- <li><a class="reference internal" href="#query-expansion">8.3.20.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt></a></li>
2258
- <li><a class="reference internal" href="#query-flags">8.3.20.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt></a></li>
2260
+ <li><a class="reference internal" href="#advanced-search-parameters">8.3.22.4.3. Advanced search parameters</a><ul>
2261
+ <li><a class="reference internal" href="#match-escalation-threshold">8.3.22.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></a></li>
2262
+ <li><a class="reference internal" href="#query-expansion">8.3.22.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt></a></li>
2263
+ <li><a class="reference internal" href="#query-flags">8.3.22.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt></a></li>
2264
+ <li><a class="reference internal" href="#query-expander">8.3.22.4.3.4. <tt class="docutils literal"><span class="pre">query_expander</span></tt></a></li>
2259
2265
  </ul>
2260
2266
  </li>
2261
- <li><a class="reference internal" href="#output-related-parameters">8.3.20.4.4. Output related parameters</a><ul>
2262
- <li><a class="reference internal" href="#output-columns">8.3.20.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt></a></li>
2263
- <li><a class="reference internal" href="#sortby">8.3.20.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt></a></li>
2264
- <li><a class="reference internal" href="#offset">8.3.20.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt></a></li>
2265
- <li><a class="reference internal" href="#limit">8.3.20.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt></a></li>
2266
- <li><a class="reference internal" href="#scorer">8.3.20.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt></a></li>
2267
+ <li><a class="reference internal" href="#output-related-parameters">8.3.22.4.4. Output related parameters</a><ul>
2268
+ <li><a class="reference internal" href="#output-columns">8.3.22.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt></a></li>
2269
+ <li><a class="reference internal" href="#sortby">8.3.22.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt></a></li>
2270
+ <li><a class="reference internal" href="#offset">8.3.22.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt></a></li>
2271
+ <li><a class="reference internal" href="#limit">8.3.22.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt></a></li>
2272
+ <li><a class="reference internal" href="#scorer">8.3.22.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt></a></li>
2267
2273
  </ul>
2268
2274
  </li>
2269
- <li><a class="reference internal" href="#facet-related-parameters">8.3.20.4.5. Facet related parameters</a><ul>
2270
- <li><a class="reference internal" href="#drilldown">8.3.20.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt></a></li>
2271
- <li><a class="reference internal" href="#drilldown-sortby">8.3.20.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt></a></li>
2272
- <li><a class="reference internal" href="#drilldown-output-columns">8.3.20.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt></a></li>
2273
- <li><a class="reference internal" href="#drilldown-offset">8.3.20.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt></a></li>
2274
- <li><a class="reference internal" href="#drilldown-limit">8.3.20.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt></a></li>
2275
+ <li><a class="reference internal" href="#facet-related-parameters">8.3.22.4.5. Facet related parameters</a><ul>
2276
+ <li><a class="reference internal" href="#drilldown">8.3.22.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt></a></li>
2277
+ <li><a class="reference internal" href="#drilldown-sortby">8.3.22.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt></a></li>
2278
+ <li><a class="reference internal" href="#drilldown-output-columns">8.3.22.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt></a></li>
2279
+ <li><a class="reference internal" href="#drilldown-offset">8.3.22.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt></a></li>
2280
+ <li><a class="reference internal" href="#drilldown-limit">8.3.22.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt></a></li>
2275
2281
  </ul>
2276
2282
  </li>
2277
- <li><a class="reference internal" href="#cache-related-parameter">8.3.20.4.6. Cache related parameter</a><ul>
2278
- <li><a class="reference internal" href="#cache">8.3.20.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt></a></li>
2283
+ <li><a class="reference internal" href="#cache-related-parameter">8.3.22.4.6. Cache related parameter</a><ul>
2284
+ <li><a class="reference internal" href="#cache">8.3.22.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt></a></li>
2279
2285
  </ul>
2280
2286
  </li>
2281
2287
  </ul>
2282
2288
  </li>
2283
- <li><a class="reference internal" href="#id4">8.3.20.5. 返値</a></li>
2284
- <li><a class="reference internal" href="#see-also">8.3.20.6. See also</a></li>
2289
+ <li><a class="reference internal" href="#id5">8.3.22.5. 返値</a></li>
2290
+ <li><a class="reference internal" href="#see-also">8.3.22.6. See also</a></li>
2285
2291
  </ul>
2286
2292
  </li>
2287
2293
  </ul>
2288
2294
 
2289
2295
  <h4>Previous topic</h4>
2290
2296
  <p class="topless"><a href="register.html"
2291
- title="previous chapter">8.3.19. register</a></p>
2297
+ title="previous chapter">8.3.21. register</a></p>
2292
2298
  <h4>Next topic</h4>
2293
2299
  <p class="topless"><a href="shutdown.html"
2294
- title="next chapter">8.3.21. shutdown</a></p>
2300
+ title="next chapter">8.3.23. shutdown</a></p>
2295
2301
  <h3>This Page</h3>
2296
2302
  <ul class="this-page-menu">
2297
2303
  <li><a href="../../_sources/reference/commands/select.txt"
@@ -2321,12 +2327,12 @@ records. It's very useful value to show all records.</p>
2321
2327
  <a href="../../genindex.html" title="General Index"
2322
2328
  >index</a></li>
2323
2329
  <li class="right" >
2324
- <a href="shutdown.html" title="8.3.21. shutdown"
2330
+ <a href="shutdown.html" title="8.3.23. shutdown"
2325
2331
  >next</a> |</li>
2326
2332
  <li class="right" >
2327
- <a href="register.html" title="8.3.19. register"
2333
+ <a href="register.html" title="8.3.21. register"
2328
2334
  >previous</a> |</li>
2329
- <li><a href="../../index.html">groonga v2.1.2 documentation</a> &raquo;</li>
2335
+ <li><a href="../../index.html">groonga v3.0.2 documentation</a> &raquo;</li>
2330
2336
  <li><a href="../../reference.html" >8. リファレンスマニュアル</a> &raquo;</li>
2331
2337
  <li><a href="../command.html" >8.3. Command</a> &raquo;</li>
2332
2338
  </ul>