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/lib/groonga/view-record.rb
CHANGED
@@ -22,26 +22,20 @@ module Groonga
|
|
22
22
|
# レコードのID
|
23
23
|
attr_reader :id
|
24
24
|
|
25
|
-
# _table_の_id_に対応するレコードを作成する。
|
25
|
+
# _table_ の _id_ に対応するレコードを作成する。
|
26
26
|
def initialize(view, id)
|
27
27
|
@view = view
|
28
28
|
@id = id
|
29
29
|
end
|
30
30
|
|
31
|
-
#
|
32
|
-
#
|
33
|
-
#
|
34
|
-
# _record_と_other_が同じgroongaのレコードなら+true+を返し、
|
35
|
-
# そうでなければ+false+を返す。
|
31
|
+
# _record_ と _other_ が同じgroongaのレコードなら +true+ を返し、
|
32
|
+
# そうでなければ +false+ を返す。
|
36
33
|
def ==(other)
|
37
34
|
self.class == other.class and
|
38
35
|
[view, id] == [other.view, other.id]
|
39
36
|
end
|
40
37
|
|
41
|
-
#
|
42
|
-
# record[column_name] -> 値
|
43
|
-
#
|
44
|
-
# このレコードの_column_name_で指定されたカラムの値を返す。
|
38
|
+
# このレコードの _column_name_ で指定されたカラムの値を返す。
|
45
39
|
def [](column_name)
|
46
40
|
@view.column_value(@id, column_name)
|
47
41
|
end
|
data/lib/groonga.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2009-
|
3
|
+
# Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -39,7 +39,7 @@ require 'groonga/record'
|
|
39
39
|
require 'groonga/expression-builder'
|
40
40
|
require 'groonga/posting'
|
41
41
|
begin
|
42
|
-
major, minor,
|
42
|
+
major, minor, _ = RUBY_VERSION.split(/\./)
|
43
43
|
require "#{major}.#{minor}/groonga.so"
|
44
44
|
rescue LoadError
|
45
45
|
require 'groonga.so'
|
@@ -91,3 +91,5 @@ require 'groonga/patricia-trie'
|
|
91
91
|
require 'groonga/dumper'
|
92
92
|
require 'groonga/schema'
|
93
93
|
require 'groonga/pagination'
|
94
|
+
require 'groonga/query-log'
|
95
|
+
require 'groonga/grntest-log'
|
data/rroonga-build.rb
CHANGED
data/test/groonga-test-utils.rb
CHANGED
data/test/test-array.rb
CHANGED
@@ -62,9 +62,9 @@ class ArrayTest < Test::Unit::TestCase
|
|
62
62
|
:source => "Bookmarks.user")
|
63
63
|
morita = users.add(:name => "morita")
|
64
64
|
gunyara_kun = users.add(:name => "gunyara-kun")
|
65
|
-
|
66
|
-
|
67
|
-
|
65
|
+
bookmarks.add(:title => "groonga", :user => morita)
|
66
|
+
bookmarks.add(:title => "google", :user => morita)
|
67
|
+
bookmarks.add(:title => "Python", :user => gunyara_kun)
|
68
68
|
|
69
69
|
assert_equal(["groonga", "google"],
|
70
70
|
index.search(morita.id).collect {|record| record.key["title"]})
|
@@ -86,7 +86,7 @@ class ArrayTest < Test::Unit::TestCase
|
|
86
86
|
|
87
87
|
def test_column_value
|
88
88
|
users = Groonga::Array.create(:name => "Users")
|
89
|
-
|
89
|
+
users.define_column("name", "ShortText")
|
90
90
|
morita_id = users.add.id
|
91
91
|
users.set_column_value(morita_id, "name", "morita")
|
92
92
|
assert_equal("morita", users.column_value(morita_id, "name"))
|
@@ -99,4 +99,25 @@ class ArrayTest < Test::Unit::TestCase
|
|
99
99
|
second_user = users.add
|
100
100
|
assert_predicate(second_user, :added?)
|
101
101
|
end
|
102
|
+
|
103
|
+
def test_defrag
|
104
|
+
users = Groonga::Array.create(:name => "Users")
|
105
|
+
users.define_column("name", "ShortText")
|
106
|
+
users.define_column("address", "ShortText")
|
107
|
+
1000.times do |i|
|
108
|
+
users.add(:name => "user #{i}" * 1000,
|
109
|
+
:address => "address #{i}" * 1000)
|
110
|
+
end
|
111
|
+
assert_equal(7, users.defrag)
|
112
|
+
end
|
113
|
+
|
114
|
+
def test_rename
|
115
|
+
users = Groonga::Array.create(:name => "Users")
|
116
|
+
name = users.define_column("name", "ShortText")
|
117
|
+
address = users.define_column("address", "ShortText")
|
118
|
+
|
119
|
+
users.rename("People")
|
120
|
+
assert_equal(["People", "People.name", "People.address"],
|
121
|
+
[users.name, name.name, address.name])
|
122
|
+
end
|
102
123
|
end
|
data/test/test-column.rb
CHANGED
@@ -254,7 +254,7 @@ class ColumnTest < Test::Unit::TestCase
|
|
254
254
|
|
255
255
|
def test_set_time
|
256
256
|
posts = Groonga::Hash.create(:name => "Posts", :key_type => "ShortText")
|
257
|
-
|
257
|
+
posts.define_column("issued", "Time")
|
258
258
|
|
259
259
|
post = posts.add("hello", :issued => 123456)
|
260
260
|
assert_equal(Time.at(123456), post[".issued"])
|
@@ -266,7 +266,7 @@ class ColumnTest < Test::Unit::TestCase
|
|
266
266
|
|
267
267
|
def test_set_nil_to_time
|
268
268
|
posts = Groonga::Hash.create(:name => "Posts", :key_type => "ShortText")
|
269
|
-
|
269
|
+
posts.define_column("issued", "Time")
|
270
270
|
|
271
271
|
post = posts.add("hello", :issued => nil)
|
272
272
|
assert_equal(Time.at(0), post["issued"])
|
@@ -274,7 +274,7 @@ class ColumnTest < Test::Unit::TestCase
|
|
274
274
|
|
275
275
|
def test_bool
|
276
276
|
posts = Groonga::Hash.create(:name => "Posts", :key_type => "ShortText")
|
277
|
-
|
277
|
+
posts.define_column("hidden", "Bool")
|
278
278
|
|
279
279
|
post = posts.add("hello")
|
280
280
|
assert_false(post["hidden"])
|
@@ -340,11 +340,11 @@ class ColumnTest < Test::Unit::TestCase
|
|
340
340
|
:key_type => "ShortText",
|
341
341
|
:key_normalize => true)
|
342
342
|
index.default_tokenizer = "TokenBigram"
|
343
|
-
|
344
|
-
|
345
|
-
|
343
|
+
index.define_index_column("body_index", @posts,
|
344
|
+
:with_position => true,
|
345
|
+
:source => @body)
|
346
346
|
|
347
|
-
|
348
|
-
|
347
|
+
@posts.add("Hello!", :body => "World")
|
348
|
+
@posts.add("My Hobby", :body => "Drive and Eat")
|
349
349
|
end
|
350
350
|
end
|
data/test/test-database.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -68,8 +68,7 @@ class DatabaseTest < Test::Unit::TestCase
|
|
68
68
|
Groonga::Database.new(db_path.to_s)
|
69
69
|
end
|
70
70
|
|
71
|
-
|
72
|
-
|
71
|
+
Groonga::Database.create(:path => db_path.to_s)
|
73
72
|
assert_not_predicate(Groonga::Database.new(db_path.to_s), :closed?)
|
74
73
|
end
|
75
74
|
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
#
|
5
|
+
# This library is free software; you can redistribute it and/or
|
6
|
+
# modify it under the terms of the GNU Lesser General Public
|
7
|
+
# License version 2.1 as published by the Free Software Foundation.
|
8
|
+
#
|
9
|
+
# This library is distributed in the hope that it will be useful,
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
# Lesser General Public License for more details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU Lesser General Public
|
15
|
+
# License along with this library; if not, write to the Free Software
|
16
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
17
|
+
|
18
|
+
class DoubleArrayTrieTest < Test::Unit::TestCase
|
19
|
+
include GroongaTestUtils
|
20
|
+
include ERB::Util
|
21
|
+
|
22
|
+
setup :setup_database
|
23
|
+
|
24
|
+
def test_support_key?
|
25
|
+
assert_predicate(Groonga::DoubleArrayTrie.create(:name => "Users",
|
26
|
+
:key_type => "ShortText"),
|
27
|
+
:support_key?)
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_encoding
|
31
|
+
assert_equal(Groonga::Encoding.default,
|
32
|
+
Groonga::DoubleArrayTrie.create.encoding)
|
33
|
+
end
|
34
|
+
|
35
|
+
def test_tokenizer
|
36
|
+
trie = Groonga::DoubleArrayTrie.create
|
37
|
+
assert_nil(trie.default_tokenizer)
|
38
|
+
trie.default_tokenizer = "TokenTrigram"
|
39
|
+
assert_equal(Groonga::Context.default["TokenTrigram"],
|
40
|
+
trie.default_tokenizer)
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_search
|
44
|
+
users = Groonga::Array.create(:name => "Users")
|
45
|
+
users.define_column("name", "ShortText")
|
46
|
+
|
47
|
+
bookmarks = Groonga::DoubleArrayTrie.create(:name => "Bookmarks",
|
48
|
+
:key_type => "ShortText")
|
49
|
+
bookmarks.define_column("user_id", users)
|
50
|
+
|
51
|
+
daijiro = users.add
|
52
|
+
daijiro["name"] = "daijiro"
|
53
|
+
gunyarakun = users.add
|
54
|
+
gunyarakun["name"] = "gunyarakun"
|
55
|
+
|
56
|
+
groonga = bookmarks.add("http://groonga.org/")
|
57
|
+
groonga["user_id"] = daijiro
|
58
|
+
|
59
|
+
records = bookmarks.search("http://groonga.org/")
|
60
|
+
assert_equal(["daijiro"],
|
61
|
+
records.records.collect {|record| record[".user_id.name"]})
|
62
|
+
end
|
63
|
+
|
64
|
+
def test_add
|
65
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users")
|
66
|
+
users.define_column("address", "Text")
|
67
|
+
me = users.add("me", :address => "me@example.com")
|
68
|
+
assert_equal("me@example.com", me[:address])
|
69
|
+
end
|
70
|
+
|
71
|
+
def test_default_tokenizer_on_create
|
72
|
+
terms = Groonga::DoubleArrayTrie.create(:name => "Terms",
|
73
|
+
:default_tokenizer => "TokenUnigram")
|
74
|
+
assert_equal(context[Groonga::Type::UNIGRAM],
|
75
|
+
terms.default_tokenizer)
|
76
|
+
end
|
77
|
+
|
78
|
+
def test_duplicated_name
|
79
|
+
Groonga::DoubleArrayTrie.create(:name => "Users")
|
80
|
+
assert_raise(Groonga::InvalidArgument) do
|
81
|
+
Groonga::DoubleArrayTrie.create(:name => "Users")
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_has_key?
|
86
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users")
|
87
|
+
assert_false(users.has_key?("morita"))
|
88
|
+
users.add("morita")
|
89
|
+
assert_true(users.has_key?("morita"))
|
90
|
+
end
|
91
|
+
|
92
|
+
def test_prefix_cursor
|
93
|
+
paths = Groonga::DoubleArrayTrie.create(:name => "Paths",
|
94
|
+
:key_type => 'ShortText')
|
95
|
+
paths.add('/')
|
96
|
+
paths.add('/tmp')
|
97
|
+
paths.add('/usr/bin')
|
98
|
+
paths.add('/usr/local/bin')
|
99
|
+
|
100
|
+
assert_prefix_cursor(["/usr/local/bin", "/usr/bin", "/tmp", "/"],
|
101
|
+
paths, "/", {:order => :desc})
|
102
|
+
assert_prefix_cursor(["/", "/tmp", "/usr/bin", "/usr/local/bin"],
|
103
|
+
paths, "/")
|
104
|
+
assert_prefix_cursor(["/usr/local/bin", "/usr/bin"],
|
105
|
+
paths, "/usr/local",
|
106
|
+
{:key_bytes => "/usr".size, :order => :desc})
|
107
|
+
assert_prefix_cursor(["/tmp", "/usr/bin"],
|
108
|
+
paths, "/",
|
109
|
+
{:offset => 1, :limit => 2})
|
110
|
+
end
|
111
|
+
|
112
|
+
def assert_prefix_cursor(expected, tables, prefix, options={})
|
113
|
+
actual = []
|
114
|
+
tables.open_prefix_cursor(prefix, options) do |cursor|
|
115
|
+
cursor.each do |record|
|
116
|
+
actual << record.key
|
117
|
+
end
|
118
|
+
end
|
119
|
+
assert_equal(expected, actual)
|
120
|
+
end
|
121
|
+
|
122
|
+
def test_add_uint_key
|
123
|
+
numbers = Groonga::DoubleArrayTrie.create(:name => "Numbers",
|
124
|
+
:key_type => "UInt32")
|
125
|
+
numbers.add(1)
|
126
|
+
numbers.add(2)
|
127
|
+
numbers.add(5)
|
128
|
+
numbers.add(7)
|
129
|
+
assert_equal([1, 2, 5, 7], numbers.collect {|number| number.key})
|
130
|
+
end
|
131
|
+
|
132
|
+
def test_added?
|
133
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users",
|
134
|
+
:key_type => "ShortText")
|
135
|
+
bob = users.add("bob")
|
136
|
+
assert_predicate(bob, :added?)
|
137
|
+
bob_again = users.add("bob")
|
138
|
+
assert_not_predicate(bob_again, :added?)
|
139
|
+
end
|
140
|
+
|
141
|
+
def test_defrag
|
142
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users",
|
143
|
+
:key_type => "ShortText")
|
144
|
+
users.define_column("name", "ShortText")
|
145
|
+
users.define_column("address", "ShortText")
|
146
|
+
1000.times do |i|
|
147
|
+
users.add("user #{i}",
|
148
|
+
:name => "user #{i}" * 1000,
|
149
|
+
:address => "address #{i}" * 1000)
|
150
|
+
end
|
151
|
+
assert_equal(7, users.defrag)
|
152
|
+
end
|
153
|
+
|
154
|
+
def test_rename
|
155
|
+
users = Groonga::DoubleArrayTrie.create(:name => "Users",
|
156
|
+
:key_type => "ShortText")
|
157
|
+
name = users.define_column("name", "ShortText")
|
158
|
+
address = users.define_column("address", "ShortText")
|
159
|
+
|
160
|
+
users.rename("People")
|
161
|
+
assert_equal(["People", "People.name", "People.address"],
|
162
|
+
[users.name, name.name, address.name])
|
163
|
+
end
|
164
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2009-
|
1
|
+
# Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -75,7 +75,7 @@ class ExpressionBuilderTest < Test::Unit::TestCase
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def test_not_equal
|
78
|
-
|
78
|
+
only_ruby19
|
79
79
|
result = @users.select do |record|
|
80
80
|
record["name"] != "mori daijiro"
|
81
81
|
end
|
data/test/test-expression.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
|
-
#
|
2
|
+
#
|
3
|
+
# Copyright (C) 2009-2011 Kouhei Sutou <kou@clear-code.com>
|
3
4
|
#
|
4
5
|
# This library is free software; you can redistribute it and/or
|
5
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -81,10 +82,10 @@ class ExpressionTest < Test::Unit::TestCase
|
|
81
82
|
|
82
83
|
def test_snippet
|
83
84
|
users = Groonga::Array.create(:name => "Users")
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
85
|
+
users.define_column("name", "ShortText")
|
86
|
+
Groonga::Hash.create(:name => "Terms",
|
87
|
+
:key_type => "ShortText",
|
88
|
+
:default_tokenizer => "TokenBigram")
|
88
89
|
users.define_index_column("user_name", users,
|
89
90
|
:source => "Users.name",
|
90
91
|
:with_position => true)
|
@@ -111,10 +112,10 @@ class ExpressionTest < Test::Unit::TestCase
|
|
111
112
|
|
112
113
|
def test_snippet_without_tags
|
113
114
|
users = Groonga::Array.create(:name => "Users")
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
115
|
+
users.define_column("name", "ShortText")
|
116
|
+
Groonga::Hash.create(:name => "Terms",
|
117
|
+
:key_type => "ShortText",
|
118
|
+
:default_tokenizer => "TokenBigram")
|
118
119
|
users.define_index_column("user_name", users,
|
119
120
|
:source => "Users.name",
|
120
121
|
:with_position => true)
|
data/test/test-gqtp.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2010 Kouhei Sutou <kou@clear-code.com>
|
3
|
+
# Copyright (C) 2010-2011 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -64,7 +64,7 @@ class GQTPTest < Test::Unit::TestCase
|
|
64
64
|
private
|
65
65
|
def process(gqtp)
|
66
66
|
context.send(gqtp)
|
67
|
-
|
67
|
+
_, result = context.receive
|
68
68
|
JSON.parse(result)
|
69
69
|
end
|
70
70
|
end
|
data/test/test-hash.rb
CHANGED
@@ -31,7 +31,7 @@ class HashTest < Test::Unit::TestCase
|
|
31
31
|
bookmarks = Groonga::Hash.create(:name => "Bookmarks",
|
32
32
|
:path => bookmarks_path.to_s)
|
33
33
|
|
34
|
-
|
34
|
+
bookmarks.add("groonga")
|
35
35
|
google = bookmarks.add("Google")
|
36
36
|
cutter = bookmarks.add("Cutter")
|
37
37
|
|
@@ -62,7 +62,7 @@ class HashTest < Test::Unit::TestCase
|
|
62
62
|
bookmarks = Groonga::Hash.create(:name => "Bookmarks",
|
63
63
|
:path => bookmarks_path.to_s,
|
64
64
|
:key_type => "ShortText")
|
65
|
-
|
65
|
+
bookmarks.define_column("uri", "ShortText")
|
66
66
|
bookmarks.set_column_value("google", "uri", "http://google.com/")
|
67
67
|
assert_equal("http://google.com/", bookmarks.column_value("google", "uri"))
|
68
68
|
end
|
@@ -149,11 +149,11 @@ class HashTest < Test::Unit::TestCase
|
|
149
149
|
|
150
150
|
def test_search
|
151
151
|
users = Groonga::Array.create(:name => "Users")
|
152
|
-
|
152
|
+
users.define_column("name", "ShortText")
|
153
153
|
|
154
154
|
bookmarks = Groonga::Hash.create(:name => "Bookmarks",
|
155
155
|
:key_type => "ShortText")
|
156
|
-
|
156
|
+
bookmarks.define_column("user_id", users)
|
157
157
|
|
158
158
|
daijiro = users.add
|
159
159
|
daijiro["name"] = "daijiro"
|
@@ -165,7 +165,7 @@ class HashTest < Test::Unit::TestCase
|
|
165
165
|
|
166
166
|
records = bookmarks.search("http://groonga.org/")
|
167
167
|
assert_equal(["daijiro"],
|
168
|
-
records.records.collect {|record| record["
|
168
|
+
records.records.collect {|record| record["user_id.name"]})
|
169
169
|
end
|
170
170
|
|
171
171
|
def test_add
|
@@ -196,9 +196,9 @@ class HashTest < Test::Unit::TestCase
|
|
196
196
|
:default_tokenizer => "TokenBigram")
|
197
197
|
index = terms.define_index_column("comment", bookmarks,
|
198
198
|
:source => "Bookmarks.comment")
|
199
|
-
|
200
|
-
|
201
|
-
|
199
|
+
bookmarks.add("groonga", :comment => "search engine by Brazil")
|
200
|
+
bookmarks.add("google", :comment => "search engine by Google")
|
201
|
+
bookmarks.add("ruby", :comment => "programing language")
|
202
202
|
|
203
203
|
assert_equal(["groonga", "google"],
|
204
204
|
index.search("engine").collect {|record| record.key.key})
|
@@ -317,4 +317,28 @@ class HashTest < Test::Unit::TestCase
|
|
317
317
|
bob_again = users.add("bob")
|
318
318
|
assert_not_predicate(bob_again, :added?)
|
319
319
|
end
|
320
|
+
|
321
|
+
def test_defrag
|
322
|
+
users = Groonga::Hash.create(:name => "Users",
|
323
|
+
:key_type => "ShortText")
|
324
|
+
users.define_column("name", "ShortText")
|
325
|
+
users.define_column("address", "ShortText")
|
326
|
+
1000.times do |i|
|
327
|
+
users.add("user #{i}",
|
328
|
+
:name => "user #{i}" * 1000,
|
329
|
+
:address => "address #{i}" * 1000)
|
330
|
+
end
|
331
|
+
assert_equal(7, users.defrag)
|
332
|
+
end
|
333
|
+
|
334
|
+
def test_rename
|
335
|
+
users = Groonga::Hash.create(:name => "Users",
|
336
|
+
:key_type => "ShortText")
|
337
|
+
name = users.define_column("name", "ShortText")
|
338
|
+
address = users.define_column("address", "ShortText")
|
339
|
+
|
340
|
+
users.rename("People")
|
341
|
+
assert_equal(["People", "People.name", "People.address"],
|
342
|
+
[users.name, name.name, address.name])
|
343
|
+
end
|
320
344
|
end
|
data/test/test-patricia-trie.rb
CHANGED
@@ -42,11 +42,11 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
42
42
|
|
43
43
|
def test_search
|
44
44
|
users = Groonga::Array.create(:name => "Users")
|
45
|
-
|
45
|
+
users.define_column("name", "ShortText")
|
46
46
|
|
47
47
|
bookmarks = Groonga::PatriciaTrie.create(:name => "Bookmarks",
|
48
48
|
:key_type => "ShortText")
|
49
|
-
|
49
|
+
bookmarks.define_column("user_id", users)
|
50
50
|
|
51
51
|
daijiro = users.add
|
52
52
|
daijiro["name"] = "daijiro"
|
@@ -187,10 +187,10 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
187
187
|
def test_prefix_search
|
188
188
|
paths = Groonga::PatriciaTrie.create(:name => "Paths",
|
189
189
|
:key_type => 'ShortText')
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
190
|
+
paths.add('/')
|
191
|
+
paths.add('/tmp')
|
192
|
+
paths.add('/usr/bin')
|
193
|
+
paths.add('/usr/local/bin')
|
194
194
|
|
195
195
|
records = paths.prefix_search('/')
|
196
196
|
assert_equal(["/usr/local/bin", "/usr/bin", "/tmp", "/"],
|
@@ -213,10 +213,10 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
213
213
|
def test_prefix_cursor
|
214
214
|
paths = Groonga::PatriciaTrie.create(:name => "Paths",
|
215
215
|
:key_type => 'ShortText')
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
216
|
+
paths.add('/')
|
217
|
+
paths.add('/tmp')
|
218
|
+
paths.add('/usr/bin')
|
219
|
+
paths.add('/usr/local/bin')
|
220
220
|
|
221
221
|
assert_prefix_cursor(["/usr/local/bin", "/usr/bin", "/tmp", "/"],
|
222
222
|
paths, "/", {:order => :desc})
|
@@ -388,4 +388,28 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
388
388
|
bob_again = users.add("bob")
|
389
389
|
assert_not_predicate(bob_again, :added?)
|
390
390
|
end
|
391
|
+
|
392
|
+
def test_defrag
|
393
|
+
users = Groonga::PatriciaTrie.create(:name => "Users",
|
394
|
+
:key_type => "ShortText")
|
395
|
+
users.define_column("name", "ShortText")
|
396
|
+
users.define_column("address", "ShortText")
|
397
|
+
1000.times do |i|
|
398
|
+
users.add("user #{i}",
|
399
|
+
:name => "user #{i}" * 1000,
|
400
|
+
:address => "address #{i}" * 1000)
|
401
|
+
end
|
402
|
+
assert_equal(7, users.defrag)
|
403
|
+
end
|
404
|
+
|
405
|
+
def test_rename
|
406
|
+
users = Groonga::PatriciaTrie.create(:name => "Users",
|
407
|
+
:key_type => "ShortText")
|
408
|
+
name = users.define_column("name", "ShortText")
|
409
|
+
address = users.define_column("address", "ShortText")
|
410
|
+
|
411
|
+
users.rename("People")
|
412
|
+
assert_equal(["People", "People.name", "People.address"],
|
413
|
+
[users.name, name.name, address.name])
|
414
|
+
end
|
391
415
|
end
|