rroonga 2.0.8-x86-mingw32 → 2.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (389) hide show
  1. data/README.textile +2 -2
  2. data/bin/groonga-index-dump +47 -0
  3. data/doc/text/news.textile +733 -0
  4. data/doc/text/tutorial.textile +535 -0
  5. data/example/bookmark.rb +1 -1
  6. data/ext/groonga/rb-grn-database.c +21 -24
  7. data/ext/groonga/rb-grn-double-array-trie.c +50 -58
  8. data/ext/groonga/rb-grn-exception.c +18 -1
  9. data/ext/groonga/rb-grn-hash.c +18 -3
  10. data/ext/groonga/rb-grn-index-column.c +50 -2
  11. data/ext/groonga/rb-grn-normalizer.c +83 -0
  12. data/ext/groonga/rb-grn-object.c +18 -14
  13. data/ext/groonga/rb-grn-patricia-trie.c +17 -2
  14. data/ext/groonga/rb-grn-query-logger.c +263 -0
  15. data/ext/groonga/rb-grn-snippet.c +6 -0
  16. data/ext/groonga/rb-grn-table-key-support.c +204 -13
  17. data/ext/groonga/rb-grn-table.c +124 -46
  18. data/ext/groonga/rb-grn.h +14 -3
  19. data/ext/groonga/rb-groonga.c +2 -0
  20. data/lib/1.8/groonga.so +0 -0
  21. data/lib/1.9/groonga.so +0 -0
  22. data/lib/groonga.rb +2 -1
  23. data/lib/groonga/database.rb +7 -0
  24. data/lib/groonga/dumper.rb +21 -2
  25. data/lib/groonga/index-column.rb +170 -0
  26. data/lib/groonga/query-logger.rb +129 -0
  27. data/lib/groonga/record.rb +32 -8
  28. data/lib/groonga/schema.rb +231 -288
  29. data/rroonga-build.rb +2 -2
  30. data/rroonga.gemspec +11 -7
  31. data/test/groonga-test-utils.rb +18 -6
  32. data/test/test-hash.rb +49 -20
  33. data/test/test-index-cursor.rb +4 -4
  34. data/{Gemfile → test/test-normalizer.rb} +9 -5
  35. data/test/test-pagination.rb +1 -1
  36. data/test/test-patricia-trie.rb +8 -0
  37. data/test/test-schema.rb +16 -13
  38. data/test/test-snippet.rb +5 -0
  39. data/test/test-table.rb +24 -12
  40. data/test/test-view.rb +0 -1
  41. data/vendor/local/bin/groonga-benchmark.exe +0 -0
  42. data/vendor/local/bin/groonga.exe +0 -0
  43. data/vendor/local/bin/libgroonga-0.dll +0 -0
  44. data/vendor/local/bin/libmecab-1.dll +0 -0
  45. data/vendor/local/bin/libmsgpack-3.dll +0 -0
  46. data/vendor/local/bin/libmsgpackc-2.dll +0 -0
  47. data/vendor/local/bin/mecab-config +2 -2
  48. data/vendor/local/bin/mecab.exe +0 -0
  49. data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
  50. data/vendor/local/include/groonga/groonga.h +25 -14
  51. data/vendor/local/include/groonga/groonga/normalizer.h +55 -0
  52. data/vendor/local/include/groonga/groonga/tokenizer.h +33 -13
  53. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
  54. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
  55. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
  56. data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
  57. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  58. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  59. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  60. data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
  61. data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
  62. data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
  63. data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
  64. data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
  65. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
  66. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
  67. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
  68. data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
  69. data/vendor/local/lib/libgroonga.a +0 -0
  70. data/vendor/local/lib/libgroonga.dll.a +0 -0
  71. data/vendor/local/lib/libgroonga.la +2 -2
  72. data/vendor/local/lib/libmecab.a +0 -0
  73. data/vendor/local/lib/libmecab.dll.a +0 -0
  74. data/vendor/local/lib/libmecab.la +1 -1
  75. data/vendor/local/lib/libmsgpack.a +0 -0
  76. data/vendor/local/lib/libmsgpack.dll.a +0 -0
  77. data/vendor/local/lib/libmsgpack.la +1 -1
  78. data/vendor/local/lib/libmsgpackc.a +0 -0
  79. data/vendor/local/lib/libmsgpackc.dll.a +0 -0
  80. data/vendor/local/lib/libmsgpackc.la +1 -1
  81. data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
  82. data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
  83. data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
  84. data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
  85. data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
  86. data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
  87. data/vendor/local/sbin/groonga-httpd-restart +9 -3
  88. data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
  89. data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +6 -6
  90. data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
  91. data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
  92. data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
  93. data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
  94. data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
  95. data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -42
  96. data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +16 -16
  97. data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +59 -0
  98. data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +129 -0
  99. data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +0 -12
  100. data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +3 -3
  101. data/vendor/local/share/doc/groonga/en/html/characteristic.html +6 -6
  102. data/vendor/local/share/doc/groonga/en/html/community.html +6 -6
  103. data/vendor/local/share/doc/groonga/en/html/contribution.html +6 -6
  104. data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
  105. data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
  106. data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
  107. data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
  108. data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
  109. data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
  110. data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
  111. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
  112. data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
  113. data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
  114. data/vendor/local/share/doc/groonga/en/html/development.html +6 -6
  115. data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
  116. data/vendor/local/share/doc/groonga/en/html/genindex.html +6 -6
  117. data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +6 -6
  118. data/vendor/local/share/doc/groonga/en/html/index.html +12 -12
  119. data/vendor/local/share/doc/groonga/en/html/install.html +10 -11
  120. data/vendor/local/share/doc/groonga/en/html/install/centos.html +11 -11
  121. data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
  122. data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
  123. data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
  124. data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
  125. data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
  126. data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +16 -53
  127. data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -16
  128. data/vendor/local/share/doc/groonga/en/html/limitations.html +6 -6
  129. data/vendor/local/share/doc/groonga/en/html/news.html +146 -82
  130. data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
  131. data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
  132. data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
  133. data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
  134. data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
  135. data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
  136. data/vendor/local/share/doc/groonga/en/html/reference.html +6 -6
  137. data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
  138. data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
  139. data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
  140. data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
  141. data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
  142. data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
  143. data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
  144. data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
  145. data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
  146. data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
  147. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
  148. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
  149. data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
  150. data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
  151. data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
  152. data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
  153. data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
  154. data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
  155. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
  156. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
  157. data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
  158. data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
  159. data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
  160. data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
  161. data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
  162. data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
  163. data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
  164. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
  165. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
  166. data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
  167. data/vendor/local/share/doc/groonga/en/html/reference/commands/view_add.html +5 -5
  168. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
  169. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
  170. data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
  171. data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
  172. data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
  173. data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +5 -5
  174. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
  175. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
  176. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  177. data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
  178. data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
  179. data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
  180. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
  181. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
  182. data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
  183. data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
  184. data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
  185. data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
  186. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
  187. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
  188. data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
  189. data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
  190. data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
  191. data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
  192. data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
  193. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
  194. data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
  195. data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
  196. data/vendor/local/share/doc/groonga/en/html/reference/type.html +5 -5
  197. data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
  198. data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
  199. data/vendor/local/share/doc/groonga/en/html/server.html +6 -6
  200. data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
  201. data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
  202. data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
  203. data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
  204. data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
  205. data/vendor/local/share/doc/groonga/en/html/spec.html +6 -6
  206. data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
  207. data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
  208. data/vendor/local/share/doc/groonga/en/html/suggest.html +6 -6
  209. data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
  210. data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
  211. data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
  212. data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
  213. data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
  214. data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -6
  215. data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  216. data/vendor/local/share/doc/groonga/en/html/tutorial.html +8 -7
  217. data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
  218. data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
  219. data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
  220. data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
  221. data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
  222. data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +265 -7
  223. data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
  224. data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
  225. data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
  226. data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
  227. data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
  228. data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
  229. data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +6 -6
  230. data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
  231. data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
  232. data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
  233. data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
  234. data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
  235. data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -42
  236. data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +16 -16
  237. data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +59 -0
  238. data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +129 -0
  239. data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +0 -12
  240. data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
  241. data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
  242. data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
  243. data/vendor/local/share/doc/groonga/ja/html/contribution.html +9 -9
  244. data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
  245. data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
  246. data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
  247. data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
  248. data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
  249. data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
  250. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
  251. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
  252. data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
  253. data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
  254. data/vendor/local/share/doc/groonga/ja/html/development.html +6 -6
  255. data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
  256. data/vendor/local/share/doc/groonga/ja/html/genindex.html +6 -6
  257. data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +6 -6
  258. data/vendor/local/share/doc/groonga/ja/html/index.html +12 -12
  259. data/vendor/local/share/doc/groonga/ja/html/install.html +10 -11
  260. data/vendor/local/share/doc/groonga/ja/html/install/centos.html +11 -11
  261. data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
  262. data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
  263. data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
  264. data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
  265. data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
  266. data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +16 -51
  267. data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -16
  268. data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
  269. data/vendor/local/share/doc/groonga/ja/html/news.html +126 -82
  270. data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
  271. data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
  272. data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
  273. data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
  274. data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
  275. data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
  276. data/vendor/local/share/doc/groonga/ja/html/reference.html +6 -6
  277. data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
  278. data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
  279. data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
  280. data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
  281. data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
  282. data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
  283. data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
  284. data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
  285. data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
  286. data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
  287. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
  288. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
  289. data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
  290. data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
  291. data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
  292. data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
  293. data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
  294. data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
  295. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
  296. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
  297. data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
  298. data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
  299. data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
  300. data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
  301. data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
  302. data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
  303. data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
  304. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
  305. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
  306. data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
  307. data/vendor/local/share/doc/groonga/ja/html/reference/commands/view_add.html +5 -5
  308. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
  309. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
  310. data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
  311. data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
  312. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
  313. data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
  314. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
  315. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
  316. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
  317. data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
  318. data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
  319. data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
  320. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
  321. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
  322. data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
  323. data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
  324. data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
  325. data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
  326. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
  327. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
  328. data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
  329. data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
  330. data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
  331. data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
  332. data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
  333. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
  334. data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
  335. data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
  336. data/vendor/local/share/doc/groonga/ja/html/reference/type.html +5 -5
  337. data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
  338. data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
  339. data/vendor/local/share/doc/groonga/ja/html/server.html +6 -6
  340. data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
  341. data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
  342. data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
  343. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
  344. data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
  345. data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -6
  346. data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
  347. data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
  348. data/vendor/local/share/doc/groonga/ja/html/suggest.html +6 -6
  349. data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
  350. data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
  351. data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
  352. data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
  353. data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
  354. data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -6
  355. data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
  356. data/vendor/local/share/doc/groonga/ja/html/tutorial.html +8 -7
  357. data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
  358. data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
  359. data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
  360. data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
  361. data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
  362. data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +259 -7
  363. data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
  364. data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
  365. data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
  366. data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
  367. data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
  368. data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-data-with-three-relationship.log +23 -0
  369. data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-data.log +16 -0
  370. data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-schema-with-three-relationship.log +30 -0
  371. data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-schema.log +20 -0
  372. data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-select-with-three-relationship.log +86 -0
  373. data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-select.log +41 -0
  374. data/vendor/local/share/doc/groonga/source/install/centos.txt +6 -6
  375. data/vendor/local/share/doc/groonga/source/install/debian.txt +3 -3
  376. data/vendor/local/share/doc/groonga/source/install/fedora.txt +4 -4
  377. data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +3 -3
  378. data/vendor/local/share/doc/groonga/source/install/others.txt +3 -3
  379. data/vendor/local/share/doc/groonga/source/install/solaris.txt +3 -3
  380. data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +3 -42
  381. data/vendor/local/share/doc/groonga/source/install/windows.txt +16 -16
  382. data/vendor/local/share/doc/groonga/source/news.txt +59 -0
  383. data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +129 -0
  384. data/vendor/local/share/man/ja/man1/groonga.1 +338 -93
  385. data/vendor/local/share/man/man1/groonga.1 +341 -92
  386. metadata +1258 -1242
  387. data/AUTHORS +0 -5
  388. data/Rakefile +0 -203
  389. data/bin/groonga-query-log-extract +0 -117
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.5. ドリルダウン &mdash; groonga v2.0.9 documentation</title>
12
+ <title>4.5. ドリルダウン &mdash; groonga v2.1.0 documentation</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '2.0.9',
20
+ VERSION: '2.1.0',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -27,7 +27,7 @@
27
27
  <script type="text/javascript" src="../_static/underscore.js"></script>
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
30
- <link rel="top" title="groonga v2.0.9 documentation" href="../index.html" />
30
+ <link rel="top" title="groonga v2.1.0 documentation" href="../index.html" />
31
31
  <link rel="up" title="4. Tutorial" href="../tutorial.html" />
