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
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH "GROONGA" "1" "
|
1
|
+
.TH "GROONGA" "1" "December 27, 2012" "2.1.0" "groonga"
|
2
2
|
.SH NAME
|
3
3
|
groonga \- groonga documentation
|
4
4
|
.
|
@@ -104,19 +104,19 @@ memory error with a 32\-bit package even if you just process medium
|
|
104
104
|
size data.
|
105
105
|
.SS Installer
|
106
106
|
.sp
|
107
|
-
For 32\-bit environment, download \fI\%groonga-2.0
|
107
|
+
For 32\-bit environment, download \fI\%groonga-2.1.0-x86.exe\fP
|
108
108
|
and run it.
|
109
109
|
.sp
|
110
|
-
For 64\-bit environment, download \fI\%groonga-2.0
|
110
|
+
For 64\-bit environment, download \fI\%groonga-2.1.0-x64.exe\fP
|
111
111
|
and run it.
|
112
112
|
.sp
|
113
113
|
Use command prompt for \fB/reference/executables/groonga\fP installed in start menu.
|
114
114
|
.SS zip
|
115
115
|
.sp
|
116
|
-
For 32\-bit environment, download \fI\%groonga-2.0
|
116
|
+
For 32\-bit environment, download \fI\%groonga-2.1.0-x86.zip\fP
|
117
117
|
and extract it.
|
118
118
|
.sp
|
119
|
-
For 64\-bit environment, download \fI\%groonga-2.0
|
119
|
+
For 64\-bit environment, download \fI\%groonga-2.1.0-x64.zip\fP
|
120
120
|
and extract it.
|
121
121
|
.sp
|
122
122
|
\fB/reference/executables/groonga\fP is in \fBbin\fP folder.
|
@@ -135,7 +135,7 @@ Windows. Here are required tools:
|
|
135
135
|
.UNINDENT
|
136
136
|
.UNINDENT
|
137
137
|
.sp
|
138
|
-
Download zipped source \fI\%groonga-2.0.
|
138
|
+
Download zipped source \fI\%groonga-2.1.0.zip\fP
|
139
139
|
and extract it.
|
140
140
|
.sp
|
141
141
|
Start \fBVisual Studio Command Prompt (2010)\fP installed by Microsoft
|
@@ -143,7 +143,7 @@ Visual Studio 2010 Express and move to the groonga\(aqs source folder:
|
|
143
143
|
.sp
|
144
144
|
.nf
|
145
145
|
.ft C
|
146
|
-
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-2.0
|
146
|
+
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-2.1.0
|
147
147
|
.ft P
|
148
148
|
.fi
|
149
149
|
.sp
|
@@ -153,7 +153,7 @@ parameter instead:
|
|
153
153
|
.sp
|
154
154
|
.nf
|
155
155
|
.ft C
|
156
|
-
groonga\-2.0
|
156
|
+
groonga\-2.1.0> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
|
157
157
|
.ft P
|
158
158
|
.fi
|
159
159
|
.sp
|
@@ -161,7 +161,7 @@ Build by Visual C++ 2010 Express:
|
|
161
161
|
.sp
|
162
162
|
.nf
|
163
163
|
.ft C
|
164
|
-
groonga\-2.0
|
164
|
+
groonga\-2.1.0> msbuild groonga.sln /p:Configuration=Release
|
165
165
|
.ft P
|
166
166
|
.fi
|
167
167
|
.sp
|
@@ -169,7 +169,7 @@ Install by Visual C++ 2010 Express:
|
|
169
169
|
.sp
|
170
170
|
.nf
|
171
171
|
.ft C
|
172
|
-
groonga\-2.0
|
172
|
+
groonga\-2.1.0> msbuild groonga.sln /p:Configuration=Release /t:Install
|
173
173
|
.ft P
|
174
174
|
.fi
|
175
175
|
.sp
|
@@ -179,7 +179,7 @@ Build by Visual Studio 2010:
|
|
179
179
|
.sp
|
180
180
|
.nf
|
181
181
|
.ft C
|
182
|
-
groonga\-2.0
|
182
|
+
groonga\-2.1.0> devenv groonga.sln /Build Release
|
183
183
|
.ft P
|
184
184
|
.fi
|
185
185
|
.sp
|
@@ -187,7 +187,7 @@ Install by Visual Studio 2010:
|
|
187
187
|
.sp
|
188
188
|
.nf
|
189
189
|
.ft C
|
190
|
-
groonga\-2.0
|
190
|
+
groonga\-2.1.0> devenv groonga.sln /Build Release /Project Install
|
191
191
|
.ft P
|
192
192
|
.fi
|
193
193
|
.sp
|
@@ -229,9 +229,9 @@ Download source:
|
|
229
229
|
.sp
|
230
230
|
.nf
|
231
231
|
.ft C
|
232
|
-
% curl \-O http://packages.groonga.org/source/groonga/groonga\-2.0.
|
233
|
-
% tar xvzf groonga\-2.0.
|
234
|
-
% cd groonga\-2.0
|
232
|
+
% curl \-O http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
233
|
+
% tar xvzf groonga\-2.1.0.tar.gz
|
234
|
+
% cd groonga\-2.1.0
|
235
235
|
.ft P
|
236
236
|
.fi
|
237
237
|
.sp
|
@@ -417,9 +417,9 @@ Download source:
|
|
417
417
|
.sp
|
418
418
|
.nf
|
419
419
|
.ft C
|
420
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-2.0.
|
421
|
-
% tar xvzf groonga\-2.0.
|
422
|
-
% cd groonga\-2.0
|
420
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
421
|
+
% tar xvzf groonga\-2.1.0.tar.gz
|
422
|
+
% cd groonga\-2.1.0
|
423
423
|
.ft P
|
424
424
|
.fi
|
425
425
|
.sp
|
@@ -511,61 +511,6 @@ Install groonga\-munin\-plugins package:
|
|
511
511
|
% sudo apt\-get \-y install groonga\-munin\-plugins
|
512
512
|
.ft P
|
513
513
|
.fi
|
514
|
-
.SS 11.04 Natty Narwhal
|
515
|
-
.IP Note
|
516
|
-
Enable the universe repository to install groonga:
|
517
|
-
.sp
|
518
|
-
.nf
|
519
|
-
.ft C
|
520
|
-
% sudo cp /etc/apt/sources.list /etc/apt/sources.list.d/universe.list
|
521
|
-
% sudo sed \-i\(aq\(aq \-e \(aqs/main/universe/\(aq /etc/apt/sources.list.d/universe.list
|
522
|
-
.ft P
|
523
|
-
.fi
|
524
|
-
.RE
|
525
|
-
.sp
|
526
|
-
Add the groonga apt repository.
|
527
|
-
.sp
|
528
|
-
/etc/apt/sources.list.d/groonga.list:
|
529
|
-
.sp
|
530
|
-
.nf
|
531
|
-
.ft C
|
532
|
-
deb http://packages.groonga.org/ubuntu/ natty universe
|
533
|
-
deb\-src http://packages.groonga.org/ubuntu/ natty universe
|
534
|
-
.ft P
|
535
|
-
.fi
|
536
|
-
.sp
|
537
|
-
Install:
|
538
|
-
.sp
|
539
|
-
.nf
|
540
|
-
.ft C
|
541
|
-
% sudo apt\-get update
|
542
|
-
% sudo apt\-get \-y \-\-allow\-unauthenticated install groonga\-keyring
|
543
|
-
% sudo apt\-get update
|
544
|
-
% sudo apt\-get \-y install groonga
|
545
|
-
.ft P
|
546
|
-
.fi
|
547
|
-
.sp
|
548
|
-
If you want to use \fI\%MeCab\fP as a
|
549
|
-
tokenizer, install groonga\-tokenizer\-mecab package.
|
550
|
-
.sp
|
551
|
-
Install groonga\-tokenizer\-mecab package:
|
552
|
-
.sp
|
553
|
-
.nf
|
554
|
-
.ft C
|
555
|
-
% sudo apt\-get \-y install groonga\-tokenizer\-mecab
|
556
|
-
.ft P
|
557
|
-
.fi
|
558
|
-
.sp
|
559
|
-
There is a package that provides \fI\%Munin\fP plugins. If you want to monitor
|
560
|
-
groonga status by Munin, install groonga\-munin\-plugins package.
|
561
|
-
.sp
|
562
|
-
Install groonga\-munin\-plugins package:
|
563
|
-
.sp
|
564
|
-
.nf
|
565
|
-
.ft C
|
566
|
-
% sudo apt\-get \-y install groonga\-munin\-plugins
|
567
|
-
.ft P
|
568
|
-
.fi
|
569
514
|
.SS 11.10 Oneiric Ocelot
|
570
515
|
.IP Note
|
571
516
|
Enable the universe repository to install groonga:
|
@@ -745,9 +690,9 @@ Download source:
|
|
745
690
|
.sp
|
746
691
|
.nf
|
747
692
|
.ft C
|
748
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-2.0.
|
749
|
-
% tar xvzf groonga\-2.0.
|
750
|
-
% cd groonga\-2.0
|
693
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
694
|
+
% tar xvzf groonga\-2.1.0.tar.gz
|
695
|
+
% cd groonga\-2.1.0
|
751
696
|
.ft P
|
752
697
|
.fi
|
753
698
|
.sp
|
@@ -790,7 +735,7 @@ Install:
|
|
790
735
|
.sp
|
791
736
|
.nf
|
792
737
|
.ft C
|
793
|
-
% sudo rpm \-ivh http://packages.groonga.org/centos/groonga\-release\-1.1.0\-
|
738
|
+
% sudo rpm \-ivh http://packages.groonga.org/centos/groonga\-release\-1.1.0\-1.noarch.rpm
|
794
739
|
% sudo yum makecache
|
795
740
|
% sudo yum install \-y groonga
|
796
741
|
.ft P
|
@@ -875,7 +820,7 @@ Install:
|
|
875
820
|
.sp
|
876
821
|
.nf
|
877
822
|
.ft C
|
878
|
-
% sudo rpm \-ivh http://packages.groonga.org/centos/groonga\-release\-1.1.0\-
|
823
|
+
% sudo rpm \-ivh http://packages.groonga.org/centos/groonga\-release\-1.1.0\-1.noarch.rpm
|
879
824
|
% sudo yum makecache
|
880
825
|
% sudo yum install \-y groonga
|
881
826
|
.ft P
|
@@ -922,7 +867,7 @@ Enable EPEL repository on any environment:
|
|
922
867
|
.sp
|
923
868
|
.nf
|
924
869
|
.ft C
|
925
|
-
% sudo rpm \-ivh http://download.fedoraproject.org/pub/epel/6/i386/epel\-release\-6\-
|
870
|
+
% sudo rpm \-ivh http://download.fedoraproject.org/pub/epel/6/i386/epel\-release\-6\-8.noarch.rpm
|
926
871
|
.ft P
|
927
872
|
.fi
|
928
873
|
.RE
|
@@ -948,9 +893,9 @@ Download source:
|
|
948
893
|
.sp
|
949
894
|
.nf
|
950
895
|
.ft C
|
951
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-2.0.
|
952
|
-
% tar xvzf groonga\-2.0.
|
953
|
-
% cd groonga\-2.0
|
896
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
897
|
+
% tar xvzf groonga\-2.1.0.tar.gz
|
898
|
+
% cd groonga\-2.1.0
|
954
899
|
.ft P
|
955
900
|
.fi
|
956
901
|
.sp
|
@@ -1001,7 +946,7 @@ Install:
|
|
1001
946
|
.sp
|
1002
947
|
.nf
|
1003
948
|
.ft C
|
1004
|
-
% sudo rpm \-ivh http://packages.groonga.org/fedora/groonga\-release\-1.1.0\-
|
949
|
+
% sudo rpm \-ivh http://packages.groonga.org/fedora/groonga\-release\-1.1.0\-1.noarch.rpm
|
1005
950
|
% sudo yum update
|
1006
951
|
% sudo yum install \-y groonga
|
1007
952
|
.ft P
|
@@ -1060,9 +1005,9 @@ Download source:
|
|
1060
1005
|
.sp
|
1061
1006
|
.nf
|
1062
1007
|
.ft C
|
1063
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-2.0.
|
1064
|
-
% tar xvzf groonga\-2.0.
|
1065
|
-
% cd groonga\-2.0
|
1008
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
1009
|
+
% tar xvzf groonga\-2.1.0.tar.gz
|
1010
|
+
% cd groonga\-2.1.0
|
1066
1011
|
.ft P
|
1067
1012
|
.fi
|
1068
1013
|
.sp
|
@@ -1107,9 +1052,9 @@ Download source:
|
|
1107
1052
|
.sp
|
1108
1053
|
.nf
|
1109
1054
|
.ft C
|
1110
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-2.0.
|
1111
|
-
% gtar xvzf groonga\-2.0.
|
1112
|
-
% cd groonga\-2.0
|
1055
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
1056
|
+
% gtar xvzf groonga\-2.1.0.tar.gz
|
1057
|
+
% cd groonga\-2.1.0
|
1113
1058
|
.ft P
|
1114
1059
|
.fi
|
1115
1060
|
.sp
|
@@ -1233,9 +1178,9 @@ steps:
|
|
1233
1178
|
.sp
|
1234
1179
|
.nf
|
1235
1180
|
.ft C
|
1236
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-2.0.
|
1237
|
-
% tar xvzf groonga\-2.0.
|
1238
|
-
% cd groonga\-2.0
|
1181
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-2.1.0.tar.gz
|
1182
|
+
% tar xvzf groonga\-2.1.0.tar.gz
|
1183
|
+
% cd groonga\-2.1.0
|
1239
1184
|
% ./configure
|
1240
1185
|
% make
|
1241
1186
|
% sudo make install
|
@@ -5088,6 +5033,310 @@ select \-\-table Blog2 \-\-match_columns title \-\-query message
|
|
5088
5033
|
.SS インデックス名を指定した全文検索
|
5089
5034
|
.sp
|
5090
5035
|
執筆中です。
|
5036
|
+
.SS Nested index search among related table by column index
|
5037
|
+
.sp
|
5038
|
+
If there are relationships among multiple table with column index,
|
5039
|
+
you can search multiple table by specifying reference column name.
|
5040
|
+
.sp
|
5041
|
+
Here is the concrete example.
|
5042
|
+
.sp
|
5043
|
+
There are tables which store blog articles, comments for articles.
|
5044
|
+
The table which stores articles has columns for article and comment.
|
5045
|
+
And the comment column refers Comments table.
|
5046
|
+
The table which stores comments has columns for comment and column index to article table.
|
5047
|
+
.sp
|
5048
|
+
if you want to search the articles which contain specified keyword in comment,
|
5049
|
+
you need to execute fulltext search for table of comment, then search the records which contains fulltext search results.
|
5050
|
+
.sp
|
5051
|
+
But, you can search the records by specifying the reference column index at once.
|
5052
|
+
.sp
|
5053
|
+
Here is the sample schema.
|
5054
|
+
.sp
|
5055
|
+
Execution example:
|
5056
|
+
.sp
|
5057
|
+
.nf
|
5058
|
+
.ft C
|
5059
|
+
table_create Comments TABLE_HASH_KEY UInt32
|
5060
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5061
|
+
column_create Comments content COLUMN_SCALAR ShortText
|
5062
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5063
|
+
table_create Articles TABLE_NO_KEY
|
5064
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5065
|
+
column_create Articles content COLUMN_SCALAR Text
|
5066
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5067
|
+
column_create Articles comment COLUMN_SCALAR Comments
|
5068
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5069
|
+
table_create Lexicon TABLE_PAT_KEY|KEY_NORMALIZE ShortText \-\-default_tokenizer TokenBigram
|
5070
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5071
|
+
column_create Lexicon articles_content COLUMN_INDEX|WITH_POSITION Articles content
|
5072
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5073
|
+
column_create Lexicon comments_content COLUMN_INDEX|WITH_POSITION Comments content
|
5074
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5075
|
+
column_create Comments article COLUMN_INDEX Articles comment
|
5076
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5077
|
+
.ft P
|
5078
|
+
.fi
|
5079
|
+
.sp
|
5080
|
+
Here is the sample data.
|
5081
|
+
.sp
|
5082
|
+
Execution example:
|
5083
|
+
.sp
|
5084
|
+
.nf
|
5085
|
+
.ft C
|
5086
|
+
load \-\-table Comments
|
5087
|
+
[
|
5088
|
+
{"_key": 1, "content": "I\(aqm using groonga too!"},
|
5089
|
+
{"_key": 2, "content": "I\(aqm using groonga and mroonga!"},
|
5090
|
+
{"_key": 3, "content": "I\(aqm using mroonga too!"}
|
5091
|
+
]
|
5092
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
5093
|
+
load \-\-table Articles
|
5094
|
+
[
|
5095
|
+
{"content": "Groonga is fast!", "comment": 1},
|
5096
|
+
{"content": "Groonga is useful!"},
|
5097
|
+
{"content": "Mroonga is fast!", "comment": 3}
|
5098
|
+
]
|
5099
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
5100
|
+
.ft P
|
5101
|
+
.fi
|
5102
|
+
.sp
|
5103
|
+
You can write the query that search the records which contains specified keyword as a comment, then fetch the articles which refers to it.
|
5104
|
+
.sp
|
5105
|
+
Query for searching the records described above:
|
5106
|
+
.sp
|
5107
|
+
.nf
|
5108
|
+
.ft C
|
5109
|
+
select Articles \-\-match_columns comment.content \-\-query groonga \-\-output_columns "_id, _score, *"
|
5110
|
+
.ft P
|
5111
|
+
.fi
|
5112
|
+
.sp
|
5113
|
+
You need to concatenate comment column of Articles table and content column of Comments table with period(.) as \-\-match_columns arguments.
|
5114
|
+
.sp
|
5115
|
+
At first, this query execute fulltext search from content of Comments table, then fetch the records of Articles table which refers to already searched records of Comments table.
|
5116
|
+
(Because of this, if you comment out the query which create column index \(aqarticle\(aq of Comments table, you can\(aqt get intended search results.)
|
5117
|
+
.sp
|
5118
|
+
Execution example:
|
5119
|
+
.sp
|
5120
|
+
.nf
|
5121
|
+
.ft C
|
5122
|
+
select Articles \-\-match_columns comment.content \-\-query groonga \-\-output_columns "_id, _score, *"
|
5123
|
+
# [
|
5124
|
+
# [
|
5125
|
+
# 0,
|
5126
|
+
# 1337566253.89858,
|
5127
|
+
# 0.000355720520019531
|
5128
|
+
# ],
|
5129
|
+
# [
|
5130
|
+
# [
|
5131
|
+
# [
|
5132
|
+
# 1
|
5133
|
+
# ],
|
5134
|
+
# [
|
5135
|
+
# [
|
5136
|
+
# "_id",
|
5137
|
+
# "UInt32"
|
5138
|
+
# ],
|
5139
|
+
# [
|
5140
|
+
# "_score",
|
5141
|
+
# "Int32"
|
5142
|
+
# ],
|
5143
|
+
# [
|
5144
|
+
# "comment",
|
5145
|
+
# "Comments"
|
5146
|
+
# ],
|
5147
|
+
# [
|
5148
|
+
# "content",
|
5149
|
+
# "Text"
|
5150
|
+
# ]
|
5151
|
+
# ],
|
5152
|
+
# [
|
5153
|
+
# 1,
|
5154
|
+
# 1,
|
5155
|
+
# 1,
|
5156
|
+
# "Groonga is fast!"
|
5157
|
+
# ]
|
5158
|
+
# ]
|
5159
|
+
# ]
|
5160
|
+
# ]
|
5161
|
+
.ft P
|
5162
|
+
.fi
|
5163
|
+
.sp
|
5164
|
+
Now, you can search articles which contains specific keywords as a comment.
|
5165
|
+
.sp
|
5166
|
+
The feature of nested index search is not limited to the relationship between two table only.
|
5167
|
+
.sp
|
5168
|
+
Here is the sample schema similar to previous one. The difference is added table which express \(aqReply\(aq and relationship is extended to three tables.
|
5169
|
+
.sp
|
5170
|
+
Execution example:
|
5171
|
+
.sp
|
5172
|
+
.nf
|
5173
|
+
.ft C
|
5174
|
+
table_create Replies2 TABLE_HASH_KEY UInt32
|
5175
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5176
|
+
column_create Replies2 content COLUMN_SCALAR ShortText
|
5177
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5178
|
+
table_create Comments2 TABLE_HASH_KEY UInt32
|
5179
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5180
|
+
column_create Comments2 content COLUMN_SCALAR ShortText
|
5181
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5182
|
+
column_create Comments2 comment COLUMN_SCALAR Replies2
|
5183
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5184
|
+
table_create Articles2 TABLE_NO_KEY
|
5185
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5186
|
+
column_create Articles2 content COLUMN_SCALAR Text
|
5187
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5188
|
+
column_create Articles2 comment COLUMN_SCALAR Comments2
|
5189
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5190
|
+
table_create Lexicon2 TABLE_PAT_KEY|KEY_NORMALIZE ShortText \-\-default_tokenizer TokenBigram
|
5191
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5192
|
+
column_create Lexicon2 articles_content COLUMN_INDEX|WITH_POSITION Articles2 content
|
5193
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5194
|
+
column_create Lexicon2 comments_content COLUMN_INDEX|WITH_POSITION Comments2 content
|
5195
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5196
|
+
column_create Lexicon2 replies_content COLUMN_INDEX|WITH_POSITION Replies2 content
|
5197
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5198
|
+
column_create Comments2 article COLUMN_INDEX Articles2 comment
|
5199
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5200
|
+
column_create Replies2 reply_to COLUMN_INDEX Comments2 comment
|
5201
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
5202
|
+
.ft P
|
5203
|
+
.fi
|
5204
|
+
.sp
|
5205
|
+
Here is the sample data.
|
5206
|
+
.sp
|
5207
|
+
Execution example:
|
5208
|
+
.sp
|
5209
|
+
.nf
|
5210
|
+
.ft C
|
5211
|
+
load \-\-table Replies2
|
5212
|
+
[
|
5213
|
+
{"_key": 1, "content": "I\(aqm using rroonga too!"},
|
5214
|
+
{"_key": 2, "content": "I\(aqm using groonga and mroonga and rroonga!"},
|
5215
|
+
{"_key": 3, "content": "I\(aqm using nroonga too!"}
|
5216
|
+
]
|
5217
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
5218
|
+
load \-\-table Comments2
|
5219
|
+
[
|
5220
|
+
{"_key": 1, "content": "I\(aqm using groonga too!", "comment": 1},
|
5221
|
+
{"_key": 2, "content": "I\(aqm using groonga and mroonga!", "comment": 2},
|
5222
|
+
{"_key": 3, "content": "I\(aqm using mroonga too!"}
|
5223
|
+
]
|
5224
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
5225
|
+
load \-\-table Articles2
|
5226
|
+
[
|
5227
|
+
{"content": "Groonga is fast!", "comment": 1},
|
5228
|
+
{"content": "Groonga is useful!", "comment": 2},
|
5229
|
+
{"content": "Mroonga is fast!", "comment": 3}
|
5230
|
+
]
|
5231
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
5232
|
+
.ft P
|
5233
|
+
.fi
|
5234
|
+
.sp
|
5235
|
+
Query for searching the records described above:
|
5236
|
+
.sp
|
5237
|
+
.nf
|
5238
|
+
.ft C
|
5239
|
+
select Articles2 \-\-match_columns comment.content \-\-query mroonga \-\-output_columns "_id, _score, *"
|
5240
|
+
select Articles2 \-\-match_columns comment.comment.content \-\-query mroonga \-\-output_columns "_id, _score, *"
|
5241
|
+
.ft P
|
5242
|
+
.fi
|
5243
|
+
.sp
|
5244
|
+
The first query searches \(aqmroonga\(aq from Comments2 table, the second one searches \(aqmroonga\(aq from Replies2 and Comment2 table by using reference column index.
|
5245
|
+
.sp
|
5246
|
+
Execution example:
|
5247
|
+
.sp
|
5248
|
+
.nf
|
5249
|
+
.ft C
|
5250
|
+
select Articles2 \-\-match_columns comment.content \-\-query mroonga \-\-output_columns "_id, _score, *"
|
5251
|
+
# [
|
5252
|
+
# [
|
5253
|
+
# 0,
|
5254
|
+
# 1337566253.89858,
|
5255
|
+
# 0.000355720520019531
|
5256
|
+
# ],
|
5257
|
+
# [
|
5258
|
+
# [
|
5259
|
+
# [
|
5260
|
+
# 2
|
5261
|
+
# ],
|
5262
|
+
# [
|
5263
|
+
# [
|
5264
|
+
# "_id",
|
5265
|
+
# "UInt32"
|
5266
|
+
# ],
|
5267
|
+
# [
|
5268
|
+
# "_score",
|
5269
|
+
# "Int32"
|
5270
|
+
# ],
|
5271
|
+
# [
|
5272
|
+
# "comment",
|
5273
|
+
# "Comments2"
|
5274
|
+
# ],
|
5275
|
+
# [
|
5276
|
+
# "content",
|
5277
|
+
# "Text"
|
5278
|
+
# ]
|
5279
|
+
# ],
|
5280
|
+
# [
|
5281
|
+
# 2,
|
5282
|
+
# 1,
|
5283
|
+
# 2,
|
5284
|
+
# "Groonga is useful!"
|
5285
|
+
# ],
|
5286
|
+
# [
|
5287
|
+
# 3,
|
5288
|
+
# 1,
|
5289
|
+
# 3,
|
5290
|
+
# "Mroonga is fast!"
|
5291
|
+
# ]
|
5292
|
+
# ]
|
5293
|
+
# ]
|
5294
|
+
# ]
|
5295
|
+
select Articles2 \-\-match_columns comment.comment.content \-\-query mroonga \-\-output_columns "_id, _score, *"
|
5296
|
+
# [
|
5297
|
+
# [
|
5298
|
+
# 0,
|
5299
|
+
# 1337566253.89858,
|
5300
|
+
# 0.000355720520019531
|
5301
|
+
# ],
|
5302
|
+
# [
|
5303
|
+
# [
|
5304
|
+
# [
|
5305
|
+
# 1
|
5306
|
+
# ],
|
5307
|
+
# [
|
5308
|
+
# [
|
5309
|
+
# "_id",
|
5310
|
+
# "UInt32"
|
5311
|
+
# ],
|
5312
|
+
# [
|
5313
|
+
# "_score",
|
5314
|
+
# "Int32"
|
5315
|
+
# ],
|
5316
|
+
# [
|
5317
|
+
# "comment",
|
5318
|
+
# "Comments2"
|
5319
|
+
# ],
|
5320
|
+
# [
|
5321
|
+
# "content",
|
5322
|
+
# "Text"
|
5323
|
+
# ]
|
5324
|
+
# ],
|
5325
|
+
# [
|
5326
|
+
# 2,
|
5327
|
+
# 1,
|
5328
|
+
# 2,
|
5329
|
+
# "Groonga is useful!"
|
5330
|
+
# ]
|
5331
|
+
# ]
|
5332
|
+
# ]
|
5333
|
+
# ]
|
5334
|
+
.ft P
|
5335
|
+
.fi
|
5336
|
+
.sp
|
5337
|
+
As a result, the first query matches two article because of Comments2 table has two records which contains \(aqmroonga\(aq as keyword.
|
5338
|
+
.sp
|
5339
|
+
On the other hand, the second one matches one article only because of Replies2 table has only one record which contains \(aqmroonga\(aq as keyword, and there is one record which contains same keyword and refers to the record in Comments2 table.
|
5091
5340
|
.SS インデックスの重み
|
5092
5341
|
.sp
|
5093
5342
|
執筆中です。
|