rroonga 2.0.0-x86-mingw32 → 2.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -2
- data/ext/groonga/rb-grn-expression.c +4 -3
- data/ext/groonga/rb-grn-object.c +13 -0
- data/ext/groonga/rb-grn-snippet.c +32 -126
- data/ext/groonga/rb-grn.h +14 -11
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/rroonga-build.rb +1 -1
- data/vendor/local/bin/{grntest.exe → 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.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +1 -1
- data/vendor/local/include/groonga/groonga.h +10 -3
- 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/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/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- 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/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +72 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +45 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +30 -21
- data/vendor/local/share/doc/groonga/en/html/_static/favicon.ico +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +309 -101
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/en/html/_static/logo.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/navigation-bar.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/command_version.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +21 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/expr.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/genindex.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/index.html +25 -18
- data/vendor/local/share/doc/groonga/en/html/indexing.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/install.html +59 -9
- data/vendor/local/share/doc/groonga/en/html/limitations.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/log.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news.html +66 -15
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/reference.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +141 -53
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +112 -106
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +2 -2
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +92 -58
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -14
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -22
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +72 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +45 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +30 -21
- data/vendor/local/share/doc/groonga/ja/html/_static/favicon.ico +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +309 -101
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/ja/html/_static/logo.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/navigation-bar.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +19 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/expr.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/index.html +25 -18
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/install.html +72 -22
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/log.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news.html +60 -14
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/reference.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +141 -53
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +108 -102
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +2 -2
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +92 -55
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -14
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -22
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/source/community.txt +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -15
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +11 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +13 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +2 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +6 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +3 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +1 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +4 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +2 -13
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +1 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +6 -6
- data/vendor/local/share/doc/groonga/source/install.txt +72 -8
- data/vendor/local/share/doc/groonga/source/news.txt +45 -1
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/source/type.txt +30 -21
- data/vendor/local/share/groonga/html/admin/css/admin.css +1 -1
- data/vendor/local/share/groonga/html/admin/favicon.ico +0 -0
- data/vendor/local/share/groonga/html/admin/favicon.png +0 -0
- data/vendor/local/share/groonga/html/admin/favicon.svg +107 -547
- data/vendor/local/share/groonga/html/admin/images/groonga.png +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +1 -1
- data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.svg +118 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.svg +97 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.svg +108 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo.svg +118 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.svg +170 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.svg +186 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.svg +183 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.svg +179 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.svg +201 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.svg +97 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo.svg +106 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.svg +107 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo.svg +117 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.svg +107 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo.svg +117 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +510 -214
- data/vendor/local/share/man/man1/groonga.1 +510 -211
- metadata +62 -15
- data/vendor/local/bin/groonga-query-log-analyzer +0 -1419
- data/vendor/local/share/doc/groonga/en/html/_static/default.css +0 -278
- data/vendor/local/share/doc/groonga/en/html/_static/footer-bar.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/menu-header.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/sidebar.js +0 -151
- data/vendor/local/share/doc/groonga/ja/html/_static/default.css +0 -278
- data/vendor/local/share/doc/groonga/ja/html/_static/footer-bar.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/menu-header.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/sidebar.js +0 -151
@@ -24,6 +24,12 @@ Install::
|
|
24
24
|
% sudo aptitude update
|
25
25
|
% sudo aptitude -V -D -y install groonga
|
26
26
|
|
27
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
28
|
+
|
29
|
+
Install groonga-tokenizer-mecab package::
|
30
|
+
|
31
|
+
% sudo aptitude -V -D -y install groonga-tokenizer-mecab
|
32
|
+
|
27
33
|
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
28
34
|
|
29
35
|
Install groonga-munin-plugins package::
|
@@ -44,6 +50,14 @@ Install::
|
|
44
50
|
% sudo aptitude update
|
45
51
|
% sudo aptitude -V -D -y install groonga
|
46
52
|
|
53
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
54
|
+
|
55
|
+
Install groonga-tokenizer-mecab package::
|
56
|
+
|
57
|
+
% sudo aptitude -V -D -y install groonga-tokenizer-mecab
|
58
|
+
|
59
|
+
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
60
|
+
|
47
61
|
Install groonga-munin-plugins package::
|
48
62
|
|
49
63
|
% sudo aptitude -V -D -y install groonga-munin-plugins
|
@@ -62,6 +76,14 @@ Install::
|
|
62
76
|
% sudo aptitude update
|
63
77
|
% sudo aptitude -V -D -y install groonga
|
64
78
|
|
79
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
80
|
+
|
81
|
+
Install groonga-tokenizer-mecab package::
|
82
|
+
|
83
|
+
% sudo aptitude -V -D -y install groonga-tokenizer-mecab
|
84
|
+
|
85
|
+
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
86
|
+
|
65
87
|
Install groonga-munin-plugins package::
|
66
88
|
|
67
89
|
% sudo aptitude -V -D -y install groonga-munin-plugins
|
@@ -85,6 +107,14 @@ Install::
|
|
85
107
|
% sudo apt-get update
|
86
108
|
% sudo apt-get -y install groonga
|
87
109
|
|
110
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
111
|
+
|
112
|
+
Install groonga-tokenizer-mecab package::
|
113
|
+
|
114
|
+
% sudo apt-get -y install groonga-tokenizer-mecab
|
115
|
+
|
116
|
+
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
117
|
+
|
88
118
|
Install groonga-munin-plugins package::
|
89
119
|
|
90
120
|
% sudo apt-get -y install groonga-munin-plugins
|
@@ -108,6 +138,14 @@ Install::
|
|
108
138
|
% sudo apt-get update
|
109
139
|
% sudo apt-get -y install groonga
|
110
140
|
|
141
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
142
|
+
|
143
|
+
Install groonga-tokenizer-mecab package::
|
144
|
+
|
145
|
+
% sudo apt-get -y install groonga-tokenizer-mecab
|
146
|
+
|
147
|
+
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
148
|
+
|
111
149
|
Install groonga-munin-plugins package::
|
112
150
|
|
113
151
|
% sudo apt-get -y install groonga-munin-plugins
|
@@ -131,6 +169,14 @@ Install::
|
|
131
169
|
% sudo apt-get update
|
132
170
|
% sudo apt-get -y install groonga
|
133
171
|
|
172
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
173
|
+
|
174
|
+
Install groonga-tokenizer-mecab package::
|
175
|
+
|
176
|
+
% sudo apt-get -y install groonga-tokenizer-mecab
|
177
|
+
|
178
|
+
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
179
|
+
|
134
180
|
Install groonga-munin-plugins package::
|
135
181
|
|
136
182
|
% sudo apt-get -y install groonga-munin-plugins
|
@@ -144,17 +190,23 @@ Install::
|
|
144
190
|
% sudo yum update
|
145
191
|
% sudo yum install -y groonga
|
146
192
|
|
193
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
194
|
+
|
195
|
+
Install groonga-tokenizer-mecab package::
|
196
|
+
|
197
|
+
% sudo yum install -y groonga-tokenizer-mecab
|
198
|
+
|
147
199
|
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
148
200
|
|
149
201
|
.. note::
|
150
202
|
|
151
|
-
Groonga-munin-plugins package requires munin-node package that isn't included in the official CentOS repository. You need to enable `RPMforge <http://repoforge.org/>`_ repository or `EPEL <http://fedoraproject.org/wiki/EPEL>`_ repository to install it by yum.
|
203
|
+
Groonga-munin-plugins package requires munin-node package that isn't included in the official CentOS repository. You need to enable `Repoforge (RPMforge) <http://repoforge.org/>`_ repository or `EPEL <http://fedoraproject.org/wiki/EPEL>`_ repository to install it by yum.
|
152
204
|
|
153
|
-
Enable RPMforge repository on i386 environment::
|
205
|
+
Enable Repoforge (RPMforge) repository on i386 environment::
|
154
206
|
|
155
207
|
% sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm
|
156
208
|
|
157
|
-
Enable RPMforge repository on x86_64 environment::
|
209
|
+
Enable Repoforge (RPMforge) repository on x86_64 environment::
|
158
210
|
|
159
211
|
% sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
|
160
212
|
|
@@ -176,17 +228,23 @@ Install::
|
|
176
228
|
% sudo yum update
|
177
229
|
% sudo yum install -y groonga
|
178
230
|
|
231
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
232
|
+
|
233
|
+
Install groonga-tokenizer-mecab package::
|
234
|
+
|
235
|
+
% sudo yum install -y groonga-tokenizer-mecab
|
236
|
+
|
179
237
|
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
180
238
|
|
181
239
|
.. note::
|
182
240
|
|
183
|
-
Groonga-munin-plugins package requires munin-node package that isn't included in the official CentOS repository. You need to enable `RPMforge <http://repoforge.org/>`_ repository or `EPEL <http://fedoraproject.org/wiki/EPEL>`_ repository to install it by yum.
|
241
|
+
Groonga-munin-plugins package requires munin-node package that isn't included in the official CentOS repository. You need to enable `Repoforge (RPMforge) <http://repoforge.org/>`_ repository or `EPEL <http://fedoraproject.org/wiki/EPEL>`_ repository to install it by yum.
|
184
242
|
|
185
|
-
Enable RPMforge repository on i686 environment::
|
243
|
+
Enable Repoforge (RPMforge) repository on i686 environment::
|
186
244
|
|
187
245
|
% sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.i686.rpm
|
188
246
|
|
189
|
-
Enable RPMforge repository on x86_64 environment::
|
247
|
+
Enable Repoforge (RPMforge) repository on x86_64 environment::
|
190
248
|
|
191
249
|
% sudo rpm -ivh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
|
192
250
|
|
@@ -208,6 +266,12 @@ Install::
|
|
208
266
|
% sudo yum update
|
209
267
|
% sudo yum install -y groonga
|
210
268
|
|
269
|
+
If you want to use `MeCab <http://mecab.sourceforge.net/>`_ as a tokenizer. please install groonga-tokenizer-mecab package.
|
270
|
+
|
271
|
+
Install groonga-tokenizer-mecab package::
|
272
|
+
|
273
|
+
% sudo yum install -y groonga-tokenizer-mecab
|
274
|
+
|
211
275
|
There is a package that provides `Munin <http://munin-monitoring.org/>`_ plugins. If you want to monitor groonga status by Munin, please install groonga-munin-plugins package.
|
212
276
|
|
213
277
|
Install groonga-munin-plugins package::
|
@@ -253,6 +317,6 @@ Install::
|
|
253
317
|
|
254
318
|
./configure --prefix=/usr --localstatedir=/var && make && sudo make install
|
255
319
|
|
256
|
-
The
|
320
|
+
The `--prefix` option specifies the path to install groonga. If you don't specify the install path, "/usr/local" is used. Please specify "/usr" if you are not familiar with environment variables such as LD_LIBRARY_PATH.
|
257
321
|
|
258
|
-
There are some `Munin <http://munin-monitoring.org/>`_ plugins in groonga package. You need to
|
322
|
+
There are some `Munin <http://munin-monitoring.org/>`_ plugins in groonga package. You need to specify `--with-munin-plugins` option if you want to install them.
|
@@ -5,6 +5,50 @@
|
|
5
5
|
News
|
6
6
|
====
|
7
7
|
|
8
|
+
.. _release-2-0-1:
|
9
|
+
|
10
|
+
Release 2.0.1 - 2012/03/29
|
11
|
+
--------------------------
|
12
|
+
|
13
|
+
Improvements
|
14
|
+
^^^^^^^^^^^^
|
15
|
+
|
16
|
+
* Supported build in other directory.
|
17
|
+
[#1298] [Reported by Kazuhiko]
|
18
|
+
* [solaris] Supported build on Solaris 11. [Reported by Kazuhiko]
|
19
|
+
* [test] Supported functional test.
|
20
|
+
* [test] Required ``--with-ruby19`` configure option for testing by Ruby.
|
21
|
+
* [dump] Supported records dump for a table that has default tokenizer.
|
22
|
+
* [suggest] Added ``similar_search`` option.
|
23
|
+
* [groonga] Removed deprecated options, ``-a``, ``--address`` and
|
24
|
+
``--admin-html-path``.
|
25
|
+
* Added more return value checks. [GitHub#9] [Reported by Markus Elfring]
|
26
|
+
* [dat] Supported term extract operation.
|
27
|
+
* Added `logos <http://groonga.org/logo/>`_ .
|
28
|
+
* Updated HTML design.
|
29
|
+
* Renamed ``grntest`` to ``groonga-benchmark``.
|
30
|
+
* Supported ``autogen.sh`` on CentOS 5.
|
31
|
+
* [linux] Added ``vm.overcommit_memory`` kernel parameter value
|
32
|
+
check. [#1289]
|
33
|
+
* ``grn_snip`` uses ``grn_obj`` mechanism. [#1054]
|
34
|
+
|
35
|
+
Fixes
|
36
|
+
^^^^^
|
37
|
+
|
38
|
+
* Fixed a bug that uninstall task doesn't uninstall installed Ruby
|
39
|
+
scripts. [#1299] [Reported by Kazuhiko]
|
40
|
+
* Added a missing Gemfile. [#1302] [Reported by Kazuhiko]
|
41
|
+
* Fixed a bug that some indexed records aren't found. The feature is
|
42
|
+
only used by mroonga. [#1303]
|
43
|
+
* [groonga] Appended missing ``-id`` to ``--server-id`` option name.
|
44
|
+
* Fixed a bug that latin1 normalization may access unexpected memory.
|
45
|
+
|
46
|
+
Thanks
|
47
|
+
^^^^^^
|
48
|
+
|
49
|
+
* Kazuhiko
|
50
|
+
* Markus Elfring
|
51
|
+
|
8
52
|
.. _release-2-0-0:
|
9
53
|
|
10
54
|
Release 2.0.0 - 2012/02/29
|
@@ -29,7 +73,7 @@ Improvements
|
|
29
73
|
* Accepted ``@`` as a valid name character.
|
30
74
|
* [tokenizer] Added a tokenizer based on
|
31
75
|
`KyTea <http://www.phontron.com/kytea/>`_.
|
32
|
-
* Supported :doc:`offline
|
76
|
+
* Supported :doc:`offline index construction </indexing>`.
|
33
77
|
* [tokenizer] Supported MeCab 0.993. [groonga-dev,00703]
|
34
78
|
[Reported by Masaharu YOSHIOKA]
|
35
79
|
* [windows] Supported MessagePack.
|
@@ -7,70 +7,149 @@
|
|
7
7
|
.. groonga-command
|
8
8
|
.. database: tutorial
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
Various data types
|
11
|
+
==================
|
12
12
|
|
13
|
-
|
13
|
+
Groonga is a full text search engine but also serves as a column-oriented data store. Groonga supports various data types, such as numeric types, string types, date and time type, longitude and latitude types, etc. This tutorial shows a list of data types and explains how to use them.
|
14
14
|
|
15
|
-
|
15
|
+
Overview
|
16
16
|
--------
|
17
17
|
|
18
|
-
groonga
|
18
|
+
The basic data types of groonga are roughly divided into 5 groups --- boolean type, numeric types, string types, date/time type and longitude/latitude types. The numeric types are further divided according to whether integer or floating point number, signed or unsigned and the number of bits allocated to each integer. The string types are further divided according to the maximum length. The longitude/latitude types are further divided according to the geographic coordinate system. For more details, see :doc:`/type`.
|
19
19
|
|
20
|
-
|
20
|
+
In addition, groonga supports reference types and vector types. Reference types are designed for accessing other tables. Vector types are designed for storing a variable number of values in one element.
|
21
21
|
|
22
|
-
|
22
|
+
First, let's create a table for this tutorial.
|
23
23
|
|
24
24
|
.. groonga-command
|
25
25
|
.. include:: ../example/tutorial/data-1.log
|
26
|
-
.. table_create --name
|
27
|
-
.. column_create --table Type --name number --type Int32
|
28
|
-
.. column_create --table Type --name float --type Float
|
29
|
-
.. column_create --table Type --name string --type ShortText
|
30
|
-
.. column_create --table Type --name time --type Time
|
31
|
-
.. load --table Type
|
32
|
-
.. [{"_key":"sample","number":12345,"float":42.195,"string":"GROONGA","time":1234567890.12}]
|
33
|
-
.. select --table Type
|
26
|
+
.. table_create --name ToyBox --flags TABLE_HASH_KEY --key_type ShortText
|
34
27
|
|
28
|
+
Boolean type
|
29
|
+
------------
|
35
30
|
|
36
|
-
|
37
|
-
----------
|
31
|
+
The boolean type is used to store true or false. To create a boolean type column, specify Bool to the `type` parameter of :doc:`/commands/column_create` command. The default value of the boolean type is false.
|
38
32
|
|
39
|
-
|
33
|
+
The following example creates a boolean type column and adds three records. Note that the third record has the default value because no value is specified.
|
40
34
|
|
41
|
-
|
35
|
+
.. groonga-command
|
36
|
+
.. include:: ../example/tutorial/data-2.log
|
37
|
+
.. column_create --table ToyBox --name is_animal --type Bool
|
38
|
+
.. load --table ToyBox
|
39
|
+
.. [
|
40
|
+
.. {"_key":"Monkey","is_animal":true}
|
41
|
+
.. {"_key":"Flower","is_animal":false}
|
42
|
+
.. {"_key":"Block"}
|
43
|
+
.. ]
|
44
|
+
.. select --table ToyBox --output_columns _key,is_animal
|
42
45
|
|
43
|
-
|
46
|
+
Numeric types
|
47
|
+
-------------
|
44
48
|
|
45
|
-
|
49
|
+
The numeric types are divided into integer types and a floating point number type. The integer types are further divided into the signed integer types and unsigned integer types. In addition, you can choose the number of bits allocated to each integer. For more details, see :doc:`/type`. The default value of the numeric types is 0.
|
50
|
+
|
51
|
+
The following example creates an Int8 column and a Float column, and then updates existing records. The :doc:`/commands/load` command updates the weight column as expected. On the other hand, the price column values are different from the specified values because 15.9 is not an integer and 200 is too large. 15.9 is converted to 15 by removing the fractional part. 200 causes an overflow and the result becomes -56. Note that the result of an overflow/underflow is undefined.
|
46
52
|
|
47
53
|
.. groonga-command
|
48
|
-
.. include:: ../example/tutorial/data-
|
54
|
+
.. include:: ../example/tutorial/data-3.log
|
55
|
+
.. column_create --table ToyBox --name price --type Int8
|
56
|
+
.. column_create --table ToyBox --name weight --type Float
|
57
|
+
.. load --table ToyBox
|
58
|
+
.. [
|
59
|
+
.. {"_key":"Monkey","price":15.9}
|
60
|
+
.. {"_key":"Flower","price":200,"weight":0.13}
|
61
|
+
.. {"_key":"Block","weight":25.7}
|
62
|
+
.. ]
|
63
|
+
.. select --table ToyBox --output_columns _key,price,weight
|
64
|
+
|
65
|
+
String types
|
66
|
+
------------
|
67
|
+
|
68
|
+
The string types are divided according to the maximum length. For more details, see :doc:`/type`. The default value is the zero-length string.
|
69
|
+
|
70
|
+
The following example creates a ShortText column and updates existing records. The third record has the default value because not updated.
|
71
|
+
|
72
|
+
.. groonga-command
|
73
|
+
.. include:: ../example/tutorial/data-4.log
|
74
|
+
.. column_create --table ToyBox --name name --type ShortText
|
75
|
+
.. load --table ToyBox
|
76
|
+
.. [
|
77
|
+
.. {"_key":"Monkey","name":"Grease"}
|
78
|
+
.. {"_key":"Flower","name":"Rose"}
|
79
|
+
.. ]
|
80
|
+
.. select --table ToyBox --output_columns _key,name
|
81
|
+
|
82
|
+
Date and time type
|
83
|
+
------------------
|
84
|
+
|
85
|
+
The date and time type of groonga is Time. Actually, a Time column stores a date and time as the number of microseconds since the Epoch, 1970-01-01 00:00:00. A Time value can represent a date and time before the Epoch because the actual data type is a signed integer. Note that :doc:`/commands/load` and :doc:`/commands/select commands use a decimal number to represent a data and time in seconds. The default value is 0.0, which means the Epoch.
|
86
|
+
|
87
|
+
The following example creates a Time column and updates existing records. The first record has the default value because not updated.
|
88
|
+
|
89
|
+
.. groonga-command
|
90
|
+
.. include:: ../example/tutorial/data-5.log
|
91
|
+
.. column_create --table ToyBox --name time --type Time
|
92
|
+
.. load --table ToyBox
|
93
|
+
.. [
|
94
|
+
.. {"_key":"Flower","time":1234567890.1234569999}
|
95
|
+
.. {"_key":"Block","time":-1234567890}
|
96
|
+
.. ]
|
97
|
+
.. select --table ToyBox --output_columns _key,time
|
98
|
+
|
99
|
+
Longitude and latitude types
|
100
|
+
----------------------------
|
101
|
+
|
102
|
+
The longitude and latitude types are divided according to the geographic coordinate system. For more details, see :doc:`/type`. To represent a longitude and latitude, groonga uses a string formatted as follows:
|
103
|
+
|
104
|
+
* "longitude x latitude" in milliseconds (e.g.: "128452975x503157902")
|
105
|
+
* "longitude x latitude" in degrees (e.g.: "35.6813819x139.7660839")
|
106
|
+
|
107
|
+
A number with/without a decimal point represents a longitude or latitude in milliseconds/degrees respectively. Note that a combination of a number with a decimal point and a number without a decimal point (e.g. 35.1x139) must not be used. A comma (',') is also available as a delimiter. The default value is "0x0".
|
108
|
+
|
109
|
+
The following example creates a WGS84GeoPoint column and updates existing records. The second record has the default value because not updated.
|
110
|
+
|
111
|
+
.. groonga-command
|
112
|
+
.. include:: ../example/tutorial/data-6.log
|
113
|
+
.. column_create --table ToyBox --name location --type WGS84GeoPoint
|
114
|
+
.. load --table ToyBox
|
115
|
+
.. [
|
116
|
+
.. {"_key":"Monkey","location":"128452975x503157902"}
|
117
|
+
.. {"_key":"Block","location":"35.6813819x139.7660839"}
|
118
|
+
.. ]
|
119
|
+
.. select --table ToyBox --output_columns _key,location
|
120
|
+
|
121
|
+
Reference types
|
122
|
+
---------------
|
123
|
+
|
124
|
+
Groonga supports a reference column, which stores references to records in its associated table. In practice, a reference column stores the IDs of the referred records in the associated table and enables access to those records.
|
125
|
+
|
126
|
+
You can specify a column in the associated table to the `output_columns` parameter of a :doc:`/commands/select` command. The format is "Src.Dest" where Src is the name of the reference column and Dest is the name of the target column. If only the reference column is specified, it is handled as "Src._key". Note that if a reference does not point to a valid record, a :doc:`/commands/select` command outputs the default value of the target column.
|
127
|
+
|
128
|
+
The following example adds a reference column to the Site table that was created in the previous tutorial. The new column, named link, is designed for storing links among records in the Site table.
|
129
|
+
|
130
|
+
.. groonga-command
|
131
|
+
.. include:: ../example/tutorial/data-7.log
|
49
132
|
.. column_create --table Site --name link --type Site
|
50
133
|
.. load --table Site
|
51
134
|
.. [{"_key":"http://example.org/","link":"http://example.net/"}]
|
52
135
|
.. select --table Site --output_columns _key,title,link._key,link.title --query title:@this
|
53
136
|
|
54
|
-
|
137
|
+
The `type` parameter of the :doc:`/commands/column_create` command specifies the table to be associated with the reference column. In this example, the reference column is associated with the own table. Then, the :doc:`/commands/load` command registers a link from "http://example.org" to "http://example.net". Note that a reference column requires the primary key, not the ID, of the record to be referred to. After that, the link is confirmed by the :doc:`/commands/select` command. In this case, the primary key and the title of the referred record are output because link._key and link.title are specified to the `output_columns` parameter.
|
55
138
|
|
56
|
-
|
57
|
-
|
139
|
+
Vector types
|
140
|
+
------------
|
58
141
|
|
59
|
-
column_create
|
142
|
+
Groonga supports a vector column, in which each element can store a variable number of values. To create a vector column, specify the COLUMN_VECTOR flag to the `flags` parameter of a :doc:`/commands/column_create` command. A vector column is useful to represent a many-to-many relationship.
|
60
143
|
|
61
|
-
|
62
|
-
|
63
|
-
テーブル型のチュートリアルでは、Siteテーブルに手を加え、どのサイトをリンクしているのかを保存しました。しかし、通常は1つのサイトから多くのサイトにリンクが張られています。複数のリンク情報を格納するために、複数の参照関係を保存するカラムを作成してみましょう。
|
64
|
-
|
65
|
-
他のテーブルを参照するベクターカラムにデータを入力する場合には、参照先のテーブルの_keyカラムの値の「配列」を代入する必要があります。
|
144
|
+
The previous example used a regular column, so each record could have at most one link. Obviously, the specification is insufficient because a site usually has more than one links. To solve this problem, the following example uses a vector column.
|
66
145
|
|
67
146
|
.. FIXME: _idの配列ではダメなのかどうか。検証する。
|
68
147
|
|
69
148
|
.. groonga-command
|
70
|
-
.. include:: ../example/tutorial/data-
|
149
|
+
.. include:: ../example/tutorial/data-8.log
|
71
150
|
.. column_create --table Site --name links --flags COLUMN_VECTOR --type Site
|
72
151
|
.. load --table Site
|
73
152
|
.. [{"_key":"http://example.org/","links":["http://example.net/","http://example.org/","http://example.com/"]}]
|
74
153
|
.. select --table Site --output_columns _key,title,links._key,links.title --query title:@this
|
75
154
|
|
76
|
-
|
155
|
+
The only difference at the first step is the `flags` parameter that specifies to create a vector column. The `type` parameter of the :doc:`/commands/column_create` command is the same as in the previous example. Then, the :doc:`/commands/load` command registers three links from "http://example.org/" to "http://example.net/", "http://example.org/" and "http://example.com/". After that, the links are confirmed by the :doc:`/commands/select` command. In this case, the primary keys and the titles are output as arrays because links._key and links.title are specified to the `output_columns` parameter.
|