32
32
  <link rel="next" title="4.6. タグ検索・参照関係の逆引き" href="index.html" />
33
33
  <link rel="prev" title="4.4. さまざまな検索条件の指定" href="search.html" />
@@ -62,7 +62,7 @@
62
62
  <li class="right" >
63
63
  <a href="search.html" title="4.4. さまざまな検索条件の指定"
64
64
  accesskey="P">previous</a> |</li>
65
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
65
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
66
66
  <li><a href="../tutorial.html" accesskey="U">4. Tutorial</a> &raquo;</li>
67
67
  </ul>
68
68
  </div>
@@ -595,7 +595,7 @@ load --table Site
595
595
  <li class="right" >
596
596
  <a href="search.html" title="4.4. さまざまな検索条件の指定"
597
597
  >previous</a> |</li>
598
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
598
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
599
599
  <li><a href="../tutorial.html" >4. Tutorial</a> &raquo;</li>
600
600
  </ul>
601
601
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.6. タグ検索・参照関係の逆引き &mdash; groonga v2.0.9 documentation</title>
12
+ <title>4.6. タグ検索・参照関係の逆引き &mdash; groonga v2.1.0 documentation</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '2.0.9',
20
+ VERSION: '2.1.0',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -27,7 +27,7 @@
27
27
  <script type="text/javascript" src="../_static/underscore.js"></script>
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
30
- <link rel="top" title="groonga v2.0.9 documentation" href="../index.html" />
30
+ <link rel="top" title="groonga v2.1.0 documentation" href="../index.html" />
31
31
  <link rel="up" title="4. Tutorial" href="../tutorial.html" />
