rroonga 3.1.1-x86-mingw32 → 3.1.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +1 -39
- data/bin/grndump +8 -1
- data/doc/text/news.textile +21 -1
- data/ext/groonga/extconf.rb +1 -6
- data/ext/groonga/rb-grn-table.c +20 -0
- data/ext/groonga/rb-grn.h +1 -1
- data/ext/groonga/rb-groonga.c +42 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/groonga/dumper.rb +7 -3
- data/lib/groonga/record.rb +19 -1
- data/rroonga-build.rb +5 -5
- data/test/test-array.rb +14 -1
- data/test/test-database-dumper.rb +68 -83
- data/test/test-database.rb +1 -1
- data/test/test-double-array-trie.rb +16 -1
- data/test/test-hash.rb +16 -1
- data/test/test-lock-timeout.rb +29 -0
- data/test/test-patricia-trie.rb +16 -1
- data/test/test-record.rb +194 -160
- data/test/test-variable-size-column.rb +1 -1
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +15 -1
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +3 -3
- 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 +3 -3
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +3 -3
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +1 -1
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/development.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +10 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +10 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +32 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/global_configurations.txt +49 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/edit_distance.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +5 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_in_circle.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_in_rectangle.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/now.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/rand.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +5 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/pseudo_column.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +19 -0
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +3 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/community.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/development.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/genindex.html +269 -183
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/index.html +41 -38
- data/vendor/local/share/doc/groonga/en/html/install.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/install/others.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/limitations.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news.html +239 -201
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +41 -38
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +46 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +205 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +78 -76
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +75 -73
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +54 -52
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +62 -60
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +46 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +44 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +117 -115
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +80 -78
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +56 -54
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +36 -34
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +24 -21
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/search.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/server/package.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/spec.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/development.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +10 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +10 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +32 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/global_configurations.txt +49 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/edit_distance.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +5 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_in_circle.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_in_rectangle.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/now.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/rand.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +5 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/pseudo_column.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/community.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/development.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +274 -183
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/index.html +41 -38
- data/vendor/local/share/doc/groonga/ja/html/install.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news.html +264 -224
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +41 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +46 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +206 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +55 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +78 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +74 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +54 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +62 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +42 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +46 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +44 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +117 -115
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +80 -78
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +56 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +36 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +24 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/search.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/spec.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +20 -18
- data/vendor/local/share/man/ja/man1/groonga.1 +198 -132
- data/vendor/local/share/man/man1/groonga.1 +619 -554
- metadata +8 -14
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/add.txt +0 -104
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/get.txt +0 -80
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands_not_implemented/set.txt +0 -105
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +0 -199
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +0 -180
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +0 -201
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/add.txt +0 -104
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/get.txt +0 -80
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/set.txt +0 -105
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +0 -200
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +0 -181
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +0 -202
data/test/test-database.rb
CHANGED
@@ -27,6 +27,21 @@ class DoubleArrayTrieTest < Test::Unit::TestCase
|
|
27
27
|
:support_key?)
|
28
28
|
end
|
29
29
|
|
30
|
+
class SupportValueTest < self
|
31
|
+
def test_have_value_type
|
32
|
+
assert_predicate(Groonga::DoubleArrayTrie.create(:name => "Users",
|
33
|
+
:key_type => "ShortText",
|
34
|
+
:value_type => "Int32"),
|
35
|
+
:support_value?)
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_no_value_type
|
39
|
+
assert_not_predicate(Groonga::DoubleArrayTrie.create(:name => "Users",
|
40
|
+
:key_type => "ShortText"),
|
41
|
+
:support_value?)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
30
45
|
def test_encoding
|
31
46
|
assert_equal(Groonga::Encoding.default,
|
32
47
|
Groonga::DoubleArrayTrie.create.encoding)
|
@@ -148,7 +163,7 @@ class DoubleArrayTrieTest < Test::Unit::TestCase
|
|
148
163
|
:name => "user #{i}" * 1000,
|
149
164
|
:address => "address #{i}" * 1000)
|
150
165
|
end
|
151
|
-
assert_equal(
|
166
|
+
assert_equal(3, users.defrag)
|
152
167
|
end
|
153
168
|
|
154
169
|
def test_rename
|
data/test/test-hash.rb
CHANGED
@@ -26,6 +26,21 @@ class HashTest < Test::Unit::TestCase
|
|
26
26
|
:support_key?)
|
27
27
|
end
|
28
28
|
|
29
|
+
class SupportValueTest < self
|
30
|
+
def test_have_value_type
|
31
|
+
assert_predicate(Groonga::Hash.create(:name => "Users",
|
32
|
+
:key_type => "ShortText",
|
33
|
+
:value_type => "Int32"),
|
34
|
+
:support_value?)
|
35
|
+
end
|
36
|
+
|
37
|
+
def test_no_value_type
|
38
|
+
assert_not_predicate(Groonga::Hash.create(:name => "Users",
|
39
|
+
:key_type => "ShortText"),
|
40
|
+
:support_value?)
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
29
44
|
class DeleteTest < self
|
30
45
|
setup
|
31
46
|
def setup_data
|
@@ -357,7 +372,7 @@ class HashTest < Test::Unit::TestCase
|
|
357
372
|
:name => "user #{i}" * 1000,
|
358
373
|
:address => "address #{i}" * 1000)
|
359
374
|
end
|
360
|
-
assert_equal(
|
375
|
+
assert_equal(3, users.defrag)
|
361
376
|
end
|
362
377
|
|
363
378
|
def test_rename
|
@@ -0,0 +1,29 @@
|
|
1
|
+
# Copyright (C) 2014 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
#
|
3
|
+
# This library is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of the GNU Lesser General Public
|
5
|
+
# License version 2.1 as published by the Free Software Foundation.
|
6
|
+
#
|
7
|
+
# This library is distributed in the hope that it will be useful,
|
8
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
10
|
+
# Lesser General Public License for more details.
|
11
|
+
#
|
12
|
+
# You should have received a copy of the GNU Lesser General Public
|
13
|
+
# License along with this library; if not, write to the Free Software
|
14
|
+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
15
|
+
|
16
|
+
class LockTimeoutTest < Test::Unit::TestCase
|
17
|
+
def setup
|
18
|
+
@original_lock_timeout = Groonga.lock_timeout
|
19
|
+
end
|
20
|
+
|
21
|
+
def teardown
|
22
|
+
Groonga.lock_timeout = @original_lock_timeout
|
23
|
+
end
|
24
|
+
|
25
|
+
def test_accessor
|
26
|
+
Groonga.lock_timeout = 10
|
27
|
+
assert_equal(10, Groonga.lock_timeout)
|
28
|
+
end
|
29
|
+
end
|
data/test/test-patricia-trie.rb
CHANGED
@@ -27,6 +27,21 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
27
27
|
:support_key?)
|
28
28
|
end
|
29
29
|
|
30
|
+
class SupportValueTest < self
|
31
|
+
def test_have_value_type
|
32
|
+
assert_predicate(Groonga::PatriciaTrie.create(:name => "Users",
|
33
|
+
:key_type => "ShortText",
|
34
|
+
:value_type => "Int32"),
|
35
|
+
:support_value?)
|
36
|
+
end
|
37
|
+
|
38
|
+
def test_no_value_type
|
39
|
+
assert_not_predicate(Groonga::PatriciaTrie.create(:name => "Users",
|
40
|
+
:key_type => "ShortText"),
|
41
|
+
:support_value?)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
30
45
|
def test_encoding
|
31
46
|
assert_equal(Groonga::Encoding.default,
|
32
47
|
Groonga::PatriciaTrie.create.encoding)
|
@@ -407,7 +422,7 @@ class PatriciaTrieTest < Test::Unit::TestCase
|
|
407
422
|
:name => "user #{i}" * 1000,
|
408
423
|
:address => "address #{i}" * 1000)
|
409
424
|
end
|
410
|
-
assert_equal(
|
425
|
+
assert_equal(3, users.defrag)
|
411
426
|
end
|
412
427
|
|
413
428
|
def test_rename
|
data/test/test-record.rb
CHANGED
@@ -309,197 +309,231 @@ class RecordTest < Test::Unit::TestCase
|
|
309
309
|
assert_not_predicate(groonga, :locked?)
|
310
310
|
end
|
311
311
|
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
312
|
+
class AttributesTest < self
|
313
|
+
def test_basic
|
314
|
+
values = {
|
315
|
+
"uri" => "http://groonga.org/",
|
316
|
+
"rate" => 5,
|
317
|
+
"comment" => "Great!"
|
318
|
+
}
|
319
|
+
groonga = @bookmarks.add(values)
|
320
|
+
assert_equal(values.merge("_id" => groonga.id,
|
321
|
+
"_value" => 0,
|
322
|
+
"content" => nil,
|
323
|
+
"user" => nil),
|
324
|
+
groonga.attributes)
|
325
|
+
end
|
324
326
|
|
325
|
-
|
326
|
-
|
327
|
+
def test_recursive
|
328
|
+
need_self_recursive_equal
|
327
329
|
|
328
|
-
|
330
|
+
@bookmarks.define_column("next", @bookmarks)
|
329
331
|
|
330
|
-
|
331
|
-
|
332
|
+
top_page_record = @bookmarks.add(top_page)
|
333
|
+
doc_page_record = @bookmarks.add(doc_page)
|
332
334
|
|
333
|
-
|
334
|
-
|
335
|
+
top_page_record["next"] = doc_page_record
|
336
|
+
doc_page_record["next"] = top_page_record
|
335
337
|
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
"uri" => "http://groonga.org/",
|
340
|
-
"rate" => 5,
|
341
|
-
"next" => {
|
342
|
-
"_id" => 2,
|
338
|
+
expected = {
|
339
|
+
"_id" => 1,
|
340
|
+
"_value" => 0,
|
343
341
|
"user" => nil,
|
344
|
-
"uri" => "http://groonga.org/
|
345
|
-
"rate" =>
|
342
|
+
"uri" => "http://groonga.org/",
|
343
|
+
"rate" => 5,
|
344
|
+
"next" => {
|
345
|
+
"_id" => 2,
|
346
|
+
"_value" => 0,
|
347
|
+
"user" => nil,
|
348
|
+
"uri" => "http://groonga.org/document.html",
|
349
|
+
"rate" => 8,
|
350
|
+
"content" => nil,
|
351
|
+
"comment" => "Informative"
|
352
|
+
},
|
346
353
|
"content" => nil,
|
347
|
-
"comment" => "
|
348
|
-
}
|
349
|
-
"
|
350
|
-
"comment" => "Great!"
|
351
|
-
}
|
352
|
-
expected["next"]["next"] = expected
|
354
|
+
"comment" => "Great!"
|
355
|
+
}
|
356
|
+
expected["next"]["next"] = expected
|
353
357
|
|
354
|
-
|
355
|
-
|
358
|
+
assert_equal(expected, top_page_record.attributes)
|
359
|
+
end
|
356
360
|
|
357
|
-
|
358
|
-
|
361
|
+
def test_duplicate_records
|
362
|
+
need_self_recursive_equal
|
359
363
|
|
360
|
-
|
361
|
-
|
364
|
+
@bookmarks.define_column("next1", @bookmarks)
|
365
|
+
@bookmarks.define_column("next2", @bookmarks)
|
362
366
|
|
363
|
-
|
364
|
-
|
367
|
+
top_page_record = @bookmarks.add(top_page)
|
368
|
+
doc_page_record = @bookmarks.add(doc_page)
|
365
369
|
|
366
|
-
|
367
|
-
|
368
|
-
|
370
|
+
top_page_record["next1"] = doc_page_record
|
371
|
+
top_page_record["next2"] = doc_page_record
|
372
|
+
doc_page_record["next1"] = top_page_record
|
369
373
|
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
374
|
+
doc_page_attributes = {
|
375
|
+
"_id" => 2,
|
376
|
+
"_value" => 0,
|
377
|
+
"user" => nil,
|
378
|
+
"uri" => "http://groonga.org/document.html",
|
379
|
+
"rate" => 8,
|
380
|
+
"content" => nil,
|
381
|
+
"comment" => "Informative",
|
382
|
+
"next2" => nil
|
383
|
+
}
|
384
|
+
top_page_attributes = {
|
385
|
+
"_id" => 1,
|
386
|
+
"_value" => 0,
|
387
|
+
"user" => nil,
|
388
|
+
"uri" => "http://groonga.org/",
|
389
|
+
"rate" => 5,
|
390
|
+
"next1" => doc_page_attributes,
|
391
|
+
"next2" => doc_page_attributes,
|
392
|
+
"content" => nil,
|
393
|
+
"comment" => "Great!"
|
394
|
+
}
|
395
|
+
doc_page_attributes["next1"] = top_page_attributes
|
390
396
|
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
397
|
+
actual_records = top_page_record.attributes
|
398
|
+
assert_equal(top_page_attributes, actual_records)
|
399
|
+
assert_equal(actual_records["next1"].object_id,
|
400
|
+
actual_records["next2"].object_id)
|
401
|
+
end
|
396
402
|
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
403
|
+
def test_select_result
|
404
|
+
@bookmarks.add(top_page)
|
405
|
+
select_result = @bookmarks.select
|
406
|
+
select_result_result = select_result.first
|
401
407
|
|
402
|
-
|
403
|
-
"_id" => 1,
|
404
|
-
"_key" => {
|
405
|
-
"comment" => "Great!",
|
406
|
-
"content" => nil,
|
408
|
+
expected_attributes = {
|
407
409
|
"_id" => 1,
|
408
|
-
"
|
409
|
-
|
410
|
-
|
411
|
-
|
412
|
-
|
413
|
-
|
410
|
+
"_key" => {
|
411
|
+
"comment" => "Great!",
|
412
|
+
"content" => nil,
|
413
|
+
"_id" => 1,
|
414
|
+
"_value" => 0,
|
415
|
+
"rate" => 5,
|
416
|
+
"uri" => "http://groonga.org/",
|
417
|
+
"user" => nil
|
418
|
+
},
|
419
|
+
"_score" => 1,
|
420
|
+
}
|
414
421
|
|
415
|
-
|
416
|
-
|
422
|
+
assert_equal(expected_attributes, select_result_result.attributes)
|
423
|
+
end
|
417
424
|
|
418
|
-
|
419
|
-
|
425
|
+
def test_sort_result
|
426
|
+
@bookmarks.add(top_page)
|
427
|
+
sort_result = @bookmarks.sort(["_id"])
|
428
|
+
sort_result_result = sort_result.first
|
420
429
|
|
421
|
-
|
430
|
+
expected_attributes = {
|
431
|
+
"_id" => 1,
|
432
|
+
"_value" => {
|
433
|
+
"comment" => "Great!",
|
434
|
+
"content" => nil,
|
435
|
+
"_id" => 1,
|
436
|
+
"_value" => 0,
|
437
|
+
"rate" => 5,
|
438
|
+
"uri" => "http://groonga.org/",
|
439
|
+
"user" => nil
|
440
|
+
},
|
441
|
+
}
|
422
442
|
|
423
|
-
|
424
|
-
|
443
|
+
assert_equal(expected_attributes, sort_result_result.attributes)
|
444
|
+
end
|
425
445
|
|
426
|
-
|
427
|
-
|
428
|
-
"user" => nil,
|
429
|
-
"uri" => "http://groonga.org/",
|
430
|
-
"rate" => 5,
|
431
|
-
"content" => nil,
|
432
|
-
"comment" => "Great!"
|
433
|
-
}
|
434
|
-
expected["next"] = expected
|
446
|
+
def test_self_referencing
|
447
|
+
need_self_recursive_equal
|
435
448
|
|
436
|
-
|
437
|
-
end
|
449
|
+
@bookmarks.define_column("next", @bookmarks)
|
438
450
|
|
439
|
-
|
440
|
-
|
451
|
+
top_page_record = @bookmarks.add(top_page)
|
452
|
+
top_page_record["next"] = top_page_record
|
441
453
|
|
442
|
-
|
443
|
-
|
444
|
-
|
454
|
+
expected = {
|
455
|
+
"_id" => 1,
|
456
|
+
"_value" => 0,
|
457
|
+
"user" => nil,
|
458
|
+
"uri" => "http://groonga.org/",
|
459
|
+
"rate" => 5,
|
460
|
+
"content" => nil,
|
461
|
+
"comment" => "Great!"
|
462
|
+
}
|
463
|
+
expected["next"] = expected
|
445
464
|
|
446
|
-
|
447
|
-
|
448
|
-
"user" => nil,
|
449
|
-
"uri" => "http://groonga.org/",
|
450
|
-
"rate" => 5,
|
451
|
-
"related_bookmarks" => [
|
452
|
-
{
|
453
|
-
"_id" => 2,
|
454
|
-
"comment" => "Informative",
|
455
|
-
"content" => nil,
|
456
|
-
"rate" => 8,
|
457
|
-
"related_bookmarks" => [],
|
458
|
-
"uri" => "http://groonga.org/document.html",
|
459
|
-
"user" => nil,
|
460
|
-
}
|
461
|
-
],
|
462
|
-
"content" => nil,
|
463
|
-
"comment" => "Great!"
|
464
|
-
}
|
465
|
+
assert_equal(expected, top_page_record.attributes)
|
466
|
+
end
|
465
467
|
|
466
|
-
|
467
|
-
|
468
|
+
def test_vector
|
469
|
+
@bookmarks.define_column("related_bookmarks", @bookmarks, :type => :vector)
|
468
470
|
|
469
|
-
|
470
|
-
|
471
|
+
top_page_record = @bookmarks.add(top_page)
|
472
|
+
doc_page_record = @bookmarks.add(doc_page)
|
473
|
+
top_page_record["related_bookmarks"] = [doc_page_record]
|
471
474
|
|
472
|
-
|
475
|
+
expected = {
|
476
|
+
"_id" => 1,
|
477
|
+
"_value" => 0,
|
478
|
+
"user" => nil,
|
479
|
+
"uri" => "http://groonga.org/",
|
480
|
+
"rate" => 5,
|
481
|
+
"related_bookmarks" => [
|
482
|
+
{
|
483
|
+
"_id" => 2,
|
484
|
+
"_value" => 0,
|
485
|
+
"comment" => "Informative",
|
486
|
+
"content" => nil,
|
487
|
+
"rate" => 8,
|
488
|
+
"related_bookmarks" => [],
|
489
|
+
"uri" => "http://groonga.org/document.html",
|
490
|
+
"user" => nil,
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"content" => nil,
|
494
|
+
"comment" => "Great!"
|
495
|
+
}
|
473
496
|
|
474
|
-
|
475
|
-
|
476
|
-
top_page_record["related_bookmarks"] = [
|
477
|
-
top_page_record,
|
478
|
-
doc_page_record
|
479
|
-
]
|
497
|
+
assert_equal(expected, top_page_record.attributes)
|
498
|
+
end
|
480
499
|
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
"
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
500
|
+
def test_self_referencing_vector
|
501
|
+
need_self_recursive_equal
|
502
|
+
|
503
|
+
@bookmarks.define_column("related_bookmarks", @bookmarks, :type => :vector)
|
504
|
+
|
505
|
+
top_page_record = @bookmarks.add(top_page)
|
506
|
+
doc_page_record = @bookmarks.add(doc_page)
|
507
|
+
top_page_record["related_bookmarks"] = [
|
508
|
+
top_page_record,
|
509
|
+
doc_page_record
|
510
|
+
]
|
511
|
+
|
512
|
+
top_page_attributes = {
|
513
|
+
"_id" => 1,
|
514
|
+
"_value" => 0,
|
515
|
+
"user" => nil,
|
516
|
+
"uri" => "http://groonga.org/",
|
517
|
+
"rate" => 5,
|
518
|
+
"content" => nil,
|
519
|
+
"comment" => "Great!"
|
520
|
+
}
|
521
|
+
doc_page_attributes = {
|
522
|
+
"_id" => 2,
|
523
|
+
"_value" => 0,
|
524
|
+
"comment" => "Informative",
|
525
|
+
"content" => nil,
|
526
|
+
"rate" => 8,
|
527
|
+
"related_bookmarks" => [],
|
528
|
+
"uri" => "http://groonga.org/document.html",
|
529
|
+
"user" => nil,
|
530
|
+
}
|
531
|
+
top_page_attributes["related_bookmarks"] = [
|
532
|
+
top_page_attributes,
|
533
|
+
doc_page_attributes
|
534
|
+
]
|
535
|
+
assert_equal(top_page_attributes, top_page_record.attributes)
|
536
|
+
end
|
503
537
|
end
|
504
538
|
|
505
539
|
def test_dynamic_accessor
|