rroonga 0.9.5-x86-mingw32 → 1.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS.ja.rdoc +24 -0
- data/NEWS.rdoc +24 -0
- data/README.ja.rdoc +3 -2
- data/README.rdoc +3 -2
- data/Rakefile +15 -6
- data/ext/groonga/extconf.rb +25 -25
- data/ext/groonga/groonga.def +2 -0
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-exception.c +14 -0
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +13 -1
- data/ext/groonga/rb-grn-object.c +2 -2
- data/ext/groonga/rb-grn-patricia-trie.c +394 -1
- data/ext/groonga/rb-grn-table.c +33 -2
- data/ext/groonga/rb-grn.h +3 -3
- data/html/index.html +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/record.rb +32 -2
- data/lib/groonga/schema.rb +1 -1
- data/rroonga-build.rb +3 -3
- data/test/test-patricia-trie.rb +172 -1
- data/test/test-record.rb +7 -0
- data/test/test-remote.rb +2 -1
- data/test/test-table-cursor.rb +35 -1
- data/test/test-table-select-normalize.rb +7 -3
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/etc/groonga/groonga.conf +11 -0
- data/vendor/local/etc/groonga/init.d/redhat/groonga +168 -0
- data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +8 -0
- data/vendor/local/include/groonga/groonga.h +38 -12
- data/vendor/local/lib/groonga/modules/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/modules/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/modules/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/modules/{functions/cast.la → suggest/suggest.la} +6 -6
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +1 -1
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_flat_10_000000_40x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_222222_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_228ef1_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ef8c08_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ffd27a_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/css/ui-lightness/images/ui-icons_ffffff_256x240.png +0 -0
- data/vendor/local/share/groonga/admin_html/images/groonga.png +0 -0
- data/vendor/local/share/groonga/admin_html/images/loading.gif +0 -0
- data/vendor/local/share/groonga/admin_html/js/jquery.json-2.2.min.js +31 -0
- data/vendor/local/share/groonga/doc/ja/html/.buildinfo +4 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +56 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +164 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +61 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +93 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +97 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +58 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +57 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +68 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +62 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +98 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +69 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +66 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +247 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +59 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +79 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +87 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +50 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +102 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +78 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +103 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +18 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +212 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +226 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +43 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +48 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +51 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +54 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +55 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +34 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +41 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +64 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +259 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +21 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +199 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +12 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +14 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +293 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +100 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +72 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +91 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +92 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +9 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +486 -0
- data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +118 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +509 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/default.css +277 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +247 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +6240 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/pygments.css +61 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +518 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +147 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +16 -0
- data/vendor/local/share/groonga/doc/ja/html/characteristic.html +162 -0
- data/vendor/local/share/groonga/doc/ja/html/commands.html +139 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/check.html +285 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +180 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +210 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +220 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +221 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +177 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +182 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +177 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/load.html +208 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +187 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +190 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +188 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +156 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/select.html +331 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +156 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/status.html +179 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +191 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +222 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +202 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +175 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +180 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +161 -0
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +182 -0
- data/vendor/local/share/groonga/doc/ja/html/developer.html +118 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/com.html +136 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/document.html +159 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/query.html +336 -0
- data/vendor/local/share/groonga/doc/ja/html/developer/test.html +220 -0
- data/vendor/local/share/groonga/doc/ja/html/execfile.html +370 -0
- data/vendor/local/share/groonga/doc/ja/html/expr.html +157 -0
- data/vendor/local/share/groonga/doc/ja/html/functions.html +122 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +162 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +170 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +173 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +172 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/now.html +152 -0
- data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +159 -0
- data/vendor/local/share/groonga/doc/ja/html/genindex.html +227 -0
- data/vendor/local/share/groonga/doc/ja/html/grnslap.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/grntest.html +368 -0
- data/vendor/local/share/groonga/doc/ja/html/http.html +163 -0
- data/vendor/local/share/groonga/doc/ja/html/index.html +291 -0
- data/vendor/local/share/groonga/doc/ja/html/install.html +228 -0
- data/vendor/local/share/groonga/doc/ja/html/news.html +310 -0
- data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
- data/vendor/local/share/groonga/doc/ja/html/process.html +120 -0
- data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +147 -0
- data/vendor/local/share/groonga/doc/ja/html/reference.html +174 -0
- data/vendor/local/share/groonga/doc/ja/html/search.html +96 -0
- data/vendor/local/share/groonga/doc/ja/html/searchindex.js +1 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial.html +172 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +388 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +214 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +183 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +212 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +169 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +209 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +212 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +139 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +114 -0
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +458 -0
- data/vendor/local/share/groonga/doc/ja/html/type.html +217 -0
- data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
- data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +56 -0
- data/vendor/local/share/groonga/doc/ja/source/commands.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +164 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +61 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +93 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +97 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +58 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +57 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +68 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +62 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +98 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +69 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +66 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +247 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +59 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +87 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +50 -0
- data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +102 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +78 -0
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +103 -0
- data/vendor/local/share/groonga/doc/ja/source/conf.py +265 -0
- data/vendor/local/share/groonga/doc/ja/source/developer.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +18 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +212 -0
- data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +6 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +16 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +8 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +6 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +12 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +18 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +10 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +10 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +13 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +24 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +25 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +21 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +7 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +22 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +20 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +9 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +14 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +5 -0
- data/vendor/local/share/groonga/doc/ja/source/execfile.txt +226 -0
- data/vendor/local/share/groonga/doc/ja/source/expr.txt +43 -0
- data/vendor/local/share/groonga/doc/ja/source/functions.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +48 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +51 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +54 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +55 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +34 -0
- data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +41 -0
- data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +64 -0
- data/vendor/local/share/groonga/doc/ja/source/grntest.txt +259 -0
- data/vendor/local/share/groonga/doc/ja/source/http.txt +52 -0
- data/vendor/local/share/groonga/doc/ja/source/index.txt +21 -0
- data/vendor/local/share/groonga/doc/ja/source/install.txt +114 -0
- data/vendor/local/share/groonga/doc/ja/source/news.txt +199 -0
- data/vendor/local/share/groonga/doc/ja/source/process.txt +12 -0
- data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +38 -0
- data/vendor/local/share/groonga/doc/ja/source/rdoc.py +762 -0
- data/vendor/local/share/groonga/doc/ja/source/reference.txt +14 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +10 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +293 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +100 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +72 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +111 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +65 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +91 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +92 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +53 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +9 -0
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +486 -0
- data/vendor/local/share/groonga/doc/ja/source/type.txt +118 -0
- data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +113 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +46 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +61 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +46 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/html/css/dictionary.css +3 -0
- data/vendor/local/share/groonga/examples/dictionary/html/index.html +26 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/dictionary.js +51 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.4.2.min.js +154 -0
- data/vendor/local/share/groonga/examples/dictionary/init_db.sh +10 -0
- data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +42 -0
- data/vendor/local/share/groonga/examples/dictionary/readme.txt +71 -0
- data/vendor/local/share/man/man1/groonga.1 +5498 -0
- metadata +360 -118
- data/pkg-config.rb +0 -333
- data/pkg/rroonga-0.9.5/NEWS.ja.rdoc +0 -156
- data/pkg/rroonga-0.9.5/NEWS.rdoc +0 -158
- data/pkg/rroonga-0.9.5/README.ja.rdoc +0 -65
- data/pkg/rroonga-0.9.5/README.rdoc +0 -66
- data/pkg/rroonga-0.9.5/text/TUTORIAL.ja.rdoc +0 -394
- data/pkg/rroonga-0.9.5/text/expression.rdoc +0 -285
- data/test-unit/Rakefile +0 -40
- data/test-unit/TODO +0 -5
- data/test-unit/bin/testrb +0 -5
- data/test-unit/html/classic.html +0 -15
- data/test-unit/html/index.html +0 -25
- data/test-unit/html/index.html.ja +0 -27
- data/test-unit/lib/test/unit.rb +0 -323
- data/test-unit/lib/test/unit/assertionfailederror.rb +0 -25
- data/test-unit/lib/test/unit/assertions.rb +0 -1230
- data/test-unit/lib/test/unit/attribute.rb +0 -125
- data/test-unit/lib/test/unit/autorunner.rb +0 -360
- data/test-unit/lib/test/unit/collector.rb +0 -36
- data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
- data/test-unit/lib/test/unit/collector/dir.rb +0 -108
- data/test-unit/lib/test/unit/collector/load.rb +0 -144
- data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
- data/test-unit/lib/test/unit/color-scheme.rb +0 -102
- data/test-unit/lib/test/unit/color.rb +0 -96
- data/test-unit/lib/test/unit/diff.rb +0 -724
- data/test-unit/lib/test/unit/error.rb +0 -130
- data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
- data/test-unit/lib/test/unit/failure.rb +0 -136
- data/test-unit/lib/test/unit/fixture.rb +0 -176
- data/test-unit/lib/test/unit/notification.rb +0 -129
- data/test-unit/lib/test/unit/omission.rb +0 -191
- data/test-unit/lib/test/unit/pending.rb +0 -150
- data/test-unit/lib/test/unit/priority.rb +0 -180
- data/test-unit/lib/test/unit/runner/console.rb +0 -52
- data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
- data/test-unit/lib/test/unit/runner/tap.rb +0 -8
- data/test-unit/lib/test/unit/testcase.rb +0 -476
- data/test-unit/lib/test/unit/testresult.rb +0 -89
- data/test-unit/lib/test/unit/testsuite.rb +0 -110
- data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
- data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -466
- data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -63
- data/test-unit/lib/test/unit/ui/tap/testrunner.rb +0 -92
- data/test-unit/lib/test/unit/ui/testrunner.rb +0 -28
- data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
- data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
- data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -41
- data/test-unit/lib/test/unit/util/method-owner-finder.rb +0 -28
- data/test-unit/lib/test/unit/util/observable.rb +0 -90
- data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
- data/test-unit/lib/test/unit/version.rb +0 -7
- data/test-unit/sample/adder.rb +0 -13
- data/test-unit/sample/subtracter.rb +0 -12
- data/test-unit/sample/test_adder.rb +0 -20
- data/test-unit/sample/test_subtracter.rb +0 -20
- data/test-unit/sample/test_user.rb +0 -23
- data/test-unit/test/collector/test-descendant.rb +0 -133
- data/test-unit/test/collector/test-load.rb +0 -442
- data/test-unit/test/collector/test_dir.rb +0 -406
- data/test-unit/test/collector/test_objectspace.rb +0 -100
- data/test-unit/test/run-test.rb +0 -15
- data/test-unit/test/test-attribute.rb +0 -86
- data/test-unit/test/test-color-scheme.rb +0 -67
- data/test-unit/test/test-color.rb +0 -47
- data/test-unit/test/test-diff.rb +0 -518
- data/test-unit/test/test-emacs-runner.rb +0 -60
- data/test-unit/test/test-fixture.rb +0 -287
- data/test-unit/test/test-notification.rb +0 -33
- data/test-unit/test/test-omission.rb +0 -81
- data/test-unit/test/test-pending.rb +0 -70
- data/test-unit/test/test-priority.rb +0 -119
- data/test-unit/test/test-testcase.rb +0 -544
- data/test-unit/test/test_assertions.rb +0 -1151
- data/test-unit/test/test_error.rb +0 -26
- data/test-unit/test/test_failure.rb +0 -33
- data/test-unit/test/test_testresult.rb +0 -113
- data/test-unit/test/test_testsuite.rb +0 -129
- data/test-unit/test/testunit-test-util.rb +0 -14
- data/test-unit/test/ui/test_testrunmediator.rb +0 -20
- data/test-unit/test/util/test-method-owner-finder.rb +0 -38
- data/test-unit/test/util/test_backtracefilter.rb +0 -41
- data/test-unit/test/util/test_observable.rb +0 -102
- data/test-unit/test/util/test_procwrapper.rb +0 -36
- data/vendor/local/lib/groonga/modules/functions/cast.dll +0 -0
@@ -0,0 +1,139 @@
|
|
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. 主キーによる前方一致検索 — 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> »</li>
|
44
|
+
<li><a href="../tutorial.html" accesskey="U">3. チュートリアル</a> »</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>> table_create --name PatPre --flags TABLE_PAT_KEY --key_type ShortText
|
61
|
+
[[0,1280378814.93737,0.10571],true]
|
62
|
+
> load --table PatPre
|
63
|
+
> [
|
64
|
+
> {"_key":"ひろゆき"},
|
65
|
+
> {"_key":"まろゆき"},
|
66
|
+
> {"_key":"ひろあき"}
|
67
|
+
> ]
|
68
|
+
[[0,1280378815.24384,1.001289],3]
|
69
|
+
> select --table PatPre --query _key:@ひろ
|
70
|
+
[[0,1280378816.44578,0.022706],[[[2],[["_id","UInt32"],["_key","ShortText"]],[3,"ひろあき"],[1,"ひろゆき"]]]]
|
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> »</li>
|
131
|
+
<li><a href="../tutorial.html" >3. チュートリアル</a> »</li>
|
132
|
+
</ul>
|
133
|
+
</div>
|
134
|
+
<div class="footer">
|
135
|
+
© 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>
|
@@ -0,0 +1,114 @@
|
|
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. 全文検索の語彙表に対する追加情報 — 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> »</li>
|
44
|
+
<li><a href="../tutorial.html" accesskey="U">3. チュートリアル</a> »</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> »</li>
|
106
|
+
<li><a href="../tutorial.html" >3. チュートリアル</a> »</li>
|
107
|
+
</ul>
|
108
|
+
</div>
|
109
|
+
<div class="footer">
|
110
|
+
© 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>
|
@@ -0,0 +1,458 @@
|
|
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. マイクロブログ検索システムの作成 — 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> »</li>
|
44
|
+
<li><a href="../tutorial.html" accesskey="U">3. チュートリアル</a> »</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
|
+
"_key": "daijiro",
|
167
|
+
"name": "hsiomaneki",
|
168
|
+
"follower": ["tasukuchan"],
|
169
|
+
"favorites": [],
|
170
|
+
"location": "127678039x502643091",
|
171
|
+
"location_str": "神奈川県",
|
172
|
+
"description": "groonga developer"
|
173
|
+
},
|
174
|
+
{
|
175
|
+
"_key": "tasukuchan",
|
176
|
+
"name": "グニャラくん",
|
177
|
+
"follower": ["daijiro","OffGao"],
|
178
|
+
"favorites": ["daijiro:1","OffGao:1"],
|
179
|
+
"location": "128423343x502929252",
|
180
|
+
"location_str": "東京都渋谷区",
|
181
|
+
"description": "エロいおっさん"
|
182
|
+
},
|
183
|
+
{
|
184
|
+
"_key": "OffGao",
|
185
|
+
"name": "OffGao",
|
186
|
+
"follower": ["tasukuchan","daijiro"],
|
187
|
+
"favorites": ["tasukuchan:1","daijiro:1"],
|
188
|
+
"location": "128544408x502801502",
|
189
|
+
"location_str": "東京都中野区",
|
190
|
+
"description": "がおがお"
|
191
|
+
}
|
192
|
+
]
|
193
|
+
|
194
|
+
load --table Comments
|
195
|
+
[
|
196
|
+
{
|
197
|
+
"_key": "daijiro:1",
|
198
|
+
"comment": "マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",
|
199
|
+
"last_modified": "2010/03/17 12:05:00",
|
200
|
+
"posted_by": "daijiro",
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"_key": "tasukuchan:1",
|
204
|
+
"comment": "初の書き込み。テストテスト。",
|
205
|
+
"last_modified": "2010/03/17 12:00:00",
|
206
|
+
"posted_by": "tasukuchan",
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"_key": "daijiro:2",
|
210
|
+
"comment": "@tasukuchan ようこそ!!!",
|
211
|
+
"last_modified": "2010/03/17 12:05:00",
|
212
|
+
"replied_to": "tasukuchan:1",
|
213
|
+
"replied_users": ["tasukuchan"],
|
214
|
+
"posted_by": "daijiro",
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"_key": "tasukuchan:2",
|
218
|
+
"comment": "@daijiro ありがとう!",
|
219
|
+
"last_modified": "2010/03/17 13:00:00",
|
220
|
+
"replied_to": "daijiro:2",
|
221
|
+
"replied_users": ["daijiro"],
|
222
|
+
"posted_by": "tasukuchan",
|
223
|
+
},
|
224
|
+
{
|
225
|
+
"_key": "tasukuchan:3",
|
226
|
+
"comment": "groongaなう #groonga",
|
227
|
+
"last_modified": "2010/03/17 14:00:00",
|
228
|
+
"hash_tags": ["groonga"],
|
229
|
+
"location": "127972422x503117107",
|
230
|
+
"posted_by": "tasukuchan",
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"_key": "tasukuchan:4",
|
234
|
+
"comment": "groonga開発合宿のため羽田空港に来ました! #groonga #travel",
|
235
|
+
"last_modified": "2010/03/17 14:05:00",
|
236
|
+
"hash_tags": ["groonga", "travel"],
|
237
|
+
"location": "127975798x502919856",
|
238
|
+
"posted_by": "tasukuchan",
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"_key": "OffGao:1",
|
242
|
+
"comment": "@daijiro @tasukuchan 登録してみましたよー!",
|
243
|
+
"last_modified": "2010/03/17 15:00:00",
|
244
|
+
"replied_users": ["daijiro", "tasukuchan"],
|
245
|
+
"location": "128551935x502796433",
|
246
|
+
"posted_by": "OffGao",
|
247
|
+
}
|
248
|
+
{
|
249
|
+
"_key": "OffGao:2",
|
250
|
+
"comment": "中野ブロードウェイなうなう",
|
251
|
+
"last_modified": "2010/03/17 15:05:00",
|
252
|
+
"location": "128551935x502796434",
|
253
|
+
"posted_by": "OffGao",
|
254
|
+
}
|
255
|
+
]
|
256
|
+
</pre></div>
|
257
|
+
</div>
|
258
|
+
<p>Usersテーブルのfollowerカラムとfavoritesカラム、そしてCommentsテーブルのreplied_usersカラムは、ベクターカラムです。そのため、これらのカラムは配列で値を指定します。</p>
|
259
|
+
<p>Usersテーブルのlocationカラムと、Commentsテーブルのlocationカラムは、GeoPoint型です。この型での値の指定は、”[緯度]x[経度]”と記述して指定します。</p>
|
260
|
+
<p>Commentsテーブルのlast_modifiedカラムは、Time型です。この型での値の指定方法は、マイクロ秒数の値を直接指定する方法のほかに、文字列で指定する方法もあります。”年/月/日 時:分:秒”というフォーマットで記述することで、データロードの際に文字列からキャストされ、マイクロ秒数の値が格納されます。</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>> select --table Users --match_columns name,location_str,description --query 東京 --output_columns _key,name
|
271
|
+
[[0,1280378873.00607,0.00053],[[[2],[["_key","ShortText"],["name","ShortText"]],["tasukuchan","グニャラくん"],["OffGao","OffGao"]]]]
|
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>> select --table Users --filter 'geo_in_circle(location,"128484216x502919856",5000)' --output_columns _key,name
|
282
|
+
[[0,1280378873.20845,0.000337],[[[2],[["_key","ShortText"],["name","ShortText"]],["tasukuchan","グニャラくん"],["OffGao","OffGao"]]]]
|
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>> select --table Users --query follower:@tasukuchan --output_columns _key,name
|
293
|
+
[[0,1280378873.4108,0.000311],[[[2],[["_key","ShortText"],["name","ShortText"]],["daijiro","hsiomaneki"],["OffGao","OffGao"]]]]
|
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>> select --table Comments --filter 'geo_in_circle(location,"127975798x502919856",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
|
304
|
+
[[0,1280378873.61299,0.000702],[[[4],[["posted_by.name","ShortText"],["comment","ShortText"]],["OffGao","@daijiro @tasukuchan 登録してみましたよー!"],["グニャラくん","groongaなう #groonga"],["グニャラくん","groonga開発合宿のため羽田空港に来ました! #groonga #travel"],["OffGao","中野ブロードウェイなうなう"]],[[2],[["_key","ShortText"],["_nsubrecs","Int32"]],["groonga",2],["travel",1]],[[2],[["_key","ShortText"],["_nsubrecs","Int32"]],["OffGao",2],["tasukuchan",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>> select --table Comments --query comment:@なう --output_columns comment,_score
|
315
|
+
[[0,1280378873.81946,0.000332],[[[2],[["comment","ShortText"],["_score","Int32"]],["groongaなう #groonga",1],["中野ブロードウェイなうなう",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の両方を条件に検索をしてみます。–queryと–filterの両方を使用した場合、両方の条件に一致するレコードがヒットします。</p>
|
323
|
+
<p>実行例</p>
|
324
|
+
<div class="highlight-none"><div class="highlight"><pre>> select --table Comments --query comment:@羽田 --filter 'geo_in_circle(location,"127975798x502919856",20000)' --output_columns posted_by.name,comment --drilldown hash_tags,posted_by
|
325
|
+
[[0,1280378874.02194,0.000669],[[[1],[["posted_by.name","ShortText"],["comment","ShortText"]],["グニャラくん","groonga開発合宿のため羽田空港に来ました! #groonga #travel"]],[[2],[["_key","ShortText"],["_nsubrecs","Int32"]],["groonga",1],["travel",1]],[[1],[["_key","ShortText"],["_nsubrecs","Int32"]],["tasukuchan",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>> select --table Comments --query hash_tags:@groonga --output_columns posted_by.name,comment --drilldown posted_by
|
336
|
+
[[0,1280378874.22658,0.000485],[[[2],[["posted_by.name","ShortText"],["comment","ShortText"]],["グニャラくん","groongaなう #groonga"],["グニャラくん","groonga開発合宿のため羽田空港に来ました! #groonga #travel"]],[[1],[["_key","ShortText"],["_nsubrecs","Int32"]],["tasukuchan",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>> select --table Comments --query posted_by:tasukuchan --output_columns comment --drilldown hash_tags
|
346
|
+
[[0,1280378874.43074,0.000502],[[[4],[["comment","ShortText"]],["初の書き込み。テストテスト。"],["@daijiro ありがとう!"],["groongaなう #groonga"],["groonga開発合宿のため羽田空港に来ました! #groonga #travel"]],[[2],[["_key","ShortText"],["_nsubrecs","Int32"]],["groonga",2],["travel",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>> select --table Users --query _key:tasukuchan --output_columns favorites.posted_by,favorites.comment
|
356
|
+
[[0,1280378874.63511,0.000327],[[[1],[["favorites.posted_by","Users"],["favorites.comment","ShortText"]],[["daijiro","OffGao"],["マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。","@daijiro @tasukuchan 登録してみましたよー!"]]]]]
|
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>> select Comments --filter 'last_modified<=1268802000' --output_columns posted_by.name,comment,last_modified --drilldown hash_tags,posted_by
|
367
|
+
[[0,1280378874.83883,0.000681],[[[5],[["posted_by.name","ShortText"],["comment","ShortText"],["last_modified","Time"]],["hsiomaneki","マイクロブログ作ってみました(甘栗むいちゃいました的な感じで)。",1268795100.0],["グニャラくん","初の書き込み。テストテスト。",1268794800.0],["hsiomaneki","@tasukuchan ようこそ!!!",1268795100.0],["グニャラくん","@daijiro ありがとう!",1268798400.0],["グニャラくん","groongaなう #groonga",1268802000.0]],[[1],[["_key","ShortText"],["_nsubrecs","Int32"]],["groonga",1]],[[2],[["_key","ShortText"],["_nsubrecs","Int32"]],["daijiro",2],["tasukuchan",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> »</li>
|
450
|
+
<li><a href="../tutorial.html" >3. チュートリアル</a> »</li>
|
451
|
+
</ul>
|
452
|
+
</div>
|
453
|
+
<div class="footer">
|
454
|
+
© 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>
|