rroonga 2.0.8-x86-mingw32 → 2.1.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/README.textile +2 -2
- data/bin/groonga-index-dump +47 -0
- data/doc/text/news.textile +733 -0
- data/doc/text/tutorial.textile +535 -0
- data/example/bookmark.rb +1 -1
- data/ext/groonga/rb-grn-database.c +21 -24
- data/ext/groonga/rb-grn-double-array-trie.c +50 -58
- data/ext/groonga/rb-grn-exception.c +18 -1
- data/ext/groonga/rb-grn-hash.c +18 -3
- data/ext/groonga/rb-grn-index-column.c +50 -2
- data/ext/groonga/rb-grn-normalizer.c +83 -0
- data/ext/groonga/rb-grn-object.c +18 -14
- data/ext/groonga/rb-grn-patricia-trie.c +17 -2
- data/ext/groonga/rb-grn-query-logger.c +263 -0
- data/ext/groonga/rb-grn-snippet.c +6 -0
- data/ext/groonga/rb-grn-table-key-support.c +204 -13
- data/ext/groonga/rb-grn-table.c +124 -46
- data/ext/groonga/rb-grn.h +14 -3
- data/ext/groonga/rb-groonga.c +2 -0
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga.rb +2 -1
- data/lib/groonga/database.rb +7 -0
- data/lib/groonga/dumper.rb +21 -2
- data/lib/groonga/index-column.rb +170 -0
- data/lib/groonga/query-logger.rb +129 -0
- data/lib/groonga/record.rb +32 -8
- data/lib/groonga/schema.rb +231 -288
- data/rroonga-build.rb +2 -2
- data/rroonga.gemspec +11 -7
- data/test/groonga-test-utils.rb +18 -6
- data/test/test-hash.rb +49 -20
- data/test/test-index-cursor.rb +4 -4
- data/{Gemfile → test/test-normalizer.rb} +9 -5
- data/test/test-pagination.rb +1 -1
- data/test/test-patricia-trie.rb +8 -0
- data/test/test-schema.rb +16 -13
- data/test/test-snippet.rb +5 -0
- data/test/test-table.rb +24 -12
- data/test/test-view.rb +0 -1
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +25 -14
- data/vendor/local/include/groonga/groonga/normalizer.h +55 -0
- data/vendor/local/include/groonga/groonga/tokenizer.h +33 -13
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- 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/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.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 +2 -2
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +1 -1
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +9 -3
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -42
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +16 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +59 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +129 -0
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +0 -12
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +3 -3
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/index.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/install.html +10 -11
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +16 -53
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -16
- data/vendor/local/share/doc/groonga/en/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news.html +146 -82
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +8 -7
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +265 -7
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -42
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +16 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +59 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +129 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +0 -12
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/community.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/index.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/install.html +10 -11
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +16 -51
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -16
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news.html +126 -82
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/view_add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +8 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +259 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-data-with-three-relationship.log +23 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-data.log +16 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-schema-with-three-relationship.log +30 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-schema.log +20 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-select-with-three-relationship.log +86 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-nested-index-select.log +41 -0
- data/vendor/local/share/doc/groonga/source/install/centos.txt +6 -6
- data/vendor/local/share/doc/groonga/source/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/fedora.txt +4 -4
- data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +3 -42
- data/vendor/local/share/doc/groonga/source/install/windows.txt +16 -16
- data/vendor/local/share/doc/groonga/source/news.txt +59 -0
- data/vendor/local/share/doc/groonga/source/tutorial/match_columns.txt +129 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +338 -93
- data/vendor/local/share/man/man1/groonga.1 +341 -92
- metadata +1258 -1242
- data/AUTHORS +0 -5
- data/Rakefile +0 -203
- data/bin/groonga-query-log-extract +0 -117
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>4.5. ドリルダウン — groonga v2.0
|
12
|
+
<title>4.5. ドリルダウン — groonga v2.1.0ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '2.0
|
20
|
+
VERSION: '2.1.0',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v2.0
|
31
|
+
<link rel="top" title="groonga v2.1.0ドキュメント" href="../index.html" />
|
32
32
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
33
33
|
<link rel="next" title="4.6. タグ検索・参照関係の逆引き" href="index.html" />
|
34
34
|
<link rel="prev" title="4.4. さまざまな検索条件の指定" href="search.html" />
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<li class="right" >
|
64
64
|
<a href="search.html" title="4.4. さまざまな検索条件の指定"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v2.0
|
66
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
67
67
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
@@ -596,7 +596,7 @@ load --table Site
|
|
596
596
|
<li class="right" >
|
597
597
|
<a href="search.html" title="4.4. さまざまな検索条件の指定"
|
598
598
|
>前へ</a> |</li>
|
599
|
-
<li><a href="../index.html">groonga v2.0
|
599
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
600
600
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
601
601
|
</ul>
|
602
602
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>4.6. タグ検索・参照関係の逆引き — groonga v2.0
|
12
|
+
<title>4.6. タグ検索・参照関係の逆引き — groonga v2.1.0ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '2.0
|
20
|
+
VERSION: '2.1.0',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v2.0
|
31
|
+
<link rel="top" title="groonga v2.1.0ドキュメント" href="../index.html" />
|
32
32
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
33
33
|
<link rel="next" title="4.7. match_columnsパラメータ" href="match_columns.html" />
|
34
34
|
<link rel="prev" title="4.5. ドリルダウン" href="drilldown.html" />
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<li class="right" >
|
64
64
|
<a href="drilldown.html" title="4.5. ドリルダウン"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v2.0
|
66
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
67
67
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
@@ -559,7 +559,7 @@ select --table Site --filter 'geo_in_circle(location, "128515259x503187
|
|
559
559
|
<li class="right" >
|
560
560
|
<a href="drilldown.html" title="4.5. ドリルダウン"
|
561
561
|
>前へ</a> |</li>
|
562
|
-
<li><a href="../index.html">groonga v2.0
|
562
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
563
563
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
564
564
|
</ul>
|
565
565
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>4.1. 基本的な操作 — groonga v2.0
|
12
|
+
<title>4.1. 基本的な操作 — groonga v2.1.0ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '2.0
|
20
|
+
VERSION: '2.1.0',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v2.0
|
31
|
+
<link rel="top" title="groonga v2.1.0ドキュメント" href="../index.html" />
|
32
32
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
33
33
|
<link rel="next" title="4.2. リモートアクセス" href="network.html" />
|
34
34
|
<link rel="prev" title="4. チュートリアル" href="../tutorial.html" />
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<li class="right" >
|
64
64
|
<a href="../tutorial.html" title="4. チュートリアル"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v2.0
|
66
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
67
67
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
@@ -1070,7 +1070,7 @@ select --table Site --offset 7 --limit 3
|
|
1070
1070
|
<li class="right" >
|
1071
1071
|
<a href="../tutorial.html" title="4. チュートリアル"
|
1072
1072
|
>前へ</a> |</li>
|
1073
|
-
<li><a href="../index.html">groonga v2.0
|
1073
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
1074
1074
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
1075
1075
|
</ul>
|
1076
1076
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>4.9. 全文検索の語彙表に対する追加情報 — groonga v2.0
|
12
|
+
<title>4.9. 全文検索の語彙表に対する追加情報 — groonga v2.1.0ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '2.0
|
20
|
+
VERSION: '2.1.0',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v2.0
|
31
|
+
<link rel="top" title="groonga v2.1.0ドキュメント" href="../index.html" />
|
32
32
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
33
33
|
<link rel="next" title="4.10. マイクロブログ検索システムの作成" href="micro_blog.html" />
|
34
34
|
<link rel="prev" title="4.8. パトリシア木による前方一致検索" href="patricia_trie.html" />
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<li class="right" >
|
64
64
|
<a href="patricia_trie.html" title="4.8. パトリシア木による前方一致検索"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v2.0
|
66
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
67
67
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
@@ -125,7 +125,7 @@
|
|
125
125
|
<li class="right" >
|
126
126
|
<a href="patricia_trie.html" title="4.8. パトリシア木による前方一致検索"
|
127
127
|
>前へ</a> |</li>
|
128
|
-
<li><a href="../index.html">groonga v2.0
|
128
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
129
129
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
130
130
|
</ul>
|
131
131
|
</div>
|
@@ -9,7 +9,7 @@
|
|
9
9
|
<head>
|
10
10
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
11
11
|
|
12
|
-
<title>4.7. match_columnsパラメータ — groonga v2.0
|
12
|
+
<title>4.7. match_columnsパラメータ — groonga v2.1.0ドキュメント</title>
|
13
13
|
|
14
14
|
<link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
|
15
15
|
<link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
|
@@ -17,7 +17,7 @@
|
|
17
17
|
<script type="text/javascript">
|
18
18
|
var DOCUMENTATION_OPTIONS = {
|
19
19
|
URL_ROOT: '../',
|
20
|
-
VERSION: '2.0
|
20
|
+
VERSION: '2.1.0',
|
21
21
|
COLLAPSE_INDEX: false,
|
22
22
|
FILE_SUFFIX: '.html',
|
23
23
|
HAS_SOURCE: true
|
@@ -28,7 +28,7 @@
|
|
28
28
|
<script type="text/javascript" src="../_static/doctools.js"></script>
|
29
29
|
<script type="text/javascript" src="../_static/translations.js"></script>
|
30
30
|
<link rel="shortcut icon" href="../_static/favicon.ico"/>
|
31
|
-
<link rel="top" title="groonga v2.0
|
31
|
+
<link rel="top" title="groonga v2.1.0ドキュメント" href="../index.html" />
|
32
32
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
33
33
|
<link rel="next" title="4.8. パトリシア木による前方一致検索" href="patricia_trie.html" />
|
34
34
|
<link rel="prev" title="4.6. タグ検索・参照関係の逆引き" href="index.html" />
|
@@ -63,7 +63,7 @@
|
|
63
63
|
<li class="right" >
|
64
64
|
<a href="index.html" title="4.6. タグ検索・参照関係の逆引き"
|
65
65
|
accesskey="P">前へ</a> |</li>
|
66
|
-
<li><a href="../index.html">groonga v2.0
|
66
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
67
67
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
68
68
|
</ul>
|
69
69
|
</div>
|
@@ -415,8 +415,259 @@ select --table Blog2 --match_columns title --query message
|
|
415
415
|
<h2>4.7.2. インデックス名を指定した全文検索<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
416
416
|
<p>執筆中です。</p>
|
417
417
|
</div>
|
418
|
+
<div class="section" id="nested-index-search-among-related-table-by-column-index">
|
419
|
+
<span id="nested-index-search"></span><h2>4.7.3. カラムインデックスによる関連テーブルをまたぐ検索<a class="headerlink" href="#nested-index-search-among-related-table-by-column-index" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
420
|
+
<p>複数のテーブルがカラムインデックスで関連付けられているなら、参照カラム名を指定して複数のテーブルにまたがって検索することができます。</p>
|
421
|
+
<p>具体的な例を示します。</p>
|
422
|
+
<p>ブログ記事や記事のコメントを保存するテーブルがあります。記事を保存するテーブルには記事とコメントのためのカラムがあります。そしてそのコメントカラムはCommentsテーブルを参照しています。コメントを保存するテーブルにはコメントと記事テーブルに対するカラムインデックスが設定されています。</p>
|
423
|
+
<p>特定のキーワードをコメントに含む記事を探すには、コメントテーブルを全文検索する必要があり、全文検索結果を含むレコードをさらに検索する必要があります。</p>
|
424
|
+
<p>しかし、カラムインデックスを指定することで一度にレコードを検索することができます。</p>
|
425
|
+
<p>サンプルのスキーマ定義はこちらです。</p>
|
426
|
+
<p>実行例:</p>
|
427
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Comments TABLE_HASH_KEY UInt32
|
428
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
429
|
+
column_create Comments content COLUMN_SCALAR ShortText
|
430
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
431
|
+
table_create Articles TABLE_NO_KEY
|
432
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
433
|
+
column_create Articles content COLUMN_SCALAR Text
|
434
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
435
|
+
column_create Articles comment COLUMN_SCALAR Comments
|
436
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
437
|
+
table_create Lexicon TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
438
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
439
|
+
column_create Lexicon articles_content COLUMN_INDEX|WITH_POSITION Articles content
|
440
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
441
|
+
column_create Lexicon comments_content COLUMN_INDEX|WITH_POSITION Comments content
|
442
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
443
|
+
column_create Comments article COLUMN_INDEX Articles comment
|
444
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
445
|
+
</pre></div>
|
446
|
+
</div>
|
447
|
+
<p>サンプルデータはこちらです。</p>
|
448
|
+
<p>実行例:</p>
|
449
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table Comments
|
450
|
+
[
|
451
|
+
{"_key": 1, "content": "I'm using groonga too!"},
|
452
|
+
{"_key": 2, "content": "I'm using groonga and mroonga!"},
|
453
|
+
{"_key": 3, "content": "I'm using mroonga too!"}
|
454
|
+
]
|
455
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
456
|
+
load --table Articles
|
457
|
+
[
|
458
|
+
{"content": "Groonga is fast!", "comment": 1},
|
459
|
+
{"content": "Groonga is useful!"},
|
460
|
+
{"content": "Mroonga is fast!", "comment": 3}
|
461
|
+
]
|
462
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
463
|
+
</pre></div>
|
464
|
+
</div>
|
465
|
+
<p>特定のキーワードをコメントに含むレコードを検索するクエリを書くことができ、それによりレコードを参照する記事を取得します。</p>
|
466
|
+
<p>これまでに記述したレコードを検索するクエリ:</p>
|
467
|
+
<div class="highlight-none"><div class="highlight"><pre>select Articles --match_columns comment.content --query groonga --output_columns "_id, _score, *"
|
468
|
+
</pre></div>
|
469
|
+
</div>
|
470
|
+
<p>ArticlesテーブルのcommentカラムとCommentsテーブルのcontentカラムをピリオド(.)で連結し <tt class="docutils literal"><span class="pre">--match_columns</span></tt> の引数とする必要があります。</p>
|
471
|
+
<p>最初に、このクエリはCommentsテーブルのcontentを全文検索し、次にCommentsテーブルを検索した結果のレコードを参照するArticlesテーブルのレコードを取得します。(これにより、Commentsテーブルの'article'カラムインデックスを生成するクエリをコメントアウトすると、意図した検索結果が得られません。)</p>
|
472
|
+
<p>実行例:</p>
|
473
|
+
<div class="highlight-none"><div class="highlight"><pre>select Articles --match_columns comment.content --query groonga --output_columns "_id, _score, *"
|
474
|
+
# [
|
475
|
+
# [
|
476
|
+
# 0,
|
477
|
+
# 1337566253.89858,
|
478
|
+
# 0.000355720520019531
|
479
|
+
# ],
|
480
|
+
# [
|
481
|
+
# [
|
482
|
+
# [
|
483
|
+
# 1
|
484
|
+
# ],
|
485
|
+
# [
|
486
|
+
# [
|
487
|
+
# "_id",
|
488
|
+
# "UInt32"
|
489
|
+
# ],
|
490
|
+
# [
|
491
|
+
# "_score",
|
492
|
+
# "Int32"
|
493
|
+
# ],
|
494
|
+
# [
|
495
|
+
# "comment",
|
496
|
+
# "Comments"
|
497
|
+
# ],
|
498
|
+
# [
|
499
|
+
# "content",
|
500
|
+
# "Text"
|
501
|
+
# ]
|
502
|
+
# ],
|
503
|
+
# [
|
504
|
+
# 1,
|
505
|
+
# 1,
|
506
|
+
# 1,
|
507
|
+
# "Groonga is fast!"
|
508
|
+
# ]
|
509
|
+
# ]
|
510
|
+
# ]
|
511
|
+
# ]
|
512
|
+
</pre></div>
|
513
|
+
</div>
|
514
|
+
<p>これで、特定のキーワードをコメントとして含む記事を検索できます。</p>
|
515
|
+
<p>このネストしたインデックスの検索という特徴には関連するテーブルが2つだけに制限されません。</p>
|
516
|
+
<p>前のものと似たサンプルのスキーマ定義です。違いは'返信'を表現するテーブルの追加と関連するテーブルが3つに増えたことです。</p>
|
517
|
+
<p>実行例:</p>
|
518
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Replies2 TABLE_HASH_KEY UInt32
|
519
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
520
|
+
column_create Replies2 content COLUMN_SCALAR ShortText
|
521
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
522
|
+
table_create Comments2 TABLE_HASH_KEY UInt32
|
523
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
524
|
+
column_create Comments2 content COLUMN_SCALAR ShortText
|
525
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
526
|
+
column_create Comments2 comment COLUMN_SCALAR Replies2
|
527
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
528
|
+
table_create Articles2 TABLE_NO_KEY
|
529
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
530
|
+
column_create Articles2 content COLUMN_SCALAR Text
|
531
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
532
|
+
column_create Articles2 comment COLUMN_SCALAR Comments2
|
533
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
534
|
+
table_create Lexicon2 TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
535
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
536
|
+
column_create Lexicon2 articles_content COLUMN_INDEX|WITH_POSITION Articles2 content
|
537
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
538
|
+
column_create Lexicon2 comments_content COLUMN_INDEX|WITH_POSITION Comments2 content
|
539
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
540
|
+
column_create Lexicon2 replies_content COLUMN_INDEX|WITH_POSITION Replies2 content
|
541
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
542
|
+
column_create Comments2 article COLUMN_INDEX Articles2 comment
|
543
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
544
|
+
column_create Replies2 reply_to COLUMN_INDEX Comments2 comment
|
545
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
546
|
+
</pre></div>
|
547
|
+
</div>
|
548
|
+
<p>サンプルデータはこちらです。</p>
|
549
|
+
<p>実行例:</p>
|
550
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table Replies2
|
551
|
+
[
|
552
|
+
{"_key": 1, "content": "I'm using rroonga too!"},
|
553
|
+
{"_key": 2, "content": "I'm using groonga and mroonga and rroonga!"},
|
554
|
+
{"_key": 3, "content": "I'm using nroonga too!"}
|
555
|
+
]
|
556
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
557
|
+
load --table Comments2
|
558
|
+
[
|
559
|
+
{"_key": 1, "content": "I'm using groonga too!", "comment": 1},
|
560
|
+
{"_key": 2, "content": "I'm using groonga and mroonga!", "comment": 2},
|
561
|
+
{"_key": 3, "content": "I'm using mroonga too!"}
|
562
|
+
]
|
563
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
564
|
+
load --table Articles2
|
565
|
+
[
|
566
|
+
{"content": "Groonga is fast!", "comment": 1},
|
567
|
+
{"content": "Groonga is useful!", "comment": 2},
|
568
|
+
{"content": "Mroonga is fast!", "comment": 3}
|
569
|
+
]
|
570
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
571
|
+
</pre></div>
|
572
|
+
</div>
|
573
|
+
<p>これまでに記述したレコードを検索するクエリ:</p>
|
574
|
+
<div class="highlight-none"><div class="highlight"><pre>select Articles2 --match_columns comment.content --query mroonga --output_columns "_id, _score, *"
|
575
|
+
select Articles2 --match_columns comment.comment.content --query mroonga --output_columns "_id, _score, *"
|
576
|
+
</pre></div>
|
577
|
+
</div>
|
578
|
+
<p>最初のクエリはComments2テーブルから'mroonga'を検索します。2つめのクエリはReplies2とComments2テーブルからカラムインデックスによる参照を用いて'mroonga'を検索します。</p>
|
579
|
+
<p>実行例:</p>
|
580
|
+
<div class="highlight-none"><div class="highlight"><pre>select Articles2 --match_columns comment.content --query mroonga --output_columns "_id, _score, *"
|
581
|
+
# [
|
582
|
+
# [
|
583
|
+
# 0,
|
584
|
+
# 1337566253.89858,
|
585
|
+
# 0.000355720520019531
|
586
|
+
# ],
|
587
|
+
# [
|
588
|
+
# [
|
589
|
+
# [
|
590
|
+
# 2
|
591
|
+
# ],
|
592
|
+
# [
|
593
|
+
# [
|
594
|
+
# "_id",
|
595
|
+
# "UInt32"
|
596
|
+
# ],
|
597
|
+
# [
|
598
|
+
# "_score",
|
599
|
+
# "Int32"
|
600
|
+
# ],
|
601
|
+
# [
|
602
|
+
# "comment",
|
603
|
+
# "Comments2"
|
604
|
+
# ],
|
605
|
+
# [
|
606
|
+
# "content",
|
607
|
+
# "Text"
|
608
|
+
# ]
|
609
|
+
# ],
|
610
|
+
# [
|
611
|
+
# 2,
|
612
|
+
# 1,
|
613
|
+
# 2,
|
614
|
+
# "Groonga is useful!"
|
615
|
+
# ],
|
616
|
+
# [
|
617
|
+
# 3,
|
618
|
+
# 1,
|
619
|
+
# 3,
|
620
|
+
# "Mroonga is fast!"
|
621
|
+
# ]
|
622
|
+
# ]
|
623
|
+
# ]
|
624
|
+
# ]
|
625
|
+
select Articles2 --match_columns comment.comment.content --query mroonga --output_columns "_id, _score, *"
|
626
|
+
# [
|
627
|
+
# [
|
628
|
+
# 0,
|
629
|
+
# 1337566253.89858,
|
630
|
+
# 0.000355720520019531
|
631
|
+
# ],
|
632
|
+
# [
|
633
|
+
# [
|
634
|
+
# [
|
635
|
+
# 1
|
636
|
+
# ],
|
637
|
+
# [
|
638
|
+
# [
|
639
|
+
# "_id",
|
640
|
+
# "UInt32"
|
641
|
+
# ],
|
642
|
+
# [
|
643
|
+
# "_score",
|
644
|
+
# "Int32"
|
645
|
+
# ],
|
646
|
+
# [
|
647
|
+
# "comment",
|
648
|
+
# "Comments2"
|
649
|
+
# ],
|
650
|
+
# [
|
651
|
+
# "content",
|
652
|
+
# "Text"
|
653
|
+
# ]
|
654
|
+
# ],
|
655
|
+
# [
|
656
|
+
# 2,
|
657
|
+
# 1,
|
658
|
+
# 2,
|
659
|
+
# "Groonga is useful!"
|
660
|
+
# ]
|
661
|
+
# ]
|
662
|
+
# ]
|
663
|
+
# ]
|
664
|
+
</pre></div>
|
665
|
+
</div>
|
666
|
+
<p>結果として、最初のクエリはComments2テーブルに'mroonga'をキーワードとして含むレコードが2つあるので、該当する記事2つにマッチします。</p>
|
667
|
+
<p>一方、2つめのクエリはReplies2テーブルに'mroonga'というキーワードにマッチするレコードが1つしかなく、Comments2テーブルでそのキーワードを含むレコードを参照するコメントが1つなので、該当する記事は1つだけとなります。</p>
|
668
|
+
</div>
|
418
669
|
<div class="section" id="id5">
|
419
|
-
<h2>4.7.
|
670
|
+
<h2>4.7.4. インデックスの重み<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
420
671
|
<p>執筆中です。</p>
|
421
672
|
</div>
|
422
673
|
</div>
|
@@ -436,7 +687,8 @@ select --table Blog2 --match_columns title --query message
|
|
436
687
|
</ul>
|
437
688
|
</li>
|
438
689
|
<li><a class="reference internal" href="#id4">4.7.2. インデックス名を指定した全文検索</a></li>
|
439
|
-
<li><a class="reference internal" href="#
|
690
|
+
<li><a class="reference internal" href="#nested-index-search-among-related-table-by-column-index">4.7.3. カラムインデックスによる関連テーブルをまたぐ検索</a></li>
|
691
|
+
<li><a class="reference internal" href="#id5">4.7.4. インデックスの重み</a></li>
|
440
692
|
</ul>
|
441
693
|
</li>
|
442
694
|
</ul>
|
@@ -481,7 +733,7 @@ select --table Blog2 --match_columns title --query message
|
|
481
733
|
<li class="right" >
|
482
734
|
<a href="index.html" title="4.6. タグ検索・参照関係の逆引き"
|
483
735
|
>前へ</a> |</li>
|
484
|
-
<li><a href="../index.html">groonga v2.0
|
736
|
+
<li><a href="../index.html">groonga v2.1.0ドキュメント</a> »</li>
|
485
737
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
486
738
|
</ul>
|
487
739
|
</div>
|