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.
- data/NEWS.ja.rdoc +146 -0
- data/NEWS.rdoc +146 -0
- data/README.ja.rdoc +7 -5
- data/README.rdoc +6 -5
- data/Rakefile +170 -18
- data/benchmark/create-wikipedia-database.rb +212 -0
- data/benchmark/read-write-many-small-items.rb +0 -0
- data/benchmark/repeat-load.rb +213 -0
- data/benchmark/select.rb +1052 -0
- data/benchmark/write-many-small-items.rb +0 -0
- data/example/bookmark.rb +94 -91
- data/example/index-html.rb +0 -0
- data/ext/groonga/extconf.rb +6 -6
- data/ext/groonga/rb-grn-accessor.c +1 -1
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-column.c +201 -10
- data/ext/groonga/rb-grn-context.c +119 -20
- data/ext/groonga/rb-grn-database.c +27 -4
- data/ext/groonga/rb-grn-exception.c +15 -0
- data/ext/groonga/rb-grn-expression.c +14 -10
- data/ext/groonga/rb-grn-hash.c +4 -4
- data/ext/groonga/rb-grn-index-column.c +10 -6
- data/ext/groonga/rb-grn-logger.c +2 -2
- data/ext/groonga/rb-grn-object.c +33 -29
- data/ext/groonga/{rb-grn-operation.c → rb-grn-operator.c} +89 -87
- data/ext/groonga/rb-grn-patricia-trie.c +12 -12
- data/ext/groonga/rb-grn-plugin.c +134 -0
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-query.c +7 -7
- data/ext/groonga/rb-grn-snippet.c +4 -3
- data/ext/groonga/rb-grn-table-cursor.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +27 -24
- data/ext/groonga/rb-grn-table.c +119 -58
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +20 -19
- data/ext/groonga/rb-grn-variable.c +1 -1
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view.c +1 -1
- data/ext/groonga/rb-grn.h +26 -20
- data/ext/groonga/rb-groonga.c +6 -4
- data/extconf.rb +10 -4
- data/html/developer.html +8 -2
- data/html/favicon.ico +0 -0
- data/html/favicon.svg +591 -0
- data/html/index.html +78 -12
- data/html/logo.svg +612 -0
- data/html/ranguba.css +92 -7
- data/html/readme.svg +256 -0
- data/lib/groonga.so +0 -0
- data/lib/groonga/context.rb +52 -1
- data/lib/groonga/expression-builder.rb +42 -6
- data/lib/groonga/record.rb +84 -15
- data/lib/groonga/schema.rb +524 -122
- data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.ja.rdoc +326 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/NEWS.rdoc +328 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/README.ja.rdoc +68 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/README.rdoc +68 -0
- data/pkg/rroonga-1.1.0-x86-mingw32/text/expression.rdoc +285 -0
- data/{text/TUTORIAL.ja.rdoc → pkg/rroonga-1.1.0-x86-mingw32/text/tutorial.ja.rdoc} +165 -126
- data/pkg/rroonga-1.1.0/NEWS.ja.rdoc +326 -0
- data/pkg/rroonga-1.1.0/NEWS.rdoc +328 -0
- data/pkg/rroonga-1.1.0/README.ja.rdoc +68 -0
- data/pkg/rroonga-1.1.0/README.rdoc +68 -0
- data/pkg/rroonga-1.1.0/text/expression.rdoc +285 -0
- data/pkg/rroonga-1.1.0/text/tutorial.ja.rdoc +433 -0
- data/rroonga-build.rb +3 -3
- data/test/run-test.rb +1 -1
- data/test/test-array.rb +4 -0
- data/test/test-column.rb +31 -1
- data/test/test-context-select.rb +45 -14
- data/test/test-context.rb +44 -0
- data/test/test-database.rb +21 -1
- data/test/test-expression-builder.rb +46 -5
- data/test/test-fix-size-column.rb +12 -0
- data/test/test-hash.rb +10 -4
- data/test/test-index-column.rb +33 -0
- data/test/test-patricia-trie.rb +6 -0
- data/test/test-plugin.rb +29 -0
- data/test/test-record.rb +84 -1
- data/test/test-remote.rb +3 -2
- data/test/test-schema-create-table.rb +32 -2
- data/test/test-schema-type.rb +167 -0
- data/test/test-schema.rb +159 -12
- data/test/test-table-select-weight.rb +20 -1
- data/test/test-table-select.rb +12 -0
- data/test/test-table.rb +65 -0
- data/test/test-variable-size-column.rb +12 -0
- data/text/tutorial.ja.rdoc +433 -0
- 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/init.d/redhat/groonga +1 -9
- data/vendor/local/include/groonga/groonga.h +156 -6
- data/vendor/local/include/groonga/groonga/plugin.h +44 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/{modules → plugins}/suggest/suggest.la +2 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -2
- data/vendor/local/share/groonga/examples/dictionary/edict/edict_import.sh +14 -3
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro_import.sh +3 -1
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene_import.sh +19 -3
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -0
- data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -0
- metadata +91 -341
- data/html/favicon.xcf +0 -0
- data/html/logo.xcf +0 -0
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/license/GPL +0 -340
- data/license/RUBY +0 -59
- 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/share/groonga/doc/ja/html/.buildinfo +0 -4
- data/vendor/local/share/groonga/doc/ja/html/_sources/characteristic.txt +0 -56
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/cache_limit.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/check.txt +0 -164
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/clearlock.txt +0 -61
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_create.txt +0 -93
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_list.txt +0 -97
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/column_remove.txt +0 -58
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/define_selector.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/defrag.txt +0 -57
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/delete.txt +0 -68
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/dump.txt +0 -62
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/load.txt +0 -98
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_level.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_put.txt +0 -69
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/log_reopen.txt +0 -66
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/quit.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/select.txt +0 -247
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/shutdown.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/status.txt +0 -59
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/suggest.txt +0 -79
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_create.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_list.txt +0 -87
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/table_remove.txt +0 -50
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands/view_add.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/add.txt +0 -102
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/get.txt +0 -78
- data/vendor/local/share/groonga/doc/ja/html/_sources/commands_not_implemented/set.txt +0 -103
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/com.txt +0 -18
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/document.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/query.txt +0 -212
- data/vendor/local/share/groonga/doc/ja/html/_sources/developer/test.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/html/_sources/execfile.txt +0 -226
- data/vendor/local/share/groonga/doc/ja/html/_sources/expr.txt +0 -43
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/edit_distance.txt +0 -48
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_distance.txt +0 -51
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_circle.txt +0 -54
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/geo_in_rectangle.txt +0 -55
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/now.txt +0 -34
- data/vendor/local/share/groonga/doc/ja/html/_sources/functions/rand.txt +0 -41
- data/vendor/local/share/groonga/doc/ja/html/_sources/grnslap.txt +0 -64
- data/vendor/local/share/groonga/doc/ja/html/_sources/grntest.txt +0 -259
- data/vendor/local/share/groonga/doc/ja/html/_sources/http.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/html/_sources/index.txt +0 -21
- data/vendor/local/share/groonga/doc/ja/html/_sources/install.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/html/_sources/news.txt +0 -199
- data/vendor/local/share/groonga/doc/ja/html/_sources/process.txt +0 -12
- data/vendor/local/share/groonga/doc/ja/html/_sources/pseudo_column.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/html/_sources/reference.txt +0 -14
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial01.txt +0 -293
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial02.txt +0 -100
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial03.txt +0 -72
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial04.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial05.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial06.txt +0 -91
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial07.txt +0 -92
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial08.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial09.txt +0 -9
- data/vendor/local/share/groonga/doc/ja/html/_sources/tutorial/tutorial10.txt +0 -486
- data/vendor/local/share/groonga/doc/ja/html/_sources/type.txt +0 -118
- data/vendor/local/share/groonga/doc/ja/html/_static/basic.css +0 -509
- data/vendor/local/share/groonga/doc/ja/html/_static/default.css +0 -277
- data/vendor/local/share/groonga/doc/ja/html/_static/doctools.js +0 -247
- data/vendor/local/share/groonga/doc/ja/html/_static/file.png +0 -0
- data/vendor/local/share/groonga/doc/ja/html/_static/jquery.js +0 -6240
- 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 +0 -61
- data/vendor/local/share/groonga/doc/ja/html/_static/searchtools.js +0 -518
- data/vendor/local/share/groonga/doc/ja/html/_static/sidebar.js +0 -147
- data/vendor/local/share/groonga/doc/ja/html/_static/underscore.js +0 -16
- data/vendor/local/share/groonga/doc/ja/html/characteristic.html +0 -162
- data/vendor/local/share/groonga/doc/ja/html/commands.html +0 -139
- data/vendor/local/share/groonga/doc/ja/html/commands/cache_limit.html +0 -173
- data/vendor/local/share/groonga/doc/ja/html/commands/check.html +0 -285
- data/vendor/local/share/groonga/doc/ja/html/commands/clearlock.html +0 -180
- data/vendor/local/share/groonga/doc/ja/html/commands/column_create.html +0 -210
- data/vendor/local/share/groonga/doc/ja/html/commands/column_list.html +0 -220
- data/vendor/local/share/groonga/doc/ja/html/commands/column_remove.html +0 -183
- data/vendor/local/share/groonga/doc/ja/html/commands/define_selector.html +0 -221
- data/vendor/local/share/groonga/doc/ja/html/commands/defrag.html +0 -177
- data/vendor/local/share/groonga/doc/ja/html/commands/delete.html +0 -182
- data/vendor/local/share/groonga/doc/ja/html/commands/dump.html +0 -177
- data/vendor/local/share/groonga/doc/ja/html/commands/load.html +0 -208
- data/vendor/local/share/groonga/doc/ja/html/commands/log_level.html +0 -187
- data/vendor/local/share/groonga/doc/ja/html/commands/log_put.html +0 -190
- data/vendor/local/share/groonga/doc/ja/html/commands/log_reopen.html +0 -188
- data/vendor/local/share/groonga/doc/ja/html/commands/quit.html +0 -156
- data/vendor/local/share/groonga/doc/ja/html/commands/select.html +0 -331
- data/vendor/local/share/groonga/doc/ja/html/commands/shutdown.html +0 -156
- data/vendor/local/share/groonga/doc/ja/html/commands/status.html +0 -179
- data/vendor/local/share/groonga/doc/ja/html/commands/suggest.html +0 -191
- data/vendor/local/share/groonga/doc/ja/html/commands/table_create.html +0 -222
- data/vendor/local/share/groonga/doc/ja/html/commands/table_list.html +0 -202
- data/vendor/local/share/groonga/doc/ja/html/commands/table_remove.html +0 -173
- data/vendor/local/share/groonga/doc/ja/html/commands/view_add.html +0 -175
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/add.html +0 -180
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/get.html +0 -161
- data/vendor/local/share/groonga/doc/ja/html/commands_not_implemented/set.html +0 -182
- data/vendor/local/share/groonga/doc/ja/html/developer.html +0 -118
- data/vendor/local/share/groonga/doc/ja/html/developer/com.html +0 -136
- data/vendor/local/share/groonga/doc/ja/html/developer/document.html +0 -159
- data/vendor/local/share/groonga/doc/ja/html/developer/query.html +0 -336
- data/vendor/local/share/groonga/doc/ja/html/developer/test.html +0 -220
- data/vendor/local/share/groonga/doc/ja/html/execfile.html +0 -370
- data/vendor/local/share/groonga/doc/ja/html/expr.html +0 -157
- data/vendor/local/share/groonga/doc/ja/html/functions.html +0 -122
- data/vendor/local/share/groonga/doc/ja/html/functions/edit_distance.html +0 -162
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_distance.html +0 -170
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_circle.html +0 -173
- data/vendor/local/share/groonga/doc/ja/html/functions/geo_in_rectangle.html +0 -172
- data/vendor/local/share/groonga/doc/ja/html/functions/now.html +0 -152
- data/vendor/local/share/groonga/doc/ja/html/functions/rand.html +0 -159
- data/vendor/local/share/groonga/doc/ja/html/genindex.html +0 -227
- data/vendor/local/share/groonga/doc/ja/html/grnslap.html +0 -183
- data/vendor/local/share/groonga/doc/ja/html/grntest.html +0 -368
- data/vendor/local/share/groonga/doc/ja/html/http.html +0 -163
- data/vendor/local/share/groonga/doc/ja/html/index.html +0 -291
- data/vendor/local/share/groonga/doc/ja/html/install.html +0 -228
- data/vendor/local/share/groonga/doc/ja/html/news.html +0 -310
- data/vendor/local/share/groonga/doc/ja/html/objects.inv +0 -0
- data/vendor/local/share/groonga/doc/ja/html/process.html +0 -120
- data/vendor/local/share/groonga/doc/ja/html/pseudo_column.html +0 -147
- data/vendor/local/share/groonga/doc/ja/html/reference.html +0 -174
- data/vendor/local/share/groonga/doc/ja/html/search.html +0 -96
- data/vendor/local/share/groonga/doc/ja/html/searchindex.js +0 -1
- data/vendor/local/share/groonga/doc/ja/html/tutorial.html +0 -172
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial01.html +0 -388
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial02.html +0 -214
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial03.html +0 -183
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial04.html +0 -212
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial05.html +0 -169
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial06.html +0 -209
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial07.html +0 -212
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial08.html +0 -139
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial09.html +0 -114
- data/vendor/local/share/groonga/doc/ja/html/tutorial/tutorial10.html +0 -458
- data/vendor/local/share/groonga/doc/ja/html/type.html +0 -217
- data/vendor/local/share/groonga/doc/ja/source/__init__.py +0 -0
- data/vendor/local/share/groonga/doc/ja/source/characteristic.txt +0 -56
- data/vendor/local/share/groonga/doc/ja/source/commands.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/commands/cache_limit.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/source/commands/check.txt +0 -164
- data/vendor/local/share/groonga/doc/ja/source/commands/clearlock.txt +0 -61
- data/vendor/local/share/groonga/doc/ja/source/commands/column_create.txt +0 -93
- data/vendor/local/share/groonga/doc/ja/source/commands/column_list.txt +0 -97
- data/vendor/local/share/groonga/doc/ja/source/commands/column_remove.txt +0 -58
- data/vendor/local/share/groonga/doc/ja/source/commands/define_selector.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/source/commands/defrag.txt +0 -57
- data/vendor/local/share/groonga/doc/ja/source/commands/delete.txt +0 -68
- data/vendor/local/share/groonga/doc/ja/source/commands/dump.txt +0 -62
- data/vendor/local/share/groonga/doc/ja/source/commands/load.txt +0 -98
- data/vendor/local/share/groonga/doc/ja/source/commands/log_level.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/source/commands/log_put.txt +0 -69
- data/vendor/local/share/groonga/doc/ja/source/commands/log_reopen.txt +0 -66
- data/vendor/local/share/groonga/doc/ja/source/commands/quit.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/commands/select.txt +0 -247
- data/vendor/local/share/groonga/doc/ja/source/commands/shutdown.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/commands/status.txt +0 -59
- data/vendor/local/share/groonga/doc/ja/source/commands/table_create.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/source/commands/table_list.txt +0 -87
- data/vendor/local/share/groonga/doc/ja/source/commands/table_remove.txt +0 -50
- data/vendor/local/share/groonga/doc/ja/source/commands/view_add.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/add.txt +0 -102
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/get.txt +0 -78
- data/vendor/local/share/groonga/doc/ja/source/commands_not_implemented/set.txt +0 -103
- data/vendor/local/share/groonga/doc/ja/source/conf.py +0 -265
- data/vendor/local/share/groonga/doc/ja/source/developer.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/developer/com.txt +0 -18
- data/vendor/local/share/groonga/doc/ja/source/developer/document.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/developer/query.txt +0 -212
- data/vendor/local/share/groonga/doc/ja/source/developer/test.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-1.log +0 -6
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-10.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-11.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-12.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-13.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-14.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-15.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-16.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-17.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-2.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-3.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-4.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-7.log +0 -16
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-8.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial01-9.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-1.log +0 -8
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-2.log +0 -6
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial02-3.log +0 -12
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-1.log +0 -18
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-2.log +0 -10
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial03-3.log +0 -10
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-1.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-2.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-3.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-4.log +0 -13
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial04-7.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-1.log +0 -24
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-2.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-3.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-4.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial05-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-1.log +0 -25
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-2.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-3.log +0 -21
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-4.log +0 -7
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial06-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-1.log +0 -22
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-2.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-3.log +0 -20
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial07-4.log +0 -9
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial08-1.log +0 -14
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-1.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-10.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-2.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-3.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-4.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-5.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-6.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-7.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-8.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/example/tutorial10-9.log +0 -5
- data/vendor/local/share/groonga/doc/ja/source/execfile.txt +0 -226
- data/vendor/local/share/groonga/doc/ja/source/expr.txt +0 -43
- data/vendor/local/share/groonga/doc/ja/source/functions.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/functions/edit_distance.txt +0 -48
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_distance.txt +0 -51
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_circle.txt +0 -54
- data/vendor/local/share/groonga/doc/ja/source/functions/geo_in_rectangle.txt +0 -55
- data/vendor/local/share/groonga/doc/ja/source/functions/now.txt +0 -34
- data/vendor/local/share/groonga/doc/ja/source/functions/rand.txt +0 -41
- data/vendor/local/share/groonga/doc/ja/source/grnslap.txt +0 -64
- data/vendor/local/share/groonga/doc/ja/source/grntest.txt +0 -259
- data/vendor/local/share/groonga/doc/ja/source/http.txt +0 -52
- data/vendor/local/share/groonga/doc/ja/source/index.txt +0 -21
- data/vendor/local/share/groonga/doc/ja/source/install.txt +0 -114
- data/vendor/local/share/groonga/doc/ja/source/news.txt +0 -199
- data/vendor/local/share/groonga/doc/ja/source/process.txt +0 -12
- data/vendor/local/share/groonga/doc/ja/source/pseudo_column.txt +0 -38
- data/vendor/local/share/groonga/doc/ja/source/rdoc.py +0 -762
- data/vendor/local/share/groonga/doc/ja/source/reference.txt +0 -14
- data/vendor/local/share/groonga/doc/ja/source/tutorial.txt +0 -10
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial01.txt +0 -293
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial02.txt +0 -100
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial03.txt +0 -72
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial04.txt +0 -111
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial05.txt +0 -65
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial06.txt +0 -91
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial07.txt +0 -92
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial08.txt +0 -53
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial09.txt +0 -9
- data/vendor/local/share/groonga/doc/ja/source/tutorial/tutorial10.txt +0 -486
- data/vendor/local/share/groonga/doc/ja/source/type.txt +0 -118
- data/vendor/local/share/groonga/doc/ja/source/update_execution_example.py +0 -113
- 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. 主キーによる前方一致検索 — 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>
|
@@ -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. 全文検索の語彙表に対する追加情報 — 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>
|
@@ -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. マイクロブログ検索システムの作成 — 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>
|