32
32
  <link rel="next" title="4.7. match_columnsパラメータ" href="match_columns.html" />
33
33
  <link rel="prev" title="4.5. ドリルダウン" href="drilldown.html" />
@@ -62,7 +62,7 @@
62
62
  <li class="right" >
63
63
  <a href="drilldown.html" title="4.5. ドリルダウン"
64
64
  accesskey="P">previous</a> |</li>
65
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
65
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
66
66
  <li><a href="../tutorial.html" accesskey="U">4. Tutorial</a> &raquo;</li>
67
67
  </ul>
68
68
  </div>
@@ -558,7 +558,7 @@ select --table Site --filter &#39;geo_in_circle(location, &quot;128515259x503187
558
558
  <li class="right" >
559
559
  <a href="drilldown.html" title="4.5. ドリルダウン"
560
560
  >previous</a> |</li>
561
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
561
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
562
562
  <li><a href="../tutorial.html" >4. Tutorial</a> &raquo;</li>
563
563
  </ul>
564
564
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.1. Basic operations &mdash; groonga v2.0.9 documentation</title>
12
+ <title>4.1. Basic operations &mdash; groonga v2.1.0 documentation</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '2.0.9',
20
+ VERSION: '2.1.0',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -27,7 +27,7 @@
27
27
  <script type="text/javascript" src="../_static/underscore.js"></script>
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
30
- <link rel="top" title="groonga v2.0.9 documentation" href="../index.html" />
30
+ <link rel="top" title="groonga v2.1.0 documentation" href="../index.html" />
31
31
  <link rel="up" title="4. Tutorial" href="../tutorial.html" />
