rroonga 1.0.1-x86-mingw32 → 1.1.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (387) hide show
  1. data/NEWS.ja.rdoc +146 -0
  2. data/NEWS.rdoc +146 -0
  3. data/README.ja.rdoc +7 -5
  4. data/README.rdoc +6 -5
  5. data/Rakefile +170 -18
  6. data/benchmark/create-wikipedia-database.rb +212 -0
  7. data/benchmark/read-write-many-small-items.rb +0 -0
  8. data/benchmark/repeat-load.rb +213 -0
  9. data/benchmark/select.rb +1052 -0
  10. data/benchmark/write-many-small-items.rb +0 -0
  11. data/example/bookmark.rb +94 -91
  12. data/example/index-html.rb +0 -0
  13. data/ext/groonga/extconf.rb +6 -6
  14. data/ext/groonga/rb-grn-accessor.c +1 -1
  15. data/ext/groonga/rb-grn-array.c +1 -1
  16. data/ext/groonga/rb-grn-column.c +201 -10
  17. data/ext/groonga/rb-grn-context.c +119 -20
  18. data/ext/groonga/rb-grn-database.c +27 -4
  19. data/ext/groonga/rb-grn-exception.c +15 -0
  20. data/ext/groonga/rb-grn-expression.c +14 -10
  21. data/ext/groonga/rb-grn-hash.c +4 -4
  22. data/ext/groonga/rb-grn-index-column.c +10 -6
  23. data/ext/groonga/rb-grn-logger.c +2 -2
  24. data/ext/groonga/rb-grn-object.c +33 -29
  25. data/ext/groonga/{rb-grn-operation.c → rb-grn-operator.c} +89 -87
  26. data/ext/groonga/rb-grn-patricia-trie.c +12 -12
  27. data/ext/groonga/rb-grn-plugin.c +134 -0
  28. data/ext/groonga/rb-grn-procedure.c +1 -1
  29. data/ext/groonga/rb-grn-query.c +7 -7
  30. data/ext/groonga/rb-grn-snippet.c +4 -3
  31. data/ext/groonga/rb-grn-table-cursor.c +1 -1
  32. data/ext/groonga/rb-grn-table-key-support.c +27 -24
  33. data/ext/groonga/rb-grn-table.c +119 -58
  34. data/ext/groonga/rb-grn-type.c +1 -1
  35. data/ext/groonga/rb-grn-utils.c +20 -19
  36. data/ext/groonga/rb-grn-variable.c +1 -1
  37. data/ext/groonga/rb-grn-view-accessor.c +1 -1
  38. data/ext/groonga/rb-grn-view.c +1 -1
  39. data/ext/groonga/rb-grn.h +26 -20
  40. data/ext/groonga/rb-groonga.c +6 -4
  41. data/extconf.rb +10 -4
  42. data/html/developer.html +8 -2
  43. data/html/favicon.ico +0 -0
  44. data/html/favicon.svg +591 -0
  45. data/html/index.html +78 -12
  46. data/html/logo.svg +612 -0
  47. data/html/ranguba.css +92 -7
  48. data/html/readme.svg +256 -0
  49. data/lib/groonga.so +0 -0
  50. data/lib/groonga/context.rb +52 -1
  51. data/lib/groonga/expression-builder.rb +42 -6
  52. data/lib/groonga/record.rb +84 -15
  53. data/lib/groonga/schema.rb +524 -122
  54. data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.ja.rdoc +326 -0
  55. data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.rdoc +328 -0
  56. data/pkg/rroonga-1.1.0-x86-mingw32/README.ja.rdoc +68 -0
  57. data/pkg/rroonga-1.1.0-x86-mingw32/README.rdoc +68 -0
  58. data/pkg/rroonga-1.1.0-x86-mingw32/text/expression.rdoc +285 -0
  59. data/{text/TUTORIAL.ja.rdoc → pkg/rroonga-1.1.0-x86-mingw32/text/tutorial.ja.rdoc} +165 -126
  60. data/pkg/rroonga-1.1.0/NEWS.ja.rdoc +326 -0
  61. data/pkg/rroonga-1.1.0/NEWS.rdoc +328 -0
  62. data/pkg/rroonga-1.1.0/README.ja.rdoc +68 -0
  63. data/pkg/rroonga-1.1.0/README.rdoc +68 -0
  64. data/pkg/rroonga-1.1.0/text/expression.rdoc +285 -0
  65. data/pkg/rroonga-1.1.0/text/tutorial.ja.rdoc +433 -0
  66. data/rroonga-build.rb +3 -3
  67. data/test/run-test.rb +1 -1
  68. data/test/test-array.rb +4 -0
  69. data/test/test-column.rb +31 -1
  70. data/test/test-context-select.rb +45 -14
  71. data/test/test-context.rb +44 -0
  72. data/test/test-database.rb +21 -1
  73. data/test/test-expression-builder.rb +46 -5
  74. data/test/test-fix-size-column.rb +12 -0
  75. data/test/test-hash.rb +10 -4
  76. data/test/test-index-column.rb +33 -0
  77. data/test/test-patricia-trie.rb +6 -0
  78. data/test/test-plugin.rb +29 -0
  79. data/test/test-record.rb +84 -1
  80. data/test/test-remote.rb +3 -2
  81. data/test/test-schema-create-table.rb +32 -2
  82. data/test/test-schema-type.rb +167 -0
  83. data/test/test-schema.rb +159 -12
  84. data/test/test-table-select-weight.rb +20 -1
  85. data/test/test-table-select.rb +12 -0
  86. data/test/test-table.rb +65 -0
  87. data/test/test-variable-size-column.rb +12 -0
  88. data/text/tutorial.ja.rdoc +433 -0
  89. data/vendor/local/bin/grntest.exe +0 -0
  90. data/vendor/local/bin/groonga.exe +0 -0
  91. data/vendor/local/bin/libgroonga-0.dll +0 -0
  92. data/vendor/local/etc/groonga/init.d/redhat/groonga +1 -9
  93. data/vendor/local/include/groonga/groonga.h +156 -6
  94. data/vendor/local/include/groonga/groonga/plugin.h +44 -0
  95. data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
  96. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
  97. data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
  98. data/vendor/local/lib/groonga/{modules → plugins}/suggest/suggest.la +2 -2
  99. data/vendor/local/lib/libgroonga.a +0 -0
  100. data/vendor/local/lib/libgroonga.dll.a +0 -0
  101. data/vendor/local/lib/libgroonga.la +1 -1
  102. data/vendor/local/lib/pkgconfig/groonga.pc +3 -2
  103. data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +14 -3
  104. data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +3 -1
  105. data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +19 -3
  106. data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -0
  107. data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -0
  108. data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -0
  109. data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -0
  110. data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -0
  111. data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -0
  112. data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -0
  113. metadata +91 -341
  114. data/html/favicon.xcf +0 -0
  115. data/html/logo.xcf +0 -0
  116. data/lib/1.8/groonga.so +0 -0
  117. data/lib/1.9/groonga.so +0 -0
  118. data/license/GPL +0 -340
  119. data/license/RUBY +0 -59
  120. data/vendor/local/lib/groonga/modules/suggest/suggest.a +0 -0
  121. data/vendor/local/lib/groonga/modules/suggest/suggest.dll +0 -0
  122. data/vendor/local/lib/groonga/modules/suggest/suggest.dll.a +0 -0
  123. data/vendor/local/share/groonga/doc/ja/html/.buildinfo +0 -4
  124. data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +0 -56
  125. data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +0 -10
  126. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +0 -52
  127. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +0 -164
  128. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +0 -61
  129. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +0 -93
  130. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +0 -97
  131. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +0 -58
  132. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +0 -114
  133. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +0 -57
  134. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +0 -68
  135. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +0 -62
  136. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +0 -98
  137. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +0 -65
  138. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +0 -69
  139. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +0 -66
  140. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +0 -38
  141. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +0 -247
  142. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +0 -38
  143. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +0 -59
  144. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +0 -79
  145. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +0 -111
  146. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +0 -87
  147. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +0 -50
  148. data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +0 -53
  149. data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +0 -102
  150. data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +0 -78
  151. data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +0 -103
  152. data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +0 -10
  153. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +0 -18
  154. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +0 -38
  155. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +0 -212
  156. data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +0 -114
  157. data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +0 -226
  158. data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +0 -43
  159. data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +0 -10
  160. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +0 -48
  161. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +0 -51
  162. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +0 -54
  163. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +0 -55
  164. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +0 -34
  165. data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +0 -41
  166. data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +0 -64
  167. data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +0 -259
  168. data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +0 -52
  169. data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +0 -21
  170. data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +0 -114
  171. data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +0 -199
  172. data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +0 -12
  173. data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +0 -38
  174. data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +0 -14
  175. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +0 -10
  176. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +0 -293
  177. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +0 -100
  178. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +0 -72
  179. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +0 -111
  180. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +0 -65
  181. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +0 -91
  182. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +0 -92
  183. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +0 -53
  184. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +0 -9
  185. data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +0 -486
  186. data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +0 -118
  187. data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +0 -509
  188. data/vendor/local/share/groonga/doc/ja/html/_static/default.css +0 -277
  189. data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +0 -247
  190. data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
  191. data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +0 -6240
  192. data/vendor/local/share/groonga/doc/ja/html/_static/minus.png +0 -0
  193. data/vendor/local/share/groonga/doc/ja/html/_static/plus.png +0 -0
  194. data/vendor/local/share/groonga/doc/ja/html/_static/pygments.css +0 -61
  195. data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +0 -518
  196. data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +0 -147
  197. data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +0 -16
  198. data/vendor/local/share/groonga/doc/ja/html/characteristic.html +0 -162
  199. data/vendor/local/share/groonga/doc/ja/html/commands.html +0 -139
  200. data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +0 -173
  201. data/vendor/local/share/groonga/doc/ja/html/commands/check.html +0 -285
  202. data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +0 -180
  203. data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +0 -210
  204. data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +0 -220
  205. data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +0 -183
  206. data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +0 -221
  207. data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +0 -177
  208. data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +0 -182
  209. data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +0 -177
  210. data/vendor/local/share/groonga/doc/ja/html/commands/load.html +0 -208
  211. data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +0 -187
  212. data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +0 -190
  213. data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +0 -188
  214. data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +0 -156
  215. data/vendor/local/share/groonga/doc/ja/html/commands/select.html +0 -331
  216. data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +0 -156
  217. data/vendor/local/share/groonga/doc/ja/html/commands/status.html +0 -179
  218. data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +0 -191
  219. data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +0 -222
  220. data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +0 -202
  221. data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +0 -173
  222. data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +0 -175
  223. data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +0 -180
  224. data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +0 -161
  225. data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +0 -182
  226. data/vendor/local/share/groonga/doc/ja/html/developer.html +0 -118
  227. data/vendor/local/share/groonga/doc/ja/html/developer/com.html +0 -136
  228. data/vendor/local/share/groonga/doc/ja/html/developer/document.html +0 -159
  229. data/vendor/local/share/groonga/doc/ja/html/developer/query.html +0 -336
  230. data/vendor/local/share/groonga/doc/ja/html/developer/test.html +0 -220
  231. data/vendor/local/share/groonga/doc/ja/html/execfile.html +0 -370
  232. data/vendor/local/share/groonga/doc/ja/html/expr.html +0 -157
  233. data/vendor/local/share/groonga/doc/ja/html/functions.html +0 -122
  234. data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +0 -162
  235. data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +0 -170
  236. data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +0 -173
  237. data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +0 -172
  238. data/vendor/local/share/groonga/doc/ja/html/functions/now.html +0 -152
  239. data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +0 -159
  240. data/vendor/local/share/groonga/doc/ja/html/genindex.html +0 -227
  241. data/vendor/local/share/groonga/doc/ja/html/grnslap.html +0 -183
  242. data/vendor/local/share/groonga/doc/ja/html/grntest.html +0 -368
  243. data/vendor/local/share/groonga/doc/ja/html/http.html +0 -163
  244. data/vendor/local/share/groonga/doc/ja/html/index.html +0 -291
  245. data/vendor/local/share/groonga/doc/ja/html/install.html +0 -228
  246. data/vendor/local/share/groonga/doc/ja/html/news.html +0 -310
  247. data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
  248. data/vendor/local/share/groonga/doc/ja/html/process.html +0 -120
  249. data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +0 -147
  250. data/vendor/local/share/groonga/doc/ja/html/reference.html +0 -174
  251. data/vendor/local/share/groonga/doc/ja/html/search.html +0 -96
  252. data/vendor/local/share/groonga/doc/ja/html/searchindex.js +0 -1
  253. data/vendor/local/share/groonga/doc/ja/html/tutorial.html +0 -172
  254. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +0 -388
  255. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +0 -214
  256. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +0 -183
  257. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +0 -212
  258. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +0 -169
  259. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +0 -209
  260. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +0 -212
  261. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +0 -139
  262. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +0 -114
  263. data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +0 -458
  264. data/vendor/local/share/groonga/doc/ja/html/type.html +0 -217
  265. data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
  266. data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +0 -56
  267. data/vendor/local/share/groonga/doc/ja/source/commands.txt +0 -10
  268. data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +0 -52
  269. data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +0 -164
  270. data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +0 -61
  271. data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +0 -93
  272. data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +0 -97
  273. data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +0 -58
  274. data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +0 -114
  275. data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +0 -57
  276. data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +0 -68
  277. data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +0 -62
  278. data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +0 -98
  279. data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +0 -65
  280. data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +0 -69
  281. data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +0 -66
  282. data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +0 -38
  283. data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +0 -247
  284. data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +0 -38
  285. data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +0 -59
  286. data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +0 -111
  287. data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +0 -87
  288. data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +0 -50
  289. data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +0 -53
  290. data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +0 -102
  291. data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +0 -78
  292. data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +0 -103
  293. data/vendor/local/share/groonga/doc/ja/source/conf.py +0 -265
  294. data/vendor/local/share/groonga/doc/ja/source/developer.txt +0 -10
  295. data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +0 -18
  296. data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +0 -38
  297. data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +0 -212
  298. data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +0 -114
  299. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +0 -6
  300. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +0 -5
  301. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +0 -5
  302. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +0 -5
  303. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +0 -5
  304. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +0 -9
  305. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +0 -5
  306. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +0 -5
  307. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +0 -5
  308. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +0 -5
  309. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +0 -5
  310. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +0 -7
  311. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +0 -5
  312. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +0 -5
  313. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +0 -16
  314. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +0 -5
  315. data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +0 -5
  316. data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +0 -8
  317. data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +0 -6
  318. data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +0 -12
  319. data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +0 -18
  320. data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +0 -10
  321. data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +0 -10
  322. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +0 -5
  323. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +0 -7
  324. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +0 -7
  325. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +0 -13
  326. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +0 -5
  327. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +0 -5
  328. data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +0 -5
  329. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +0 -24
  330. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +0 -5
  331. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +0 -5
  332. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +0 -5
  333. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +0 -5
  334. data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +0 -5
  335. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +0 -25
  336. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +0 -9
  337. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +0 -21
  338. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +0 -7
  339. data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +0 -5
  340. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +0 -22
  341. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +0 -9
  342. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +0 -20
  343. data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +0 -9
  344. data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +0 -14
  345. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +0 -5
  346. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +0 -5
  347. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +0 -5
  348. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +0 -5
  349. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +0 -5
  350. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +0 -5
  351. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +0 -5
  352. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +0 -5
  353. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +0 -5
  354. data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +0 -5
  355. data/vendor/local/share/groonga/doc/ja/source/execfile.txt +0 -226
  356. data/vendor/local/share/groonga/doc/ja/source/expr.txt +0 -43
  357. data/vendor/local/share/groonga/doc/ja/source/functions.txt +0 -10
  358. data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +0 -48
  359. data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +0 -51
  360. data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +0 -54
  361. data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +0 -55
  362. data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +0 -34
  363. data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +0 -41
  364. data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +0 -64
  365. data/vendor/local/share/groonga/doc/ja/source/grntest.txt +0 -259
  366. data/vendor/local/share/groonga/doc/ja/source/http.txt +0 -52
  367. data/vendor/local/share/groonga/doc/ja/source/index.txt +0 -21
  368. data/vendor/local/share/groonga/doc/ja/source/install.txt +0 -114
  369. data/vendor/local/share/groonga/doc/ja/source/news.txt +0 -199
  370. data/vendor/local/share/groonga/doc/ja/source/process.txt +0 -12
  371. data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +0 -38
  372. data/vendor/local/share/groonga/doc/ja/source/rdoc.py +0 -762
  373. data/vendor/local/share/groonga/doc/ja/source/reference.txt +0 -14
  374. data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +0 -10
  375. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +0 -293
  376. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +0 -100
  377. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +0 -72
  378. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +0 -111
  379. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +0 -65
  380. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +0 -91
  381. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +0 -92
  382. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +0 -53
  383. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +0 -9
  384. data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +0 -486
  385. data/vendor/local/share/groonga/doc/ja/source/type.txt +0 -118
  386. data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +0 -113
  387. data/vendor/local/share/man/man1/groonga.1 +0 -5498
