rroonga 6.1.3-x86-mingw32 → 7.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/Rakefile +1 -0
- data/doc/text/news.md +28 -0
- data/ext/groonga/rb-grn-column.c +53 -32
- data/ext/groonga/rb-grn-context.c +1 -1
- data/ext/groonga/rb-grn-data-column.c +103 -0
- data/ext/groonga/rb-grn-default-cache.c +104 -0
- data/ext/groonga/rb-grn-index-column.c +93 -15
- data/ext/groonga/rb-grn-inverted-index-cursor.c +269 -0
- data/ext/groonga/rb-grn-object.c +1 -1
- data/ext/groonga/rb-grn-plugin.c +1 -1
- data/ext/groonga/rb-grn-table-cursor.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +6 -0
- data/ext/groonga/rb-grn-table.c +0 -3
- data/ext/groonga/rb-grn-utils.c +35 -7
- data/ext/groonga/rb-grn.h +13 -4
- data/ext/groonga/rb-groonga.c +2 -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/rroonga-build.rb +7 -7
- data/rroonga.gemspec +2 -1
- data/test/test-data-column.rb +71 -2
- data/test/test-default-cache.rb +43 -0
- data/test/test-double-array-trie.rb +7 -0
- data/test/test-fix-size-column.rb +12 -0
- data/test/test-hash.rb +7 -0
- data/test/test-index-column.rb +12 -0
- data/test/test-index-cursor.rb +93 -28
- data/test/test-patricia-trie.rb +7 -0
- data/test/test-variable-size-column.rb +19 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga-suggest-create-dataset.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/libmsgpackc.dll +0 -0
- data/vendor/local/bin/libonigmo-6.dll +0 -0
- data/vendor/local/bin/libpcre-1.dll +0 -0
- data/vendor/local/bin/libpcrecpp-0.dll +0 -0
- data/vendor/local/bin/libpcreposix-0.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-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onigmo-config +2 -2
- data/vendor/local/bin/pcre-config +1 -1
- data/vendor/local/bin/pcregrep.exe +0 -0
- data/vendor/local/bin/pcretest.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +16 -3
- data/vendor/local/include/groonga/groonga.h +2 -1
- data/vendor/local/include/groonga/groonga/cache.h +49 -0
- data/vendor/local/include/groonga/groonga/column.h +1 -1
- data/vendor/local/include/groonga/groonga/groonga.h +26 -16
- data/vendor/local/include/groonga/groonga/ii.h +7 -1
- data/vendor/local/include/groonga/groonga/obj.h +8 -1
- data/vendor/local/include/groonga/groonga/plugin.h +6 -1
- data/vendor/local/include/groonga/groonga/table.h +5 -0
- data/vendor/local/include/groonga/groonga/util.h +4 -1
- data/vendor/local/include/groonga/groonga/window_function.h +5 -1
- data/vendor/local/include/onigmo.h +6 -5
- data/vendor/local/include/zconf.h +32 -9
- data/vendor/local/include/zlib.h +298 -154
- data/vendor/local/lib/groonga/plugins/functions/number.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/number.la +2 -2
- 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/string.la +2 -2
- data/vendor/local/lib/groonga/plugins/functions/time.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/functions/time.la +2 -2
- 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/functions/vector.la +2 -2
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.a +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/normalizers/mysql.la +2 -2
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +392 -53
- data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +1 -2
- data/vendor/local/lib/groonga/plugins/sharding/range_expression_builder.rb +37 -14
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/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/token_filters/stop_word.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/command.rb +0 -1
- data/vendor/local/lib/groonga/scripts/ruby/command_input.rb +15 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression.rb +1 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +2 -136
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree/function_call.rb +12 -1
- data/vendor/local/lib/groonga/scripts/ruby/expression_tree_builder.rb +1 -1
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +7 -8
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +234 -80
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data_size_estimator.rb +185 -0
- data/vendor/local/lib/groonga/scripts/ruby/table.rb +27 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- 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/libmecab.la +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libonigmo.a +0 -0
- data/vendor/local/lib/libonigmo.dll.a +0 -0
- data/vendor/local/lib/libonigmo.la +3 -3
- data/vendor/local/lib/libpcre.a +0 -0
- data/vendor/local/lib/libpcre.dll.a +0 -0
- data/vendor/local/lib/libpcre.la +2 -2
- data/vendor/local/lib/libpcrecpp.a +0 -0
- data/vendor/local/lib/libpcrecpp.dll.a +0 -0
- data/vendor/local/lib/libpcrecpp.la +2 -2
- data/vendor/local/lib/libpcreposix.a +0 -0
- data/vendor/local/lib/libpcreposix.dll.a +0 -0
- data/vendor/local/lib/libpcreposix.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/libpcre.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpcrecpp.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpcreposix.pc +1 -1
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- data/vendor/local/lib/pkgconfig/onigmo.pc +7 -7
- data/vendor/local/lib/pkgconfig/zlib.pc +4 -4
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +11 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +13 -47
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +6 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
- 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 +3 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +181 -891
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/2.x.txt +11 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/news/5.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news/6.x.txt +1086 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_timeout.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +45 -19
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +632 -91
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_inspect.txt +514 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +902 -55
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grnslap.txt +5 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +71 -23
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +51 -25
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_records.txt +195 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +100 -15
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/string_length.txt +33 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/vector_new.txt +38 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/log.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_function.txt +22 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/record_number.txt +28 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/window_functions/window_record_number.txt +25 -0
- data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions/record_number.txt → en/html/_sources/reference/window_functions/window_sum.txt} +5 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +3 -3
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.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/development/build.html +5 -5
- 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/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 +102 -93
- 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/documentation.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/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development.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/genindex.html +326 -251
- data/vendor/local/share/doc/groonga/en/html/index.html +111 -104
- data/vendor/local/share/doc/groonga/en/html/install.html +8 -9
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +24 -65
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +12 -11
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +9 -9
- 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 +8 -9
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +213 -898
- 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 +7 -6
- 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 +16 -14
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/5.x.html +7 -7
- data/vendor/local/share/doc/groonga/en/html/news/6.x.html +1148 -0
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +90 -82
- data/vendor/local/share/doc/groonga/en/html/reference/alias.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +39 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +22 -22
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +22 -22
- 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.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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/pretty_print.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_timeout.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_get.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/config_set.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_acquire.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_release.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +61 -17
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +1727 -408
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_inspect.html +526 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/object_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/query_expand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/reindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/schema.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +1685 -492
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_copy.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/configuration.html +19 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- 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 +14 -14
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +75 -34
- 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 +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +107 -82
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/fuzzy_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_records.html +355 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/reference/functions/number_classify.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/prefix_rk_search.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +155 -55
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/reference/functions/{record_number.html → string_length.html} +36 -31
- data/vendor/local/share/doc/groonga/en/html/reference/functions/string_substring.html +24 -24
- 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/time_classify_day.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_hour.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_minute.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_month.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_second.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_week.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/time_classify_year.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_new.html +170 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_slice.html +24 -24
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +36 -26
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +27 -15
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -21
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +29 -29
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +20 -20
- data/vendor/local/share/doc/groonga/en/html/reference/operations/prefix_rk_search.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/output.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/query_expanders/tsv.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 +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +28 -28
- 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 +35 -35
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/window_function.html +147 -0
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/record_number.html +164 -0
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_record_number.html +163 -0
- data/vendor/local/share/doc/groonga/en/html/reference/window_functions/window_sum.html +163 -0
- 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.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.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/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/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/spec.html +9 -9
- 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/troubleshooting.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/tutorial.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 +8 -8
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +11 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +13 -47
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +6 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
- 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 +3 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +181 -891
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/2.x.txt +11 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/5.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/6.x.txt +1086 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_timeout.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +45 -19
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +632 -91
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_inspect.txt +514 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +902 -55
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grnslap.txt +5 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-benchmark.txt +11 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +71 -23
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +8 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +51 -25
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_records.txt +195 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +100 -15
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/string_length.txt +33 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/vector_new.txt +38 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +35 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +24 -10
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/log.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_function.txt +22 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/record_number.txt +28 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/window_functions/window_record_number.txt +25 -0
- data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions/record_number.txt → ja/html/_sources/reference/window_functions/window_sum.txt} +5 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +3 -3
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.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/development/build.html +5 -5
- 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/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 +102 -93
- 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/documentation.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/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.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/genindex.html +186 -118
- data/vendor/local/share/doc/groonga/ja/html/index.html +111 -104
- data/vendor/local/share/doc/groonga/ja/html/install.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +24 -61
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +12 -11
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +9 -9
- 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 +9 -9
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news.html +132 -761
- 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 +6 -6
- 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 +10 -10
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/5.x.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/news/6.x.html +1064 -0
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +90 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/alias.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +39 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +22 -22
- 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.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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/pretty_print.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_timeout.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_get.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/config_set.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_acquire.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_release.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +67 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +1629 -383
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_inspect.html +508 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/query_expand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/reindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/schema.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +1606 -478
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_copy.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/configuration.html +19 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- 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 +14 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +76 -48
- 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 +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +103 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/fuzzy_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_records.html +370 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/number_classify.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/prefix_rk_search.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +150 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/{record_number.html → string_length.html} +36 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/string_substring.html +24 -24
- 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/time_classify_day.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_hour.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_minute.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_month.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_second.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_week.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/time_classify_year.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_new.html +171 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_slice.html +24 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +36 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +19 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +20 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/prefix_rk_search.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/output.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/query_expanders/tsv.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 +6 -6
- 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 +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +28 -28
- 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 +35 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/window_function.html +146 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/record_number.html +165 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_record_number.html +164 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/window_functions/window_sum.html +164 -0
- 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.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.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/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/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/spec.html +9 -9
- 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/troubleshooting.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/tutorial.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 +8 -8
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/groonga/mruby/LEGAL +4 -0
- data/vendor/local/share/license/mruby/AUTHORS +1 -0
- data/vendor/local/share/license/mruby/MITL +1 -1
- data/vendor/local/share/license/zlib/README +3 -3
- metadata +100 -67
- data/lib/2.4/groonga.so +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +0 -105
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
2
|
/*
|
3
|
-
Copyright (C) 2009-
|
3
|
+
Copyright (C) 2009-2017 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
Copyright (C) 2016 Masafumi Yokoyama <yokoyama@clear-code.com>
|
5
5
|
|
6
6
|
This library is free software; you can redistribute it and/or
|
@@ -54,11 +54,18 @@ void
|
|
54
54
|
rb_grn_index_column_bind (RbGrnIndexColumn *rb_grn_index_column,
|
55
55
|
grn_ctx *context, grn_obj *column)
|
56
56
|
{
|
57
|
+
RbGrnColumn *rb_grn_column;
|
57
58
|
RbGrnObject *rb_grn_object;
|
58
59
|
|
59
|
-
|
60
|
-
|
60
|
+
rb_grn_column = RB_GRN_COLUMN(rb_grn_index_column);
|
61
|
+
rb_grn_column_bind(rb_grn_column, context, column);
|
62
|
+
|
63
|
+
grn_obj_reinit(context,
|
64
|
+
rb_grn_column->value,
|
65
|
+
GRN_DB_UINT32,
|
66
|
+
0);
|
61
67
|
|
68
|
+
rb_grn_object = RB_GRN_OBJECT(rb_grn_index_column);
|
62
69
|
rb_grn_index_column->old_value = grn_obj_open(context, GRN_BULK, 0,
|
63
70
|
rb_grn_object->range_id);
|
64
71
|
rb_grn_index_column->set_value =
|
@@ -191,6 +198,38 @@ rb_grn_index_column_inspect (VALUE self)
|
|
191
198
|
return inspected;
|
192
199
|
}
|
193
200
|
|
201
|
+
static VALUE
|
202
|
+
rb_grn_index_column_array_reference (VALUE self, VALUE rb_token)
|
203
|
+
{
|
204
|
+
grn_ctx *context = NULL;
|
205
|
+
grn_obj *column;
|
206
|
+
grn_obj *domain;
|
207
|
+
grn_id token_id;
|
208
|
+
grn_obj *value;
|
209
|
+
VALUE rb_value;
|
210
|
+
|
211
|
+
rb_grn_index_column_deconstruct(SELF(self),
|
212
|
+
&column,
|
213
|
+
&context,
|
214
|
+
NULL,
|
215
|
+
&domain,
|
216
|
+
&value,
|
217
|
+
NULL,
|
218
|
+
NULL,
|
219
|
+
NULL,
|
220
|
+
NULL,
|
221
|
+
NULL,
|
222
|
+
NULL);
|
223
|
+
|
224
|
+
token_id = RVAL2GRNID(rb_token, context, domain, self);
|
225
|
+
GRN_BULK_REWIND(value);
|
226
|
+
grn_obj_get_value(context, column, token_id, value);
|
227
|
+
rb_grn_context_check(context, self);
|
228
|
+
rb_value = GRNVALUE2RVAL(context, value, NULL, self);
|
229
|
+
|
230
|
+
return rb_value;
|
231
|
+
}
|
232
|
+
|
194
233
|
/*
|
195
234
|
* Adds a record that has @value@ content to inverted index for fast
|
196
235
|
* fulltext serach. Normally, this method is not used
|
@@ -933,6 +972,12 @@ rb_grn_index_column_medium_p (VALUE self)
|
|
933
972
|
return CBOOL2RVAL(flags & GRN_OBJ_INDEX_MEDIUM);
|
934
973
|
}
|
935
974
|
|
975
|
+
static VALUE
|
976
|
+
call_close (VALUE object)
|
977
|
+
{
|
978
|
+
return rb_funcall(object, rb_intern("close"), 0);
|
979
|
+
}
|
980
|
+
|
936
981
|
/*
|
937
982
|
* Opens cursor to iterate posting in the index column.
|
938
983
|
*
|
@@ -958,13 +1003,14 @@ rb_grn_index_column_open_cursor (int argc, VALUE *argv, VALUE self)
|
|
958
1003
|
grn_ctx *context;
|
959
1004
|
grn_obj *column;
|
960
1005
|
grn_column_flags column_flags;
|
1006
|
+
grn_obj *domain_object;
|
961
1007
|
grn_obj *range_object;
|
962
|
-
grn_table_cursor *table_cursor;
|
1008
|
+
grn_table_cursor *table_cursor = NULL;
|
1009
|
+
grn_id token_id = GRN_ID_NIL;
|
963
1010
|
grn_id rid_min = GRN_ID_NIL;
|
964
1011
|
grn_id rid_max = GRN_ID_MAX;
|
965
1012
|
int flags = 0;
|
966
|
-
|
967
|
-
VALUE rb_table_cursor;
|
1013
|
+
VALUE rb_table_cursor_or_token;
|
968
1014
|
VALUE options;
|
969
1015
|
VALUE rb_with_section, rb_with_weight, rb_with_position;
|
970
1016
|
VALUE rb_table;
|
@@ -972,21 +1018,28 @@ rb_grn_index_column_open_cursor (int argc, VALUE *argv, VALUE self)
|
|
972
1018
|
VALUE rb_cursor;
|
973
1019
|
|
974
1020
|
rb_grn_index_column_deconstruct(SELF(self), &column, &context,
|
975
|
-
NULL,
|
1021
|
+
NULL, &domain_object,
|
976
1022
|
NULL, NULL, NULL,
|
977
1023
|
NULL, &range_object,
|
978
1024
|
NULL, NULL);
|
979
1025
|
|
980
|
-
rb_scan_args(argc, argv, "11", &
|
1026
|
+
rb_scan_args(argc, argv, "11", &rb_table_cursor_or_token, &options);
|
981
1027
|
rb_grn_scan_options(options,
|
982
1028
|
"with_section", &rb_with_section,
|
983
1029
|
"with_weight", &rb_with_weight,
|
984
1030
|
"with_position", &rb_with_position,
|
985
1031
|
NULL);
|
986
1032
|
|
987
|
-
table_cursor = RVAL2GRNTABLECURSOR(rb_table_cursor, NULL);
|
988
1033
|
rb_table = GRNOBJECT2RVAL(Qnil, context, range_object, GRN_FALSE);
|
989
|
-
rb_lexicon =
|
1034
|
+
rb_lexicon = rb_funcall(self, rb_intern("table"), 0);
|
1035
|
+
if (CBOOL2RVAL(rb_obj_is_kind_of(rb_table_cursor_or_token,
|
1036
|
+
rb_cGrnTableCursor))) {
|
1037
|
+
VALUE rb_table_cursor = rb_table_cursor_or_token;
|
1038
|
+
table_cursor = RVAL2GRNTABLECURSOR(rb_table_cursor, NULL);
|
1039
|
+
} else {
|
1040
|
+
VALUE rb_token = rb_table_cursor_or_token;
|
1041
|
+
token_id = RVAL2GRNID(rb_token, context, domain_object, self);
|
1042
|
+
}
|
990
1043
|
|
991
1044
|
column_flags = grn_column_get_flags(context, column);
|
992
1045
|
|
@@ -1008,13 +1061,34 @@ rb_grn_index_column_open_cursor (int argc, VALUE *argv, VALUE self)
|
|
1008
1061
|
flags |= GRN_OBJ_WITH_POSITION;
|
1009
1062
|
}
|
1010
1063
|
|
1011
|
-
|
1012
|
-
|
1013
|
-
|
1014
|
-
|
1064
|
+
if (table_cursor) {
|
1065
|
+
grn_obj *index_cursor;
|
1066
|
+
index_cursor = grn_index_cursor_open(context, table_cursor,
|
1067
|
+
column, rid_min, rid_max, flags);
|
1068
|
+
rb_cursor = GRNINDEXCURSOR2RVAL(context,
|
1069
|
+
index_cursor,
|
1070
|
+
rb_table,
|
1071
|
+
rb_lexicon);
|
1072
|
+
} else {
|
1073
|
+
grn_ii *ii = (grn_ii *)column;
|
1074
|
+
grn_ii_cursor *ii_cursor;
|
1075
|
+
ii_cursor = grn_ii_cursor_open(context,
|
1076
|
+
ii,
|
1077
|
+
token_id,
|
1078
|
+
rid_min,
|
1079
|
+
rid_max,
|
1080
|
+
grn_ii_get_n_elements(context, ii),
|
1081
|
+
flags);
|
1082
|
+
rb_cursor = rb_grn_inverted_index_cursor_to_ruby_object(context,
|
1083
|
+
ii_cursor,
|
1084
|
+
token_id,
|
1085
|
+
flags,
|
1086
|
+
rb_table,
|
1087
|
+
rb_lexicon);
|
1088
|
+
}
|
1015
1089
|
|
1016
1090
|
if (rb_block_given_p())
|
1017
|
-
return rb_ensure(rb_yield, rb_cursor,
|
1091
|
+
return rb_ensure(rb_yield, rb_cursor, call_close, rb_cursor);
|
1018
1092
|
else
|
1019
1093
|
return rb_cursor;
|
1020
1094
|
}
|
@@ -1337,6 +1411,10 @@ rb_grn_init_index_column (VALUE mGrn)
|
|
1337
1411
|
rb_define_method(rb_cGrnIndexColumn, "inspect",
|
1338
1412
|
rb_grn_index_column_inspect, 0);
|
1339
1413
|
|
1414
|
+
rb_define_method(rb_cGrnIndexColumn, "[]",
|
1415
|
+
rb_grn_index_column_array_reference, 1);
|
1416
|
+
rb_undef_method(rb_cGrnIndexColumn, "[]=");
|
1417
|
+
|
1340
1418
|
rb_define_method(rb_cGrnIndexColumn, "add",
|
1341
1419
|
rb_grn_index_column_add, -1);
|
1342
1420
|
rb_define_method(rb_cGrnIndexColumn, "delete",
|
@@ -0,0 +1,269 @@
|
|
1
|
+
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
|
+
/*
|
3
|
+
Copyright (C) 2017 Kouhei Sutou <kou@clear-code.com>
|
4
|
+
|
5
|
+
This library is free software; you can redistribute it and/or
|
6
|
+
modify it under the terms of the GNU Lesser General Public
|
7
|
+
License version 2.1 as published by the Free Software Foundation.
|
8
|
+
|
9
|
+
This library is distributed in the hope that it will be useful,
|
10
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
Lesser General Public License for more details.
|
13
|
+
|
14
|
+
You should have received a copy of the GNU Lesser General Public
|
15
|
+
License along with this library; if not, write to the Free Software
|
16
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
17
|
+
*/
|
18
|
+
|
19
|
+
#include "rb-grn.h"
|
20
|
+
|
21
|
+
#define SELF(object) ((RbGrnInvertedIndexCursor *)DATA_PTR(object))
|
22
|
+
|
23
|
+
typedef struct _RbGrnInvertedIndexCursor RbGrnInvertedIndexCursor;
|
24
|
+
struct _RbGrnInvertedIndexCursor
|
25
|
+
{
|
26
|
+
VALUE self;
|
27
|
+
grn_ctx *context;
|
28
|
+
grn_ii_cursor *cursor;
|
29
|
+
grn_id term_id;
|
30
|
+
int flags;
|
31
|
+
};
|
32
|
+
|
33
|
+
static VALUE rb_cGrnInvertedIndexCursor;
|
34
|
+
|
35
|
+
static void
|
36
|
+
rb_grn_inverted_index_cursor_free(void *data)
|
37
|
+
{
|
38
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor = data;
|
39
|
+
|
40
|
+
if (rb_grn_cursor->context && rb_grn_cursor->cursor) {
|
41
|
+
grn_ii_cursor_close(rb_grn_cursor->context,
|
42
|
+
rb_grn_cursor->cursor);
|
43
|
+
}
|
44
|
+
xfree(rb_grn_cursor);
|
45
|
+
}
|
46
|
+
|
47
|
+
static const rb_data_type_t rb_grn_inverted_index_cursor_type = {
|
48
|
+
"Groonga::InvertedIndexCursor",
|
49
|
+
{
|
50
|
+
NULL,
|
51
|
+
rb_grn_inverted_index_cursor_free,
|
52
|
+
NULL,
|
53
|
+
},
|
54
|
+
0,
|
55
|
+
0,
|
56
|
+
RUBY_TYPED_FREE_IMMEDIATELY,
|
57
|
+
};
|
58
|
+
|
59
|
+
VALUE
|
60
|
+
rb_grn_inverted_index_cursor_to_ruby_object (grn_ctx *context,
|
61
|
+
grn_ii_cursor *cursor,
|
62
|
+
grn_id term_id,
|
63
|
+
int flags,
|
64
|
+
VALUE rb_table,
|
65
|
+
VALUE rb_lexicon)
|
66
|
+
{
|
67
|
+
VALUE rb_cursor;
|
68
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor;
|
69
|
+
|
70
|
+
rb_cursor = TypedData_Make_Struct(rb_cGrnInvertedIndexCursor,
|
71
|
+
RbGrnInvertedIndexCursor,
|
72
|
+
&rb_grn_inverted_index_cursor_type,
|
73
|
+
rb_grn_cursor);
|
74
|
+
|
75
|
+
rb_grn_cursor->self = rb_cursor;
|
76
|
+
rb_grn_cursor->context = context;
|
77
|
+
rb_grn_cursor->cursor = cursor;
|
78
|
+
rb_grn_cursor->term_id = term_id;
|
79
|
+
rb_grn_cursor->flags = flags;
|
80
|
+
rb_iv_set(rb_cursor, "@table", rb_table);
|
81
|
+
rb_iv_set(rb_cursor, "@lexicon", rb_lexicon);
|
82
|
+
|
83
|
+
if (rb_grn_cursor->cursor &&
|
84
|
+
(rb_grn_cursor->flags & GRN_OBJ_WITH_POSITION)) {
|
85
|
+
grn_ii_cursor_next(context, cursor);
|
86
|
+
}
|
87
|
+
|
88
|
+
return rb_cursor;
|
89
|
+
}
|
90
|
+
|
91
|
+
static VALUE
|
92
|
+
next_value (VALUE rb_posting,
|
93
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor,
|
94
|
+
VALUE rb_table,
|
95
|
+
VALUE rb_lexicon)
|
96
|
+
{
|
97
|
+
grn_ctx *context = rb_grn_cursor->context;
|
98
|
+
grn_ii_cursor *cursor = rb_grn_cursor->cursor;
|
99
|
+
grn_posting *posting = NULL;
|
100
|
+
|
101
|
+
if (rb_grn_cursor->flags & GRN_OBJ_WITH_POSITION) {
|
102
|
+
posting = grn_ii_cursor_next_pos(context, cursor);
|
103
|
+
while (!posting && grn_ii_cursor_next(context, cursor)) {
|
104
|
+
posting = grn_ii_cursor_next_pos(context, cursor);
|
105
|
+
break;
|
106
|
+
}
|
107
|
+
} else {
|
108
|
+
posting = grn_ii_cursor_next(context, cursor);
|
109
|
+
}
|
110
|
+
if (!posting) {
|
111
|
+
return Qnil;
|
112
|
+
}
|
113
|
+
|
114
|
+
if (NIL_P(rb_posting)) {
|
115
|
+
return rb_grn_posting_new(posting,
|
116
|
+
rb_grn_cursor->term_id,
|
117
|
+
rb_table,
|
118
|
+
rb_lexicon);
|
119
|
+
} else {
|
120
|
+
rb_grn_posting_update(rb_posting,
|
121
|
+
posting,
|
122
|
+
rb_grn_cursor->term_id);
|
123
|
+
return rb_posting;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
static VALUE
|
128
|
+
rb_grn_inverted_index_cursor_next (VALUE self)
|
129
|
+
{
|
130
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor;
|
131
|
+
VALUE rb_table;
|
132
|
+
VALUE rb_lexicon;
|
133
|
+
VALUE rb_posting;
|
134
|
+
|
135
|
+
TypedData_Get_Struct(self,
|
136
|
+
RbGrnInvertedIndexCursor,
|
137
|
+
&rb_grn_inverted_index_cursor_type,
|
138
|
+
rb_grn_cursor);
|
139
|
+
if (!rb_grn_cursor->context) {
|
140
|
+
rb_raise(rb_eGrnClosed,
|
141
|
+
"can't access already closed Groonga object: %" PRIsVALUE,
|
142
|
+
self);
|
143
|
+
}
|
144
|
+
|
145
|
+
if (!rb_grn_cursor->cursor) {
|
146
|
+
return Qnil;
|
147
|
+
}
|
148
|
+
|
149
|
+
rb_table = rb_iv_get(self, "@table");
|
150
|
+
rb_lexicon = rb_iv_get(self, "@lexicon");
|
151
|
+
rb_posting = next_value(Qnil, rb_grn_cursor, rb_table, rb_lexicon);
|
152
|
+
|
153
|
+
return rb_posting;
|
154
|
+
|
155
|
+
}
|
156
|
+
|
157
|
+
static VALUE
|
158
|
+
rb_grn_inverted_index_cursor_each (int argc, VALUE *argv, VALUE self)
|
159
|
+
{
|
160
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor;
|
161
|
+
grn_bool reuse_posting_object;
|
162
|
+
VALUE rb_options;
|
163
|
+
VALUE rb_reuse_posting_object;
|
164
|
+
VALUE rb_table;
|
165
|
+
VALUE rb_lexicon;
|
166
|
+
VALUE rb_posting = Qnil;
|
167
|
+
|
168
|
+
RETURN_ENUMERATOR(self, argc, argv);
|
169
|
+
|
170
|
+
rb_scan_args(argc, argv, "01", &rb_options);
|
171
|
+
|
172
|
+
rb_grn_scan_options(rb_options,
|
173
|
+
"reuse_posting_object", &rb_reuse_posting_object,
|
174
|
+
NULL);
|
175
|
+
|
176
|
+
TypedData_Get_Struct(self,
|
177
|
+
RbGrnInvertedIndexCursor,
|
178
|
+
&rb_grn_inverted_index_cursor_type,
|
179
|
+
rb_grn_cursor);
|
180
|
+
if (!rb_grn_cursor->context) {
|
181
|
+
rb_raise(rb_eGrnClosed,
|
182
|
+
"can't access already closed Groonga object: %" PRIsVALUE,
|
183
|
+
self);
|
184
|
+
}
|
185
|
+
|
186
|
+
if (!rb_grn_cursor->cursor) {
|
187
|
+
return Qnil;
|
188
|
+
}
|
189
|
+
|
190
|
+
rb_table = rb_iv_get(self, "@table");
|
191
|
+
rb_lexicon = rb_iv_get(self, "@lexicon");
|
192
|
+
reuse_posting_object = RVAL2CBOOL(rb_reuse_posting_object);
|
193
|
+
|
194
|
+
if (reuse_posting_object) {
|
195
|
+
rb_posting = rb_grn_posting_new(NULL, GRN_ID_NIL, rb_table, rb_lexicon);
|
196
|
+
}
|
197
|
+
while (GRN_TRUE) {
|
198
|
+
if (!reuse_posting_object) {
|
199
|
+
rb_posting = Qnil;
|
200
|
+
}
|
201
|
+
rb_posting = next_value(rb_posting, rb_grn_cursor, rb_table, rb_lexicon);
|
202
|
+
if (NIL_P(rb_posting)) {
|
203
|
+
break;
|
204
|
+
}
|
205
|
+
rb_yield(rb_posting);
|
206
|
+
}
|
207
|
+
|
208
|
+
return Qnil;
|
209
|
+
}
|
210
|
+
|
211
|
+
static VALUE
|
212
|
+
rb_grn_inverted_index_cursor_close (VALUE self)
|
213
|
+
{
|
214
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor;
|
215
|
+
|
216
|
+
TypedData_Get_Struct(self,
|
217
|
+
RbGrnInvertedIndexCursor,
|
218
|
+
&rb_grn_inverted_index_cursor_type,
|
219
|
+
rb_grn_cursor);
|
220
|
+
if (!rb_grn_cursor->context) {
|
221
|
+
rb_raise(rb_eGrnClosed,
|
222
|
+
"can't access already closed Groonga object: %" PRIsVALUE,
|
223
|
+
self);
|
224
|
+
}
|
225
|
+
|
226
|
+
if (rb_grn_cursor->cursor) {
|
227
|
+
grn_ii_cursor_close(rb_grn_cursor->context,
|
228
|
+
rb_grn_cursor->cursor);
|
229
|
+
}
|
230
|
+
rb_grn_cursor->context = NULL;
|
231
|
+
rb_grn_cursor->cursor = NULL;
|
232
|
+
|
233
|
+
return Qnil;
|
234
|
+
|
235
|
+
}
|
236
|
+
|
237
|
+
static VALUE
|
238
|
+
rb_grn_inverted_index_cursor_is_closed (VALUE self)
|
239
|
+
{
|
240
|
+
RbGrnInvertedIndexCursor *rb_grn_cursor;
|
241
|
+
|
242
|
+
TypedData_Get_Struct(self,
|
243
|
+
RbGrnInvertedIndexCursor,
|
244
|
+
&rb_grn_inverted_index_cursor_type,
|
245
|
+
rb_grn_cursor);
|
246
|
+
if (rb_grn_cursor->context) {
|
247
|
+
return Qfalse;
|
248
|
+
} else {
|
249
|
+
return Qtrue;
|
250
|
+
}
|
251
|
+
|
252
|
+
}
|
253
|
+
|
254
|
+
void
|
255
|
+
rb_grn_init_inverted_index_cursor (VALUE mGrn)
|
256
|
+
{
|
257
|
+
rb_cGrnInvertedIndexCursor =
|
258
|
+
rb_define_class_under(mGrn, "InvertedIndexCursor", rb_cData);
|
259
|
+
rb_include_module(rb_cGrnInvertedIndexCursor, rb_mEnumerable);
|
260
|
+
|
261
|
+
rb_define_method(rb_cGrnInvertedIndexCursor, "next",
|
262
|
+
rb_grn_inverted_index_cursor_next, 0);
|
263
|
+
rb_define_method(rb_cGrnInvertedIndexCursor, "each",
|
264
|
+
rb_grn_inverted_index_cursor_each, -1);
|
265
|
+
rb_define_method(rb_cGrnInvertedIndexCursor, "close",
|
266
|
+
rb_grn_inverted_index_cursor_close, 0);
|
267
|
+
rb_define_method(rb_cGrnInvertedIndexCursor, "closed?",
|
268
|
+
rb_grn_inverted_index_cursor_is_closed, 0);
|
269
|
+
}
|
data/ext/groonga/rb-grn-object.c
CHANGED
@@ -1973,7 +1973,7 @@ rb_grn_object_dirty_p (VALUE self)
|
|
1973
1973
|
void
|
1974
1974
|
rb_grn_init_object (VALUE mGrn)
|
1975
1975
|
{
|
1976
|
-
rb_cGrnObject = rb_define_class_under(mGrn, "Object",
|
1976
|
+
rb_cGrnObject = rb_define_class_under(mGrn, "Object", rb_cData);
|
1977
1977
|
rb_define_alloc_func(rb_cGrnObject, rb_grn_object_alloc);
|
1978
1978
|
|
1979
1979
|
rb_define_attr(rb_cGrnObject, "context", GRN_TRUE, GRN_FALSE);
|