32
32
  <link rel="next" title="4.2. Remote access" href="network.html" />
33
33
  <link rel="prev" title="4. Tutorial" href="../tutorial.html" />
@@ -62,7 +62,7 @@
62
62
  <li class="right" >
63
63
  <a href="../tutorial.html" title="4. Tutorial"
64
64
  accesskey="P">previous</a> |</li>
65
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
65
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
66
66
  <li><a href="../tutorial.html" accesskey="U">4. Tutorial</a> &raquo;</li>
67
67
  </ul>
68
68
  </div>
@@ -1069,7 +1069,7 @@ select --table Site --offset 7 --limit 3
1069
1069
  <li class="right" >
1070
1070
  <a href="../tutorial.html" title="4. Tutorial"
1071
1071
  >previous</a> |</li>
1072
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
1072
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
1073
1073
  <li><a href="../tutorial.html" >4. Tutorial</a> &raquo;</li>
1074
1074
  </ul>
1075
1075
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.9. 全文検索の語彙表に対する追加情報 &mdash; groonga v2.0.9 documentation</title>
12
+ <title>4.9. 全文検索の語彙表に対する追加情報 &mdash; groonga v2.1.0 documentation</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '2.0.9',
20
+ VERSION: '2.1.0',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -27,7 +27,7 @@
27
27
  <script type="text/javascript" src="../_static/underscore.js"></script>
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
30
- <link rel="top" title="groonga v2.0.9 documentation" href="../index.html" />
30
+ <link rel="top" title="groonga v2.1.0 documentation" href="../index.html" />
31
31
  <link rel="up" title="4. Tutorial" href="../tutorial.html" />
