rroonga 5.0.9-x64-mingw32 → 5.1.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +2 -1
- data/ext/groonga/{rb-grn-conf.c → rb-grn-config.c} +18 -13
- data/ext/groonga/rb-grn-database.c +83 -0
- data/ext/groonga/rb-grn-fix-size-column.c +85 -0
- data/ext/groonga/rb-grn-index-column.c +82 -0
- data/ext/groonga/rb-grn-object.c +67 -1
- data/ext/groonga/rb-grn-table-key-support.c +87 -1
- data/ext/groonga/rb-grn-table.c +2 -2
- data/ext/groonga/rb-grn-variable-size-column.c +84 -1
- data/ext/groonga/rb-grn.h +5 -5
- data/ext/groonga/rb-groonga.c +27 -1
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/2.3/groonga.so +0 -0
- data/lib/groonga/context.rb +12 -3
- data/lib/groonga/expression-builder.rb +2 -1
- data/rroonga-build.rb +6 -6
- data/test/test-accessor.rb +30 -0
- data/test/{test-conf.rb → test-config.rb} +5 -5
- data/test/test-database.rb +41 -0
- data/test/test-fix-size-column.rb +84 -0
- data/test/test-index-column.rb +71 -1
- data/test/test-package-label.rb +20 -0
- data/test/test-table-key-support.rb +42 -0
- data/test/test-table.rb +13 -0
- data/test/test-variable-size-column.rb +71 -1
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_seh-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-4.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +9 -9
- data/vendor/local/include/groonga/groonga/file_reader.h +40 -0
- data/vendor/local/include/groonga/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/obj.h +7 -42
- data/vendor/local/include/groonga/groonga/portability.h +4 -4
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +70 -38
- 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/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/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/scripts/ruby/command_line/grndb.rb +21 -0
- data/vendor/local/lib/groonga/scripts/ruby/id.rb +12 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +3 -1
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +6 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +7 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +4 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +122 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/pretty_print.txt +45 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/reindex.txt +142 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +10 -23
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/prefix_rk_search.txt +158 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_size.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations/geolocation_search.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations/prefix_rk_search.txt +76 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +3 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/suggest/completion.txt +2 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +1 -2
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +37 -8
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/client.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +12 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +72 -68
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +9 -8
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +187 -76
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +183 -0
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +58 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +41 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +28 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +57 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +105 -105
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +279 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +107 -107
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +49 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +35 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +43 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -17
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +14 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +434 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +42 -42
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +203 -0
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +15 -17
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +7 -11
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference.html +72 -68
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- 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 +7 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +4 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +122 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/pretty_print.txt +45 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/reindex.txt +142 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +10 -23
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/prefix_rk_search.txt +158 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_size.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations/geolocation_search.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations/prefix_rk_search.txt +76 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +3 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/suggest/completion.txt +2 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +1 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +37 -8
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/client.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +14 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +71 -67
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +9 -8
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +188 -76
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +12 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +183 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +28 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +58 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +41 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +33 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +57 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +105 -105
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +267 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +107 -107
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +49 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +35 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +43 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +13 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +422 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +42 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +11 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +6 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference.html +71 -67
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/groonga/html/admin/404.html +26 -2
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +272 -213
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/local/share/groonga/html/admin/bower_components/bootstrap-sass-official/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +39 -5
- data/vendor/local/share/groonga/html/admin/scripts/oldieshim.572be7b4.js +2337 -0
- data/vendor/local/share/groonga/html/admin/scripts/scripts.a1c295fa.js +1749 -0
- data/vendor/local/share/groonga/html/admin/scripts/vendor.2c228d46.js +50748 -0
- data/vendor/local/share/groonga/html/admin/styles/main.d9de008c.css +12602 -0
- data/vendor/local/share/groonga/html/admin/styles/vendor.7f75f6e0.css +130 -0
- data/vendor/local/share/groonga/html/admin/views/columns/new.html +64 -1
- data/vendor/local/share/groonga/html/admin/views/columns/show.html +70 -1
- data/vendor/local/share/groonga/html/admin/views/tables/index.html +53 -1
- data/vendor/local/share/groonga/html/admin/views/tables/new.html +54 -2
- data/vendor/local/share/groonga/html/admin/views/tables/search.html +236 -1
- data/vendor/local/share/groonga/html/admin/views/tables/show.html +111 -1
- data/vendor/local/share/groonga/html/admin/views/top.html +20 -1
- data/vendor/local/share/license/groonga-admin/README.md +2 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +955 -3334
- data/vendor/local/share/man/man1/groonga.1 +937 -3373
- metadata +78 -57
- data/vendor/local/share/groonga/html/admin/images/yeoman.d2754b85.png +0 -0
- data/vendor/local/share/groonga/html/admin/scripts/oldieshim.a466b7b1.js +0 -1
- data/vendor/local/share/groonga/html/admin/scripts/scripts.87083bfd.js +0 -1
- data/vendor/local/share/groonga/html/admin/scripts/vendor.fa48c0ac.js +0 -13
- data/vendor/local/share/groonga/html/admin/styles/main.0390285b.css +0 -1
- data/vendor/local/share/groonga/html/admin/styles/vendor.f4ae649a.css +0 -10
@@ -1,7 +1,7 @@
|
|
1
1
|
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
2
|
/*
|
3
3
|
Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
4
|
-
Copyright (C) 2014 Masafumi Yokoyama <
|
4
|
+
Copyright (C) 2014-2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
5
5
|
|
6
6
|
This library is free software; you can redistribute it and/or
|
7
7
|
modify it under the terms of the GNU Lesser General Public
|
@@ -564,6 +564,86 @@ rb_grn_variable_size_column_defrag (int argc, VALUE *argv, VALUE self)
|
|
564
564
|
return INT2NUM(n_segments);
|
565
565
|
}
|
566
566
|
|
567
|
+
/*
|
568
|
+
* Recreates all index columns for the column.
|
569
|
+
*
|
570
|
+
* This method is useful when you have any broken index columns for
|
571
|
+
* the column. You don't need to specify each index column. But this
|
572
|
+
* method spends more time rather than you specify only reindex
|
573
|
+
* needed index columns.
|
574
|
+
*
|
575
|
+
* You can use {Groonga::Database#reindex} to recreate all index
|
576
|
+
* columns in a database.
|
577
|
+
*
|
578
|
+
* You can use {Groonga::TableKeySupport#reindex} to recreate all
|
579
|
+
* index columns in a table.
|
580
|
+
*
|
581
|
+
* You can use {Groonga::IndexColumn#reindex} to specify the reindex
|
582
|
+
* target index column.
|
583
|
+
*
|
584
|
+
* @example How to recreate all index columns for the column
|
585
|
+
* Groonga::Schema.define do |schema|
|
586
|
+
* schema.create_table("Memos") do |table|
|
587
|
+
* table.short_text("title")
|
588
|
+
* table.text("content")
|
589
|
+
* end
|
590
|
+
*
|
591
|
+
* schema.create_table("BigramTerms",
|
592
|
+
* :type => :patricia_trie,
|
593
|
+
* :key_type => :short_text,
|
594
|
+
* :normalizer => "NormalizerAuto",
|
595
|
+
* :default_tokenizer => "TokenBigram") do |table|
|
596
|
+
* table.index("Memos.title")
|
597
|
+
* table.index("Memos.content")
|
598
|
+
* end
|
599
|
+
*
|
600
|
+
* schema.create_table("MeCabTerms",
|
601
|
+
* :type => :patricia_trie,
|
602
|
+
* :key_type => :short_text,
|
603
|
+
* :normalizer => "NormalizerAuto",
|
604
|
+
* :default_tokenizer => "TokenMecab") do |table|
|
605
|
+
* table.index("Memos.title")
|
606
|
+
* table.index("Memos.content")
|
607
|
+
* end
|
608
|
+
* end
|
609
|
+
*
|
610
|
+
* Groonga["Memos.content"].reindex
|
611
|
+
* # They are called:
|
612
|
+
* # Groonga["BigramTerms.Memos_content"].reindex
|
613
|
+
* # Groonga["MeCabTerms.Memos_content"].reindex
|
614
|
+
* #
|
615
|
+
* # They aren't called:
|
616
|
+
* # Groonga["BigramTerms.Memos_title"].reindex
|
617
|
+
* # Groonga["MeCabTerms.Memos_title"].reindex
|
618
|
+
*
|
619
|
+
* @overload reindex
|
620
|
+
* @return [void]
|
621
|
+
*
|
622
|
+
* @see Groonga::Database#reindex
|
623
|
+
* @see Groonga::TableKeySupport#reindex
|
624
|
+
* @see Groonga::FixSizeColumn#reindex
|
625
|
+
* @see Groonga::IndexColumn#reindex
|
626
|
+
*
|
627
|
+
* @since 5.1.1
|
628
|
+
*/
|
629
|
+
static VALUE
|
630
|
+
rb_grn_variable_size_column_reindex (VALUE self)
|
631
|
+
{
|
632
|
+
grn_rc rc;
|
633
|
+
grn_ctx *context;
|
634
|
+
grn_obj *column;
|
635
|
+
|
636
|
+
rb_grn_variable_size_column_deconstruct(SELF(self), &column, &context,
|
637
|
+
NULL, NULL, NULL, NULL,
|
638
|
+
NULL, NULL);
|
639
|
+
|
640
|
+
rc = grn_obj_reindex(context, column);
|
641
|
+
rb_grn_context_check(context, self);
|
642
|
+
rb_grn_rc_check(rc, self);
|
643
|
+
|
644
|
+
return Qnil;
|
645
|
+
}
|
646
|
+
|
567
647
|
void
|
568
648
|
rb_grn_init_variable_size_column (VALUE mGrn)
|
569
649
|
{
|
@@ -579,4 +659,7 @@ rb_grn_init_variable_size_column (VALUE mGrn)
|
|
579
659
|
rb_grn_variable_size_column_compressed_p, -1);
|
580
660
|
rb_define_method(rb_cGrnVariableSizeColumn, "defrag",
|
581
661
|
rb_grn_variable_size_column_defrag, -1);
|
662
|
+
|
663
|
+
rb_define_method(rb_cGrnVariableSizeColumn, "reindex",
|
664
|
+
rb_grn_variable_size_column_reindex, 0);
|
582
665
|
}
|
data/ext/groonga/rb-grn.h
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
2
|
/*
|
3
|
-
Copyright (C)
|
4
|
-
Copyright (C)
|
3
|
+
Copyright (C) 2009-2016 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
Copyright (C) 2015-2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
5
5
|
|
6
6
|
This library is free software; you can redistribute it and/or
|
7
7
|
modify it under the terms of the GNU Lesser General Public
|
@@ -100,8 +100,8 @@ RB_GRN_BEGIN_DECLS
|
|
100
100
|
#endif
|
101
101
|
|
102
102
|
#define RB_GRN_MAJOR_VERSION 5
|
103
|
-
#define RB_GRN_MINOR_VERSION
|
104
|
-
#define RB_GRN_MICRO_VERSION
|
103
|
+
#define RB_GRN_MINOR_VERSION 1
|
104
|
+
#define RB_GRN_MICRO_VERSION 1
|
105
105
|
|
106
106
|
#define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
|
107
107
|
|
@@ -354,7 +354,7 @@ void rb_grn_init_snippet (VALUE mGrn);
|
|
354
354
|
void rb_grn_init_plugin (VALUE mGrn);
|
355
355
|
void rb_grn_init_normalizer (VALUE mGrn);
|
356
356
|
void rb_grn_init_thread (VALUE mGrn);
|
357
|
-
void
|
357
|
+
void rb_grn_init_config (VALUE mGrn);
|
358
358
|
|
359
359
|
VALUE rb_grn_rc_to_exception (grn_rc rc);
|
360
360
|
const char *rb_grn_rc_to_message (grn_rc rc);
|
data/ext/groonga/rb-groonga.c
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
2
|
/*
|
3
3
|
Copyright (C) 2009-2015 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
4
5
|
|
5
6
|
This library is free software; you can redistribute it and/or
|
6
7
|
modify it under the terms of the GNU Lesser General Public
|
@@ -148,6 +149,30 @@ rb_grn_init_lock_timeout (VALUE mGrn)
|
|
148
149
|
rb_grn_s_set_lock_timeout, 1);
|
149
150
|
}
|
150
151
|
|
152
|
+
/*
|
153
|
+
* Returns the Groonga package's label. It's `"Groonga"`.
|
154
|
+
*
|
155
|
+
* @example How to get the Groonga package's label
|
156
|
+
* Groonga.package_label # => "Groonga"
|
157
|
+
*
|
158
|
+
* @overload package_label
|
159
|
+
* @return [String] `"Groonga"`
|
160
|
+
*
|
161
|
+
* @since 5.1.1
|
162
|
+
*/
|
163
|
+
static VALUE
|
164
|
+
rb_grn_s_get_package_label (VALUE klass)
|
165
|
+
{
|
166
|
+
return rb_str_new_cstr(grn_get_package_label());
|
167
|
+
}
|
168
|
+
|
169
|
+
static void
|
170
|
+
rb_grn_init_package_label (VALUE mGrn)
|
171
|
+
{
|
172
|
+
rb_define_singleton_method(mGrn, "package_label",
|
173
|
+
rb_grn_s_get_package_label, 0);
|
174
|
+
}
|
175
|
+
|
151
176
|
void
|
152
177
|
Init_groonga (void)
|
153
178
|
{
|
@@ -162,6 +187,7 @@ Init_groonga (void)
|
|
162
187
|
|
163
188
|
rb_grn_init_version(mGrn);
|
164
189
|
rb_grn_init_lock_timeout(mGrn);
|
190
|
+
rb_grn_init_package_label(mGrn);
|
165
191
|
|
166
192
|
rb_grn_init_utils(mGrn);
|
167
193
|
rb_grn_init_encoding(mGrn);
|
@@ -192,5 +218,5 @@ Init_groonga (void)
|
|
192
218
|
rb_grn_init_plugin(mGrn);
|
193
219
|
rb_grn_init_normalizer(mGrn);
|
194
220
|
rb_grn_init_thread(mGrn);
|
195
|
-
|
221
|
+
rb_grn_init_config(mGrn);
|
196
222
|
}
|
data/lib/2.0/groonga.so
CHANGED
Binary file
|
data/lib/2.1/groonga.so
CHANGED
Binary file
|
data/lib/2.2/groonga.so
CHANGED
Binary file
|
data/lib/2.3/groonga.so
ADDED
Binary file
|
data/lib/groonga/context.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
|
-
# Copyright (C) 2010-
|
3
|
+
# Copyright (C) 2010-2016 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
#
|
5
5
|
# This library is free software; you can redistribute it and/or
|
6
6
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -347,12 +347,21 @@ module Groonga
|
|
347
347
|
memory_pool.register(object)
|
348
348
|
end
|
349
349
|
|
350
|
-
# @return [Groonga::
|
350
|
+
# @return [Groonga::Config] The database level configuration sets of
|
351
351
|
# this context.
|
352
352
|
#
|
353
353
|
# @since 5.0.9
|
354
|
+
# @deprecated since 5.1.1. Use {Groonga::Context#config} instead.
|
354
355
|
def conf
|
355
|
-
|
356
|
+
config
|
357
|
+
end
|
358
|
+
|
359
|
+
# @return [Groonga::Config] The database level configuration sets of
|
360
|
+
# this context.
|
361
|
+
#
|
362
|
+
# @since 5.1.1
|
363
|
+
def config
|
364
|
+
@config ||= Config.new(self)
|
356
365
|
end
|
357
366
|
end
|
358
367
|
end
|
@@ -81,7 +81,8 @@ module Groonga
|
|
81
81
|
end
|
82
82
|
|
83
83
|
if builders.empty?
|
84
|
-
expression.
|
84
|
+
expression.append_object(@table.context["all_records"])
|
85
|
+
expression.append_operation(Operation::CALL, 0)
|
85
86
|
else
|
86
87
|
combined_builder = builders.inject(nil) do |previous, builder|
|
87
88
|
if previous.nil?
|
data/rroonga-build.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
#
|
3
3
|
# Copyright (C) 2009-2015 Kouhei Sutou <kou@clear-code.com>
|
4
|
-
# Copyright (C) 2015 Masafumi Yokoyama <yokoyama@clear-code.com>
|
4
|
+
# Copyright (C) 2015-2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
5
5
|
#
|
6
6
|
# This library is free software; you can redistribute it and/or
|
7
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -19,16 +19,16 @@
|
|
19
19
|
module RroongaBuild
|
20
20
|
module RequiredGroongaVersion
|
21
21
|
MAJOR = 5
|
22
|
-
MINOR =
|
23
|
-
MICRO =
|
22
|
+
MINOR = 1
|
23
|
+
MICRO = 0
|
24
24
|
VERSION = [MAJOR, MINOR, MICRO]
|
25
|
-
RELEASED_DATE = Time.utc(2015,
|
25
|
+
RELEASED_DATE = Time.utc(2015, 11, 29)
|
26
26
|
end
|
27
27
|
|
28
28
|
module LatestGroongaVersion
|
29
29
|
MAJOR = 5
|
30
|
-
MINOR =
|
31
|
-
MICRO =
|
30
|
+
MINOR = 1
|
31
|
+
MICRO = 1
|
32
32
|
VERSION = [MAJOR, MINOR, MICRO]
|
33
33
|
end
|
34
34
|
|
data/test/test-accessor.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright (C) 2011 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
3
|
#
|
3
4
|
# This library is free software; you can redistribute it and/or
|
4
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -33,4 +34,33 @@ class AccessorTest < Test::Unit::TestCase
|
|
33
34
|
def test_local_name
|
34
35
|
assert_equal("_id", @id.local_name)
|
35
36
|
end
|
37
|
+
|
38
|
+
sub_test_case "#accessor?" do
|
39
|
+
test "true" do
|
40
|
+
assert do
|
41
|
+
@id.accessor?
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
test "false" do
|
46
|
+
assert do
|
47
|
+
not @posts.accessor?
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
sub_test_case "#key_accessor?" do
|
53
|
+
test "true" do
|
54
|
+
key = @posts.column("_key")
|
55
|
+
assert do
|
56
|
+
key.key_accessor?
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
test "false" do
|
61
|
+
assert do
|
62
|
+
not @id.key_accessor?
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
36
66
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (C) 2015 Kouhei Sutou <kou@clear-code.com>
|
1
|
+
# Copyright (C) 2015-2016 Kouhei Sutou <kou@clear-code.com>
|
2
2
|
#
|
3
3
|
# This library is free software; you can redistribute it and/or
|
4
4
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -13,19 +13,19 @@
|
|
13
13
|
# License along with this library; if not, write to the Free Software
|
14
14
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
15
15
|
|
16
|
-
class
|
16
|
+
class ConfigTest < Test::Unit::TestCase
|
17
17
|
include GroongaTestUtils
|
18
18
|
|
19
19
|
setup :setup_database
|
20
20
|
|
21
21
|
sub_test_case "#[]" do
|
22
22
|
test "existent" do
|
23
|
-
context.
|
24
|
-
assert_equal("value", context.
|
23
|
+
context.config["rroonga.key"] = "value"
|
24
|
+
assert_equal("value", context.config["rroonga.key"])
|
25
25
|
end
|
26
26
|
|
27
27
|
test "nonexistent" do
|
28
|
-
assert_nil(context.
|
28
|
+
assert_nil(context.config["nonexistent"])
|
29
29
|
end
|
30
30
|
end
|
31
31
|
end
|
data/test/test-database.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright (C) 2009-2015 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
3
|
#
|
3
4
|
# This library is free software; you can redistribute it and/or
|
4
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -237,6 +238,46 @@ class DatabaseTest < Test::Unit::TestCase
|
|
237
238
|
@database.plugin_paths)
|
238
239
|
end
|
239
240
|
|
241
|
+
def test_reindex
|
242
|
+
setup_database
|
243
|
+
Groonga::Schema.define do |schema|
|
244
|
+
schema.create_table("Memos",
|
245
|
+
:type => :array) do |table|
|
246
|
+
table.column("content", "Text")
|
247
|
+
end
|
248
|
+
schema.create_table("Terms",
|
249
|
+
:type => :patricia_trie,
|
250
|
+
:key_type => "ShortText",
|
251
|
+
:default_tokenizer => "TokenBigram",
|
252
|
+
:normalizer => "NormalizerAuto") do |table|
|
253
|
+
table.index("Memos.content")
|
254
|
+
end
|
255
|
+
end
|
256
|
+
|
257
|
+
memos = context["Memos"]
|
258
|
+
memos.add(:content => "This is a memo")
|
259
|
+
|
260
|
+
terms = context["Terms"]
|
261
|
+
terms.delete("this")
|
262
|
+
|
263
|
+
assert_equal([
|
264
|
+
"a",
|
265
|
+
"is",
|
266
|
+
"memo",
|
267
|
+
],
|
268
|
+
terms.collect(&:_key).sort)
|
269
|
+
|
270
|
+
@database.reindex
|
271
|
+
|
272
|
+
assert_equal([
|
273
|
+
"a",
|
274
|
+
"is",
|
275
|
+
"memo",
|
276
|
+
"this",
|
277
|
+
],
|
278
|
+
terms.collect(&:_key).sort)
|
279
|
+
end
|
280
|
+
|
240
281
|
class RemoveTest < self
|
241
282
|
setup :setup_database
|
242
283
|
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright (C) 2009-2014 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
3
|
#
|
3
4
|
# This library is free software; you can redistribute it and/or
|
4
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -20,6 +21,89 @@ class FixSizeColumnTest < Test::Unit::TestCase
|
|
20
21
|
setup_database
|
21
22
|
end
|
22
23
|
|
24
|
+
def test_reindex
|
25
|
+
Groonga::Schema.define do |schema|
|
26
|
+
schema.create_table("Users", :type => :hash) do |table|
|
27
|
+
table.integer32("age")
|
28
|
+
table.integer32("score")
|
29
|
+
end
|
30
|
+
|
31
|
+
schema.create_table("Numbers",
|
32
|
+
:type => :patricia_trie,
|
33
|
+
:key_type => :integer32) do |table|
|
34
|
+
table.index("Users.age")
|
35
|
+
table.index("Users.score")
|
36
|
+
end
|
37
|
+
|
38
|
+
schema.create_table("Ages",
|
39
|
+
:type => :patricia_trie,
|
40
|
+
:key_type => :integer32) do |table|
|
41
|
+
table.index("Users.age")
|
42
|
+
end
|
43
|
+
|
44
|
+
schema.create_table("Scores",
|
45
|
+
:type => :patricia_trie,
|
46
|
+
:key_type => :integer32) do |table|
|
47
|
+
table.index("Users.score")
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
users = context["Users"]
|
52
|
+
users.add("Alice", :age => 16, :score => 123)
|
53
|
+
users.add("Bob", :age => 29, :score => -10)
|
54
|
+
|
55
|
+
numbers = context["Numbers"]
|
56
|
+
numbers.delete(16)
|
57
|
+
numbers.delete(123)
|
58
|
+
|
59
|
+
ages = context["Ages"]
|
60
|
+
ages.delete(29)
|
61
|
+
|
62
|
+
scores = context["Scores"]
|
63
|
+
scores.delete(-10)
|
64
|
+
|
65
|
+
assert_equal({
|
66
|
+
:numbers => [
|
67
|
+
-10,
|
68
|
+
29,
|
69
|
+
],
|
70
|
+
:ages => [
|
71
|
+
16,
|
72
|
+
],
|
73
|
+
:scores => [
|
74
|
+
123,
|
75
|
+
],
|
76
|
+
},
|
77
|
+
{
|
78
|
+
:numbers => numbers.collect(&:_key).sort,
|
79
|
+
:ages => ages.collect(&:_key).sort,
|
80
|
+
:scores => scores.collect(&:_key).sort,
|
81
|
+
})
|
82
|
+
|
83
|
+
context["Users.age"].reindex
|
84
|
+
|
85
|
+
assert_equal({
|
86
|
+
:numbers => [
|
87
|
+
-10,
|
88
|
+
16,
|
89
|
+
29,
|
90
|
+
],
|
91
|
+
:ages => [
|
92
|
+
16,
|
93
|
+
29,
|
94
|
+
],
|
95
|
+
:scores => [
|
96
|
+
123,
|
97
|
+
],
|
98
|
+
},
|
99
|
+
{
|
100
|
+
:numbers => numbers.collect(&:_key).sort,
|
101
|
+
:ages => ages.collect(&:_key).sort,
|
102
|
+
:scores => scores.collect(&:_key).sort,
|
103
|
+
})
|
104
|
+
|
105
|
+
end
|
106
|
+
|
23
107
|
class OperationTest < self
|
24
108
|
def setup
|
25
109
|
super
|
data/test/test-index-column.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
#
|
3
3
|
# Copyright (C) 2009-2015 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
4
5
|
#
|
5
6
|
# This library is free software; you can redistribute it and/or
|
6
7
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -175,6 +176,75 @@ class IndexColumnTest < Test::Unit::TestCase
|
|
175
176
|
end
|
176
177
|
end
|
177
178
|
|
179
|
+
def test_reindex
|
180
|
+
Groonga::Schema.define do |schema|
|
181
|
+
schema.create_table("Memos", :type => :array) do |table|
|
182
|
+
table.short_text("title")
|
183
|
+
table.text("content")
|
184
|
+
end
|
185
|
+
|
186
|
+
schema.create_table("BigramTerms",
|
187
|
+
:type => :patricia_trie,
|
188
|
+
:key_type => :short_text,
|
189
|
+
:normalizer => "NormalizerAuto",
|
190
|
+
:default_tokenizer => "TokenBigram") do |table|
|
191
|
+
table.index("Memos.title")
|
192
|
+
table.index("Memos.content")
|
193
|
+
end
|
194
|
+
|
195
|
+
schema.create_table("MeCabTerms",
|
196
|
+
:type => :patricia_trie,
|
197
|
+
:key_type => :short_text,
|
198
|
+
:normalizer => "NormalizerAuto",
|
199
|
+
:default_tokenizer => "TokenMecab") do |table|
|
200
|
+
table.index("Memos.title")
|
201
|
+
table.index("Memos.content")
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
memos = context["Memos"]
|
206
|
+
memos.add(:title => "memo1", :content => "もり")
|
207
|
+
|
208
|
+
bigram_terms = context["BigramTerms"]
|
209
|
+
bigram_terms.delete("memo")
|
210
|
+
bigram_terms.delete("り")
|
211
|
+
|
212
|
+
mecab_terms = context["MeCabTerms"]
|
213
|
+
mecab_terms.delete("1")
|
214
|
+
mecab_terms.delete("もり")
|
215
|
+
|
216
|
+
assert_equal({
|
217
|
+
:bigram => [
|
218
|
+
"1",
|
219
|
+
"もり",
|
220
|
+
],
|
221
|
+
:mecab => [
|
222
|
+
"memo",
|
223
|
+
],
|
224
|
+
},
|
225
|
+
{
|
226
|
+
:bigram => bigram_terms.collect(&:_key).sort,
|
227
|
+
:mecab => mecab_terms.collect(&:_key).sort,
|
228
|
+
})
|
229
|
+
|
230
|
+
context["MeCabTerms.Memos_content"].reindex
|
231
|
+
|
232
|
+
assert_equal({
|
233
|
+
:bigram => [
|
234
|
+
"1",
|
235
|
+
"もり",
|
236
|
+
],
|
237
|
+
:mecab => [
|
238
|
+
"memo",
|
239
|
+
"もり",
|
240
|
+
],
|
241
|
+
},
|
242
|
+
{
|
243
|
+
:bigram => bigram_terms.collect(&:_key).sort,
|
244
|
+
:mecab => mecab_terms.collect(&:_key).sort,
|
245
|
+
})
|
246
|
+
end
|
247
|
+
|
178
248
|
class NGramTest < self
|
179
249
|
setup
|
180
250
|
def setup_schema
|
@@ -575,7 +645,7 @@ class IndexColumnTest < Test::Unit::TestCase
|
|
575
645
|
end
|
576
646
|
|
577
647
|
def test_query
|
578
|
-
assert_equal(
|
648
|
+
assert_equal(3, @index.estimate_size("roonga"))
|
579
649
|
end
|
580
650
|
end
|
581
651
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
15
|
+
|
16
|
+
class PackageLabelTest < Test::Unit::TestCase
|
17
|
+
def test_reader
|
18
|
+
assert_equal("Groonga", Groonga.package_label)
|
19
|
+
end
|
20
|
+
end
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright (C) 2013-2014 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
3
|
#
|
3
4
|
# This library is free software; you can redistribute it and/or
|
4
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -195,4 +196,45 @@ class TableKeySupportTest < Test::Unit::TestCase
|
|
195
196
|
end
|
196
197
|
end
|
197
198
|
end
|
199
|
+
|
200
|
+
class ReindexTest < self
|
201
|
+
def test_patricia_trie
|
202
|
+
Groonga::Schema.define do |schema|
|
203
|
+
schema.create_table("Memos",
|
204
|
+
:type => :array) do |table|
|
205
|
+
table.text("content")
|
206
|
+
end
|
207
|
+
schema.create_table("Terms",
|
208
|
+
:type => :patricia_trie,
|
209
|
+
:key_type => :short_text,
|
210
|
+
:default_tokenizer => "TokenBigram",
|
211
|
+
:normalizer => "NormalizerAuto") do |table|
|
212
|
+
table.index("Memos.content")
|
213
|
+
end
|
214
|
+
end
|
215
|
+
|
216
|
+
memos = context["Memos"]
|
217
|
+
memos.add(:content => "This is a memo")
|
218
|
+
|
219
|
+
terms = context["Terms"]
|
220
|
+
terms.delete("this")
|
221
|
+
|
222
|
+
assert_equal([
|
223
|
+
"a",
|
224
|
+
"is",
|
225
|
+
"memo",
|
226
|
+
],
|
227
|
+
terms.collect(&:_key).sort)
|
228
|
+
|
229
|
+
terms.reindex
|
230
|
+
|
231
|
+
assert_equal([
|
232
|
+
"a",
|
233
|
+
"is",
|
234
|
+
"memo",
|
235
|
+
"this",
|
236
|
+
],
|
237
|
+
terms.collect(&:_key).sort)
|
238
|
+
end
|
239
|
+
end
|
198
240
|
end
|
data/test/test-table.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright (C) 2009-2013 Kouhei Sutou <kou@clear-code.com>
|
2
|
+
# Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
2
3
|
#
|
3
4
|
# This library is free software; you can redistribute it and/or
|
4
5
|
# modify it under the terms of the GNU Lesser General Public
|
@@ -455,6 +456,18 @@ class TableTest < Test::Unit::TestCase
|
|
455
456
|
],
|
456
457
|
results.collect(&:location))
|
457
458
|
end
|
459
|
+
|
460
|
+
test "accessor" do
|
461
|
+
searched_posts = @posts.select("true", :syntax => :script)
|
462
|
+
results = searched_posts.geo_sort(searched_posts.column("location"),
|
463
|
+
"35.7119x139.7983")
|
464
|
+
assert_equal([
|
465
|
+
Groonga::WGS84GeoPoint.new("35.730061x139.796234"),
|
466
|
+
Groonga::WGS84GeoPoint.new("35.685341x139.783981"),
|
467
|
+
Groonga::WGS84GeoPoint.new("35.720253x139.762573"),
|
468
|
+
],
|
469
|
+
results.collect(&:location))
|
470
|
+
end
|
458
471
|
end
|
459
472
|
|
460
473
|
def test_union!
|