rroonga 2.0.4-x86-mingw32 → 2.0.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +29 -2
- data/bin/grndump +3 -2
- data/ext/groonga/extconf.rb +37 -10
- data/ext/groonga/rb-grn-accessor.c +8 -10
- data/ext/groonga/rb-grn-array-cursor.c +2 -2
- data/ext/groonga/rb-grn-array.c +39 -36
- data/ext/groonga/rb-grn-column.c +185 -200
- data/ext/groonga/rb-grn-context.c +104 -93
- data/ext/groonga/rb-grn-database.c +116 -114
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +3 -3
- data/ext/groonga/rb-grn-double-array-trie.c +159 -168
- data/ext/groonga/rb-grn-encoding-support.c +2 -3
- data/ext/groonga/rb-grn-encoding.c +39 -34
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression.c +141 -159
- data/ext/groonga/rb-grn-fix-size-column.c +12 -13
- data/ext/groonga/rb-grn-geo-point.c +55 -0
- data/ext/groonga/rb-grn-hash-cursor.c +3 -3
- data/ext/groonga/rb-grn-hash.c +73 -86
- data/ext/groonga/rb-grn-index-column.c +80 -90
- data/ext/groonga/rb-grn-index-cursor.c +48 -15
- data/ext/groonga/rb-grn-logger.c +42 -63
- data/ext/groonga/rb-grn-object.c +73 -100
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +2 -2
- data/ext/groonga/rb-grn-patricia-trie.c +200 -260
- data/ext/groonga/rb-grn-plugin.c +17 -24
- data/ext/groonga/rb-grn-posting.c +6 -1
- data/ext/groonga/rb-grn-snippet.c +37 -54
- data/ext/groonga/rb-grn-table-cursor-key-support.c +3 -3
- data/ext/groonga/rb-grn-table-cursor.c +21 -26
- data/ext/groonga/rb-grn-table-key-support.c +53 -63
- data/ext/groonga/rb-grn-table.c +366 -393
- data/ext/groonga/rb-grn-type.c +122 -26
- data/ext/groonga/rb-grn-utils.c +77 -7
- data/ext/groonga/rb-grn-variable-size-column.c +12 -20
- data/ext/groonga/rb-grn-variable.c +6 -7
- data/ext/groonga/rb-grn-view-accessor.c +1 -1
- data/ext/groonga/rb-grn-view-cursor.c +2 -2
- data/ext/groonga/rb-grn-view.c +46 -58
- data/ext/groonga/rb-grn.h +36 -4
- data/ext/groonga/rb-groonga.c +7 -6
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/lib/groonga/command.rb +3 -1
- data/lib/groonga/database.rb +27 -0
- data/lib/groonga/dumper.rb +201 -46
- data/lib/groonga/expression-builder.rb +24 -0
- data/lib/groonga/geo-point.rb +216 -0
- data/lib/groonga/pagination.rb +30 -24
- data/lib/groonga/posting.rb +29 -1
- data/lib/groonga/record.rb +21 -18
- data/lib/groonga/schema.rb +185 -186
- data/lib/groonga.rb +3 -1
- data/rroonga-build.rb +1 -1
- data/rroonga.gemspec +90 -0
- data/test/groonga-test-utils.rb +168 -0
- data/test/run-test.rb +60 -0
- data/test/test-accessor.rb +36 -0
- data/test/test-array.rb +146 -0
- data/test/test-column.rb +350 -0
- data/test/test-command-select.rb +246 -0
- data/test/test-context.rb +130 -0
- data/test/test-database-dumper.rb +299 -0
- data/test/test-database.rb +173 -0
- data/test/test-double-array-trie.rb +189 -0
- data/test/test-encoding.rb +33 -0
- data/test/test-exception.rb +230 -0
- data/test/test-expression-builder.rb +643 -0
- data/test/test-expression.rb +134 -0
- data/test/test-fix-size-column.rb +77 -0
- data/test/test-geo-point.rb +190 -0
- data/test/test-gqtp.rb +70 -0
- data/test/test-hash.rb +367 -0
- data/test/test-index-column.rb +180 -0
- data/test/test-index-cursor.rb +149 -0
- data/test/test-logger.rb +37 -0
- data/test/test-pagination.rb +249 -0
- data/test/test-patricia-trie.rb +440 -0
- data/test/test-plugin.rb +35 -0
- data/test/test-procedure.rb +37 -0
- data/test/test-record.rb +577 -0
- data/test/test-remote.rb +63 -0
- data/test/test-schema-create-table.rb +267 -0
- data/test/test-schema-dumper.rb +235 -0
- data/test/test-schema-type.rb +208 -0
- data/test/test-schema-view.rb +90 -0
- data/test/test-schema.rb +886 -0
- data/test/test-snippet.rb +130 -0
- data/test/test-table-dumper.rb +353 -0
- data/test/test-table-offset-and-limit.rb +100 -0
- data/test/test-table-select-mecab.rb +80 -0
- data/test/test-table-select-normalize.rb +57 -0
- data/test/test-table-select-weight.rb +123 -0
- data/test/test-table-select.rb +191 -0
- data/test/test-table-traverse.rb +304 -0
- data/test/test-table.rb +711 -0
- data/test/test-type.rb +136 -0
- data/test/test-variable-size-column.rb +147 -0
- data/test/test-variable.rb +28 -0
- data/test/test-vector-column.rb +76 -0
- data/test/test-version.rb +61 -0
- data/test/test-view.rb +72 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +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/libstdc++-6.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 +49 -0
- data/vendor/local/include/groonga/groonga/plugin.h +1 -1
- data/vendor/local/include/groonga/groonga.h +83 -7
- 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 +41 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/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 +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- 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 +64 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +17 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +638 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/report.txt +21 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +0 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +61 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/development.txt +15 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +131 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +136 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +72 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +53 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +267 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +43 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +196 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +77 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +21 -346
- data/vendor/local/share/doc/groonga/en/html/_sources/news/0.x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +16 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +235 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_expr.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/cast.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{command_version.txt → reference/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/cache_limit.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/check.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/clearlock.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/column_create.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/column_list.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/column_remove.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands/define_selector.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/defrag.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/delete.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/dump.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands/load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/log_level.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/log_put.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/log_reopen.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/quit.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +892 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/shutdown.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/status.txt +5 -6
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands/suggest.txt +8 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/table_create.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/table_list.txt +3 -26
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/table_remove.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands → reference/commands}/view_add.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{commands.txt → reference/commands.txt} +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands_not_implemented/add.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands_not_implemented/get.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/commands_not_implemented/set.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{executables → reference/executables}/grnslap.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +209 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/executables/groonga-http.txt → en/html/_sources/reference/executables/groonga-server-http.txt} +3 -3
- data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/executables/groonga-suggest-create-dataset.txt +1 -1
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/executables/groonga.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/{executables.txt → reference/executables.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/edit_distance.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +284 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/geo_in_circle.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/geo_in_rectangle.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/now.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions → reference/functions}/rand.txt +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{functions.txt → reference/functions.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +584 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +805 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +59 -0
- data/vendor/local/share/doc/groonga/{source → en/html/_sources/reference}/indexing.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/{log.txt → reference/log.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{output.txt → reference/output.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{pseudo_column.txt → reference/pseudo_column.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/{type.txt → reference/type.txt} +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +12 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/server/gqtp.txt +16 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +288 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/groonga-httpd.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/groonga.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http.txt +29 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +12 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/spec.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/completion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/correction.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/introduction.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +11 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +23 -23
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +3 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/patricia_trie.txt +8 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +25 -10
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +67 -67
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +742 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +47 -47
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +23 -22
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +38 -38
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +46 -21
- data/vendor/local/share/doc/groonga/en/html/contribution.html +85 -50
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +191 -0
- data/vendor/local/share/doc/groonga/en/html/{executables.html → development.html} +27 -28
- data/vendor/local/share/doc/groonga/en/html/genindex.html +61 -61
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/index.html +167 -108
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +251 -0
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +260 -0
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +202 -0
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +186 -0
- data/vendor/local/share/doc/groonga/en/html/install/others.html +394 -0
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +171 -0
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +321 -0
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +200 -0
- data/vendor/local/share/doc/groonga/en/html/install.html +91 -349
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +301 -37
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +111 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +111 -0
- data/vendor/local/share/doc/groonga/en/html/{command_version.html → reference/command_version.html} +44 -44
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/cache_limit.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/check.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/clearlock.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/column_create.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/column_list.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/column_remove.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/define_selector.html +51 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/defrag.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/delete.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/dump.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/load.html +51 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/log_level.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/log_put.html +50 -50
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/log_reopen.html +52 -52
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/quit.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +2340 -0
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/shutdown.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/status.html +67 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/suggest.html +246 -246
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/table_create.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/table_list.html +140 -72
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/table_remove.html +51 -51
- data/vendor/local/share/doc/groonga/en/html/{commands → reference/commands}/view_add.html +48 -48
- data/vendor/local/share/doc/groonga/en/html/{commands.html → reference/commands.html} +55 -55
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +201 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +182 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +203 -0
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/grnslap.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/grntest.html +62 -62
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +367 -0
- data/vendor/local/share/doc/groonga/en/html/{executables/groonga-http.html → reference/executables/groonga-server-http.html} +46 -46
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/groonga-suggest-create-dataset.html +53 -53
- data/vendor/local/share/doc/groonga/en/html/{executables → reference/executables}/groonga.html +54 -54
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +144 -0
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/edit_distance.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +551 -0
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/geo_in_circle.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/geo_in_rectangle.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/now.html +44 -44
- data/vendor/local/share/doc/groonga/en/html/{functions → reference/functions}/rand.html +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions.html +143 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +1365 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +1977 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +192 -0
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +318 -0
- data/vendor/local/share/doc/groonga/en/html/{log.html → reference/log.html} +42 -42
- data/vendor/local/share/doc/groonga/en/html/{output.html → reference/output.html} +39 -39
- data/vendor/local/share/doc/groonga/en/html/{pseudo_column.html → reference/pseudo_column.html} +38 -38
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +134 -0
- data/vendor/local/share/doc/groonga/en/html/{type.html → reference/type.html} +45 -45
- data/vendor/local/share/doc/groonga/en/html/reference.html +84 -76
- 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/server/gqtp.html +135 -0
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +452 -0
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +136 -0
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +136 -0
- data/vendor/local/share/doc/groonga/en/html/server/http.html +168 -0
- data/vendor/local/share/doc/groonga/en/html/{functions.html → server.html} +26 -28
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/spec.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +35 -35
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +13 -11
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +340 -340
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +452 -36
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +382 -382
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +755 -79
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +311 -311
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +561 -535
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +107 -107
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +145 -143
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +176 -176
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +415 -34
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +17 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +638 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/report.txt +21 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution.txt +0 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +61 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/development.txt +15 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +131 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +136 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +72 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +53 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +267 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +43 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +196 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +77 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +21 -346
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/0.x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +16 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +235 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_expr.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/cast.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{command_version.txt → reference/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/cache_limit.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/check.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/clearlock.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/column_create.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/column_list.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/column_remove.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/commands/define_selector.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/defrag.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/delete.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/dump.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/log_level.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/log_put.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/log_reopen.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/quit.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +892 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/shutdown.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/commands/status.txt +5 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/suggest.txt +8 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/table_create.txt +0 -0
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/commands/table_list.txt +3 -26
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/commands/table_remove.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands → reference/commands}/view_add.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{commands.txt → reference/commands.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/add.txt +104 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/get.txt +80 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands_not_implemented/set.txt +105 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{executables → reference/executables}/grnslap.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/executables/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +209 -0
- data/vendor/local/share/doc/groonga/{source/executables/groonga-http.txt → ja/html/_sources/reference/executables/groonga-server-http.txt} +3 -3
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/executables/groonga-suggest-create-dataset.txt +1 -1
- data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/executables/groonga.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/{executables.txt → reference/executables.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/edit_distance.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +284 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/geo_in_circle.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/geo_in_rectangle.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/now.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions → reference/functions}/rand.txt +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{functions.txt → reference/functions.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +584 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +805 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +59 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{indexing.txt → reference/indexing.txt} +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/{log.txt → reference/log.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{output.txt → reference/output.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/{pseudo_column.txt → reference/pseudo_column.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +8 -0
- data/vendor/local/share/doc/groonga/{source → ja/html/_sources/reference}/type.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +12 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/gqtp.txt +16 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +288 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/groonga-httpd.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/groonga.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http.txt +29 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +12 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/completion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/correction.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/introduction.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +11 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +23 -23
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +3 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/patricia_trie.txt +8 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +22 -10
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +67 -67
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +743 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +23 -22
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +38 -38
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +41 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +85 -50
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +180 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables.html → development.html} +25 -28
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +61 -61
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/index.html +167 -108
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +236 -0
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +250 -0
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +182 -0
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +348 -0
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +168 -0
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +309 -0
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +186 -0
- data/vendor/local/share/doc/groonga/ja/html/install.html +83 -340
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +273 -40
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +112 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +135 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +112 -0
- data/vendor/local/share/doc/groonga/ja/html/{command_version.html → reference/command_version.html} +45 -45
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/cache_limit.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/check.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/clearlock.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/column_create.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/column_list.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/column_remove.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/define_selector.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/defrag.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/delete.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/dump.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/load.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/log_level.html +51 -51
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/log_put.html +51 -51
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/log_reopen.html +53 -53
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/quit.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +2134 -0
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/shutdown.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/status.html +68 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/suggest.html +254 -254
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/table_create.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/table_list.html +141 -73
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/table_remove.html +52 -52
- data/vendor/local/share/doc/groonga/ja/html/{commands → reference/commands}/view_add.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/{commands.html → reference/commands.html} +56 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +202 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +183 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +204 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables → reference/executables}/grnslap.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{executables → reference/executables}/grntest.html +63 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +339 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables/groonga-http.html → reference/executables/groonga-server-http.html} +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +187 -0
- data/vendor/local/share/doc/groonga/ja/html/{executables → reference/executables}/groonga.html +55 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +145 -0
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/edit_distance.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +510 -0
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/geo_in_circle.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/geo_in_rectangle.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/now.html +45 -45
- data/vendor/local/share/doc/groonga/ja/html/{functions → reference/functions}/rand.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions.html +144 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +1210 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +1819 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +169 -0
- data/vendor/local/share/doc/groonga/ja/html/{indexing.html → reference/indexing.html} +147 -147
- data/vendor/local/share/doc/groonga/ja/html/{log.html → reference/log.html} +55 -55
- data/vendor/local/share/doc/groonga/ja/html/{output.html → reference/output.html} +40 -40
- data/vendor/local/share/doc/groonga/ja/html/{pseudo_column.html → reference/pseudo_column.html} +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +135 -0
- data/vendor/local/share/doc/groonga/ja/html/{type.html → reference/type.html} +48 -48
- data/vendor/local/share/doc/groonga/ja/html/reference.html +84 -76
- 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/server/gqtp.html +136 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +406 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +137 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +137 -0
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +166 -0
- data/vendor/local/share/doc/groonga/ja/html/{functions.html → server.html} +26 -28
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/spec.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +35 -35
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +15 -13
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +339 -339
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +452 -36
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +382 -382
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +756 -80
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +311 -311
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +561 -535
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +108 -108
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +145 -143
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +176 -176
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +415 -34
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/source/community.txt +17 -0
- data/vendor/local/share/doc/groonga/source/conf.py +3 -16
- data/vendor/local/share/doc/groonga/source/contribution/development/release.txt +638 -0
- data/vendor/local/share/doc/groonga/source/contribution/report.txt +21 -6
- data/vendor/local/share/doc/groonga/source/contribution.txt +0 -1
- data/vendor/local/share/doc/groonga/source/development/travis-ci.txt +61 -0
- data/vendor/local/share/doc/groonga/source/development.txt +15 -0
- data/vendor/local/share/doc/groonga/source/example/completion-1.log +29 -30
- data/vendor/local/share/doc/groonga/source/example/correction-1.log +29 -30
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/filter_equal.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/filter_less_than.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/limit_negative.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/limit_simple.log +32 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_columns_simple.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_columns_some_columns.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_columns_weight.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/match_escalation_threshold.log +74 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/no_limit.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/offset_negative.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/offset_simple.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/output_columns_asterisk.log +36 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/output_columns_simple.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/paging.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_and.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_equal.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_expansion_complex.log +52 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_expansion_substitute.log +131 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_expansion_substitution_table.log +12 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_allow_column.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_allow_leading_not.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_allow_update.log +90 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_flags_none.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_less_than.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/query_or.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/simple_filter.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/simple_query.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/simple_usage.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/sortby_descending.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/sortby_score_with_query.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/sortby_simple.log +65 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/table_nonexistent.log +18 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/select/usage_setup.log +33 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/status.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-completion.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-correction.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-learn-completion.log +12 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-learn-correction.log +14 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-learn-suggestion.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-mixed.log +77 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/suggest-suggestion.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/table_list.log +94 -0
- data/vendor/local/share/doc/groonga/source/example/reference/executables/groonga-httpd.log +21 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_ellipsoid.log +16 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_sphere.log +15 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_location_ellipsoid.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_location_rectangle.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_location_sphere.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_setup_distance.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_setup_location.log +16 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/setup.log +33 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_equal.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_full_text_search.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_full_text_search_with_explicit_match_column.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_greater_than.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_greater_than_or_equal_to.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_grouping.log +92 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_less_than.log +53 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_less_than_or_equal_to.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_logical_and.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_logical_not.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_logical_or.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_not_equal.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_phrase_search.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_phrase_search_with_explicit_match_column.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_prefix_search.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/query_syntax/simple_suffix_search.log +51 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_addition_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_and_operator.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_not_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_or_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_bitwise_xor_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_control_syntax_ternary_operator.log +53 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_division_operator_quotient.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_division_operator_remainder.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_equal_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_function.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_grouping.log +92 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_left_shift_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_and_operator.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_but_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_not_operator.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_logical_or_operator.log +47 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_match_operator.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_multiplication_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_near_search_operator.log +52 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_not_equal_operator.log +59 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_prefix_search_operator.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_right_shift_operator.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_signed_right_shift_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_similar_search_operator.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_subtraction_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_suffix_search_operator.log +51 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_term_extract_operator.log +39 -0
- data/vendor/local/share/doc/groonga/source/example/reference/grn_expr/script_syntax/simple_unsigned_right_shift_operator.log +41 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-data.log +9 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-offline-index-construction.log +4 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-online-index-construction.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-schema.log +8 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-search-after-offline-index-construction.log +31 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-search-after-online-index-construction.log +35 -0
- data/vendor/local/share/doc/groonga/source/example/reference/indexing-search-without-index.log +27 -0
- data/vendor/local/share/doc/groonga/source/example/suggestion-1.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +44 -45
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +53 -54
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +43 -44
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +43 -44
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +43 -44
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +44 -45
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +52 -53
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-1.log +21 -22
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-2.log +76 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-3.log +83 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-4.log +111 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-5.log +84 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/drilldown-6.log +72 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-1.log +22 -23
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-2.log +103 -104
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-3.log +18 -19
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-4.log +82 -83
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-5.log +76 -77
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-6.log +37 -38
- data/vendor/local/share/doc/groonga/source/example/tutorial/index-7.log +39 -40
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +127 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +19 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +25 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +31 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -14
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +74 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +34 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-1.log +19 -20
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-2.log +135 -136
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-3.log +17 -18
- data/vendor/local/share/doc/groonga/source/example/tutorial/match_columns-4.log +135 -136
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-1.log +57 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-10.log +96 -97
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-2.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-3.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-4.log +87 -88
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-5.log +33 -34
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-6.log +71 -72
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-7.log +52 -53
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-8.log +56 -57
- data/vendor/local/share/doc/groonga/source/example/tutorial/micro_blog-9.log +35 -36
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +19 -20
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-2.log +0 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +82 -83
- data/vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-1.log +41 -41
- data/vendor/local/share/doc/groonga/source/example/tutorial/patricia_trie-2.log +98 -98
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-1.log +24 -25
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-2.log +68 -69
- data/vendor/local/share/doc/groonga/source/example/tutorial/query_expansion-3.log +78 -79
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-1.log +29 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-2.log +82 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-3.log +148 -5
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-4.log +41 -11
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-5.log +39 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-6.log +39 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/search-7.log +29 -3
- data/vendor/local/share/doc/groonga/source/index.txt +2 -0
- data/vendor/local/share/doc/groonga/source/install/centos.txt +131 -0
- data/vendor/local/share/doc/groonga/source/install/debian.txt +136 -0
- data/vendor/local/share/doc/groonga/source/install/fedora.txt +72 -0
- data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +53 -0
- data/vendor/local/share/doc/groonga/source/install/others.txt +267 -0
- data/vendor/local/share/doc/groonga/source/install/solaris.txt +43 -0
- data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +196 -0
- data/vendor/local/share/doc/groonga/source/install/windows.txt +77 -0
- data/vendor/local/share/doc/groonga/source/install.txt +21 -346
- data/vendor/local/share/doc/groonga/source/news/0.x.txt +3 -3
- data/vendor/local/share/doc/groonga/source/news/1.0.x.txt +16 -16
- data/vendor/local/share/doc/groonga/source/news/1.1.x.txt +1 -1
- data/vendor/local/share/doc/groonga/source/news/1.2.x.txt +17 -17
- data/vendor/local/share/doc/groonga/source/news.txt +235 -4
- data/vendor/local/share/doc/groonga/source/reference/api/grn_expr.txt +8 -0
- data/vendor/local/share/doc/groonga/source/reference/api.txt +8 -0
- data/vendor/local/share/doc/groonga/source/reference/cast.txt +8 -0
- data/vendor/local/share/doc/groonga/source/{command_version.txt → reference/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/cache_limit.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/check.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/clearlock.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/column_create.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/column_list.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/column_remove.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/define_selector.txt +1 -1
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/defrag.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/delete.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/dump.txt +0 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → source/reference}/commands/load.txt +1 -1
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/log_level.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/log_put.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/log_reopen.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/quit.txt +0 -0
- data/vendor/local/share/doc/groonga/source/reference/commands/select.txt +892 -0
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/shutdown.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/status.txt +5 -6
- data/vendor/local/share/doc/groonga/{en/html/_sources → source/reference}/commands/suggest.txt +8 -8
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/table_create.txt +0 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/table_list.txt +3 -26
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/commands/table_remove.txt +3 -3
- data/vendor/local/share/doc/groonga/source/{commands → reference/commands}/view_add.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{commands.txt → reference/commands.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/commands_not_implemented/add.txt +104 -0
- data/vendor/local/share/doc/groonga/source/reference/commands_not_implemented/get.txt +80 -0
- data/vendor/local/share/doc/groonga/source/reference/commands_not_implemented/set.txt +105 -0
- data/vendor/local/share/doc/groonga/source/{executables → reference/executables}/grnslap.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{executables → reference/executables}/grntest.txt +1 -1
- data/vendor/local/share/doc/groonga/source/reference/executables/groonga-httpd.txt +209 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/executables/groonga-http.txt → source/reference/executables/groonga-server-http.txt} +3 -3
- data/vendor/local/share/doc/groonga/source/{executables → reference/executables}/groonga-suggest-create-dataset.txt +1 -1
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/executables/groonga.txt +4 -4
- data/vendor/local/share/doc/groonga/source/{executables.txt → reference/executables.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/edit_distance.txt +0 -0
- data/vendor/local/share/doc/groonga/source/reference/functions/geo_distance.txt +284 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/geo_in_circle.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/geo_in_rectangle.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/now.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions → reference/functions}/rand.txt +0 -0
- data/vendor/local/share/doc/groonga/source/{functions.txt → reference/functions.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/grn_expr/query_syntax.txt +584 -0
- data/vendor/local/share/doc/groonga/source/reference/grn_expr/script_syntax.txt +805 -0
- data/vendor/local/share/doc/groonga/source/reference/grn_expr.txt +59 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources → source/reference}/indexing.txt +7 -7
- data/vendor/local/share/doc/groonga/source/{log.txt → reference/log.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{output.txt → reference/output.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/{pseudo_column.txt → reference/pseudo_column.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/tokenizers.txt +8 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources → source/reference}/type.txt +4 -4
- data/vendor/local/share/doc/groonga/source/reference.txt +12 -9
- data/vendor/local/share/doc/groonga/source/server/gqtp.txt +16 -0
- data/vendor/local/share/doc/groonga/source/server/http/comparison.txt +288 -0
- data/vendor/local/share/doc/groonga/source/server/http/groonga-httpd.txt +8 -0
- data/vendor/local/share/doc/groonga/source/server/http/groonga.txt +8 -0
- data/vendor/local/share/doc/groonga/source/server/http.txt +29 -0
- data/vendor/local/share/doc/groonga/source/server.txt +12 -0
- data/vendor/local/share/doc/groonga/source/spec/search.txt +1 -1
- data/vendor/local/share/doc/groonga/source/spec.txt +2 -2
- data/vendor/local/share/doc/groonga/source/suggest/completion.txt +1 -1
- data/vendor/local/share/doc/groonga/source/suggest/correction.txt +2 -2
- data/vendor/local/share/doc/groonga/source/suggest/introduction.txt +2 -0
- data/vendor/local/share/doc/groonga/source/suggest/suggestion.txt +1 -1
- data/vendor/local/share/doc/groonga/source/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +11 -11
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +23 -23
- data/vendor/local/share/doc/groonga/source/tutorial/micro_blog.txt +3 -1
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/source/tutorial/patricia_trie.txt +8 -6
- data/vendor/local/share/doc/groonga/source/tutorial/query_expansion.txt +1 -1
- data/vendor/local/share/doc/groonga/source/tutorial/search.txt +3 -3
- data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +10 -5
- data/vendor/local/share/man/ja/man1/groonga.1 +12354 -3896
- data/vendor/local/share/man/man1/groonga.1 +16934 -7750
- data/vendor/local/share/mecab/dic/naist-jdic/sys.dic +0 -0
- data/vendor/local/share/mecab/dic/naist-jdic/unk.dic +0 -0
- metadata +1251 -905
- data/lib/groonga/query-log.rb +0 -348
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/select.txt +0 -504
- data/vendor/local/share/doc/groonga/en/html/_sources/expr.txt +0 -45
- data/vendor/local/share/doc/groonga/en/html/_sources/functions/geo_distance.txt +0 -92
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +0 -891
- data/vendor/local/share/doc/groonga/en/html/expr.html +0 -178
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +0 -226
- data/vendor/local/share/doc/groonga/en/html/indexing.html +0 -318
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/select.txt +0 -504
- data/vendor/local/share/doc/groonga/ja/html/_sources/expr.txt +0 -45
- data/vendor/local/share/doc/groonga/ja/html/_sources/functions/geo_distance.txt +0 -92
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +0 -810
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +0 -187
- data/vendor/local/share/doc/groonga/ja/html/expr.html +0 -179
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +0 -227
- data/vendor/local/share/doc/groonga/source/commands/select.txt +0 -504
- data/vendor/local/share/doc/groonga/source/commands/suggest-completion.log +0 -32
- data/vendor/local/share/doc/groonga/source/commands/suggest-correction.log +0 -32
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-completion.log +0 -13
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-correction.log +0 -15
- data/vendor/local/share/doc/groonga/source/commands/suggest-learn-suggestion.log +0 -9
- data/vendor/local/share/doc/groonga/source/commands/suggest-mixed.log +0 -78
- data/vendor/local/share/doc/groonga/source/commands/suggest-suggestion.log +0 -36
- data/vendor/local/share/doc/groonga/source/expr.txt +0 -45
- data/vendor/local/share/doc/groonga/source/functions/geo_distance.txt +0 -92
data/test/test-schema.rb
ADDED
@@ -0,0 +1,886 @@
|
|
1
|
+
# Copyright (C) 2009-2011 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 SchemaTest < Test::Unit::TestCase
|
17
|
+
include GroongaTestUtils
|
18
|
+
|
19
|
+
setup :setup_database
|
20
|
+
|
21
|
+
def test_remove_table
|
22
|
+
Groonga::Array.create(:name => "Posts")
|
23
|
+
assert_not_nil(context["Posts"])
|
24
|
+
Groonga::Schema.remove_table("Posts")
|
25
|
+
assert_nil(context["Posts"])
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_remove_not_existing_table
|
29
|
+
assert_raise(Groonga::Schema::TableNotExists) do
|
30
|
+
Groonga::Schema.remove_table("NotExistingTable")
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_remove_not_existing_column
|
35
|
+
create_table = Proc.new do |&block|
|
36
|
+
Groonga::Schema.create_table("Posts", :type => :hash) do |table|
|
37
|
+
block.call(table)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
create_table.call do |table|
|
42
|
+
end
|
43
|
+
|
44
|
+
assert_raise(Groonga::Schema::ColumnNotExists) do
|
45
|
+
create_table.call do |table|
|
46
|
+
table.remove_column("not_existing_column")
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_path_canonicalization
|
52
|
+
directory = @tmp_dir.to_s
|
53
|
+
table_filename = "hash.groonga"
|
54
|
+
|
55
|
+
canonical_path = directory + "/#{table_filename}"
|
56
|
+
uncanonical_path = directory + "/./#{table_filename}"
|
57
|
+
|
58
|
+
Groonga::Schema.create_table("Posts",
|
59
|
+
:type => :hash,
|
60
|
+
:key_type => "integer",
|
61
|
+
:path => canonical_path) do |table|
|
62
|
+
end
|
63
|
+
|
64
|
+
assert_nothing_raised do
|
65
|
+
Groonga::Schema.create_table("Posts",
|
66
|
+
:type => :hash,
|
67
|
+
:key_type => "integer",
|
68
|
+
:path => uncanonical_path) do |table|
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
class DefineHashTest < self
|
74
|
+
def test_default
|
75
|
+
Groonga::Schema.create_table("Posts", :type => :hash) do |table|
|
76
|
+
end
|
77
|
+
posts = context["Posts"]
|
78
|
+
assert_kind_of(Groonga::Hash, posts)
|
79
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
80
|
+
end
|
81
|
+
|
82
|
+
def test_named_path
|
83
|
+
Groonga::Schema.create_table("Posts",
|
84
|
+
:type => :hash,
|
85
|
+
:named_path => true) do |table|
|
86
|
+
end
|
87
|
+
posts = context["Posts"]
|
88
|
+
assert_kind_of(Groonga::Hash, posts)
|
89
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
90
|
+
end
|
91
|
+
|
92
|
+
def test_full_option
|
93
|
+
path = @tmp_dir + "hash.groonga"
|
94
|
+
tokenizer = context["TokenTrigram"]
|
95
|
+
Groonga::Schema.create_table("Posts",
|
96
|
+
:type => :hash,
|
97
|
+
:key_type => "integer",
|
98
|
+
:path => path.to_s,
|
99
|
+
:value_type => "UInt32",
|
100
|
+
:default_tokenizer => tokenizer,
|
101
|
+
:named_path => true) do |table|
|
102
|
+
end
|
103
|
+
table = context["Posts"]
|
104
|
+
assert_equal("#<Groonga::Hash " +
|
105
|
+
"id: <#{table.id}>, " +
|
106
|
+
"name: <Posts>, " +
|
107
|
+
"path: <#{path}>, " +
|
108
|
+
"domain: <Int32>, " +
|
109
|
+
"range: <UInt32>, " +
|
110
|
+
"flags: <>, " +
|
111
|
+
"encoding: <#{Groonga::Encoding.default.inspect}>, " +
|
112
|
+
"size: <0>>",
|
113
|
+
table.inspect)
|
114
|
+
assert_equal(tokenizer, table.default_tokenizer)
|
115
|
+
end
|
116
|
+
|
117
|
+
def test_rename
|
118
|
+
Groonga::Schema.create_table("Posts", :type => :hash) do |table|
|
119
|
+
end
|
120
|
+
posts = context["Posts"]
|
121
|
+
assert_kind_of(Groonga::Hash, posts)
|
122
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
123
|
+
end
|
124
|
+
entries = context["Entries"]
|
125
|
+
assert_kind_of(Groonga::Hash, entries)
|
126
|
+
assert_equal("Entries", posts.name)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
class DefinePatriciaTrieTest < self
|
131
|
+
def test_default
|
132
|
+
Groonga::Schema.create_table("Posts", :type => :patricia_trie) do |table|
|
133
|
+
end
|
134
|
+
posts = context["Posts"]
|
135
|
+
assert_kind_of(Groonga::PatriciaTrie, posts)
|
136
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_named_path
|
140
|
+
Groonga::Schema.create_table("Posts",
|
141
|
+
:type => :patricia_trie,
|
142
|
+
:named_path => true) do |table|
|
143
|
+
end
|
144
|
+
posts = context["Posts"]
|
145
|
+
assert_kind_of(Groonga::PatriciaTrie, posts)
|
146
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
147
|
+
end
|
148
|
+
|
149
|
+
def test_full_option
|
150
|
+
path = @tmp_dir + "patricia-trie.groonga"
|
151
|
+
Groonga::Schema.create_table("Posts",
|
152
|
+
:type => :patricia_trie,
|
153
|
+
:key_type => "integer",
|
154
|
+
:path => path.to_s,
|
155
|
+
:value_type => "Float",
|
156
|
+
:default_tokenizer => "TokenBigram",
|
157
|
+
:key_normalize => true,
|
158
|
+
:key_with_sis => true,
|
159
|
+
:named_path => true) do |table|
|
160
|
+
end
|
161
|
+
table = context["Posts"]
|
162
|
+
assert_equal("#<Groonga::PatriciaTrie " +
|
163
|
+
"id: <#{table.id}>, " +
|
164
|
+
"name: <Posts>, " +
|
165
|
+
"path: <#{path}>, " +
|
166
|
+
"domain: <Int32>, " +
|
167
|
+
"range: <Float>, " +
|
168
|
+
"flags: <KEY_WITH_SIS|KEY_NORMALIZE|WITH_SECTION>, " +
|
169
|
+
"encoding: <#{Groonga::Encoding.default.inspect}>, " +
|
170
|
+
"size: <0>>",
|
171
|
+
table.inspect)
|
172
|
+
assert_equal(context["TokenBigram"], table.default_tokenizer)
|
173
|
+
end
|
174
|
+
|
175
|
+
def test_rename
|
176
|
+
Groonga::Schema.create_table("Posts", :type => :patricia_trie) do |table|
|
177
|
+
end
|
178
|
+
posts = context["Posts"]
|
179
|
+
assert_kind_of(Groonga::PatriciaTrie, posts)
|
180
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
181
|
+
end
|
182
|
+
entries = context["Entries"]
|
183
|
+
assert_kind_of(Groonga::PatriciaTrie, entries)
|
184
|
+
assert_equal("Entries", posts.name)
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
class DefineDoubleArrayTrieTest < self
|
189
|
+
def test_default
|
190
|
+
Groonga::Schema.create_table("Posts",
|
191
|
+
:type => :double_array_trie) do |table|
|
192
|
+
end
|
193
|
+
posts = context["Posts"]
|
194
|
+
assert_kind_of(Groonga::DoubleArrayTrie, posts)
|
195
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
196
|
+
end
|
197
|
+
|
198
|
+
def test_named_path
|
199
|
+
Groonga::Schema.create_table("Posts",
|
200
|
+
:type => :double_array_trie,
|
201
|
+
:named_path => true) do |table|
|
202
|
+
end
|
203
|
+
posts = context["Posts"]
|
204
|
+
assert_kind_of(Groonga::DoubleArrayTrie, posts)
|
205
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
206
|
+
end
|
207
|
+
|
208
|
+
def test_full_option
|
209
|
+
path = @tmp_dir + "patricia-trie.groonga"
|
210
|
+
Groonga::Schema.create_table("Posts",
|
211
|
+
:type => :double_array_trie,
|
212
|
+
:key_type => "integer",
|
213
|
+
:path => path.to_s,
|
214
|
+
:value_type => "Float",
|
215
|
+
:default_tokenizer => "TokenBigram",
|
216
|
+
:key_normalize => true,
|
217
|
+
:named_path => true) do |table|
|
218
|
+
end
|
219
|
+
table = context["Posts"]
|
220
|
+
assert_equal("#<Groonga::DoubleArrayTrie " +
|
221
|
+
"id: <#{table.id}>, " +
|
222
|
+
"name: <Posts>, " +
|
223
|
+
"path: <#{path}>, " +
|
224
|
+
"domain: <Int32>, " +
|
225
|
+
"range: <Float>, " +
|
226
|
+
"flags: <KEY_NORMALIZE|WITH_SECTION>, " +
|
227
|
+
"encoding: <#{Groonga::Encoding.default.inspect}>, " +
|
228
|
+
"size: <0>>",
|
229
|
+
table.inspect)
|
230
|
+
assert_equal(context["TokenBigram"], table.default_tokenizer)
|
231
|
+
end
|
232
|
+
|
233
|
+
def test_rename
|
234
|
+
Groonga::Schema.create_table("Posts", :type => :double_array_trie) do |table|
|
235
|
+
end
|
236
|
+
posts = context["Posts"]
|
237
|
+
assert_kind_of(Groonga::DoubleArrayTrie, posts)
|
238
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
239
|
+
end
|
240
|
+
entries = context["Entries"]
|
241
|
+
assert_kind_of(Groonga::DoubleArrayTrie, entries)
|
242
|
+
assert_equal("Entries", posts.name)
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
class DefineArrayTest < self
|
247
|
+
def test_default
|
248
|
+
Groonga::Schema.create_table("Posts", :type => :array) do |table|
|
249
|
+
end
|
250
|
+
posts = context["Posts"]
|
251
|
+
assert_kind_of(Groonga::Array, posts)
|
252
|
+
assert_equal("#{@database_path}.0000100", posts.path)
|
253
|
+
end
|
254
|
+
|
255
|
+
def test_named_path
|
256
|
+
Groonga::Schema.create_table("Posts",
|
257
|
+
:type => :array,
|
258
|
+
:named_path => true) do |table|
|
259
|
+
end
|
260
|
+
posts = context["Posts"]
|
261
|
+
assert_kind_of(Groonga::Array, posts)
|
262
|
+
assert_equal("#{@database_path}.tables/Posts", posts.path)
|
263
|
+
end
|
264
|
+
|
265
|
+
def test_full_option
|
266
|
+
path = @tmp_dir + "array.groonga"
|
267
|
+
Groonga::Schema.create_table("Posts",
|
268
|
+
:type => :array,
|
269
|
+
:path => path.to_s,
|
270
|
+
:value_type => "Int32",
|
271
|
+
:named_path => true) do |table|
|
272
|
+
end
|
273
|
+
table = context["Posts"]
|
274
|
+
assert_equal("#<Groonga::Array " +
|
275
|
+
"id: <#{table.id}>, " +
|
276
|
+
"name: <Posts>, " +
|
277
|
+
"path: <#{path}>, " +
|
278
|
+
"domain: <Int32>, " +
|
279
|
+
"range: <Int32>, " +
|
280
|
+
"flags: <>, " +
|
281
|
+
"size: <0>>",
|
282
|
+
table.inspect)
|
283
|
+
end
|
284
|
+
|
285
|
+
def test_rename
|
286
|
+
Groonga::Schema.create_table("Posts", :type => :array) do |table|
|
287
|
+
end
|
288
|
+
posts = context["Posts"]
|
289
|
+
assert_kind_of(Groonga::Array, posts)
|
290
|
+
Groonga::Schema.rename_table("Posts", "Entries") do |table|
|
291
|
+
end
|
292
|
+
entries = context["Entries"]
|
293
|
+
assert_kind_of(Groonga::Array, entries)
|
294
|
+
assert_equal("Entries", posts.name)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
class DefineColumnTest < self
|
299
|
+
def test_default
|
300
|
+
Groonga::Schema.create_table("Posts") do |table|
|
301
|
+
table.column("rate", :int)
|
302
|
+
end
|
303
|
+
|
304
|
+
column_name = "Posts.rate"
|
305
|
+
column = context[column_name]
|
306
|
+
assert_kind_of(Groonga::FixSizeColumn, column)
|
307
|
+
assert_equal("#{@database_path}.0000101", column.path)
|
308
|
+
end
|
309
|
+
|
310
|
+
def test_named_path
|
311
|
+
Groonga::Schema.create_table("Posts") do |table|
|
312
|
+
table.column("rate", :int, :named_path => true)
|
313
|
+
end
|
314
|
+
|
315
|
+
column_name = "Posts.rate"
|
316
|
+
column = context[column_name]
|
317
|
+
assert_kind_of(Groonga::FixSizeColumn, column)
|
318
|
+
assert_equal("#{@database_path}.0000100.columns/rate", column.path)
|
319
|
+
end
|
320
|
+
|
321
|
+
def test_full_option
|
322
|
+
path = @tmp_dir + "column.groonga"
|
323
|
+
type = Groonga::Type.new("Niku", :size => 29)
|
324
|
+
Groonga::Schema.create_table("Posts") do |table|
|
325
|
+
table.column("rate",
|
326
|
+
type,
|
327
|
+
:path => path.to_s,
|
328
|
+
:persistent => true,
|
329
|
+
:type => :vector,
|
330
|
+
:compress => :lzo)
|
331
|
+
end
|
332
|
+
|
333
|
+
column_name = "Posts.rate"
|
334
|
+
column = context[column_name]
|
335
|
+
assert_equal("#<Groonga::VariableSizeColumn " +
|
336
|
+
"id: <#{column.id}>, " +
|
337
|
+
"name: <#{column_name}>, " +
|
338
|
+
"path: <#{path}>, " +
|
339
|
+
"domain: <Posts>, " +
|
340
|
+
"range: <Niku>, " +
|
341
|
+
"flags: <KEY_VAR_SIZE|COMPRESS_LZO>>",
|
342
|
+
column.inspect)
|
343
|
+
end
|
344
|
+
end
|
345
|
+
|
346
|
+
def test_integer8_column
|
347
|
+
assert_nil(context["Posts.rate"])
|
348
|
+
Groonga::Schema.create_table("Posts") do |table|
|
349
|
+
table.integer8 :rate
|
350
|
+
end
|
351
|
+
assert_equal(context["Int8"], context["Posts.rate"].range)
|
352
|
+
end
|
353
|
+
|
354
|
+
def test_integer16_column
|
355
|
+
assert_nil(context["Posts.rate"])
|
356
|
+
Groonga::Schema.create_table("Posts") do |table|
|
357
|
+
table.integer16 :rate
|
358
|
+
end
|
359
|
+
assert_equal(context["Int16"], context["Posts.rate"].range)
|
360
|
+
end
|
361
|
+
|
362
|
+
def test_integer32_column
|
363
|
+
assert_nil(context["Posts.rate"])
|
364
|
+
Groonga::Schema.create_table("Posts") do |table|
|
365
|
+
table.integer32 :rate
|
366
|
+
end
|
367
|
+
assert_equal(context["Int32"], context["Posts.rate"].range)
|
368
|
+
end
|
369
|
+
|
370
|
+
def test_integer64_column
|
371
|
+
assert_nil(context["Posts.rate"])
|
372
|
+
Groonga::Schema.create_table("Posts") do |table|
|
373
|
+
table.integer64 :rate
|
374
|
+
end
|
375
|
+
assert_equal(context["Int64"], context["Posts.rate"].range)
|
376
|
+
end
|
377
|
+
|
378
|
+
def test_unsigned_integer8_column
|
379
|
+
assert_nil(context["Posts.n_viewed"])
|
380
|
+
Groonga::Schema.create_table("Posts") do |table|
|
381
|
+
table.unsigned_integer8 :n_viewed
|
382
|
+
end
|
383
|
+
assert_equal(context["UInt8"], context["Posts.n_viewed"].range)
|
384
|
+
end
|
385
|
+
|
386
|
+
def test_unsigned_integer16_column
|
387
|
+
assert_nil(context["Posts.n_viewed"])
|
388
|
+
Groonga::Schema.create_table("Posts") do |table|
|
389
|
+
table.unsigned_integer16 :n_viewed
|
390
|
+
end
|
391
|
+
assert_equal(context["UInt16"], context["Posts.n_viewed"].range)
|
392
|
+
end
|
393
|
+
|
394
|
+
def test_unsigned_integer32_column
|
395
|
+
assert_nil(context["Posts.n_viewed"])
|
396
|
+
Groonga::Schema.create_table("Posts") do |table|
|
397
|
+
table.unsigned_integer32 :n_viewed
|
398
|
+
end
|
399
|
+
assert_equal(context["UInt32"], context["Posts.n_viewed"].range)
|
400
|
+
end
|
401
|
+
|
402
|
+
def test_unsigned_integer64_column
|
403
|
+
assert_nil(context["Posts.n_viewed"])
|
404
|
+
Groonga::Schema.create_table("Posts") do |table|
|
405
|
+
table.unsigned_integer64 :n_viewed
|
406
|
+
end
|
407
|
+
assert_equal(context["UInt64"], context["Posts.n_viewed"].range)
|
408
|
+
end
|
409
|
+
|
410
|
+
def test_float_column
|
411
|
+
assert_nil(context["Posts.rate"])
|
412
|
+
Groonga::Schema.create_table("Posts") do |table|
|
413
|
+
table.float :rate
|
414
|
+
end
|
415
|
+
assert_equal(context["Float"], context["Posts.rate"].range)
|
416
|
+
end
|
417
|
+
|
418
|
+
def test_time_column
|
419
|
+
assert_nil(context["Posts.last_modified"])
|
420
|
+
Groonga::Schema.create_table("Posts") do |table|
|
421
|
+
table.time :last_modified
|
422
|
+
end
|
423
|
+
assert_equal(context["Time"], context["Posts.last_modified"].range)
|
424
|
+
end
|
425
|
+
|
426
|
+
def test_timestamps
|
427
|
+
assert_nil(context["Posts.created_at"])
|
428
|
+
assert_nil(context["Posts.updated_at"])
|
429
|
+
Groonga::Schema.create_table("Posts") do |table|
|
430
|
+
table.timestamps
|
431
|
+
end
|
432
|
+
assert_equal(context["Time"], context["Posts.created_at"].range)
|
433
|
+
assert_equal(context["Time"], context["Posts.updated_at"].range)
|
434
|
+
end
|
435
|
+
|
436
|
+
def test_short_text_column
|
437
|
+
assert_nil(context["Posts.title"])
|
438
|
+
Groonga::Schema.create_table("Posts") do |table|
|
439
|
+
table.short_text :title
|
440
|
+
end
|
441
|
+
assert_equal(context["ShortText"], context["Posts.title"].range)
|
442
|
+
end
|
443
|
+
|
444
|
+
def test_text_column
|
445
|
+
assert_nil(context["Posts.comment"])
|
446
|
+
Groonga::Schema.create_table("Posts") do |table|
|
447
|
+
table.text :comment
|
448
|
+
end
|
449
|
+
assert_equal(context["Text"], context["Posts.comment"].range)
|
450
|
+
end
|
451
|
+
|
452
|
+
def test_long_text_column
|
453
|
+
assert_nil(context["Posts.content"])
|
454
|
+
Groonga::Schema.create_table("Posts") do |table|
|
455
|
+
table.long_text :content
|
456
|
+
end
|
457
|
+
assert_equal(context["LongText"], context["Posts.content"].range)
|
458
|
+
end
|
459
|
+
|
460
|
+
def test_boolean_column
|
461
|
+
assert_nil(context["Posts.public"])
|
462
|
+
Groonga::Schema.create_table("Posts") do |table|
|
463
|
+
table.boolean :public
|
464
|
+
end
|
465
|
+
assert_equal(context["Bool"], context["Posts.public"].range)
|
466
|
+
end
|
467
|
+
|
468
|
+
def test_tokyo_geo_point_column
|
469
|
+
assert_nil(context["Posts.location"])
|
470
|
+
Groonga::Schema.create_table("Posts") do |table|
|
471
|
+
table.tokyo_geo_point :location
|
472
|
+
end
|
473
|
+
assert_equal(context["TokyoGeoPoint"], context["Posts.location"].range)
|
474
|
+
end
|
475
|
+
|
476
|
+
def test_wgs84_geo_point_column
|
477
|
+
assert_nil(context["Posts.location"])
|
478
|
+
Groonga::Schema.create_table("Posts") do |table|
|
479
|
+
table.wgs84_geo_point :location
|
480
|
+
end
|
481
|
+
assert_equal(context["WGS84GeoPoint"], context["Posts.location"].range)
|
482
|
+
end
|
483
|
+
|
484
|
+
def test_geo_point_column
|
485
|
+
assert_nil(context["Posts.location"])
|
486
|
+
Groonga::Schema.create_table("Posts") do |table|
|
487
|
+
table.geo_point :location
|
488
|
+
end
|
489
|
+
assert_equal(context["WGS84GeoPoint"], context["Posts.location"].range)
|
490
|
+
end
|
491
|
+
|
492
|
+
def test_remove_column
|
493
|
+
Groonga::Schema.create_table("Posts") do |table|
|
494
|
+
table.long_text :content
|
495
|
+
end
|
496
|
+
assert_not_nil(context["Posts.content"])
|
497
|
+
|
498
|
+
Groonga::Schema.remove_column("Posts", "content")
|
499
|
+
assert_nil(context["Posts.content"])
|
500
|
+
end
|
501
|
+
|
502
|
+
def test_rename_column
|
503
|
+
Groonga::Schema.create_table("Posts") do |table|
|
504
|
+
table.long_text :content
|
505
|
+
end
|
506
|
+
content = context["Posts.content"]
|
507
|
+
assert_equal("Posts.content", content.name)
|
508
|
+
|
509
|
+
Groonga::Schema.rename_column("Posts", "content", "body")
|
510
|
+
body = context["Posts.body"]
|
511
|
+
assert_equal("Posts.body", body.name)
|
512
|
+
assert_equal("Posts.body", content.name)
|
513
|
+
end
|
514
|
+
|
515
|
+
class DefineColumnAgainTest < self
|
516
|
+
def test_same_option
|
517
|
+
Groonga::Schema.create_table("Posts") do |table|
|
518
|
+
table.text :content
|
519
|
+
end
|
520
|
+
|
521
|
+
assert_nothing_raised do
|
522
|
+
Groonga::Schema.create_table("Posts") do |table|
|
523
|
+
table.text :content
|
524
|
+
end
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
def test_difference_type
|
529
|
+
Groonga::Schema.create_table("Posts") do |table|
|
530
|
+
table.text :content
|
531
|
+
end
|
532
|
+
|
533
|
+
assert_raise(Groonga::Schema::ColumnCreationWithDifferentOptions) do
|
534
|
+
Groonga::Schema.create_table("Posts") do |table|
|
535
|
+
table.integer :content
|
536
|
+
end
|
537
|
+
end
|
538
|
+
end
|
539
|
+
|
540
|
+
def test_same_option_by_groonga_object
|
541
|
+
Groonga::Schema.create_table("Posts") do |table|
|
542
|
+
table.text :content
|
543
|
+
end
|
544
|
+
|
545
|
+
assert_nothing_raised do
|
546
|
+
Groonga::Schema.create_table("Posts") do |table|
|
547
|
+
table.column(:content, Groonga["Text"])
|
548
|
+
end
|
549
|
+
end
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
553
|
+
class DefineIndexColumnTest < self
|
554
|
+
def test_default
|
555
|
+
assert_nil(context["Terms.content"])
|
556
|
+
Groonga::Schema.create_table("Posts") do |table|
|
557
|
+
table.long_text :content
|
558
|
+
end
|
559
|
+
Groonga::Schema.create_table("Terms") do |table|
|
560
|
+
table.index "Posts.content"
|
561
|
+
end
|
562
|
+
index_column = context["Terms.Posts_content"]
|
563
|
+
assert_equal([context["Posts.content"]],
|
564
|
+
index_column.sources)
|
565
|
+
assert_equal("#{@database_path}.0000103", index_column.path)
|
566
|
+
end
|
567
|
+
|
568
|
+
def test_named_path
|
569
|
+
assert_nil(context["Terms.content"])
|
570
|
+
Groonga::Schema.create_table("Posts") do |table|
|
571
|
+
table.long_text :content
|
572
|
+
end
|
573
|
+
Groonga::Schema.create_table("Terms") do |table|
|
574
|
+
table.index "Posts.content", :named_path => true
|
575
|
+
end
|
576
|
+
index_column = context["Terms.Posts_content"]
|
577
|
+
assert_equal([context["Posts.content"]],
|
578
|
+
index_column.sources)
|
579
|
+
assert_equal("#{@database_path}.0000102.columns/Posts_content",
|
580
|
+
index_column.path)
|
581
|
+
end
|
582
|
+
|
583
|
+
def test_full_option
|
584
|
+
path = @tmp_dir + "index-column.groonga"
|
585
|
+
assert_nil(context["Terms.content"])
|
586
|
+
index_column_name = "Posts_index"
|
587
|
+
|
588
|
+
Groonga::Schema.create_table("Posts") do |table|
|
589
|
+
table.long_text :content
|
590
|
+
end
|
591
|
+
Groonga::Schema.create_table("Terms") do |table|
|
592
|
+
table.index("Posts.content",
|
593
|
+
:name => index_column_name,
|
594
|
+
:path => path.to_s,
|
595
|
+
:persistent => true,
|
596
|
+
:with_section => true,
|
597
|
+
:with_weight => true,
|
598
|
+
:with_position => true,
|
599
|
+
:named_path => true)
|
600
|
+
end
|
601
|
+
|
602
|
+
full_index_column_name = "Terms.#{index_column_name}"
|
603
|
+
index_column = context[full_index_column_name]
|
604
|
+
assert_equal("#<Groonga::IndexColumn " +
|
605
|
+
"id: <#{index_column.id}>, " +
|
606
|
+
"name: <#{full_index_column_name}>, " +
|
607
|
+
"path: <#{path}>, " +
|
608
|
+
"domain: <Terms>, " +
|
609
|
+
"range: <Posts>, " +
|
610
|
+
"flags: <WITH_SECTION|WITH_WEIGHT|WITH_POSITION>>",
|
611
|
+
index_column.inspect)
|
612
|
+
end
|
613
|
+
|
614
|
+
def test_again
|
615
|
+
Groonga::Schema.create_table("Posts") do |table|
|
616
|
+
table.long_text :content
|
617
|
+
end
|
618
|
+
Groonga::Schema.create_table("Terms") do |table|
|
619
|
+
table.index "Posts.content"
|
620
|
+
end
|
621
|
+
|
622
|
+
assert_nothing_raised do
|
623
|
+
Groonga::Schema.create_table("Terms") do |table|
|
624
|
+
table.index "Posts.content"
|
625
|
+
end
|
626
|
+
end
|
627
|
+
end
|
628
|
+
|
629
|
+
def test_again_with_difference_source
|
630
|
+
Groonga::Schema.create_table("Posts") do |table|
|
631
|
+
table.long_text :content
|
632
|
+
table.short_text :name
|
633
|
+
end
|
634
|
+
Groonga::Schema.create_table("Terms") do |table|
|
635
|
+
table.index "Posts.content"
|
636
|
+
end
|
637
|
+
|
638
|
+
assert_raise(Groonga::Schema::ColumnCreationWithDifferentOptions) do
|
639
|
+
Groonga::Schema.create_table("Terms") do |table|
|
640
|
+
table.index "Posts.name", :name => "Posts_content"
|
641
|
+
end
|
642
|
+
end
|
643
|
+
end
|
644
|
+
|
645
|
+
def test_key
|
646
|
+
Groonga::Schema.create_table("Posts",
|
647
|
+
:type => :hash,
|
648
|
+
:key_type => "ShortText") do |table|
|
649
|
+
end
|
650
|
+
Groonga::Schema.create_table("Terms") do |table|
|
651
|
+
table.index "Posts._key", :with_position => true
|
652
|
+
end
|
653
|
+
|
654
|
+
full_index_column_name = "Terms.Posts__key"
|
655
|
+
index_column = context[full_index_column_name]
|
656
|
+
assert_equal("#<Groonga::IndexColumn " +
|
657
|
+
"id: <#{index_column.id}>, " +
|
658
|
+
"name: <#{full_index_column_name}>, " +
|
659
|
+
"path: <#{index_column.path}>, " +
|
660
|
+
"domain: <Terms>, " +
|
661
|
+
"range: <Posts>, " +
|
662
|
+
"flags: <WITH_POSITION>>",
|
663
|
+
index_column.inspect)
|
664
|
+
end
|
665
|
+
|
666
|
+
def test_key_again
|
667
|
+
Groonga::Schema.create_table("Posts",
|
668
|
+
:type => :hash,
|
669
|
+
:key_type => "ShortText") do |table|
|
670
|
+
end
|
671
|
+
Groonga::Schema.create_table("Terms") do |table|
|
672
|
+
table.index "Posts._key", :with_position => true
|
673
|
+
end
|
674
|
+
|
675
|
+
assert_nothing_raised do
|
676
|
+
Groonga::Schema.create_table("Terms") do |table|
|
677
|
+
table.index "Posts._key"
|
678
|
+
end
|
679
|
+
end
|
680
|
+
end
|
681
|
+
|
682
|
+
def test_remove
|
683
|
+
Groonga::Schema.create_table("Posts") do |table|
|
684
|
+
table.long_text :content
|
685
|
+
end
|
686
|
+
Groonga::Schema.create_table("Terms") do |table|
|
687
|
+
table.index "Posts.content"
|
688
|
+
end
|
689
|
+
assert_equal([context["Posts.content"]],
|
690
|
+
context["Terms.Posts_content"].sources)
|
691
|
+
Groonga::Schema.change_table("Terms") do |table|
|
692
|
+
table.remove_index("Posts.content")
|
693
|
+
end
|
694
|
+
assert_nil(context["Terms.Posts_content"])
|
695
|
+
end
|
696
|
+
|
697
|
+
def test_rename
|
698
|
+
Groonga::Schema.create_table("Posts") do |table|
|
699
|
+
table.long_text :content
|
700
|
+
end
|
701
|
+
Groonga::Schema.create_table("Terms") do |table|
|
702
|
+
table.index "Posts.content"
|
703
|
+
end
|
704
|
+
index = context["Terms.Posts_content"]
|
705
|
+
assert_equal([context["Posts.content"]], index.sources)
|
706
|
+
Groonga::Schema.change_table("Terms") do |table|
|
707
|
+
table.rename_column("Posts_content", "posts_content_index")
|
708
|
+
end
|
709
|
+
renamed_index = context["Terms.posts_content_index"]
|
710
|
+
assert_equal("Terms.posts_content_index", renamed_index.name)
|
711
|
+
assert_equal("Terms.posts_content_index", index.name)
|
712
|
+
assert_equal([context["Posts.content"]], renamed_index.sources)
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
716
|
+
def test_reference_guess
|
717
|
+
Groonga::Schema.define do |schema|
|
718
|
+
schema.create_table("Items", :type => :hash) do |table|
|
719
|
+
table.short_text("title")
|
720
|
+
end
|
721
|
+
|
722
|
+
schema.create_table("Users", :type => :hash) do |table|
|
723
|
+
table.reference("item")
|
724
|
+
end
|
725
|
+
end
|
726
|
+
|
727
|
+
assert_equal(context["Items"], context["Users.item"].range)
|
728
|
+
end
|
729
|
+
|
730
|
+
def test_reference_ungeussable
|
731
|
+
candidates = ["item", "items", "Items"]
|
732
|
+
exception =
|
733
|
+
Groonga::Schema::UnguessableReferenceTable.new("item", candidates)
|
734
|
+
assert_raise(exception) do
|
735
|
+
Groonga::Schema.define do |schema|
|
736
|
+
schema.create_table("Users", :type => :hash) do |table|
|
737
|
+
table.reference("item")
|
738
|
+
end
|
739
|
+
end
|
740
|
+
end
|
741
|
+
end
|
742
|
+
|
743
|
+
def test_explicit_context_create_table
|
744
|
+
context = Groonga::Context.default
|
745
|
+
Groonga::Context.default = nil
|
746
|
+
|
747
|
+
Groonga::Schema.define(:context => context) do |schema|
|
748
|
+
schema.create_table('Items', :type => :hash) do |table|
|
749
|
+
table.text("text")
|
750
|
+
end
|
751
|
+
schema.create_table("TermsText",
|
752
|
+
:type => :patricia_trie,
|
753
|
+
:key_normalize => true,
|
754
|
+
:default_tokenizer => "TokenBigram") do |table|
|
755
|
+
table.index('Items.text')
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
759
|
+
assert_not_nil(context["Items.text"])
|
760
|
+
assert_not_nil(context["TermsText.Items_text"])
|
761
|
+
assert_nil(Groonga::Context.default["Items.text"])
|
762
|
+
assert_nil(Groonga::Context.default["TermsText.Items_text"])
|
763
|
+
end
|
764
|
+
|
765
|
+
def test_default_tokenizer_name_shortcut
|
766
|
+
Groonga::Schema.define do |schema|
|
767
|
+
schema.create_table("Terms",
|
768
|
+
:type => :patricia_trie,
|
769
|
+
:key_normalize => true,
|
770
|
+
:default_tokenizer => :bigram) do |table|
|
771
|
+
end
|
772
|
+
end
|
773
|
+
|
774
|
+
assert_equal(Groonga["TokenBigram"], Groonga["Terms"].default_tokenizer)
|
775
|
+
end
|
776
|
+
|
777
|
+
def test_duplicated_shortcut_name
|
778
|
+
short_text = Groonga::Type.new("short_text", :size => 1024)
|
779
|
+
Groonga::Schema.define do |schema|
|
780
|
+
schema.create_table("Users",
|
781
|
+
:type => :patricia_trie,
|
782
|
+
:key_normalize => true,
|
783
|
+
:key_type => :short_text) do |table|
|
784
|
+
end
|
785
|
+
end
|
786
|
+
|
787
|
+
assert_equal(short_text, Groonga["Users"].domain)
|
788
|
+
end
|
789
|
+
|
790
|
+
class RemoveTest < self
|
791
|
+
def test_tables_directory_removed_on_last_table_remove
|
792
|
+
table_name = "Posts"
|
793
|
+
Groonga::Schema.create_table(table_name, :named_path => true)
|
794
|
+
table = Groonga[table_name]
|
795
|
+
tables_directory = Pathname.new(table.path).dirname
|
796
|
+
|
797
|
+
assert_directory_not_removed(tables_directory)
|
798
|
+
Groonga::Schema.remove_table(table_name)
|
799
|
+
assert_directory_removed(tables_directory)
|
800
|
+
end
|
801
|
+
|
802
|
+
def test_tables_directory_not_removed_on_not_last_table_remove
|
803
|
+
table_name = "Posts"
|
804
|
+
Groonga::Schema.define(:named_path => true) do |schema|
|
805
|
+
schema.create_table(table_name)
|
806
|
+
schema.create_table("Users")
|
807
|
+
end
|
808
|
+
|
809
|
+
table = Groonga[table_name]
|
810
|
+
tables_directory = Pathname.new(table.path).dirname
|
811
|
+
|
812
|
+
assert_directory_not_removed(tables_directory)
|
813
|
+
Groonga::Schema.remove_table(table_name)
|
814
|
+
assert_directory_not_removed(tables_directory)
|
815
|
+
end
|
816
|
+
|
817
|
+
def test_columns_directory_removed
|
818
|
+
table = "Posts"
|
819
|
+
dir = create_table_with_column(table, :named_path => true)
|
820
|
+
|
821
|
+
Groonga::Schema.remove_table(table)
|
822
|
+
|
823
|
+
assert_table_removed(table)
|
824
|
+
assert_directory_removed(dir)
|
825
|
+
end
|
826
|
+
end
|
827
|
+
|
828
|
+
class ColumnRemoveTest < self
|
829
|
+
def test_columns_directory_removed_on_last_column_remove
|
830
|
+
Groonga::Schema.define(:named_path => true) do |schema|
|
831
|
+
schema.create_table("Posts") do |table|
|
832
|
+
table.short_text("title")
|
833
|
+
end
|
834
|
+
end
|
835
|
+
|
836
|
+
columns_directory = columns_directory_path(Groonga["Posts"])
|
837
|
+
assert_directory_not_removed(columns_directory)
|
838
|
+
Groonga::Schema.change_table("Posts") do |table|
|
839
|
+
table.remove_column("title")
|
840
|
+
end
|
841
|
+
assert_directory_removed(columns_directory)
|
842
|
+
end
|
843
|
+
|
844
|
+
def test_columns_directory_not_removed_on_not_last_column_remove
|
845
|
+
Groonga::Schema.define(:named_path => true) do |schema|
|
846
|
+
schema.create_table("Posts") do |table|
|
847
|
+
table.short_text("title")
|
848
|
+
table.short_text("body")
|
849
|
+
end
|
850
|
+
end
|
851
|
+
|
852
|
+
columns_directory = columns_directory_path(Groonga["Posts"])
|
853
|
+
assert_directory_not_removed(columns_directory)
|
854
|
+
Groonga::Schema.change_table("Posts") do |table|
|
855
|
+
table.remove_column("title")
|
856
|
+
end
|
857
|
+
assert_directory_not_removed(columns_directory)
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
private
|
862
|
+
def columns_directory_path(table)
|
863
|
+
"#{table.path}.columns"
|
864
|
+
end
|
865
|
+
|
866
|
+
def create_table_with_column(name, options={})
|
867
|
+
Groonga::Schema.create_table(name, options) do |table|
|
868
|
+
table.integer64 :rate
|
869
|
+
end
|
870
|
+
context = Groonga::Context.default
|
871
|
+
columns_directory_path(context[name])
|
872
|
+
end
|
873
|
+
|
874
|
+
def assert_directory_removed(dir)
|
875
|
+
assert_not_predicate(Pathname.new(dir), :exist?)
|
876
|
+
end
|
877
|
+
|
878
|
+
def assert_directory_not_removed(dir)
|
879
|
+
assert_predicate(Pathname.new(dir), :exist?)
|
880
|
+
end
|
881
|
+
|
882
|
+
def assert_table_removed(name)
|
883
|
+
context = Groonga::Context.default
|
884
|
+
assert_nil(context[name])
|
885
|
+
end
|
886
|
+
end
|