32
32
  <link rel="next" title="4.10. マイクロブログ検索システムの作成" href="micro_blog.html" />
33
33
  <link rel="prev" title="4.8. パトリシア木による前方一致検索" href="patricia_trie.html" />
@@ -62,7 +62,7 @@
62
62
  <li class="right" >
63
63
  <a href="patricia_trie.html" title="4.8. パトリシア木による前方一致検索"
64
64
  accesskey="P">previous</a> |</li>
65
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
65
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
66
66
  <li><a href="../tutorial.html" accesskey="U">4. Tutorial</a> &raquo;</li>
67
67
  </ul>
68
68
  </div>
@@ -124,7 +124,7 @@
124
124
  <li class="right" >
125
125
  <a href="patricia_trie.html" title="4.8. パトリシア木による前方一致検索"
126
126
  >previous</a> |</li>
127
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
127
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
128
128
  <li><a href="../tutorial.html" >4. Tutorial</a> &raquo;</li>
129
129
  </ul>
130
130
  </div>
@@ -9,7 +9,7 @@
9
9
  <head>
10
10
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
11
11
 
12
- <title>4.7. match_columnsパラメータ &mdash; groonga v2.0.9 documentation</title>
12
+ <title>4.7. match_columnsパラメータ &mdash; groonga v2.1.0 documentation</title>
13
13
 
14
14
  <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
15
15
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
@@ -17,7 +17,7 @@
17
17
  <script type="text/javascript">