@@ -1,139 +0,0 @@
1
-
2
-
3
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml">
7
- <head>
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
-
10
- <title>3.8. 主キーによる前方一致検索 &mdash; groonga v1.0.2 documentation</title>
11
- <link rel="stylesheet" href="../_static/default.css" type="text/css" />
12
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13
- <script type="text/javascript">
14
- var DOCUMENTATION_OPTIONS = {
15
- URL_ROOT: '../',
16
- VERSION: '1.0.2',
17
- COLLAPSE_INDEX: false,
18
- FILE_SUFFIX: '.html',
19
- HAS_SOURCE: true
20
- };
21
- </script>
22
- <script type="text/javascript" src="../_static/jquery.js"></script>
23
- <script type="text/javascript" src="../_static/underscore.js"></script>
24
- <script type="text/javascript" src="../_static/doctools.js"></script>
25
- <link rel="top" title="groonga v1.0.2 documentation" href="../index.html" />
26
- <link rel="up" title="3. チュートリアル" href="../tutorial.html" />
27
- <link rel="next" title="3.9. 全文検索の語彙表に対する追加情報" href="tutorial09.html" />
28
- <link rel="prev" title="3.7. match_columnsパラメータ" href="tutorial07.html" />
29
- </head>
30
- <body>
31
- <div class="related">
32
- <h3>Navigation</h3>
33
- <ul>
34
- <li class="right" style="margin-right: 10px">
35
- <a href="../genindex.html" title="General Index"
36
- accesskey="I">index</a></li>
37
- <li class="right" >
38
- <a href="tutorial09.html" title="3.9. 全文検索の語彙表に対する追加情報"
39
- accesskey="N">next</a> |</li>
40
- <li class="right" >
41
- <a href="tutorial07.html" title="3.7. match_columnsパラメータ"
42
- accesskey="P">previous</a> |</li>
43
- <li><a href="../index.html">groonga v1.0.2 documentation</a> &raquo;</li>
44
- <li><a href="../tutorial.html" accesskey="U">3. チュートリアル</a> &raquo;</li>
45
- </ul>
46
- </div>
47
-
48
- <div class="document">
49
- <div class="documentwrapper">
50
- <div class="bodywrapper">
51
- <div class="body">
52
-
53
- <div class="section" id="id1">
54
- <h1>3.8. 主キーによる前方一致検索<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
55
- <p>groongaのテーブルは、テーブル作成時にパトリシア木オプションを指定すると、前方一致検索を行うことができます。また、追加のオプションを指定することにより、主キーの後方一致検索をも行うことができます。</p>
56
- <div class="section" id="id2">
57
- <h2>3.8.1. 主キーによる前方一致検索<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
58
- <p>table_createコマンドのflagsオプションにTABLE_PAT_KEYを指定することで、主キーによる前方一致検索ができるようになります。</p>
59
- <p>実行例</p>
60
- <div class="highlight-none"><div class="highlight"><pre>&gt; table_create --name PatPre --flags TABLE_PAT_KEY --key_type ShortText
61
- [[0,1280378814.93737,0.10571],true]
62
- &gt; load --table PatPre
63
- &gt; [
64
- &gt; {&quot;_key&quot;:&quot;ひろゆき&quot;},
65
- &gt; {&quot;_key&quot;:&quot;まろゆき&quot;},
66
- &gt; {&quot;_key&quot;:&quot;ひろあき&quot;}
67
- &gt; ]
68
- [[0,1280378815.24384,1.001289],3]
69
- &gt; select --table PatPre --query _key:@ひろ
70
- [[0,1280378816.44578,0.022706],[[[2],[[&quot;_id&quot;,&quot;UInt32&quot;],[&quot;_key&quot;,&quot;ShortText&quot;]],[3,&quot;ひろあき&quot;],[1,&quot;ひろゆき&quot;]]]]
71
- </pre></div>
72
- </div>
73
- </div>
74
- </div>
75
-
76
-
77
- </div>
78
- </div>
79
- </div>
80
- <div class="sphinxsidebar">
81
- <div class="sphinxsidebarwrapper">
82
- <h3><a href="../index.html">Table Of Contents</a></h3>
83
- <ul>
84
- <li><a class="reference internal" href="#">3.8. 主キーによる前方一致検索</a><ul>
85
- <li><a class="reference internal" href="#id2">3.8.1. 主キーによる前方一致検索</a></li>
86
- </ul>
87
- </li>
88
- </ul>
89
-
90
- <h4>Previous topic</h4>
91
- <p class="topless"><a href="tutorial07.html"
92
- title="previous chapter">3.7. match_columnsパラメータ</a></p>
93
- <h4>Next topic</h4>
94
- <p class="topless"><a href="tutorial09.html"
95
- title="next chapter">3.9. 全文検索の語彙表に対する追加情報</a></p>
96
- <h3>This Page</h3>
97
- <ul class="this-page-menu">
98
- <li><a href="../_sources/tutorial/tutorial08.txt"
99
- rel="nofollow">Show Source</a></li>
100
- </ul>
101
- <div id="searchbox" style="display: none">
102
- <h3>Quick search</h3>
103
- <form class="search" action="../search.html" method="get">
104
- <input type="text" name="q" size="18" />
105
- <input type="submit" value="Go" />
106
- <input type="hidden" name="check_keywords" value="yes" />
107
- <input type="hidden" name="area" value="default" />
108
- </form>
109
- <p class="searchtip" style="font-size: 90%">
110
- Enter search terms or a module, class or function name.
111
- </p>
112
- </div>
113
- <script type="text/javascript">$('#searchbox').show(0);</script>
114
- </div>
115
- </div>
116
- <div class="clearer"></div>
117
- </div>
118
- <div class="related">
119
- <h3>Navigation</h3>
120
- <ul>
121
- <li class="right" style="margin-right: 10px">
122
- <a href="../genindex.html" title="General Index"
123
- >index</a></li>
124
- <li class="right" >
125
- <a href="tutorial09.html" title="3.9. 全文検索の語彙表に対する追加情報"
126
- >next</a> |</li>
127
- <li class="right" >
128
- <a href="tutorial07.html" title="3.7. match_columnsパラメータ"
129
- >previous</a> |</li>
130
- <li><a href="../index.html">groonga v1.0.2 documentation</a> &raquo;</li>
131
- <li><a href="../tutorial.html" >3. チュートリアル</a> &raquo;</li>
132
- </ul>
133
- </div>
134
- <div class="footer">
135
- &copy; Copyright 2009-2010, Brazil, Inc.
136
- Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
137
- </div>
138
- </body>
139
- </html>
@@ -1,114 +0,0 @@
1
-
2
-
3
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml">
7
- <head>
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
-
10
- <title>3.9. 全文検索の語彙表に対する追加情報 &mdash; groonga v1.0.2 documentation</title>
11
- <link rel="stylesheet" href="../_static/default.css" type="text/css" />
12
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13
- <script type="text/javascript">
14
- var DOCUMENTATION_OPTIONS = {
15
- URL_ROOT: '../',
16
- VERSION: '1.0.2',
17
- COLLAPSE_INDEX: false,
18
- FILE_SUFFIX: '.html',
19
- HAS_SOURCE: true
20
- };
21
- </script>
22
- <script type="text/javascript" src="../_static/jquery.js"></script>
23
- <script type="text/javascript" src="../_static/underscore.js"></script>
24
- <script type="text/javascript" src="../_static/doctools.js"></script>
25
- <link rel="top" title="groonga v1.0.2 documentation" href="../index.html" />
26
- <link rel="up" title="3. チュートリアル" href="../tutorial.html" />
27
- <link rel="next" title="3.10. マイクロブログ検索システムの作成" href="tutorial10.html" />
28
- <link rel="prev" title="3.8. 主キーによる前方一致検索" href="tutorial08.html" />
29
- </head>
30
- <body>
31
- <div class="related">
32
- <h3>Navigation</h3>
33
- <ul>
34
- <li class="right" style="margin-right: 10px">
35
- <a href="../genindex.html" title="General Index"
36
- accesskey="I">index</a></li>
37
- <li class="right" >
38
- <a href="tutorial10.html" title="3.10. マイクロブログ検索システムの作成"
39
- accesskey="N">next</a> |</li>
40
- <li class="right" >
41
- <a href="tutorial08.html" title="3.8. 主キーによる前方一致検索"
42
- accesskey="P">previous</a> |</li>
43
- <li><a href="../index.html">groonga v1.0.2 documentation</a> &raquo;</li>
44
- <li><a href="../tutorial.html" accesskey="U">3. チュートリアル</a> &raquo;</li>
45
- </ul>
46
- </div>
47
-
48
- <div class="document">
49
- <div class="documentwrapper">
50
- <div class="bodywrapper">
51
- <div class="body">
52
-
53
- <div class="section" id="id1">
54
- <h1>3.9. 全文検索の語彙表に対する追加情報<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
55
- <p>groongaでは、全文検索に用いるための語意表がテーブルとして扱えます。よって、語彙ごとに複数の情報を保持することができます。例えば、語彙の出現数や検索ストップワードのフラグ、単語の重要度などを保持することができます。</p>
56
- <p>この項目については、現在執筆中です。</p>
57
- </div>
58
-
59
-
60
- </div>
61
- </div>
62
- </div>
63
- <div class="sphinxsidebar">
64
- <div class="sphinxsidebarwrapper">
65
- <h4>Previous topic</h4>
66
- <p class="topless"><a href="tutorial08.html"
67
- title="previous chapter">3.8. 主キーによる前方一致検索</a></p>
68
- <h4>Next topic</h4>
69
- <p class="topless"><a href="tutorial10.html"
70
- title="next chapter">3.10. マイクロブログ検索システムの作成</a></p>
71
- <h3>This Page</h3>
72
- <ul class="this-page-menu">
73
- <li><a href="../_sources/tutorial/tutorial09.txt"
74
- rel="nofollow">Show Source</a></li>
75
- </ul>
76
- <div id="searchbox" style="display: none">
77
- <h3>Quick search</h3>
78
- <form class="search" action="../search.html" method="get">
79
- <input type="text" name="q" size="18" />
80
- <input type="submit" value="Go" />
81
- <input type="hidden" name="check_keywords" value="yes" />
82
- <input type="hidden" name="area" value="default" />
83
- </form>
84
- <p class="searchtip" style="font-size: 90%">
85
- Enter search terms or a module, class or function name.
86
- </p>
87
- </div>
88
- <script type="text/javascript">$('#searchbox').show(0);</script>
89
- </div>
90
- </div>
91
- <div class="clearer"></div>
92
- </div>
93
- <div class="related">
94
- <h3>Navigation</h3>
95
- <ul>
96
- <li class="right" style="margin-right: 10px">
97
- <a href="../genindex.html" title="General Index"
98
- >index</a></li>
99
- <li class="right" >
100
- <a href="tutorial10.html" title="3.10. マイクロブログ検索システムの作成"
101
- >next</a> |</li>
102
- <li class="right" >
103
- <a href="tutorial08.html" title="3.8. 主キーによる前方一致検索"
104
- >previous</a> |</li>
105
- <li><a href="../index.html">groonga v1.0.2 documentation</a> &raquo;</li>
106
- <li><a href="../tutorial.html" >3. チュートリアル</a> &raquo;</li>
107
- </ul>
108
- </div>
109
- <div class="footer">
110
- &copy; Copyright 2009-2010, Brazil, Inc.
111
- Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
112
- </div>
113
- </body>
114
- </html>
@@ -1,458 +0,0 @@
1
-
2
-
3
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml">
7
- <head>
8
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
9
-
10
- <title>3.10. マイクロブログ検索システムの作成 &mdash; groonga v1.0.2 documentation</title>
11
- <link rel="stylesheet" href="../_static/default.css" type="text/css" />
12
- <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
13
- <script type="text/javascript">
14
- var DOCUMENTATION_OPTIONS = {
15
- URL_ROOT: '../',
16
- VERSION: '1.0.2',
17
- COLLAPSE_INDEX: false,
18
- FILE_SUFFIX: '.html',
19
- HAS_SOURCE: true
20
- };
21
- </script>
22
- <script type="text/javascript" src="../_static/jquery.js"></script>
23
- <script type="text/javascript" src="../_static/underscore.js"></script>
24
- <script type="text/javascript" src="../_static/doctools.js"></script>
25
- <link rel="top" title="groonga v1.0.2 documentation" href="../index.html" />
26
- <link rel="up" title="3. チュートリアル" href="../tutorial.html" />
27
- <link rel="next" title="4. リファレンスマニュアル" href="../reference.html" />
28
- <link rel="prev" title="3.9. 全文検索の語彙表に対する追加情報" href="tutorial09.html" />
29
- </head>
30
- <body>
31
- <div class="related">
32
- <h3>Navigation</h3>
33
- <ul>
34
- <li class="right" style="margin-right: 10px">
35
- <a href="../genindex.html" title="General Index"
36
- accesskey="I">index</a></li>
37
- <li class="right" >
38
- <a href="../reference.html" title="4. リファレンスマニュアル"
39
- accesskey="N">next</a> |</li>
40
- <li class="right" >
41
- <a href="tutorial09.html" title="3.9. 全文検索の語彙表に対する追加情報"
42
- accesskey="P">previous</a> |</li>
43
- <li><a href="../index.html">groonga v1.0.2 documentation</a> &raquo;</li>
44
- <li><a href="../tutorial.html" accesskey="U">3. チュートリアル</a> &raquo;</li>
45
- </ul>
46
- </div>
47
-
48
- <div class="document">
49
- <div class="documentwrapper">
50
- <div class="bodywrapper">
51
- <div class="body">
52
-
53
- <div class="section" id="id1">
54
- <h1>3.10. マイクロブログ検索システムの作成<a class="headerlink" href="#id1" title="Permalink to this headline">¶</a></h1>
55
- <p>これまで学んだgroongaの機能を用いて、マイクロブログの検索システムを作成してみましょう。マイクロブログとは、Twitterのような短いメッセージを投稿するブログです。</p>
56
- <div class="section" id="id2">
57
- <h2>3.10.1. テーブルの作成<a class="headerlink" href="#id2" title="Permalink to this headline">¶</a></h2>
58
- <p>まずは、テーブルを作成します。</p>
59
- <div class="highlight-none"><div class="highlight"><pre>table_create --name Users --flags TABLE_HASH_KEY --key_type ShortText
60
- table_create --name Comments --flags TABLE_HASH_KEY --key_type ShortText
61
- table_create --name HashTags --flags TABLE_HASH_KEY --key_type ShortText
62
- table_create --name Bigram --flags TABLE_PAT_KEY|KEY_NORMALIZE --key_type ShortText --default_tokenizer TokenBigram
63
-
64
- column_create --table Users --name name --flags COLUMN_SCALAR --type ShortText
65
- column_create --table Users --name follower --flags COLUMN_VECTOR --type Users
66
- column_create --table Users --name favorites --flags COLUMN_VECTOR --type Comments
67
- column_create --table Users --name location --flags COLUMN_SCALAR --type WGS84GeoPoint
68
- column_create --table Users --name location_str --flags COLUMN_SCALAR --type ShortText
69
- column_create --table Users --name description --flags COLUMN_SCALAR --type ShortText
70
- column_create --table Users --name folowee --flags COLUMN_INDEX --type Users --source follower
71
-
72
- column_create --table Comments --name comment --flags COLUMN_SCALAR --type ShortText
73
- column_create --table Comments --name last_modified --flags COLUMN_SCALAR --type Time
74
- column_create --table Comments --name replied_to --flags COLUMN_SCALAR --type Comments
75
- column_create --table Comments --name replied_users --flags COLUMN_VECTOR --type Users
76
- column_create --table Comments --name hash_tags --flags COLUMN_VECTOR --type HashTags
77
- column_create --table Comments --name location --flags COLUMN_SCALAR --type WGS84GeoPoint
78
- column_create --table Comments --name posted_by --flags COLUMN_SCALAR --type Users
79
- column_create --table Comments --name favorited_by --flags COLUMN_INDEX --type Users --source favorites
80
-
81
- column_create --table HashTags --name hash_index --flags COLUMN_INDEX --type Comments --source hash_tags
82
-
83
- column_create --table Bigram --name users_index --flags COLUMN_INDEX|WITH_POSITION|WITH_SECTION --type Users --source name,location_str,description
84
- column_create --table Bigram --name comment_index --flags COLUMN_INDEX|WITH_POSITION --type Comments --source comment
85
- </pre></div>
86
- </div>
87
- <div class="section" id="users">
88
- <h3>3.10.1.1. Usersテーブル<a class="headerlink" href="#users" title="Permalink to this headline">¶</a></h3>
89
- <p>ユーザーの名前や自己紹介文、フォローしているユーザー一覧など、ユーザー情報を格納するためのテーブルです。</p>
90
- <dl class="docutils">
91
- <dt><tt class="docutils literal"><span class="pre">_key</span></tt></dt>
92
- <dd>ユーザーID</dd>
93
- <dt><tt class="docutils literal"><span class="pre">name</span></tt></dt>
94
- <dd>ユーザー名</dd>
95
- <dt><tt class="docutils literal"><span class="pre">follower</span></tt></dt>
96
- <dd>フォローしているユーザーの一覧</dd>
97
- <dt><tt class="docutils literal"><span class="pre">favorites</span></tt></dt>
98
- <dd>お気に入りのコメント一覧</dd>
99
- <dt><tt class="docutils literal"><span class="pre">location</span></tt></dt>
100
- <dd>ユーザーの現在地(緯度経度座標)</dd>
101
- <dt><tt class="docutils literal"><span class="pre">location_str</span></tt></dt>
102
- <dd>ユーザーの現在地(文字列)</dd>
103
- <dt><tt class="docutils literal"><span class="pre">description</span></tt></dt>
104
- <dd>ユーザーの自己紹介</dd>
105
- <dt><tt class="docutils literal"><span class="pre">folowee</span></tt></dt>
106
- <dd>Usersテーブルのfollowerカラムに対するインデックス。
107
- このインデックスを作ることで、あるユーザーをフォローしているユーザーを検索できるようになります。</dd>
108
- </dl>
109
- </div>
110
- <div class="section" id="comments">
111
- <h3>3.10.1.2. Commentsテーブル<a class="headerlink" href="#comments" title="Permalink to this headline">¶</a></h3>
112
- <p>コメント内容や投稿日時、返信先情報など、コメントに関する内容を格納するテーブルです。</p>
113
- <dl class="docutils">
114
- <dt><tt class="docutils literal"><span class="pre">_key</span></tt></dt>
115
- <dd>コメントID</dd>
116
- <dt><tt class="docutils literal"><span class="pre">comment</span></tt></dt>
117
- <dd>コメント内容</dd>
118
- <dt><tt class="docutils literal"><span class="pre">last_modified</span></tt></dt>
119
- <dd>投稿日時</dd>
120
- <dt><tt class="docutils literal"><span class="pre">replied_to</span></tt></dt>
121
- <dd>返信元のコメント内容</dd>
122
- <dt><tt class="docutils literal"><span class="pre">replied_users</span></tt></dt>
123
- <dd>返信先のユーザーの一覧</dd>
124
- <dt><tt class="docutils literal"><span class="pre">hash_tags</span></tt></dt>
125
- <dd>コメントのハッシュタグの一覧</dd>
126
- <dt><tt class="docutils literal"><span class="pre">location</span></tt></dt>
127
- <dd>投稿場所(緯度経度座標のため)</dd>
128
- <dt><tt class="docutils literal"><span class="pre">posted_by</span></tt></dt>
129
- <dd>コメントを書いたユーザー</dd>
130
- <dt><tt class="docutils literal"><span class="pre">favorited_by</span></tt></dt>
131
- <dd>Usersテーブルのfavoritesカラムに対するインデックス。
132
- このインデックスを作ることで、指定したコメントを誰がお気に入りに入れているのかを検索できるようになります。</dd>
133
- </dl>
134
- </div>
135
- <div class="section" id="hashtags">
136
- <h3>3.10.1.3. HashTagsテーブル<a class="headerlink" href="#hashtags" title="Permalink to this headline">¶</a></h3>
137
- <p>コメントのハッシュタグを一覧で保存するためのテーブルです。</p>
138
- <dl class="docutils">
139
- <dt><tt class="docutils literal"><span class="pre">_key</span></tt></dt>
140
- <dd>ハッシュタグ</dd>
141
- <dt><tt class="docutils literal"><span class="pre">hash_index</span></tt></dt>
142
- <dd>「Comments.hash_tags」のインデックス。
143
- このインデックスを作ることで、指定したハッシュタグのついているコメントの一覧を出すことが出来るようになります。</dd>
144
- </dl>
145
- </div>
146
- <div class="section" id="bigram">
147
- <h3>3.10.1.4. Bigramテーブル<a class="headerlink" href="#bigram" title="Permalink to this headline">¶</a></h3>
148
- <p>ユーザー情報・コメントで全文検索が出来るようにするためのインデックスを格納するテーブルです。</p>
149
- <dl class="docutils">
150
- <dt><tt class="docutils literal"><span class="pre">_key</span></tt></dt>
151
- <dd>単語</dd>
152
- <dt><tt class="docutils literal"><span class="pre">users_index</span></tt></dt>
153
- <dd>ユーザー情報のインデックス。
154
- このカラムは、ユーザー名「Users.name」、現在地「Users.location_str」、自己紹介文「Users.description」のインデックスになっています。</dd>
155
- <dt><tt class="docutils literal"><span class="pre">comment_index</span></tt></dt>
156
- <dd>コメント内容「Comments.comment」のインデックス</dd>
157
- </dl>
158
- </div>
159
- </div>
160
- <div class="section" id="id3">
161
- <h2>3.10.2. データのロード<a class="headerlink" href="#id3" title="Permalink to this headline">¶</a></h2>
162
- <p>つづいて、テスト用データをロードします。</p>
163
- <div class="highlight-none"><div class="highlight"><pre>load --table Users
164
- [
165
- {
166
- &quot;_key&quot;: &quot;daijiro&quot;,
167
- &quot;name&quot;: &quot;hsiomaneki&quot;,
168
- &quot;follower&quot;: [&quot;tasukuchan&quot;],
169
- &quot;favorites&quot;: [],
170
- &quot;location&quot;: &quot;127678039x502643091&quot;,
171
- &quot;location_str&quot;: &quot;神奈川県&quot;,
172
- &quot;description&quot;: &quot;groonga developer&quot;
173
- },
174
- {
175
- &quot;_key&quot;: &quot;tasukuchan&quot;,
176
- &quot;name&quot;: &quot;グニャラくん&quot;,
177
- &quot;follower&quot;: [&quot;daijiro&quot;,&quot;OffGao&quot;],
178
- &quot;favorites&quot;: [&quot;daijiro:1&quot;,&quot;OffGao:1&quot;],
179
- &quot;location&quot;: &quot;128423343x502929252&quot;,
180
- &quot;location_str&quot;: &quot;東京都渋谷区&quot;,
181
- &quot;description&quot;: &quot;エロいおっさん&quot;
182
- },
183
- {
184
- &quot;_key&quot;: &quot;OffGao&quot;,
185
- &quot;name&quot;: &quot;OffGao&quot;,
186
- &quot;follower&quot;: [&quot;tasukuchan&quot;,&quot;daijiro&quot;],
187
- &quot;favorites&quot;: [&quot;tasukuchan:1&quot;,&quot;daijiro:1&quot;],
188
- &quot;location&quot;: &quot;128544408x502801502&quot;,
189
- &quot;location_str&quot;: &quot;東京都中野区&quot;,
190
- &quot;description&quot;: &quot;がおがお&quot;
191
- }
192
- ]
193
-
194
- load --table Comments
195
- [
196
- {
197
- &quot;_key&quot;: &quot;daijiro:1&quot;,
198
- &quot;comment&quot;: &quot;マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。&quot;,
199
- &quot;last_modified&quot;: &quot;2010/03/17 12:05:00&quot;,
200
- &quot;posted_by&quot;: &quot;daijiro&quot;,
201
- },
202
- {
203
- &quot;_key&quot;: &quot;tasukuchan:1&quot;,
204
- &quot;comment&quot;: &quot;初の書き込み。テストテスト。&quot;,
205
- &quot;last_modified&quot;: &quot;2010/03/17 12:00:00&quot;,
206
- &quot;posted_by&quot;: &quot;tasukuchan&quot;,
207
- },
208
- {
209
- &quot;_key&quot;: &quot;daijiro:2&quot;,
210
- &quot;comment&quot;: &quot;@tasukuchan ようこそ!!!&quot;,
211
- &quot;last_modified&quot;: &quot;2010/03/17 12:05:00&quot;,
212
- &quot;replied_to&quot;: &quot;tasukuchan:1&quot;,
213
- &quot;replied_users&quot;: [&quot;tasukuchan&quot;],
214
- &quot;posted_by&quot;: &quot;daijiro&quot;,
215
- },
216
- {
217
- &quot;_key&quot;: &quot;tasukuchan:2&quot;,
218
- &quot;comment&quot;: &quot;@daijiro ありがとう!&quot;,
219
- &quot;last_modified&quot;: &quot;2010/03/17 13:00:00&quot;,
220
- &quot;replied_to&quot;: &quot;daijiro:2&quot;,
221
- &quot;replied_users&quot;: [&quot;daijiro&quot;],
222
- &quot;posted_by&quot;: &quot;tasukuchan&quot;,
223
- },
224
- {
225
- &quot;_key&quot;: &quot;tasukuchan:3&quot;,
226
- &quot;comment&quot;: &quot;groongaなう #groonga&quot;,
227
- &quot;last_modified&quot;: &quot;2010/03/17 14:00:00&quot;,
228
- &quot;hash_tags&quot;: [&quot;groonga&quot;],
229
- &quot;location&quot;: &quot;127972422x503117107&quot;,
230
- &quot;posted_by&quot;: &quot;tasukuchan&quot;,
231
- },
232
- {
233
- &quot;_key&quot;: &quot;tasukuchan:4&quot;,
234
- &quot;comment&quot;: &quot;groonga開発合宿のため羽田空港に来ました! #groonga #travel&quot;,
235
- &quot;last_modified&quot;: &quot;2010/03/17 14:05:00&quot;,
236
- &quot;hash_tags&quot;: [&quot;groonga&quot;, &quot;travel&quot;],
237
- &quot;location&quot;: &quot;127975798x502919856&quot;,
238
- &quot;posted_by&quot;: &quot;tasukuchan&quot;,
239
- },
240
- {
241
- &quot;_key&quot;: &quot;OffGao:1&quot;,
242
- &quot;comment&quot;: &quot;@daijiro @tasukuchan 登録してみましたよー!&quot;,
243
- &quot;last_modified&quot;: &quot;2010/03/17 15:00:00&quot;,
244
- &quot;replied_users&quot;: [&quot;daijiro&quot;, &quot;tasukuchan&quot;],
245
- &quot;location&quot;: &quot;128551935x502796433&quot;,
246
- &quot;posted_by&quot;: &quot;OffGao&quot;,
247
- }
248
- {
249
- &quot;_key&quot;: &quot;OffGao:2&quot;,
250
- &quot;comment&quot;: &quot;中野ブロードウェイなうなう&quot;,
251
- &quot;last_modified&quot;: &quot;2010/03/17 15:05:00&quot;,
252
- &quot;location&quot;: &quot;128551935x502796434&quot;,
253
- &quot;posted_by&quot;: &quot;OffGao&quot;,
254
- }
255
- ]
256
- </pre></div>
257
- </div>
258
- <p>Usersテーブルのfollowerカラムとfavoritesカラム、そしてCommentsテーブルのreplied_usersカラムは、ベクターカラムです。そのため、これらのカラムは配列で値を指定します。</p>
259
- <p>Usersテーブルのlocationカラムと、Commentsテーブルのlocationカラムは、GeoPoint型です。この型での値の指定は、&#8221;[緯度]x[経度]&#8221;と記述して指定します。</p>
260
- <p>Commentsテーブルのlast_modifiedカラムは、Time型です。この型での値の指定方法は、マイクロ秒数の値を直接指定する方法のほかに、文字列で指定する方法もあります。&#8221;年/月/日 時:分:秒&#8221;というフォーマットで記述することで、データロードの際に文字列からキャストされ、マイクロ秒数の値が格納されます。</p>
261
- </div>
262
- <div class="section" id="id4">
263
- <h2>3.10.3. 検索<a class="headerlink" href="#id4" title="Permalink to this headline">¶</a></h2>
264
- <p>それでは、実際に検索をしてみましょう。</p>
265
- <div class="section" id="id5">
266
- <h3>3.10.3.1. キーワードでユーザー検索<a class="headerlink" href="#id5" title="Permalink to this headline">¶</a></h3>
267
- <p>ここでは、 <a class="reference internal" href="tutorial07.html"><em>match_columnsパラメータ</em></a> で扱った、複数カラムを対象とした検索を行います。
268
- 指定された文字列で、ユーザー名・現在地・自己紹介文を対象に検索をします。</p>
269
- <p>実行例</p>
270
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Users --match_columns name,location_str,description --query 東京 --output_columns _key,name
271
- [[0,1280378873.00607,0.00053],[[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;name&quot;,&quot;ShortText&quot;]],[&quot;tasukuchan&quot;,&quot;グニャラくん&quot;],[&quot;OffGao&quot;,&quot;OffGao&quot;]]]]
272
- </pre></div>
273
- </div>
274
- <p>「東京」をキーワードにユーザー検索した結果、東京都に住んでいる「グニャラくん」と「OffGao」がヒットしました。</p>
275
- </div>
276
- <div class="section" id="geopoint">
277
- <h3>3.10.3.2. GeoPointでユーザー検索<a class="headerlink" href="#geopoint" title="Permalink to this headline">¶</a></h3>
278
- <p>ここでは、 <a class="reference internal" href="tutorial04.html"><em>さまざまな検索条件の指定</em></a> で扱った、GeoPoint型のカラムで検索をします。
279
- 以下の例では、指定された位置から5000m以内にいるユーザーを検索しています。</p>
280
- <p>実行例</p>
281
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Users --filter &#39;geo_in_circle(location,&quot;128484216x502919856&quot;,5000)&#39; --output_columns _key,name
282
- [[0,1280378873.20845,0.000337],[[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;name&quot;,&quot;ShortText&quot;]],[&quot;tasukuchan&quot;,&quot;グニャラくん&quot;],[&quot;OffGao&quot;,&quot;OffGao&quot;]]]]
283
- </pre></div>
284
- </div>
285
- <p>新宿駅から5km以内にすんでいるユーザーを検索したところ、「グニャラくん」と「OffGao」がヒットしました。</p>
286
- </div>
287
- <div class="section" id="id6">
288
- <h3>3.10.3.3. あるユーザーをフォローしているユーザーの検索<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h3>
289
- <p>ここでは、 <a class="reference internal" href="tutorial06.html"><em>タグ検索・参照関係の逆引き</em></a> で扱った、参照関係の逆引きをします。
290
- 以下の例では、Usersテーブルのfollowerカラムにあるフォローリストを逆引きします。</p>
291
- <p>実行例</p>
292
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Users --query follower:@tasukuchan --output_columns _key,name
293
- [[0,1280378873.4108,0.000311],[[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;name&quot;,&quot;ShortText&quot;]],[&quot;daijiro&quot;,&quot;hsiomaneki&quot;],[&quot;OffGao&quot;,&quot;OffGao&quot;]]]]
294
- </pre></div>
295
- </div>
296
- <p>「グニャラくん」をフォローしている「hsiomaneki」と「OffGao」がヒットしました。</p>
297
- </div>
298
- <div class="section" id="id7">
299
- <h3>3.10.3.4. GeoPointでコメント検索<a class="headerlink" href="#id7" title="Permalink to this headline">¶</a></h3>
300
- <p>ある範囲内で書かれたコメントを検索します。
301
- また、 <a class="reference internal" href="tutorial05.html"><em>ドリルダウン</em></a> で扱ったドリルダウンも行います。検索結果をハッシュタグとユーザーでドリルダウンし、ユーザー別・ハッシュタグ別のカウントを出します。</p>
302
- <p>実行例</p>
303
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Comments --filter &#39;geo_in_circle(location,&quot;127975798x502919856&quot;,20000)&#39; --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
304
- [[0,1280378873.61299,0.000702],[[[4],[[&quot;posted_by.name&quot;,&quot;ShortText&quot;],[&quot;comment&quot;,&quot;ShortText&quot;]],[&quot;OffGao&quot;,&quot;@daijiro @tasukuchan 登録してみましたよー!&quot;],[&quot;グニャラくん&quot;,&quot;groongaなう #groonga&quot;],[&quot;グニャラくん&quot;,&quot;groonga開発合宿のため羽田空港に来ました! #groonga #travel&quot;],[&quot;OffGao&quot;,&quot;中野ブロードウェイなうなう&quot;]],[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;groonga&quot;,2],[&quot;travel&quot;,1]],[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;OffGao&quot;,2],[&quot;tasukuchan&quot;,2]]]]
305
- </pre></div>
306
- </div>
307
- <p>範囲を広く指定したため、位置情報のあるすべてのコメントがヒットしました。そして、ヒットしたコメントからドリルダウンされた結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つ、投稿者は「グニャラくん」「OffGao」がそれぞれ2件ずつであることがわかります。</p>
308
- </div>
309
- <div class="section" id="id8">
310
- <h3>3.10.3.5. キーワードでコメント検索<a class="headerlink" href="#id8" title="Permalink to this headline">¶</a></h3>
311
- <p>あるキーワードを含むコメントを検索します。
312
- さらに、 <a class="reference internal" href="tutorial04.html"><em>さまざまな検索条件の指定</em></a> で扱った、スコア値_scoreも出してみましょう。</p>
313
- <p>実行例</p>
314
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Comments --query comment:@なう --output_columns comment,_score
315
- [[0,1280378873.81946,0.000332],[[[2],[[&quot;comment&quot;,&quot;ShortText&quot;],[&quot;_score&quot;,&quot;Int32&quot;]],[&quot;groongaなう #groonga&quot;,1],[&quot;中野ブロードウェイなうなう&quot;,2]]]]
316
- </pre></div>
317
- </div>
318
- <p>「なう」をキーワードにコメント検索した結果、2件のコメントがヒットしました。また、_scoreの値も返ってきており、「なう」の数が出力されていることが確認できます。</p>
319
- </div>
320
- <div class="section" id="id9">
321
- <h3>3.10.3.6. GeoPointとキーワードでコメント検索<a class="headerlink" href="#id9" title="Permalink to this headline">¶</a></h3>
322
- <p>今度は、キーワードとGeoPointの両方を条件に検索をしてみます。&#8211;queryと&#8211;filterの両方を使用した場合、両方の条件に一致するレコードがヒットします。</p>
323
- <p>実行例</p>
324
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Comments --query comment:@羽田 --filter &#39;geo_in_circle(location,&quot;127975798x502919856&quot;,20000)&#39; --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
325
- [[0,1280378874.02194,0.000669],[[[1],[[&quot;posted_by.name&quot;,&quot;ShortText&quot;],[&quot;comment&quot;,&quot;ShortText&quot;]],[&quot;グニャラくん&quot;,&quot;groonga開発合宿のため羽田空港に来ました! #groonga #travel&quot;]],[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;groonga&quot;,1],[&quot;travel&quot;,1]],[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;tasukuchan&quot;,1]]]]
326
- </pre></div>
327
- </div>
328
- <p>両方の条件を満たすコメントが1件ヒットしました。また、ドリルダウンの結果も返ってきており、「グニャラくん」のコメント1件であることがわかります。</p>
329
- </div>
330
- <div class="section" id="id10">
331
- <h3>3.10.3.7. ハッシュタグでコメント検索<a class="headerlink" href="#id10" title="Permalink to this headline">¶</a></h3>
332
- <p>あるハッシュタグのついているコメントを検索します。
333
- これも、 <a class="reference internal" href="tutorial06.html"><em>タグ検索・参照関係の逆引き</em></a> で扱った、参照関係の逆引きを使います。</p>
334
- <p>実行例</p>
335
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Comments --query hash_tags:@groonga --output_columns posted_by.name,comment --drilldown posted_by
336
- [[0,1280378874.22658,0.000485],[[[2],[[&quot;posted_by.name&quot;,&quot;ShortText&quot;],[&quot;comment&quot;,&quot;ShortText&quot;]],[&quot;グニャラくん&quot;,&quot;groongaなう #groonga&quot;],[&quot;グニャラくん&quot;,&quot;groonga開発合宿のため羽田空港に来ました! #groonga #travel&quot;]],[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;tasukuchan&quot;,2]]]]
337
- </pre></div>
338
- </div>
339
- <p>#groongaタグの付いている2件のコメントがヒットしました。また、投稿者のドリルダウンも返ってきており、2件とも「グニャラくん」のものであることがわかります。</p>
340
- </div>
341
- <div class="section" id="id">
342
- <h3>3.10.3.8. ユーザーIDでコメント検索<a class="headerlink" href="#id" title="Permalink to this headline">¶</a></h3>
343
- <p>あるユーザーが投稿したコメントを検索します。</p>
344
- <p>実行例</p>
345
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Comments --query posted_by:tasukuchan --output_columns comment --drilldown hash_tags
346
- [[0,1280378874.43074,0.000502],[[[4],[[&quot;comment&quot;,&quot;ShortText&quot;]],[&quot;初の書き込み。テストテスト。&quot;],[&quot;@daijiro ありがとう!&quot;],[&quot;groongaなう #groonga&quot;],[&quot;groonga開発合宿のため羽田空港に来ました! #groonga #travel&quot;]],[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;groonga&quot;,2],[&quot;travel&quot;,1]]]]
347
- </pre></div>
348
- </div>
349
- <p>「グニャラくん」が書き込んだ4件のコメントがヒットしました。また、ハッシュタグでドリルダウンした結果も返ってきており、ハッシュタグは「#groonga」が2つに「#travel」が1つあることがわかります。</p>
350
- </div>
351
- <div class="section" id="id11">
352
- <h3>3.10.3.9. ユーザーのお気に入りコメントを検索<a class="headerlink" href="#id11" title="Permalink to this headline">¶</a></h3>
353
- <p>あるユーザーがお気に入りに入れているコメントを検索します。</p>
354
- <p>実行例</p>
355
- <div class="highlight-none"><div class="highlight"><pre>&gt; select --table Users --query _key:tasukuchan --output_columns favorites.posted_by,favorites.comment
356
- [[0,1280378874.63511,0.000327],[[[1],[[&quot;favorites.posted_by&quot;,&quot;Users&quot;],[&quot;favorites.comment&quot;,&quot;ShortText&quot;]],[[&quot;daijiro&quot;,&quot;OffGao&quot;],[&quot;マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。&quot;,&quot;@daijiro @tasukuchan 登録してみましたよー!&quot;]]]]]
357
- </pre></div>
358
- </div>
359
- <p>「グニャラくん」がお気に入りに入れている2件のコメントがヒットしました。</p>
360
- </div>
361
- <div class="section" id="id12">
362
- <h3>3.10.3.10. 投稿時間でコメント検索<a class="headerlink" href="#id12" title="Permalink to this headline">¶</a></h3>
363
- <p>コメントの投稿時間で検索をします。Time型については <a class="reference internal" href="tutorial03.html"><em>さまざまな種類をもったデータの保存</em></a> で扱っています。
364
- この例では、指定した時間よりも前に投稿されているコメントを検索します。</p>
365
- <p>実行例</p>
366
- <div class="highlight-none"><div class="highlight"><pre>&gt; select Comments --filter &#39;last_modified&lt;=1268802000&#39; --output_columns posted_by.name,comment,last_modified --drilldown hash_tags,posted_by
367
- [[0,1280378874.83883,0.000681],[[[5],[[&quot;posted_by.name&quot;,&quot;ShortText&quot;],[&quot;comment&quot;,&quot;ShortText&quot;],[&quot;last_modified&quot;,&quot;Time&quot;]],[&quot;hsiomaneki&quot;,&quot;マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。&quot;,1268795100.0],[&quot;グニャラくん&quot;,&quot;初の書き込み。テストテスト。&quot;,1268794800.0],[&quot;hsiomaneki&quot;,&quot;@tasukuchan ようこそ!!!&quot;,1268795100.0],[&quot;グニャラくん&quot;,&quot;@daijiro ありがとう!&quot;,1268798400.0],[&quot;グニャラくん&quot;,&quot;groongaなう #groonga&quot;,1268802000.0]],[[1],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;groonga&quot;,1]],[[2],[[&quot;_key&quot;,&quot;ShortText&quot;],[&quot;_nsubrecs&quot;,&quot;Int32&quot;]],[&quot;daijiro&quot;,2],[&quot;tasukuchan&quot;,3]]]]
368
- </pre></div>
369
- </div>
370
- <p>2010/03/17 14:00:00以前に書かれたコメント5件がヒットしました。また、ドリルダウンの結果も返ってきており、「hsiomaneki」が2件、「グニャラくん」が3件ヒットしていることがわかります。</p>
371
- </div>
372
- </div>
373
- </div>
374
-
375
-
376
- </div>
377
- </div>
378
- </div>
379
- <div class="sphinxsidebar">
380
- <div class="sphinxsidebarwrapper">
381
- <h3><a href="../index.html">Table Of Contents</a></h3>
382
- <ul>
383
- <li><a class="reference internal" href="#">3.10. マイクロブログ検索システムの作成</a><ul>
384
- <li><a class="reference internal" href="#id2">3.10.1. テーブルの作成</a><ul>
385
- <li><a class="reference internal" href="#users">3.10.1.1. Usersテーブル</a></li>
386
- <li><a class="reference internal" href="#comments">3.10.1.2. Commentsテーブル</a></li>
387
- <li><a class="reference internal" href="#hashtags">3.10.1.3. HashTagsテーブル</a></li>
388
- <li><a class="reference internal" href="#bigram">3.10.1.4. Bigramテーブル</a></li>
389
- </ul>
390
- </li>
391
- <li><a class="reference internal" href="#id3">3.10.2. データのロード</a></li>
392
- <li><a class="reference internal" href="#id4">3.10.3. 検索</a><ul>
393
- <li><a class="reference internal" href="#id5">3.10.3.1. キーワードでユーザー検索</a></li>
394
- <li><a class="reference internal" href="#geopoint">3.10.3.2. GeoPointでユーザー検索</a></li>
395
- <li><a class="reference internal" href="#id6">3.10.3.3. あるユーザーをフォローしているユーザーの検索</a></li>
396
- <li><a class="reference internal" href="#id7">3.10.3.4. GeoPointでコメント検索</a></li>
397
- <li><a class="reference internal" href="#id8">3.10.3.5. キーワードでコメント検索</a></li>
398
- <li><a class="reference internal" href="#id9">3.10.3.6. GeoPointとキーワードでコメント検索</a></li>
399
- <li><a class="reference internal" href="#id10">3.10.3.7. ハッシュタグでコメント検索</a></li>
400
- <li><a class="reference internal" href="#id">3.10.3.8. ユーザーIDでコメント検索</a></li>
401
- <li><a class="reference internal" href="#id11">3.10.3.9. ユーザーのお気に入りコメントを検索</a></li>
402
- <li><a class="reference internal" href="#id12">3.10.3.10. 投稿時間でコメント検索</a></li>
403
- </ul>
404
- </li>
405
- </ul>
406
- </li>
407
- </ul>
408
-
409
- <h4>Previous topic</h4>
410
- <p class="topless"><a href="tutorial09.html"
411
- title="previous chapter">3.9. 全文検索の語彙表に対する追加情報</a></p>
412
- <h4>Next topic</h4>
413
- <p class="topless"><a href="../reference.html"
414
- title="next chapter">4. リファレンスマニュアル</a></p>
415
- <h3>This Page</h3>
416
- <ul class="this-page-menu">
417
- <li><a href="../_sources/tutorial/tutorial10.txt"
418
- rel="nofollow">Show Source</a></li>
419
- </ul>
420
- <div id="searchbox" style="display: none">
421
- <h3>Quick search</h3>
422
- <form class="search" action="../search.html" method="get">
423
- <input type="text" name="q" size="18" />
424
- <input type="submit" value="Go" />
425
- <input type="hidden" name="check_keywords" value="yes" />
426
- <input type="hidden" name="area" value="default" />
427
- </form>
428
- <p class="searchtip" style="font-size: 90%">
429
- Enter search terms or a module, class or function name.
430
- </p>
431
- </div>
432
- <script type="text/javascript">$('#searchbox').show(0);</script>
433
- </div>
434
- </div>
435
- <div class="clearer"></div>
436
- </div>
437
- <div class="related">
438
- <h3>Navigation</h3>
439
- <ul>
440
- <li class="right" style="margin-right: 10px">
441
- <a href="../genindex.html" title="General Index"
442
- >index</a></li>
443
- <li class="right" >
444
- <a href="../reference.html" title="4. リファレンスマニュアル"
445
- >next</a> |</li>
446
- <li class="right" >
447
- <a href="tutorial09.html" title="3.9. 全文検索の語彙表に対する追加情報"
448
- >previous</a> |</li>
449
- <li><a href="../index.html">groonga v1.0.2 documentation</a> &raquo;</li>
450
- <li><a href="../tutorial.html" >3. チュートリアル</a> &raquo;</li>
451
- </ul>
452
- </div>
453
- <div class="footer">
454
- &copy; Copyright 2009-2010, Brazil, Inc.
455
- Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.1.
456
- </div>
457
- </body>
458
- </html>