rroonga 1.2.7-x86-mingw32 → 1.3.0-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Rakefile +1 -0
- data/bin/grntest-log-analyze +123 -0
- data/bin/groonga-query-log-extract +117 -0
- data/ext/groonga/rb-grn-accessor.c +7 -5
- data/ext/groonga/rb-grn-array-cursor.c +1 -1
- data/ext/groonga/rb-grn-array.c +34 -44
- data/ext/groonga/rb-grn-column.c +74 -38
- data/ext/groonga/rb-grn-context.c +41 -16
- data/ext/groonga/rb-grn-database.c +50 -43
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +40 -0
- data/ext/groonga/rb-grn-double-array-trie.c +530 -0
- data/ext/groonga/rb-grn-encoding-support.c +1 -1
- data/ext/groonga/rb-grn-encoding.c +1 -1
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression-builder.c +1 -1
- data/ext/groonga/rb-grn-expression.c +63 -51
- data/ext/groonga/rb-grn-fix-size-column.c +7 -7
- data/ext/groonga/rb-grn-hash-cursor.c +1 -1
- data/ext/groonga/rb-grn-hash.c +42 -39
- data/ext/groonga/rb-grn-index-column.c +35 -31
- data/ext/groonga/rb-grn-index-cursor.c +1 -1
- data/ext/groonga/rb-grn-logger.c +23 -18
- data/ext/groonga/rb-grn-object.c +69 -40
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie.c +122 -90
- data/ext/groonga/rb-grn-plugin.c +8 -7
- data/ext/groonga/rb-grn-posting.c +1 -1
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-query.c +12 -12
- data/ext/groonga/rb-grn-record.c +1 -1
- data/ext/groonga/rb-grn-snippet.c +26 -19
- data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
- data/ext/groonga/rb-grn-table-cursor.c +4 -3
- data/ext/groonga/rb-grn-table-key-support.c +23 -23
- data/ext/groonga/rb-grn-table.c +280 -149
- data/ext/groonga/rb-grn-type.c +11 -7
- data/ext/groonga/rb-grn-utils.c +81 -9
- data/ext/groonga/rb-grn-variable-size-column.c +1 -1
- data/ext/groonga/rb-grn-variable.c +2 -2
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view-cursor.c +1 -1
- data/ext/groonga/rb-grn-view-record.c +1 -1
- data/ext/groonga/rb-grn-view.c +43 -34
- data/ext/groonga/rb-grn.h +10 -2
- data/ext/groonga/rb-groonga.c +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/context.rb +16 -41
- data/lib/groonga/dumper.rb +41 -10
- data/lib/groonga/expression-builder-19.rb +40 -0
- data/lib/groonga/expression-builder.rb +56 -26
- data/lib/groonga/grntest-log.rb +206 -0
- data/lib/groonga/pagination.rb +21 -19
- data/lib/groonga/patricia-trie.rb +7 -10
- data/lib/groonga/posting.rb +1 -1
- data/lib/groonga/query-log.rb +348 -0
- data/lib/groonga/record.rb +47 -143
- data/lib/groonga/schema.rb +679 -406
- data/lib/groonga/view-record.rb +4 -10
- data/lib/groonga.rb +4 -2
- data/rroonga-build.rb +1 -1
- data/test/groonga-test-utils.rb +8 -0
- data/test/test-array.rb +25 -4
- data/test/test-column.rb +8 -8
- data/test/test-database.rb +2 -3
- data/test/test-double-array-trie.rb +164 -0
- data/test/test-expression-builder.rb +2 -2
- data/test/test-expression.rb +10 -9
- data/test/test-gqtp.rb +2 -2
- data/test/test-hash.rb +32 -8
- data/test/test-patricia-trie.rb +34 -10
- data/test/test-query-log.rb +258 -0
- data/test/test-record.rb +6 -5
- data/test/test-schema-create-table.rb +8 -0
- data/test/test-schema-dumper.rb +6 -0
- data/test/test-schema.rb +491 -234
- data/test/test-table-select.rb +9 -0
- data/test/test-table.rb +17 -24
- data/vendor/local/bin/grntest.exe +0 -0
- data/vendor/local/bin/groonga-query-log-analyzer +22 -17
- 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/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +251 -5
- 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/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 +1 -1
- 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/pkgconfig/groonga.pc +3 -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/_images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +31 -40
- data/vendor/local/share/doc/groonga/en/html/_sources/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +118 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial03.txt → en/html/_sources/tutorial/data.txt} +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial05.txt → drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial06.txt → en/html/_sources/tutorial/index.txt} +8 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial07.txt → en/html/_sources/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial10.txt → micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/{tutorial08.txt → patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial04.txt → en/html/_sources/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial.txt +11 -2
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +9 -0
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +44 -39
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +47 -47
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/commands.html +41 -41
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +13 -7
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +55 -55
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/executables.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/genindex.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +176 -0
- data/vendor/local/share/doc/groonga/en/html/index.html +149 -138
- data/vendor/local/share/doc/groonga/en/html/install.html +57 -65
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/log.html +26 -26
- 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/senna.html +281 -0
- data/vendor/local/share/doc/groonga/en/html/news.html +219 -65
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference.html +69 -69
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial03.html → data.html} +32 -32
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial06.html → index.html} +44 -44
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +438 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +236 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +197 -0
- data/vendor/local/share/doc/groonga/en/html/tutorial/{tutorial04.html → search.html} +41 -35
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +60 -55
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +31 -40
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +118 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial03.txt → ja/html/_sources/tutorial/data.txt} +5 -5
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial05.txt → ja/html/_sources/tutorial/drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial06.txt → index.txt} +8 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial07.txt → ja/html/_sources/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial10.txt → ja/html/_sources/tutorial/micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/{source/tutorial/tutorial08.txt → ja/html/_sources/tutorial/patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial04.txt → ja/html/_sources/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial.txt +11 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +9 -0
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +44 -39
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/commands.html +41 -41
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +13 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +55 -55
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/executables.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/expr.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/functions.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +165 -0
- data/vendor/local/share/doc/groonga/ja/html/index.html +144 -133
- data/vendor/local/share/doc/groonga/ja/html/install.html +52 -65
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/log.html +26 -26
- 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/senna.html +282 -0
- data/vendor/local/share/doc/groonga/ja/html/news.html +203 -63
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -69
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/spec.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial03.html → data.html} +31 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial05.html → drilldown.html} +31 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial06.html → index.html} +44 -44
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial01.html → introduction.html} +140 -129
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial09.html → lexicon.html} +16 -16
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial07.html → match_columns.html} +39 -39
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial10.html → micro_blog.html} +43 -43
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial02.html → network.html} +56 -58
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial08.html → patricia_trie.html} +27 -27
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +198 -0
- data/vendor/local/share/doc/groonga/ja/html/tutorial/{tutorial04.html → search.html} +41 -35
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +59 -54
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -30
- data/vendor/local/share/doc/groonga/source/characteristic.txt +32 -31
- data/vendor/local/share/doc/groonga/source/commands/select.txt +7 -1
- data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +13 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +15 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +9 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +5 -0
- data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +5 -0
- data/vendor/local/share/doc/groonga/source/conf.py +1 -1
- data/vendor/local/share/doc/groonga/source/contribution/documentation/i18n.txt +6 -0
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-1.log → tutorial/data-1.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-2.log → tutorial/data-2.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial03-3.log → tutorial/data-3.log} +0 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-1.log → tutorial/drilldown-1.log} +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-2.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-3.log → tutorial/drilldown-3.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-4.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-5.log → tutorial/drilldown-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial05-6.log → tutorial/drilldown-6.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +25 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-2.log → tutorial/index-2.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-4.log → tutorial/index-4.log} +3 -3
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-5.log → tutorial/index-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-6.log → tutorial/index-6.log} +5 -5
- data/vendor/local/share/doc/groonga/source/example/{tutorial06-7.log → tutorial/index-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +18 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-11.log → tutorial/introduction-11.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-12.log → tutorial/introduction-12.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +9 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-17.log → tutorial/introduction-17.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-5.log → tutorial/introduction-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-6.log → tutorial/introduction-6.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-7.log → tutorial/introduction-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial01-8.log → tutorial/introduction-8.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-1.log → tutorial/match_columns-1.log} +8 -8
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-2.log → tutorial/match_columns-2.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-3.log → tutorial/match_columns-3.log} +7 -7
- data/vendor/local/share/doc/groonga/source/example/{tutorial07-4.log → tutorial/match_columns-4.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-1.log → tutorial/micro_blog-1.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-10.log → tutorial/micro_blog-10.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-2.log → tutorial/micro_blog-2.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-3.log → tutorial/micro_blog-3.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-4.log → tutorial/micro_blog-4.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-5.log → tutorial/micro_blog-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-7.log → tutorial/micro_blog-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-8.log → tutorial/micro_blog-8.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/{tutorial10-9.log → tutorial/micro_blog-9.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial02-2.log → tutorial/network-2.log} +1 -1
- data/vendor/local/share/doc/groonga/source/example/{tutorial02-3.log → tutorial/network-3.log} +3 -3
- data/vendor/local/share/doc/groonga/source/example/{tutorial08-1.log → tutorial/patricia_trie-1.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial08-2.log → tutorial/patricia_trie-2.log} +6 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +27 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-1.log → tutorial/search-1.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-2.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-3.log +7 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-4.log → tutorial/search-4.log} +4 -4
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-5.log → tutorial/search-5.log} +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-6.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/{tutorial04-7.log → tutorial/search-7.log} +2 -2
- data/vendor/local/share/doc/groonga/source/executables/grntest.txt +6 -6
- data/vendor/local/share/doc/groonga/source/geolocation_search.txt +52 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/array.svg +188 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/columns.svg +501 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/hash-table.svg +275 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/index-column.svg +899 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/inverted-index.svg +249 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/patricia-trie.svg +275 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/prefix-search.svg +743 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record-id.svg +261 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/record.svg +228 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/scalar-column.svg +241 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-index-column-value.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram-token-id.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-bigram.svg +879 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-choose-tokenizer.svg +602 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-index-column-value.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-first-token-id.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-initial-state.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-on-key-table.svg +917 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-result.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-index-column-value.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/search-second-token-id.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/tokenizer.svg +561 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-initial.svg +389 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-first-token.svg +469 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-first-data-second-token.svg +514 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-first-token.svg +595 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-process-second-data-second-token.svg +600 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-first-data.svg +424 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/update-save-second-data.svg +549 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/fulltext-introduction/vector-column.svg +241 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-2bit.svg +203 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-encode-leading-4bit.svg +264 -0
- data/vendor/local/share/doc/groonga/source/images/geo-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-distance.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-distance.svg +317 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-circle.svg +306 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-in-rectangle.svg +304 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-sort.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points-sort.svg +383 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-points.svg +296 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-circle.svg +287 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.png +0 -0
- data/vendor/local/share/doc/groonga/source/images/geo-search-in-rectangle.svg +174 -0
- data/vendor/local/share/doc/groonga/source/index.txt +1 -0
- data/vendor/local/share/doc/groonga/source/install.txt +31 -40
- data/vendor/local/share/doc/groonga/source/news/senna.txt +109 -0
- data/vendor/local/share/doc/groonga/source/news.txt +118 -0
- data/vendor/local/share/doc/groonga/source/tutorial/{tutorial03.txt → data.txt} +5 -5
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial05.txt → source/tutorial/drilldown.txt} +8 -7
- data/vendor/local/share/doc/groonga/{en/html/_sources/tutorial/tutorial06.txt → source/tutorial/index.txt} +8 -8
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +297 -0
- data/vendor/local/share/doc/groonga/source/tutorial/{tutorial09.txt → lexicon.txt} +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial07.txt → source/tutorial/match_columns.txt} +4 -4
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial10.txt → source/tutorial/micro_blog.txt} +17 -17
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +103 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial08.txt → source/tutorial/patricia_trie.txt} +4 -4
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +57 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/tutorial/tutorial04.txt → source/tutorial/search.txt} +17 -12
- data/vendor/local/share/doc/groonga/source/tutorial.txt +11 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +449 -772
- data/vendor/local/share/man/man1/groonga.1 +591 -875
- metadata +232 -124
- data/vendor/local/etc/groonga/init.d/redhat/groonga +0 -160
- data/vendor/local/etc/groonga/init.d/redhat/sysconfig/groonga +0 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial01.html +0 -409
- data/vendor/local/share/doc/groonga/en/html/tutorial/tutorial02.html +0 -235
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/doc/groonga/source/example/tutorial01-1.log +0 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial01-10.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-13.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-14.log +0 -9
- data/vendor/local/share/doc/groonga/source/example/tutorial01-15.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-16.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-2.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-3.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial01-4.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial01-9.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial02-1.log +0 -8
- data/vendor/local/share/doc/groonga/source/example/tutorial04-2.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial04-3.log +0 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial04-6.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial05-2.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial05-4.log +0 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial06-1.log +0 -25
- data/vendor/local/share/doc/groonga/source/example/tutorial06-3.log +0 -21
- data/vendor/local/share/doc/groonga/source/example/tutorial10-6.log +0 -5
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial01.txt +0 -296
- data/vendor/local/share/doc/groonga/source/tutorial/tutorial02.txt +0 -102
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_load +0 -47
- data/vendor/local/share/groonga/munin/plugins/groonga_cpu_time +0 -57
- data/vendor/local/share/groonga/munin/plugins/groonga_disk +0 -162
- data/vendor/local/share/groonga/munin/plugins/groonga_memory +0 -51
- data/vendor/local/share/groonga/munin/plugins/groonga_n_records +0 -110
- data/vendor/local/share/groonga/munin/plugins/groonga_query_performance +0 -133
- data/vendor/local/share/groonga/munin/plugins/groonga_status +0 -84
data/test/test-schema.rb
CHANGED
@@ -70,120 +70,277 @@ class SchemaTest < Test::Unit::TestCase
|
|
70
70
|
end
|
71
71
|
end
|
72
72
|
|
73
|
-
|
74
|
-
|
73
|
+
class DefineHashTest < self
|
74
|
+
def test_default
|
75
|
+
Groonga::Schema.create_table("Posts", :type => :hash) do |table|
|
76
|
+
end
|
77
|
+
posts = context["Posts"]
|
78
|
+
assert_kind_of(Groonga::Hash, posts)
|
79
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
80
|
+
end
|
81
|
+
|
82
|
+
def test_named_path
|
83
|
+
Groonga::Schema.create_table("Posts",
|
84
|
+
:type => :hash,
|
85
|
+
:named_path => true) do |table|
|
86
|
+
end
|
87
|
+
posts = context["Posts"]
|
88
|
+
assert_kind_of(Groonga::Hash, posts)
|
89
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
90
|
+
end
|
91
|
+
|
92
|
+
def test_full_option
|
93
|
+
path = @tmp_dir + "hash.groonga"
|
94
|
+
tokenizer = context["TokenTrigram"]
|
95
|
+
Groonga::Schema.create_table("Posts",
|
96
|
+
:type => :hash,
|
97
|
+
:key_type => "integer",
|
98
|
+
:path => path.to_s,
|
99
|
+
:value_type => "UInt32",
|
100
|
+
:default_tokenizer => tokenizer,
|
101
|
+
:named_path => true) do |table|
|
102
|
+
end
|
103
|
+
table = context["Posts"]
|
104
|
+
assert_equal("#<Groonga::Hash " +
|
105
|
+
"id: <#{table.id}>, " +
|
106
|
+
"name: <Posts>, " +
|
107
|
+
"path: <#{path}>, " +
|
108
|
+
"domain: <Int32>, " +
|
109
|
+
"range: <UInt32>, " +
|
110
|
+
"flags: <>, " +
|
111
|
+
"encoding: <#{Groonga::Encoding.default.inspect}>, " +
|
112
|
+
"size: <0>>",
|
113
|
+
table.inspect)
|
114
|
+
assert_equal(tokenizer, table.default_tokenizer)
|
115
|
+
end
|
116
|
+
|
117
|
+
def test_rename
|
118
|
+
Groonga::Schema.create_table("Posts", :type => :hash) do |table|
|
119
|
+
end
|
120
|
+
posts = context["Posts"]
|
121
|
+
assert_kind_of(Groonga::Hash, posts)
|
122
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
123
|
+
end
|
124
|
+
entries = context["Entries"]
|
125
|
+
assert_kind_of(Groonga::Hash, entries)
|
126
|
+
assert_equal("Entries", posts.name)
|
75
127
|
end
|
76
|
-
posts = context["Posts"]
|
77
|
-
assert_kind_of(Groonga::Hash, posts)
|
78
|
-
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
79
128
|
end
|
80
129
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
:
|
173
|
-
:
|
174
|
-
:
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
130
|
+
class DefinePatriciaTrieTest < self
|
131
|
+
def test_default
|
132
|
+
Groonga::Schema.create_table("Posts", :type => :patricia_trie) do |table|
|
133
|
+
end
|
134
|
+
posts = context["Posts"]
|
135
|
+
assert_kind_of(Groonga::PatriciaTrie, posts)
|
136
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_named_path
|
140
|
+
Groonga::Schema.create_table("Posts",
|
141
|
+
:type => :patricia_trie,
|
142
|
+
:named_path => true) do |table|
|
143
|
+
end
|
144
|
+
posts = context["Posts"]
|
145
|
+
assert_kind_of(Groonga::PatriciaTrie, posts)
|
146
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
147
|
+
end
|
148
|
+
|
149
|
+
def test_full_option
|
150
|
+
path = @tmp_dir + "patricia-trie.groonga"
|
151
|
+
Groonga::Schema.create_table("Posts",
|
152
|
+
:type => :patricia_trie,
|
153
|
+
:key_type => "integer",
|
154
|
+
:path => path.to_s,
|
155
|
+
:value_type => "Float",
|
156
|
+
:default_tokenizer => "TokenBigram",
|
157
|
+
:key_normalize => true,
|
158
|
+
:key_with_sis => true,
|
159
|
+
:named_path => true) do |table|
|
160
|
+
end
|
161
|
+
table = context["Posts"]
|
162
|
+
assert_equal("#<Groonga::PatriciaTrie " +
|
163
|
+
"id: <#{table.id}>, " +
|
164
|
+
"name: <Posts>, " +
|
165
|
+
"path: <#{path}>, " +
|
166
|
+
"domain: <Int32>, " +
|
167
|
+
"range: <Float>, " +
|
168
|
+
"flags: <KEY_WITH_SIS|KEY_NORMALIZE|WITH_SECTION>, " +
|
169
|
+
"encoding: <#{Groonga::Encoding.default.inspect}>, " +
|
170
|
+
"size: <0>>",
|
171
|
+
table.inspect)
|
172
|
+
assert_equal(context["TokenBigram"], table.default_tokenizer)
|
173
|
+
end
|
174
|
+
|
175
|
+
def test_rename
|
176
|
+
Groonga::Schema.create_table("Posts", :type => :patricia_trie) do |table|
|
177
|
+
end
|
178
|
+
posts = context["Posts"]
|
179
|
+
assert_kind_of(Groonga::PatriciaTrie, posts)
|
180
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
181
|
+
end
|
182
|
+
entries = context["Entries"]
|
183
|
+
assert_kind_of(Groonga::PatriciaTrie, entries)
|
184
|
+
assert_equal("Entries", posts.name)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
class DefineDoubleArrayTrieTest < self
|
189
|
+
def test_default
|
190
|
+
Groonga::Schema.create_table("Posts",
|
191
|
+
:type => :double_array_trie) do |table|
|
192
|
+
end
|
193
|
+
posts = context["Posts"]
|
194
|
+
assert_kind_of(Groonga::DoubleArrayTrie, posts)
|
195
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
196
|
+
end
|
197
|
+
|
198
|
+
def test_named_path
|
199
|
+
Groonga::Schema.create_table("Posts",
|
200
|
+
:type => :double_array_trie,
|
201
|
+
:named_path => true) do |table|
|
202
|
+
end
|
203
|
+
posts = context["Posts"]
|
204
|
+
assert_kind_of(Groonga::DoubleArrayTrie, posts)
|
205
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_full_option
|
209
|
+
path = @tmp_dir + "patricia-trie.groonga"
|
210
|
+
Groonga::Schema.create_table("Posts",
|
211
|
+
:type => :double_array_trie,
|
212
|
+
:key_type => "integer",
|
213
|
+
:path => path.to_s,
|
214
|
+
:value_type => "Float",
|
215
|
+
:default_tokenizer => "TokenBigram",
|
216
|
+
:key_normalize => true,
|
217
|
+
:named_path => true) do |table|
|
218
|
+
end
|
219
|
+
table = context["Posts"]
|
220
|
+
assert_equal("#<Groonga::DoubleArrayTrie " +
|
221
|
+
"id: <#{table.id}>, " +
|
222
|
+
"name: <Posts>, " +
|
223
|
+
"path: <#{path}>, " +
|
224
|
+
"domain: <Int32>, " +
|
225
|
+
"range: <Float>, " +
|
226
|
+
"flags: <KEY_NORMALIZE|WITH_SECTION>, " +
|
227
|
+
"encoding: <#{Groonga::Encoding.default.inspect}>, " +
|
228
|
+
"size: <0>>",
|
229
|
+
table.inspect)
|
230
|
+
assert_equal(context["TokenBigram"], table.default_tokenizer)
|
231
|
+
end
|
232
|
+
|
233
|
+
def test_rename
|
234
|
+
Groonga::Schema.create_table("Posts", :type => :double_array_trie) do |table|
|
235
|
+
end
|
236
|
+
posts = context["Posts"]
|
237
|
+
assert_kind_of(Groonga::DoubleArrayTrie, posts)
|
238
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
239
|
+
end
|
240
|
+
entries = context["Entries"]
|
241
|
+
assert_kind_of(Groonga::DoubleArrayTrie, entries)
|
242
|
+
assert_equal("Entries", posts.name)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
class DefineArrayTest < self
|
247
|
+
def test_default
|
248
|
+
Groonga::Schema.create_table("Posts", :type => :array) do |table|
|
249
|
+
end
|
250
|
+
posts = context["Posts"]
|
251
|
+
assert_kind_of(Groonga::Array, posts)
|
252
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
253
|
+
end
|
254
|
+
|
255
|
+
def test_named_path
|
256
|
+
Groonga::Schema.create_table("Posts",
|
257
|
+
:type => :array,
|
258
|
+
:named_path => true) do |table|
|
259
|
+
end
|
260
|
+
posts = context["Posts"]
|
261
|
+
assert_kind_of(Groonga::Array, posts)
|
262
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
263
|
+
end
|
264
|
+
|
265
|
+
def test_full_option
|
266
|
+
path = @tmp_dir + "array.groonga"
|
267
|
+
Groonga::Schema.create_table("Posts",
|
268
|
+
:type => :array,
|
269
|
+
:path => path.to_s,
|
270
|
+
:value_type => "Int32",
|
271
|
+
:named_path => true) do |table|
|
272
|
+
end
|
273
|
+
table = context["Posts"]
|
274
|
+
assert_equal("#<Groonga::Array " +
|
275
|
+
"id: <#{table.id}>, " +
|
276
|
+
"name: <Posts>, " +
|
277
|
+
"path: <#{path}>, " +
|
278
|
+
"domain: <Int32>, " +
|
279
|
+
"range: <Int32>, " +
|
280
|
+
"flags: <>, " +
|
281
|
+
"size: <0>>",
|
282
|
+
table.inspect)
|
283
|
+
end
|
284
|
+
|
285
|
+
def test_rename
|
286
|
+
Groonga::Schema.create_table("Posts", :type => :array) do |table|
|
287
|
+
end
|
288
|
+
posts = context["Posts"]
|
289
|
+
assert_kind_of(Groonga::Array, posts)
|
290
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
291
|
+
end
|
292
|
+
entries = context["Entries"]
|
293
|
+
assert_kind_of(Groonga::Array, entries)
|
294
|
+
assert_equal("Entries", posts.name)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
class DefineColumnTest < self
|
299
|
+
def test_default
|
300
|
+
Groonga::Schema.create_table("Posts") do |table|
|
301
|
+
table.column("rate", :int)
|
302
|
+
end
|
303
|
+
|
304
|
+
column_name = "Posts.rate"
|
305
|
+
column = context[column_name]
|
306
|
+
assert_kind_of(Groonga::FixSizeColumn, column)
|
307
|
+
assert_equal("#{@database_path}.0000101", column.path)
|
308
|
+
end
|
309
|
+
|
310
|
+
def test_named_path
|
311
|
+
Groonga::Schema.create_table("Posts") do |table|
|
312
|
+
table.column("rate", :int, :named_path => true)
|
313
|
+
end
|
314
|
+
|
315
|
+
column_name = "Posts.rate"
|
316
|
+
column = context[column_name]
|
317
|
+
assert_kind_of(Groonga::FixSizeColumn, column)
|
318
|
+
assert_equal("#{@database_path}.0000100.columns/rate", column.path)
|
319
|
+
end
|
320
|
+
|
321
|
+
def test_full_option
|
322
|
+
path = @tmp_dir + "column.groonga"
|
323
|
+
type = Groonga::Type.new("Niku", :size => 29)
|
324
|
+
Groonga::Schema.create_table("Posts") do |table|
|
325
|
+
table.column("rate",
|
326
|
+
type,
|
327
|
+
:path => path.to_s,
|
328
|
+
:persistent => true,
|
329
|
+
:type => :vector,
|
330
|
+
:compress => :lzo)
|
331
|
+
end
|
332
|
+
|
333
|
+
column_name = "Posts.rate"
|
334
|
+
column = context[column_name]
|
335
|
+
assert_equal("#<Groonga::VariableSizeColumn " +
|
336
|
+
"id: <#{column.id}>, " +
|
337
|
+
"name: <#{column_name}>, " +
|
338
|
+
"path: <#{path}>, " +
|
339
|
+
"domain: <Posts>, " +
|
340
|
+
"range: <Niku>, " +
|
341
|
+
"flags: <COMPRESS_LZO>>",
|
342
|
+
column.inspect)
|
343
|
+
end
|
187
344
|
end
|
188
345
|
|
189
346
|
def test_integer32_column
|
@@ -286,6 +443,19 @@ class SchemaTest < Test::Unit::TestCase
|
|
286
443
|
assert_nil(context["Posts.content"])
|
287
444
|
end
|
288
445
|
|
446
|
+
def test_rename_column
|
447
|
+
Groonga::Schema.create_table("Posts") do |table|
|
448
|
+
table.long_text :content
|
449
|
+
end
|
450
|
+
content = context["Posts.content"]
|
451
|
+
assert_equal("Posts.content", content.name)
|
452
|
+
|
453
|
+
Groonga::Schema.rename_column("Posts", "content", "body")
|
454
|
+
body = context["Posts.body"]
|
455
|
+
assert_equal("Posts.body", body.name)
|
456
|
+
assert_equal("Posts.body", content.name)
|
457
|
+
end
|
458
|
+
|
289
459
|
def test_column_again
|
290
460
|
Groonga::Schema.create_table("Posts") do |table|
|
291
461
|
table.text :content
|
@@ -310,131 +480,167 @@ class SchemaTest < Test::Unit::TestCase
|
|
310
480
|
end
|
311
481
|
end
|
312
482
|
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
483
|
+
class DefineIndexColumnTest < self
|
484
|
+
def test_default
|
485
|
+
assert_nil(context["Terms.content"])
|
486
|
+
Groonga::Schema.create_table("Posts") do |table|
|
487
|
+
table.long_text :content
|
488
|
+
end
|
489
|
+
Groonga::Schema.create_table("Terms") do |table|
|
490
|
+
table.index "Posts.content"
|
491
|
+
end
|
492
|
+
index_column = context["Terms.Posts_content"]
|
493
|
+
assert_equal([context["Posts.content"]],
|
494
|
+
index_column.sources)
|
495
|
+
assert_equal("#{@database_path}.0000103", index_column.path)
|
317
496
|
end
|
318
|
-
|
319
|
-
|
497
|
+
|
498
|
+
def test_named_path
|
499
|
+
assert_nil(context["Terms.content"])
|
500
|
+
Groonga::Schema.create_table("Posts") do |table|
|
501
|
+
table.long_text :content
|
502
|
+
end
|
503
|
+
Groonga::Schema.create_table("Terms") do |table|
|
504
|
+
table.index "Posts.content", :named_path => true
|
505
|
+
end
|
506
|
+
index_column = context["Terms.Posts_content"]
|
507
|
+
assert_equal([context["Posts.content"]],
|
508
|
+
index_column.sources)
|
509
|
+
assert_equal("#{@database_path}.0000102.columns/Posts_content",
|
510
|
+
index_column.path)
|
320
511
|
end
|
321
|
-
assert_equal([context["Posts.content"]],
|
322
|
-
context["Terms.Posts_content"].sources)
|
323
|
-
end
|
324
512
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
513
|
+
def test_full_option
|
514
|
+
path = @tmp_dir + "index-column.groonga"
|
515
|
+
assert_nil(context["Terms.content"])
|
516
|
+
index_column_name = "Posts_index"
|
329
517
|
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
index_column.inspect)
|
355
|
-
end
|
356
|
-
|
357
|
-
def test_index_again
|
358
|
-
Groonga::Schema.create_table("Posts") do |table|
|
359
|
-
table.long_text :content
|
360
|
-
end
|
361
|
-
Groonga::Schema.create_table("Terms") do |table|
|
362
|
-
table.index "Posts.content"
|
518
|
+
Groonga::Schema.create_table("Posts") do |table|
|
519
|
+
table.long_text :content
|
520
|
+
end
|
521
|
+
Groonga::Schema.create_table("Terms") do |table|
|
522
|
+
table.index("Posts.content",
|
523
|
+
:name => index_column_name,
|
524
|
+
:path => path.to_s,
|
525
|
+
:persistent => true,
|
526
|
+
:with_section => true,
|
527
|
+
:with_weight => true,
|
528
|
+
:with_position => true,
|
529
|
+
:named_path => true)
|
530
|
+
end
|
531
|
+
|
532
|
+
full_index_column_name = "Terms.#{index_column_name}"
|
533
|
+
index_column = context[full_index_column_name]
|
534
|
+
assert_equal("#<Groonga::IndexColumn " +
|
535
|
+
"id: <#{index_column.id}>, " +
|
536
|
+
"name: <#{full_index_column_name}>, " +
|
537
|
+
"path: <#{path}>, " +
|
538
|
+
"domain: <Terms>, " +
|
539
|
+
"range: <Posts>, " +
|
540
|
+
"flags: <WITH_SECTION|WITH_WEIGHT|WITH_POSITION>>",
|
541
|
+
index_column.inspect)
|
363
542
|
end
|
364
543
|
|
365
|
-
|
544
|
+
def test_again
|
545
|
+
Groonga::Schema.create_table("Posts") do |table|
|
546
|
+
table.long_text :content
|
547
|
+
end
|
366
548
|
Groonga::Schema.create_table("Terms") do |table|
|
367
549
|
table.index "Posts.content"
|
368
550
|
end
|
369
|
-
end
|
370
|
-
end
|
371
551
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
Groonga::Schema.create_table("Terms") do |table|
|
378
|
-
table.index "Posts.content"
|
552
|
+
assert_nothing_raised do
|
553
|
+
Groonga::Schema.create_table("Terms") do |table|
|
554
|
+
table.index "Posts.content"
|
555
|
+
end
|
556
|
+
end
|
379
557
|
end
|
380
558
|
|
381
|
-
|
559
|
+
def test_again_with_difference_source
|
560
|
+
Groonga::Schema.create_table("Posts") do |table|
|
561
|
+
table.long_text :content
|
562
|
+
table.short_text :name
|
563
|
+
end
|
382
564
|
Groonga::Schema.create_table("Terms") do |table|
|
383
|
-
table.index "Posts.
|
565
|
+
table.index "Posts.content"
|
384
566
|
end
|
385
|
-
end
|
386
|
-
end
|
387
567
|
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
Groonga::Schema.create_table("Terms") do |table|
|
394
|
-
table.index "Posts._key", :with_position => true
|
568
|
+
assert_raise(Groonga::Schema::ColumnCreationWithDifferentOptions) do
|
569
|
+
Groonga::Schema.create_table("Terms") do |table|
|
570
|
+
table.index "Posts.name", :name => "Posts_content"
|
571
|
+
end
|
572
|
+
end
|
395
573
|
end
|
396
574
|
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
"flags: <WITH_POSITION>>",
|
406
|
-
index_column.inspect)
|
407
|
-
end
|
575
|
+
def test_key
|
576
|
+
Groonga::Schema.create_table("Posts",
|
577
|
+
:type => :hash,
|
578
|
+
:key_type => "ShortText") do |table|
|
579
|
+
end
|
580
|
+
Groonga::Schema.create_table("Terms") do |table|
|
581
|
+
table.index "Posts._key", :with_position => true
|
582
|
+
end
|
408
583
|
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
414
|
-
|
415
|
-
|
584
|
+
full_index_column_name = "Terms.Posts__key"
|
585
|
+
index_column = context[full_index_column_name]
|
586
|
+
assert_equal("#<Groonga::IndexColumn " +
|
587
|
+
"id: <#{index_column.id}>, " +
|
588
|
+
"name: <#{full_index_column_name}>, " +
|
589
|
+
"path: <#{index_column.path}>, " +
|
590
|
+
"domain: <Terms>, " +
|
591
|
+
"range: <Posts>, " +
|
592
|
+
"flags: <WITH_POSITION>>",
|
593
|
+
index_column.inspect)
|
416
594
|
end
|
417
595
|
|
418
|
-
|
596
|
+
def test_key_again
|
597
|
+
Groonga::Schema.create_table("Posts",
|
598
|
+
:type => :hash,
|
599
|
+
:key_type => "ShortText") do |table|
|
600
|
+
end
|
419
601
|
Groonga::Schema.create_table("Terms") do |table|
|
420
|
-
table.index "Posts._key"
|
602
|
+
table.index "Posts._key", :with_position => true
|
421
603
|
end
|
422
|
-
end
|
423
|
-
end
|
424
604
|
|
425
|
-
|
426
|
-
|
427
|
-
|
605
|
+
assert_nothing_raised do
|
606
|
+
Groonga::Schema.create_table("Terms") do |table|
|
607
|
+
table.index "Posts._key"
|
608
|
+
end
|
609
|
+
end
|
428
610
|
end
|
429
|
-
|
430
|
-
|
611
|
+
|
612
|
+
def test_remove
|
613
|
+
Groonga::Schema.create_table("Posts") do |table|
|
614
|
+
table.long_text :content
|
615
|
+
end
|
616
|
+
Groonga::Schema.create_table("Terms") do |table|
|
617
|
+
table.index "Posts.content"
|
618
|
+
end
|
619
|
+
assert_equal([context["Posts.content"]],
|
620
|
+
context["Terms.Posts_content"].sources)
|
621
|
+
Groonga::Schema.change_table("Terms") do |table|
|
622
|
+
table.remove_index("Posts.content")
|
623
|
+
end
|
624
|
+
assert_nil(context["Terms.Posts_content"])
|
431
625
|
end
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
626
|
+
|
627
|
+
def test_rename
|
628
|
+
Groonga::Schema.create_table("Posts") do |table|
|
629
|
+
table.long_text :content
|
630
|
+
end
|
631
|
+
Groonga::Schema.create_table("Terms") do |table|
|
632
|
+
table.index "Posts.content"
|
633
|
+
end
|
634
|
+
index = context["Terms.Posts_content"]
|
635
|
+
assert_equal([context["Posts.content"]], index.sources)
|
636
|
+
Groonga::Schema.change_table("Terms") do |table|
|
637
|
+
table.rename_column("Posts_content", "posts_content_index")
|
638
|
+
end
|
639
|
+
renamed_index = context["Terms.posts_content_index"]
|
640
|
+
assert_equal("Terms.posts_content_index", renamed_index.name)
|
641
|
+
assert_equal("Terms.posts_content_index", index.name)
|
642
|
+
assert_equal([context["Posts.content"]], renamed_index.sources)
|
436
643
|
end
|
437
|
-
assert_nil(context["Terms.Posts_content"])
|
438
644
|
end
|
439
645
|
|
440
646
|
def test_reference_guess
|
@@ -486,26 +692,6 @@ class SchemaTest < Test::Unit::TestCase
|
|
486
692
|
assert_nil(Groonga::Context.default["TermsText.Items_text"])
|
487
693
|
end
|
488
694
|
|
489
|
-
def test_columns_directory_removed
|
490
|
-
table = "Posts"
|
491
|
-
dir = create_table_with_column(table)
|
492
|
-
|
493
|
-
Groonga::Schema.remove_table(table)
|
494
|
-
|
495
|
-
assert_table_removed(table)
|
496
|
-
assert_directory_removed(dir)
|
497
|
-
end
|
498
|
-
|
499
|
-
def test_columns_directory_not_removed
|
500
|
-
table = "Posts"
|
501
|
-
dir = create_table_with_column(table)
|
502
|
-
|
503
|
-
Groonga::Context.default[table].remove
|
504
|
-
|
505
|
-
assert_table_removed(table)
|
506
|
-
assert_directory_not_removed(dir)
|
507
|
-
end
|
508
|
-
|
509
695
|
def test_default_tokenizer_name_shortcut
|
510
696
|
Groonga::Schema.define do |schema|
|
511
697
|
schema.create_table("Terms",
|
@@ -531,13 +717,84 @@ class SchemaTest < Test::Unit::TestCase
|
|
531
717
|
assert_equal(short_text, Groonga["Users"].domain)
|
532
718
|
end
|
533
719
|
|
720
|
+
class RemoveTest < self
|
721
|
+
def test_tables_directory_removed_on_last_table_remove
|
722
|
+
table_name = "Posts"
|
723
|
+
Groonga::Schema.create_table(table_name, :named_path => true)
|
724
|
+
table = Groonga[table_name]
|
725
|
+
tables_directory = Pathname.new(table.path).dirname
|
726
|
+
|
727
|
+
assert_directory_not_removed(tables_directory)
|
728
|
+
Groonga::Schema.remove_table(table_name)
|
729
|
+
assert_directory_removed(tables_directory)
|
730
|
+
end
|
731
|
+
|
732
|
+
def test_tables_directory_not_removed_on_not_last_table_remove
|
733
|
+
table_name = "Posts"
|
734
|
+
Groonga::Schema.define(:named_path => true) do |schema|
|
735
|
+
schema.create_table(table_name)
|
736
|
+
schema.create_table("Users")
|
737
|
+
end
|
738
|
+
|
739
|
+
table = Groonga[table_name]
|
740
|
+
tables_directory = Pathname.new(table.path).dirname
|
741
|
+
|
742
|
+
assert_directory_not_removed(tables_directory)
|
743
|
+
Groonga::Schema.remove_table(table_name)
|
744
|
+
assert_directory_not_removed(tables_directory)
|
745
|
+
end
|
746
|
+
|
747
|
+
def test_columns_directory_removed
|
748
|
+
table = "Posts"
|
749
|
+
dir = create_table_with_column(table, :named_path => true)
|
750
|
+
|
751
|
+
Groonga::Schema.remove_table(table)
|
752
|
+
|
753
|
+
assert_table_removed(table)
|
754
|
+
assert_directory_removed(dir)
|
755
|
+
end
|
756
|
+
end
|
757
|
+
|
758
|
+
class ColumnRemoveTest < self
|
759
|
+
def test_columns_directory_removed_on_last_column_remove
|
760
|
+
Groonga::Schema.define(:named_path => true) do |schema|
|
761
|
+
schema.create_table("Posts") do |table|
|
762
|
+
table.short_text("title")
|
763
|
+
end
|
764
|
+
end
|
765
|
+
|
766
|
+
columns_directory = columns_directory_path(Groonga["Posts"])
|
767
|
+
assert_directory_not_removed(columns_directory)
|
768
|
+
Groonga::Schema.change_table("Posts") do |table|
|
769
|
+
table.remove_column("title")
|
770
|
+
end
|
771
|
+
assert_directory_removed(columns_directory)
|
772
|
+
end
|
773
|
+
|
774
|
+
def test_columns_directory_not_removed_on_not_last_column_remove
|
775
|
+
Groonga::Schema.define(:named_path => true) do |schema|
|
776
|
+
schema.create_table("Posts") do |table|
|
777
|
+
table.short_text("title")
|
778
|
+
table.short_text("body")
|
779
|
+
end
|
780
|
+
end
|
781
|
+
|
782
|
+
columns_directory = columns_directory_path(Groonga["Posts"])
|
783
|
+
assert_directory_not_removed(columns_directory)
|
784
|
+
Groonga::Schema.change_table("Posts") do |table|
|
785
|
+
table.remove_column("title")
|
786
|
+
end
|
787
|
+
assert_directory_not_removed(columns_directory)
|
788
|
+
end
|
789
|
+
end
|
790
|
+
|
534
791
|
private
|
535
792
|
def columns_directory_path(table)
|
536
793
|
"#{table.path}.columns"
|
537
794
|
end
|
538
795
|
|
539
|
-
def create_table_with_column(name)
|
540
|
-
Groonga::Schema.create_table(name) do |table|
|
796
|
+
def create_table_with_column(name, options={})
|
797
|
+
Groonga::Schema.create_table(name, options) do |table|
|
541
798
|
table.integer64 :rate
|
542
799
|
end
|
543
800
|
context = Groonga::Context.default
|
@@ -545,11 +802,11 @@ class SchemaTest < Test::Unit::TestCase
|
|
545
802
|
end
|
546
803
|
|
547
804
|
def assert_directory_removed(dir)
|
548
|
-
|
805
|
+
assert_not_predicate(Pathname.new(dir), :exist?)
|
549
806
|
end
|
550
807
|
|
551
808
|
def assert_directory_not_removed(dir)
|
552
|
-
|
809
|
+
assert_predicate(Pathname.new(dir), :exist?)
|
553
810
|
end
|
554
811
|
|
555
812
|
def assert_table_removed(name)
|