18
18
  var DOCUMENTATION_OPTIONS = {
19
19
  URL_ROOT: '../',
20
- VERSION: '2.0.9',
20
+ VERSION: '2.1.0',
21
21
  COLLAPSE_INDEX: false,
22
22
  FILE_SUFFIX: '.html',
23
23
  HAS_SOURCE: true
@@ -27,7 +27,7 @@
27
27
  <script type="text/javascript" src="../_static/underscore.js"></script>
28
28
  <script type="text/javascript" src="../_static/doctools.js"></script>
29
29
  <link rel="shortcut icon" href="../_static/favicon.ico"/>
30
- <link rel="top" title="groonga v2.0.9 documentation" href="../index.html" />
30
+ <link rel="top" title="groonga v2.1.0 documentation" href="../index.html" />
31
31
  <link rel="up" title="4. Tutorial" href="../tutorial.html" />
32
32
  <link rel="next" title="4.8. パトリシア木による前方一致検索" href="patricia_trie.html" />
33
33
  <link rel="prev" title="4.6. タグ検索・参照関係の逆引き" href="index.html" />
@@ -62,7 +62,7 @@
62
62
  <li class="right" >
63
63
  <a href="index.html" title="4.6. タグ検索・参照関係の逆引き"
64
64
  accesskey="P">previous</a> |</li>
65
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
65
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
66
66
  <li><a href="../tutorial.html" accesskey="U">4. Tutorial</a> &raquo;</li>
67
67
  </ul>
68
68
  </div>
@@ -414,8 +414,265 @@ select --table Blog2 --match_columns title --query message
414
414
  <h2>4.7.2. インデックス名を指定した全文検索<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
415
415
  <p>執筆中です。</p>
416
416
  </div>
417
+ <div class="section" id="nested-index-search-among-related-table-by-column-index">
418
+ <span id="nested-index-search"></span><h2>4.7.3. Nested index search among related table by column index<a class="headerlink" href="#nested-index-search-among-related-table-by-column-index" title="Permalink to this headline">¶</a></h2>
419
+ <p>If there are relationships among multiple table with column index,
420
+ you can search multiple table by specifying reference column name.</p>
421
+ <p>Here is the concrete example.</p>
422
+ <p>There are tables which store blog articles, comments for articles.
423
+ The table which stores articles has columns for article and comment.
424
+ And the comment column refers Comments table.
425
+ The table which stores comments has columns for comment and column index to article table.</p>
426
+ <p>if you want to search the articles which contain specified keyword in comment,
427
+ you need to execute fulltext search for table of comment, then search the records which contains fulltext search results.</p>
428
+ <p>But, you can search the records by specifying the reference column index at once.</p>
429
+ <p>Here is the sample schema.</p>
430
+ <p>Execution example:</p>
431
+ <div class="highlight-none"><div class="highlight"><pre>table_create Comments TABLE_HASH_KEY UInt32
432
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
433
+ column_create Comments content COLUMN_SCALAR ShortText
434
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
435
+ table_create Articles TABLE_NO_KEY
436
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
437
+ column_create Articles content COLUMN_SCALAR Text
438
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
439
+ column_create Articles comment COLUMN_SCALAR Comments
440
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
441
+ table_create Lexicon TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
442
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
443
+ column_create Lexicon articles_content COLUMN_INDEX|WITH_POSITION Articles content
444
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
445
+ column_create Lexicon comments_content COLUMN_INDEX|WITH_POSITION Comments content
446
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
447
+ column_create Comments article COLUMN_INDEX Articles comment
448
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
449
+ </pre></div>
450
+ </div>
451
+ <p>Here is the sample data.</p>
452
+ <p>Execution example:</p>
453
+ <div class="highlight-none"><div class="highlight"><pre>load --table Comments
454
+ [
455
+ {&quot;_key&quot;: 1, &quot;content&quot;: &quot;I&#39;m using groonga too!&quot;},
456
+ {&quot;_key&quot;: 2, &quot;content&quot;: &quot;I&#39;m using groonga and mroonga!&quot;},
457
+ {&quot;_key&quot;: 3, &quot;content&quot;: &quot;I&#39;m using mroonga too!&quot;}
458
+ ]
459
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
460
+ load --table Articles
461
+ [
462
+ {&quot;content&quot;: &quot;Groonga is fast!&quot;, &quot;comment&quot;: 1},
463
+ {&quot;content&quot;: &quot;Groonga is useful!&quot;},
464
+ {&quot;content&quot;: &quot;Mroonga is fast!&quot;, &quot;comment&quot;: 3}
465
+ ]
466
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
467
+ </pre></div>
468
+ </div>
469
+ <p>You can write the query that search the records which contains specified keyword as a comment, then fetch the articles which refers to it.</p>
470
+ <p>Query for searching the records described above:</p>
471
+ <div class="highlight-none"><div class="highlight"><pre>select Articles --match_columns comment.content --query groonga --output_columns &quot;_id, _score, *&quot;
472
+ </pre></div>
473
+ </div>
474
+ <p>You need to concatenate comment column of Articles table and content column of Comments table with period(.) as --match_columns arguments.</p>
475
+ <p>At first, this query execute fulltext search from content of Comments table, then fetch the records of Articles table which refers to already searched records of Comments table.
476
+ (Because of this, if you comment out the query which create column index 'article' of Comments table, you can't get intended search results.)</p>
477
+ <p>Execution example:</p>
478
+ <div class="highlight-none"><div class="highlight"><pre>select Articles --match_columns comment.content --query groonga --output_columns &quot;_id, _score, *&quot;
479
+ # [
480
+ # [
481
+ # 0,
482
+ # 1337566253.89858,
483
+ # 0.000355720520019531
484
+ # ],
485
+ # [
486
+ # [
487
+ # [
488
+ # 1
489
+ # ],
490
+ # [
491
+ # [
492
+ # &quot;_id&quot;,
493
+ # &quot;UInt32&quot;
494
+ # ],
495
+ # [
496
+ # &quot;_score&quot;,
497
+ # &quot;Int32&quot;
498
+ # ],
499
+ # [
500
+ # &quot;comment&quot;,
501
+ # &quot;Comments&quot;
502
+ # ],
503
+ # [
504
+ # &quot;content&quot;,
505
+ # &quot;Text&quot;
506
+ # ]
507
+ # ],
508
+ # [
509
+ # 1,
510
+ # 1,
511
+ # 1,
512
+ # &quot;Groonga is fast!&quot;
513
+ # ]
514
+ # ]
515
+ # ]
516
+ # ]
517
+ </pre></div>
518
+ </div>
519
+ <p>Now, you can search articles which contains specific keywords as a comment.</p>
520
+ <p>The feature of nested index search is not limited to the relationship between two table only.</p>
521
+ <p>Here is the sample schema similar to previous one. The difference is added table which express 'Reply' and relationship is extended to three tables.</p>
522
+ <p>Execution example:</p>
523
+ <div class="highlight-none"><div class="highlight"><pre>table_create Replies2 TABLE_HASH_KEY UInt32
524
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
525
+ column_create Replies2 content COLUMN_SCALAR ShortText
526
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
527
+ table_create Comments2 TABLE_HASH_KEY UInt32
528
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
529
+ column_create Comments2 content COLUMN_SCALAR ShortText
530
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
531
+ column_create Comments2 comment COLUMN_SCALAR Replies2
532
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
533
+ table_create Articles2 TABLE_NO_KEY
534
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
535
+ column_create Articles2 content COLUMN_SCALAR Text
536
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
537
+ column_create Articles2 comment COLUMN_SCALAR Comments2
538
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
539
+ table_create Lexicon2 TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
540
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
541
+ column_create Lexicon2 articles_content COLUMN_INDEX|WITH_POSITION Articles2 content
542
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
543
+ column_create Lexicon2 comments_content COLUMN_INDEX|WITH_POSITION Comments2 content
544
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
545
+ column_create Lexicon2 replies_content COLUMN_INDEX|WITH_POSITION Replies2 content
546
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
547
+ column_create Comments2 article COLUMN_INDEX Articles2 comment
548
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
549
+ column_create Replies2 reply_to COLUMN_INDEX Comments2 comment
550
+ # [[0, 1337566253.89858, 0.000355720520019531], true]
551
+ </pre></div>
552
+ </div>
553
+ <p>Here is the sample data.</p>
554
+ <p>Execution example:</p>
555
+ <div class="highlight-none"><div class="highlight"><pre>load --table Replies2
556
+ [
557
+ {&quot;_key&quot;: 1, &quot;content&quot;: &quot;I&#39;m using rroonga too!&quot;},
558
+ {&quot;_key&quot;: 2, &quot;content&quot;: &quot;I&#39;m using groonga and mroonga and rroonga!&quot;},
559
+ {&quot;_key&quot;: 3, &quot;content&quot;: &quot;I&#39;m using nroonga too!&quot;}
560
+ ]
561
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
562
+ load --table Comments2
563
+ [
564
+ {&quot;_key&quot;: 1, &quot;content&quot;: &quot;I&#39;m using groonga too!&quot;, &quot;comment&quot;: 1},
565
+ {&quot;_key&quot;: 2, &quot;content&quot;: &quot;I&#39;m using groonga and mroonga!&quot;, &quot;comment&quot;: 2},
566
+ {&quot;_key&quot;: 3, &quot;content&quot;: &quot;I&#39;m using mroonga too!&quot;}
567
+ ]
568
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
569
+ load --table Articles2
570
+ [
571
+ {&quot;content&quot;: &quot;Groonga is fast!&quot;, &quot;comment&quot;: 1},
572
+ {&quot;content&quot;: &quot;Groonga is useful!&quot;, &quot;comment&quot;: 2},
573
+ {&quot;content&quot;: &quot;Mroonga is fast!&quot;, &quot;comment&quot;: 3}
574
+ ]
575
+ # [[0, 1337566253.89858, 0.000355720520019531], 3]
576
+ </pre></div>
577
+ </div>
578
+ <p>Query for searching the records described above:</p>
579
+ <div class="highlight-none"><div class="highlight"><pre>select Articles2 --match_columns comment.content --query mroonga --output_columns &quot;_id, _score, *&quot;
580
+ select Articles2 --match_columns comment.comment.content --query mroonga --output_columns &quot;_id, _score, *&quot;
581
+ </pre></div>
582
+ </div>
583
+ <p>The first query searches 'mroonga' from Comments2 table, the second one searches 'mroonga' from Replies2 and Comment2 table by using reference column index.</p>
584
+ <p>Execution example:</p>
585
+ <div class="highlight-none"><div class="highlight"><pre>select Articles2 --match_columns comment.content --query mroonga --output_columns &quot;_id, _score, *&quot;
586
+ # [
587
+ # [
588
+ # 0,
589
+ # 1337566253.89858,
590
+ # 0.000355720520019531
591
+ # ],
592
+ # [
593
+ # [
594
+ # [
595
+ # 2
596
+ # ],
597
+ # [
598
+ # [
599
+ # &quot;_id&quot;,
600
+ # &quot;UInt32&quot;
601
+ # ],
602
+ # [
603
+ # &quot;_score&quot;,
604
+ # &quot;Int32&quot;
605
+ # ],
606
+ # [
607
+ # &quot;comment&quot;,
608
+ # &quot;Comments2&quot;
609
+ # ],
610
+ # [
611
+ # &quot;content&quot;,
612
+ # &quot;Text&quot;
613
+ # ]
614
+ # ],
615
+ # [
616
+ # 2,
617
+ # 1,
618
+ # 2,
619
+ # &quot;Groonga is useful!&quot;
620
+ # ],
621
+ # [
622
+ # 3,
623
+ # 1,
624
+ # 3,
625
+ # &quot;Mroonga is fast!&quot;
626
+ # ]
627
+ # ]
628
+ # ]
629
+ # ]
630
+ select Articles2 --match_columns comment.comment.content --query mroonga --output_columns &quot;_id, _score, *&quot;
631
+ # [
632
+ # [
633
+ # 0,
634
+ # 1337566253.89858,
635
+ # 0.000355720520019531
636
+ # ],
637
+ # [
638
+ # [
639
+ # [
640
+ # 1
641
+ # ],
642
+ # [
643
+ # [
644
+ # &quot;_id&quot;,
645
+ # &quot;UInt32&quot;
646
+ # ],
647
+ # [
648
+ # &quot;_score&quot;,
649
+ # &quot;Int32&quot;
650
+ # ],
651
+ # [
652
+ # &quot;comment&quot;,
653
+ # &quot;Comments2&quot;
654
+ # ],
655
+ # [
656
+ # &quot;content&quot;,
657
+ # &quot;Text&quot;
658
+ # ]
659
+ # ],
660
+ # [
661
+ # 2,
662
+ # 1,
663
+ # 2,
664
+ # &quot;Groonga is useful!&quot;
665
+ # ]
666
+ # ]
667
+ # ]
668
+ # ]
669
+ </pre></div>
670
+ </div>
671
+ <p>As a result, the first query matches two article because of Comments2 table has two records which contains 'mroonga' as keyword.</p>
672
+ <p>On the other hand, the second one matches one article only because of Replies2 table has only one record which contains 'mroonga' as keyword, and there is one record which contains same keyword and refers to the record in Comments2 table.</p>
673
+ </div>
417
674
  <div class="section" id="id5">
418
- <h2>4.7.3. インデックスの重み<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
675
+ <h2>4.7.4. インデックスの重み<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h2>
419
676
  <p>執筆中です。</p>
420
677
  </div>
421
678
  </div>
@@ -435,7 +692,8 @@ select --table Blog2 --match_columns title --query message
435
692
  </ul>
436
693
  </li>
437
694
  <li><a class="reference internal" href="#id4">4.7.2. インデックス名を指定した全文検索</a></li>
438
- <li><a class="reference internal" href="#id5">4.7.3. インデックスの重み</a></li>
695
+ <li><a class="reference internal" href="#nested-index-search-among-related-table-by-column-index">4.7.3. Nested index search among related table by column index</a></li>
696
+ <li><a class="reference internal" href="#id5">4.7.4. インデックスの重み</a></li>
439
697
  </ul>
440
698
  </li>
441
699
  </ul>
@@ -480,7 +738,7 @@ select --table Blog2 --match_columns title --query message
480
738
  <li class="right" >
481
739
  <a href="index.html" title="4.6. タグ検索・参照関係の逆引き"
482
740
  >previous</a> |</li>
483
- <li><a href="../index.html">groonga v2.0.9 documentation</a> &raquo;</li>
741
+ <li><a href="../index.html">groonga v2.1.0 documentation</a> &raquo;</li>
484
742
  <li><a href="../tutorial.html" >4. Tutorial</a> &raquo;</li>
485
743
  </ul>
486
744
  </div>