rroonga 6.0.0-x86-mingw32 → 6.0.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/doc/text/news.md +38 -1
- data/ext/groonga/extconf.rb +14 -1
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie.c +1 -1
- data/ext/groonga/rb-grn-exception.c +18 -1
- data/ext/groonga/rb-grn-expression.c +0 -8
- data/ext/groonga/rb-grn-hash.c +15 -3
- data/ext/groonga/rb-grn-logger.c +22 -22
- data/ext/groonga/rb-grn-object.c +28 -6
- data/ext/groonga/rb-grn-patricia-trie.c +1 -1
- data/ext/groonga/rb-grn-request-canceler.c +164 -0
- data/ext/groonga/rb-grn-request-timer-id.c +64 -0
- data/ext/groonga/rb-grn-request-timer.c +155 -0
- data/ext/groonga/rb-grn-type.c +43 -1
- data/ext/groonga/rb-grn.h +17 -5
- data/ext/groonga/rb-groonga.c +3 -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/expression-builder.rb +4 -13
- data/rroonga-build.rb +3 -3
- data/rroonga.gemspec +1 -2
- data/test/run-test.rb +2 -2
- data/test/test-expression-builder.rb +13 -1
- data/test/test-hash.rb +22 -3
- data/test/test-request-canceler.rb +46 -0
- data/test/test-request-timer.rb +40 -0
- data/test/test-table.rb +43 -7
- data/test/test-type.rb +104 -2
- 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/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-2.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/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 +8 -0
- data/vendor/local/include/groonga/groonga/dump.h +1 -1
- data/vendor/local/include/groonga/groonga/expr.h +1 -2
- data/vendor/local/include/groonga/groonga/groonga.h +18 -5
- data/vendor/local/include/groonga/groonga/obj.h +1 -0
- data/vendor/local/include/groonga/groonga/plugin.h +9 -0
- data/vendor/local/include/groonga/groonga/portability.h +8 -0
- data/vendor/local/include/groonga/groonga/request_canceler.h +1 -0
- data/vendor/local/include/groonga/groonga/request_timer.h +53 -0
- data/vendor/local/include/groonga/groonga/type.h +9 -0
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/lib/groonga/plugins/expression_rewriters/optimizer.rb +131 -22
- data/vendor/local/lib/groonga/plugins/functions/string.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/string.dll.a +0 -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.rb +36 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +8 -0
- data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +43 -8
- 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 +14 -0
- data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +4 -0
- data/vendor/local/lib/groonga/scripts/ruby/eval_context.rb +5 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +11 -25
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/binary_operation.rb +67 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/constant.rb +22 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +50 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/logical_operation.rb +33 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/variable.rb +18 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree.rb +5 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +92 -0
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +35 -6
- 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/contribution/development/release.txt +10 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/i18n.txt +19 -13
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/introduction.txt +9 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +4 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +17 -51
- 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 +13 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +9 -7
- 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 +5 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +4 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +224 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/alias.txt +8 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/columns/vector.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +78 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/return_code.txt +6 -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/column_copy.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_delete.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_get.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/config_set.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/database_unmap.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/io_flush.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +2 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_parameters.txt +1 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +2 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +4 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_shard_list.txt +1 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +383 -24
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_exist.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_remove.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/schema.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/shutdown.txt +84 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +11 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +41 -15
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +73 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +10 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/thread_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +349 -91
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +49 -21
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/prefix_rk_search.txt +6 -6
- 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/grn_expr/script_syntax.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_at_most.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_idf.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/sharding.txt +0 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/suggest/completion.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/types.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +9 -0
- data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/client.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/community.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +9 -12
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +31 -26
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +40 -37
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +15 -10
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/contribution.html +17 -18
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/development.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/genindex.html +21 -9
- data/vendor/local/share/doc/groonga/en/html/index.html +74 -77
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +14 -18
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +28 -72
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +11 -14
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +19 -13
- data/vendor/local/share/doc/groonga/en/html/install/others.html +25 -26
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +18 -21
- data/vendor/local/share/doc/groonga/en/html/install.html +8 -12
- data/vendor/local/share/doc/groonga/en/html/limitations.html +10 -12
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +9 -12
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +24 -27
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +25 -28
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +36 -39
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +27 -30
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +81 -84
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/news.html +510 -303
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/alias.html +20 -23
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +17 -20
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +11 -14
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +19 -22
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +13 -16
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +208 -0
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +32 -29
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +66 -68
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +33 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +26 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +30 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +50 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +27 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +36 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +26 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +35 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +43 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +43 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +45 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +34 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +29 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +26 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +38 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +57 -60
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +32 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +38 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +29 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +39 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +30 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +30 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +32 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +46 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +37 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +59 -66
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +155 -162
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +37 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +465 -67
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +43 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +29 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +34 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +119 -122
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +39 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +29 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +28 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +26 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +27 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +31 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +30 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +40 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +31 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +32 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +93 -96
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +184 -187
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +114 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +46 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +42 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +101 -79
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +26 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +126 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +33 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +54 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +38 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +50 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +29 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +28 -31
- data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +16 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +19 -22
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +421 -121
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +67 -39
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +11 -14
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +21 -24
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +23 -26
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +11 -14
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +17 -20
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +26 -29
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +18 -21
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +21 -24
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +13 -16
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +11 -14
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +19 -26
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +9 -12
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +34 -37
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +9 -12
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +15 -18
- data/vendor/local/share/doc/groonga/en/html/reference.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +34 -37
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/server/http.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/server/package.html +13 -16
- data/vendor/local/share/doc/groonga/en/html/server.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +9 -12
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/spec.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +8 -11
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +18 -21
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +29 -32
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +12 -15
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +6 -9
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +7 -10
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +10 -13
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +10 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/i18n.txt +19 -13
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/introduction.txt +9 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +4 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +17 -51
- 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 +13 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +9 -7
- 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 +5 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +4 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +224 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/alias.txt +8 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/columns/vector.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +78 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/return_code.txt +6 -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/column_copy.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_delete.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_get.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/config_set.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/database_unmap.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/io_flush.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +2 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_parameters.txt +1 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +2 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +4 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_shard_list.txt +1 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +383 -24
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_exist.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_remove.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/schema.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/shutdown.txt +84 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +11 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +41 -15
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +73 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +10 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/thread_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +349 -91
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +49 -21
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/prefix_rk_search.txt +6 -6
- 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/grn_expr/script_syntax.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_at_most.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_idf.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/sharding.txt +0 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/suggest/completion.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/types.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +9 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/client.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/community.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +31 -26
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +41 -37
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +27 -32
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +11 -14
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +20 -21
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/development.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +21 -9
- data/vendor/local/share/doc/groonga/ja/html/index.html +76 -79
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +14 -18
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +25 -67
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +11 -14
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +19 -13
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +21 -24
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +18 -21
- data/vendor/local/share/doc/groonga/ja/html/install.html +8 -12
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +24 -27
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +25 -28
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +35 -38
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +27 -30
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +71 -74
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/news.html +479 -282
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +17 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +20 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +18 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +21 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +15 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +14 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +17 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +13 -16
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +193 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +32 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +66 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +33 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +26 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +30 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +48 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +27 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +36 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +26 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +35 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +42 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +42 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +44 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +32 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +26 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +38 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +55 -58
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +31 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +38 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +38 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +30 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +30 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +32 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +46 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +36 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +59 -66
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +137 -144
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +36 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +419 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +43 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +33 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +117 -120
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +38 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +28 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +26 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +27 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +31 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +30 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +39 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +31 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +32 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +91 -94
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +172 -175
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +104 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +44 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +42 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +95 -79
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +26 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +116 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +33 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +54 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +35 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +50 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +28 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +14 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +11 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +17 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +397 -127
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +97 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +19 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +22 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +11 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +17 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +24 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +11 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +16 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +13 -16
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +11 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +16 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +26 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +14 -17
- data/vendor/local/share/doc/groonga/ja/html/reference.html +69 -71
- data/vendor/local/share/doc/groonga/ja/html/search.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +28 -31
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +13 -16
- data/vendor/local/share/doc/groonga/ja/html/server.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +9 -12
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/spec.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +8 -11
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +18 -21
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +29 -32
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +12 -15
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +6 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +7 -10
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +10 -13
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +6 -9
- metadata +72 -76
- 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/eval.la +0 -41
- 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/ruby/load.la +0 -41
- data/vendor/local/share/man/ja/man1/groonga.1 +0 -52774
- data/vendor/local/share/man/man1/groonga.1 +0 -55612
@@ -9,20 +9,23 @@ module Groonga
|
|
9
9
|
"min_border",
|
10
10
|
"max",
|
11
11
|
"max_border",
|
12
|
+
"dependent",
|
12
13
|
])
|
13
14
|
|
14
15
|
def run_body(input)
|
16
|
+
@dependent = (input[:dependent] == "yes")
|
17
|
+
|
15
18
|
enumerator = LogicalEnumerator.new("logical_table_remove", input)
|
16
19
|
|
17
|
-
|
20
|
+
success = true
|
18
21
|
enumerator.each do |shard, shard_range|
|
19
|
-
|
22
|
+
remove_shard(shard, shard_range, enumerator.target_range)
|
20
23
|
end
|
21
|
-
writer.write(
|
24
|
+
writer.write(success)
|
22
25
|
end
|
23
26
|
|
24
27
|
private
|
25
|
-
def
|
28
|
+
def remove_shard(shard, shard_range, target_range)
|
26
29
|
cover_type = target_range.cover_type(shard_range)
|
27
30
|
return if cover_type == :none
|
28
31
|
|
@@ -40,22 +43,54 @@ module Groonga
|
|
40
43
|
|
41
44
|
case cover_type
|
42
45
|
when :all
|
43
|
-
|
46
|
+
remove_table(shard)
|
44
47
|
when :partial_min
|
45
48
|
remove_records(table) do |expression|
|
46
49
|
expression_builder.build_partial_min(expression)
|
47
50
|
end
|
48
|
-
|
51
|
+
remove_table(shard) if table.empty?
|
49
52
|
when :partial_max
|
50
53
|
remove_records(table) do |expression|
|
51
54
|
expression_builder.build_partial_max(expression)
|
52
55
|
end
|
53
|
-
|
56
|
+
remove_table(shard) if table.empty?
|
54
57
|
when :partial_min_and_max
|
55
58
|
remove_records(table) do |expression|
|
56
59
|
expression_builder.build_partial_min_and_max(expression)
|
57
60
|
end
|
58
|
-
|
61
|
+
remove_table(shard) if table.empty?
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def remove_table(shard)
|
66
|
+
table = shard.table
|
67
|
+
shard_suffix = shard.range_data.to_suffix
|
68
|
+
|
69
|
+
referenced_table_ids = []
|
70
|
+
if @dependent
|
71
|
+
table.columns.each do |column|
|
72
|
+
range = column.range
|
73
|
+
if range.is_a?(Table)
|
74
|
+
referenced_table_ids << range.id
|
75
|
+
range.indexes.each do |index_info|
|
76
|
+
referenced_table_ids << index_info.index.domain.id
|
77
|
+
end
|
78
|
+
end
|
79
|
+
column.indexes.each do |index_info|
|
80
|
+
referenced_table_ids << index_info.index.domain.id
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
84
|
+
|
85
|
+
table.remove(:dependent => @dependent)
|
86
|
+
|
87
|
+
context = Groonga::Context.instance
|
88
|
+
referenced_table_ids.each do |referenced_table_id|
|
89
|
+
referenced_table = context[referenced_table_id]
|
90
|
+
next if referenced_table.nil?
|
91
|
+
if referenced_table.name.end_with?(shard_suffix)
|
92
|
+
referenced_table.remove(:dependent => @dependent)
|
93
|
+
end
|
59
94
|
end
|
60
95
|
end
|
61
96
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -161,6 +161,7 @@ module Groonga
|
|
161
161
|
context = Context.instance
|
162
162
|
cursor.each do |id|
|
163
163
|
next if ID.builtin?(id)
|
164
|
+
next if builtin_object_name?(cursor.key)
|
164
165
|
next if context[id]
|
165
166
|
failed_to_open(cursor.key)
|
166
167
|
end
|
@@ -208,6 +209,8 @@ module Groonga
|
|
208
209
|
end
|
209
210
|
|
210
211
|
def check_object_recursive(target)
|
212
|
+
return if @checked.key?(target.id)
|
213
|
+
|
211
214
|
check_object(target)
|
212
215
|
case target
|
213
216
|
when Table
|
@@ -285,6 +288,17 @@ module Groonga
|
|
285
288
|
TableCursor.open(@database, :flags => flags, &block)
|
286
289
|
end
|
287
290
|
|
291
|
+
def builtin_object_name?(name)
|
292
|
+
case name
|
293
|
+
when "inspect"
|
294
|
+
# Just for compatibility. It's needed for users who used
|
295
|
+
# Groonga master at between 2016-02-03 and 2016-02-26.
|
296
|
+
true
|
297
|
+
else
|
298
|
+
false
|
299
|
+
end
|
300
|
+
end
|
301
|
+
|
288
302
|
def failed(message)
|
289
303
|
@on_failure.call(message)
|
290
304
|
end
|
@@ -182,6 +182,10 @@ module Groonga
|
|
182
182
|
register(:command_error, -74, CommandError)
|
183
183
|
PLUGIN_ERROR =
|
184
184
|
register(:plugin_error, -75, PluginError)
|
185
|
+
SCORER_ERROR =
|
186
|
+
register(:scorer_error, -76, ScorerError)
|
187
|
+
CANCEL =
|
188
|
+
register(:cancel, -77, Cancel)
|
185
189
|
|
186
190
|
GroongaError.rc = UNKNOWN_ERROR
|
187
191
|
end
|
@@ -74,10 +74,7 @@ module Groonga
|
|
74
74
|
Operator::GREATER_EQUAL
|
75
75
|
size = estimate_range(data, index_column)
|
76
76
|
when Operator::CALL
|
77
|
-
|
78
|
-
if procedure.is_a?(Procedure) and procedure.name == "between"
|
79
|
-
size = estimate_between(data, index_column)
|
80
|
-
end
|
77
|
+
size = estimate_call(data, index_column)
|
81
78
|
end
|
82
79
|
size || @table_size
|
83
80
|
end
|
@@ -137,28 +134,17 @@ module Groonga
|
|
137
134
|
end
|
138
135
|
end
|
139
136
|
|
140
|
-
def
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
if min_border == "include"
|
149
|
-
options[:flags] |= TableCursorFlags::LT
|
150
|
-
else
|
151
|
-
options[:flags] |= TableCursorFlags::LE
|
152
|
-
end
|
153
|
-
if max_border == "include"
|
154
|
-
options[:flags] |= TableCursorFlags::GT
|
155
|
-
else
|
156
|
-
options[:flags] |= TableCursorFlags::GE
|
157
|
-
end
|
158
|
-
|
159
|
-
TableCursor.open(lexicon, options) do |cursor|
|
160
|
-
index_column.estimate_size(:lexicon_cursor => cursor)
|
137
|
+
def estimate_call(data, index_column)
|
138
|
+
procedure = data.args[0]
|
139
|
+
arguments = data.args[1..-1].collect do |arg|
|
140
|
+
if arg.is_a?(::Groonga::Object)
|
141
|
+
ExpressionTree::Variable.new(arg)
|
142
|
+
else
|
143
|
+
ExpressionTree::Constant.new(arg)
|
144
|
+
end
|
161
145
|
end
|
146
|
+
node = ExpressionTree::FunctionCall.new(procedure, arguments)
|
147
|
+
node.estimate_size(@table)
|
162
148
|
end
|
163
149
|
end
|
164
150
|
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
module Groonga
|
2
|
+
module ExpressionTree
|
3
|
+
class BinaryOperation
|
4
|
+
attr_reader :operator
|
5
|
+
attr_reader :left
|
6
|
+
attr_reader :right
|
7
|
+
def initialize(operator, left, right)
|
8
|
+
@operator = operator
|
9
|
+
@left = left
|
10
|
+
@right = right
|
11
|
+
end
|
12
|
+
|
13
|
+
def build(expression)
|
14
|
+
@left.build(expression)
|
15
|
+
@right.build(expression)
|
16
|
+
expression.append_operator(@operator, 2)
|
17
|
+
end
|
18
|
+
|
19
|
+
RANGE_OPERATORS = [
|
20
|
+
Operator::LESS,
|
21
|
+
Operator::GREATER,
|
22
|
+
Operator::LESS_EQUAL,
|
23
|
+
Operator::GREATER_EQUAL,
|
24
|
+
]
|
25
|
+
def estimate_size(table)
|
26
|
+
case @operator
|
27
|
+
when *RANGE_OPERATORS
|
28
|
+
estimate_size_range(table)
|
29
|
+
else
|
30
|
+
table.size
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
private
|
35
|
+
def estimate_size_range(table)
|
36
|
+
return table.size unless @left.is_a?(Variable)
|
37
|
+
return table.size unless @right.is_a?(Constant)
|
38
|
+
|
39
|
+
column = @left.column
|
40
|
+
value = @right.value
|
41
|
+
index_info = column.find_index(@operator)
|
42
|
+
return table.size if index_info.nil?
|
43
|
+
|
44
|
+
index_column = index_info.index
|
45
|
+
lexicon = index_column.lexicon
|
46
|
+
options = {}
|
47
|
+
case @operator
|
48
|
+
when Operator::LESS
|
49
|
+
options[:max] = value
|
50
|
+
options[:flags] = TableCursorFlags::LT
|
51
|
+
when Operator::LESS_EQUAL
|
52
|
+
options[:max] = value
|
53
|
+
options[:flags] = TableCursorFlags::LE
|
54
|
+
when Operator::GREATER
|
55
|
+
options[:min] = value
|
56
|
+
options[:flags] = TableCursorFlags::GT
|
57
|
+
when Operator::GREATER_EQUAL
|
58
|
+
options[:min] = value
|
59
|
+
options[:flags] = TableCursorFlags::GE
|
60
|
+
end
|
61
|
+
TableCursor.open(lexicon, options) do |cursor|
|
62
|
+
index_column.estimate_size(:lexicon_cursor => cursor)
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Groonga
|
2
|
+
module ExpressionTree
|
3
|
+
class Constant
|
4
|
+
attr_reader :value
|
5
|
+
def initialize(value)
|
6
|
+
@value = value
|
7
|
+
end
|
8
|
+
|
9
|
+
def build(expression)
|
10
|
+
expression.append_constant(@value, Operator::PUSH, 1)
|
11
|
+
end
|
12
|
+
|
13
|
+
def estimate_size(table)
|
14
|
+
if Bulk.true?(@value)
|
15
|
+
table.size
|
16
|
+
else
|
17
|
+
0
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Groonga
|
2
|
+
module ExpressionTree
|
3
|
+
class FunctionCall
|
4
|
+
attr_reader :procedure
|
5
|
+
attr_reader :arguments
|
6
|
+
def initialize(procedure, arguments)
|
7
|
+
@procedure = procedure
|
8
|
+
@arguments = arguments
|
9
|
+
end
|
10
|
+
|
11
|
+
def build(expression)
|
12
|
+
expression.append_object(@procedure, Operator::PUSH, 1)
|
13
|
+
@arguments.each do |argument|
|
14
|
+
argument.build(expression)
|
15
|
+
end
|
16
|
+
expression.append_operator(Operator::CALL, @arguments.size)
|
17
|
+
end
|
18
|
+
|
19
|
+
def estimate_size(table)
|
20
|
+
return table.size unless @procedure.name == "between"
|
21
|
+
|
22
|
+
column, min, min_border, max, max_border = @arguments
|
23
|
+
index_info = column.column.find_index(Operator::CALL)
|
24
|
+
return table.size if index_info.nil?
|
25
|
+
|
26
|
+
index_column = index_info.index
|
27
|
+
lexicon = index_column.lexicon
|
28
|
+
options = {
|
29
|
+
:min => min.value,
|
30
|
+
:max => max.value,
|
31
|
+
:flags => 0,
|
32
|
+
}
|
33
|
+
if min_border.value == "include"
|
34
|
+
options[:flags] |= TableCursorFlags::LT
|
35
|
+
else
|
36
|
+
options[:flags] |= TableCursorFlags::LE
|
37
|
+
end
|
38
|
+
if max_border.value == "include"
|
39
|
+
options[:flags] |= TableCursorFlags::GT
|
40
|
+
else
|
41
|
+
options[:flags] |= TableCursorFlags::GE
|
42
|
+
end
|
43
|
+
|
44
|
+
TableCursor.open(lexicon, options) do |cursor|
|
45
|
+
index_column.estimate_size(:lexicon_cursor => cursor)
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Groonga
|
2
|
+
module ExpressionTree
|
3
|
+
class LogicalOperation
|
4
|
+
attr_reader :operator
|
5
|
+
attr_reader :nodes
|
6
|
+
def initialize(operator, nodes)
|
7
|
+
@operator = operator
|
8
|
+
@nodes = nodes
|
9
|
+
end
|
10
|
+
|
11
|
+
def build(expression)
|
12
|
+
@nodes.each_with_index do |node, i|
|
13
|
+
node.build(expression)
|
14
|
+
expression.append_operator(@operator, 2) if i > 0
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def estimate_size(table)
|
19
|
+
estimated_sizes = @nodes.collect do |node|
|
20
|
+
node.estimate_size(table)
|
21
|
+
end
|
22
|
+
case @operator
|
23
|
+
when Operator::AND
|
24
|
+
estimated_sizes.min
|
25
|
+
when Operator::OR
|
26
|
+
estimated_sizes.max
|
27
|
+
else
|
28
|
+
estimated_sizes.first
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Groonga
|
2
|
+
module ExpressionTree
|
3
|
+
class Variable
|
4
|
+
attr_reader :column
|
5
|
+
def initialize(column)
|
6
|
+
@column = column
|
7
|
+
end
|
8
|
+
|
9
|
+
def build(expression)
|
10
|
+
expression.append_object(@column, Operator::GET_VALUE, 1)
|
11
|
+
end
|
12
|
+
|
13
|
+
def estimate_size(table)
|
14
|
+
table.size
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,92 @@
|
|
1
|
+
require "expression_tree"
|
2
|
+
|
3
|
+
module Groonga
|
4
|
+
class ExpressionTreeBuilder
|
5
|
+
RELATION_OPERATORS = [
|
6
|
+
Operator::MATCH,
|
7
|
+
Operator::NEAR,
|
8
|
+
Operator::NEAR2,
|
9
|
+
Operator::SIMILAR,
|
10
|
+
Operator::PREFIX,
|
11
|
+
Operator::SUFFIX,
|
12
|
+
Operator::EQUAL,
|
13
|
+
Operator::NOT_EQUAL,
|
14
|
+
Operator::LESS,
|
15
|
+
Operator::GREATER,
|
16
|
+
Operator::LESS_EQUAL,
|
17
|
+
Operator::GREATER_EQUAL,
|
18
|
+
Operator::GEO_WITHINP5,
|
19
|
+
Operator::GEO_WITHINP6,
|
20
|
+
Operator::GEO_WITHINP8,
|
21
|
+
Operator::TERM_EXTRACT,
|
22
|
+
Operator::REGEXP,
|
23
|
+
Operator::FUZZY,
|
24
|
+
]
|
25
|
+
|
26
|
+
ARITHMETIC_OPERATORS = [
|
27
|
+
Operator::BITWISE_OR,
|
28
|
+
Operator::BITWISE_XOR,
|
29
|
+
Operator::BITWISE_AND,
|
30
|
+
Operator::BITWISE_NOT,
|
31
|
+
Operator::SHIFTL,
|
32
|
+
Operator::SHIFTR,
|
33
|
+
Operator::SHIFTRR,
|
34
|
+
Operator::PLUS,
|
35
|
+
Operator::MINUS,
|
36
|
+
Operator::STAR,
|
37
|
+
Operator::MOD,
|
38
|
+
]
|
39
|
+
|
40
|
+
LOGICAL_OPERATORS = [
|
41
|
+
Operator::AND,
|
42
|
+
Operator::OR,
|
43
|
+
Operator::AND_NOT,
|
44
|
+
Operator::ADJUST,
|
45
|
+
]
|
46
|
+
|
47
|
+
def initialize(expression)
|
48
|
+
@expression = expression
|
49
|
+
end
|
50
|
+
|
51
|
+
def build
|
52
|
+
stack = []
|
53
|
+
codes = @expression.codes
|
54
|
+
codes.each do |code|
|
55
|
+
case code.op
|
56
|
+
when *LOGICAL_OPERATORS
|
57
|
+
right = stack.pop
|
58
|
+
left = stack.pop
|
59
|
+
nodes = []
|
60
|
+
add_logical_operation_node(code.op, nodes, left)
|
61
|
+
add_logical_operation_node(code.op, nodes, right)
|
62
|
+
node = ExpressionTree::LogicalOperation.new(code.op, nodes)
|
63
|
+
stack.push(node)
|
64
|
+
when *RELATION_OPERATORS, *ARITHMETIC_OPERATORS
|
65
|
+
right = stack.pop
|
66
|
+
left = stack.pop
|
67
|
+
node = ExpressionTree::BinaryOperation.new(code.op, left, right)
|
68
|
+
stack.push(node)
|
69
|
+
when Operator::GET_VALUE
|
70
|
+
node = ExpressionTree::Variable.new(code.value)
|
71
|
+
stack.push(node)
|
72
|
+
when Operator::PUSH
|
73
|
+
node = ExpressionTree::Constant.new(code.value.value)
|
74
|
+
stack.push(node)
|
75
|
+
else
|
76
|
+
raise "unknown operator: #{code.inspect}"
|
77
|
+
end
|
78
|
+
end
|
79
|
+
stack.pop
|
80
|
+
end
|
81
|
+
|
82
|
+
private
|
83
|
+
def add_logical_operation_node(operator, nodes, node)
|
84
|
+
if node.is_a?(ExpressionTree::LogicalOperation) and
|
85
|
+
node.operator == operator
|
86
|
+
nodes.concat(node.nodes)
|
87
|
+
else
|
88
|
+
nodes << node
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
@@ -76,6 +76,12 @@ module Groonga
|
|
76
76
|
@data_list << data
|
77
77
|
data = nil
|
78
78
|
when *LOGICAL_OPERATORS
|
79
|
+
if status == Status::CONST
|
80
|
+
data.op = Operator::PUSH
|
81
|
+
data.end = data.start
|
82
|
+
@data_list << data
|
83
|
+
data = nil
|
84
|
+
end
|
79
85
|
put_logical_op(code.op, i)
|
80
86
|
# TODO: rescue and return nil
|
81
87
|
status = Status::START
|
@@ -90,6 +96,14 @@ module Groonga
|
|
90
96
|
end
|
91
97
|
status = Status::CONST
|
92
98
|
end
|
99
|
+
if code.modify > 0 and
|
100
|
+
LOGICAL_OPERATORS.include?(codes[i + code.modify].op)
|
101
|
+
data.op = Operator::PUSH
|
102
|
+
data.end = data.start
|
103
|
+
@data_list << data
|
104
|
+
data = nil
|
105
|
+
status = Status::START
|
106
|
+
end
|
93
107
|
when Operator::GET_VALUE
|
94
108
|
case status
|
95
109
|
when Status::START
|
@@ -169,14 +183,29 @@ module Groonga
|
|
169
183
|
status = Status::START
|
170
184
|
return false if n_relation_expressions != (n_logical_expressions + 1)
|
171
185
|
when *LOGICAL_OPERATORS
|
172
|
-
|
173
|
-
|
174
|
-
|
186
|
+
case status
|
187
|
+
when Status::START
|
188
|
+
n_logical_expressions += 1
|
189
|
+
return false if n_logical_expressions >= n_relation_expressions
|
190
|
+
when Status::CONST
|
191
|
+
n_logical_expressions += 1
|
192
|
+
n_relation_expressions += 1
|
193
|
+
return false if n_logical_expressions >= n_relation_expressions
|
194
|
+
status = Status::START
|
195
|
+
else
|
196
|
+
return false
|
197
|
+
end
|
175
198
|
when Operator::PUSH
|
176
|
-
if code.
|
177
|
-
|
199
|
+
if code.modify > 0 and
|
200
|
+
LOGICAL_OPERATORS.include?(codes[i + code.modify].op)
|
201
|
+
n_relation_expressions += 1
|
202
|
+
status = Status::START
|
178
203
|
else
|
179
|
-
|
204
|
+
if code.value == variable
|
205
|
+
status = Status::VAR
|
206
|
+
else
|
207
|
+
status = Status::CONST
|
208
|
+
end
|
180
209
|
end
|
181
210
|
when Operator::GET_VALUE
|
182
211
|
case status
|
Binary file
|
Binary file
|
data/vendor/local/lib/liblz4.a
CHANGED
Binary file
|
data/vendor/local/lib/liblz4.dll
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/lib/libmecab.a
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/lib/libonig.a
CHANGED
Binary file
|
Binary file
|
data/vendor/local/lib/libz.a
CHANGED
Binary file
|
data/vendor/local/lib/libz.dll.a
CHANGED
Binary file
|
@@ -11,10 +11,10 @@ pluginsdir=${libdir}/groonga/plugins
|
|
11
11
|
groonga=${bindir}/groonga.exe
|
12
12
|
groonga_httpd=${sbindir}/groonga-httpd.exe
|
13
13
|
groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
|
14
|
-
groonga_version=6.0.
|
14
|
+
groonga_version=6.0.2
|
15
15
|
|
16
16
|
Name: Groonga
|
17
17
|
Description: An Embeddable Fulltext Search Engine
|
18
|
-
Version: 6.0.
|
18
|
+
Version: 6.0.2
|
19
19
|
Libs: -L${libdir} -lgroonga
|
20
20
|
Cflags: -I${includedir}/groonga
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# Sphinx build info version 1
|
2
2
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
3
|
-
config:
|
3
|
+
config: bfc9d3724004ca2676fddac668bf3138
|
4
4
|
tags: 645f666f9bcd5a90fca523b33c5a78b7
|