rroonga 5.0.5-x86-mingw32 → 5.0.8-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
 - data/Rakefile +40 -8
 - data/ext/groonga/extconf.rb +17 -2
 - data/ext/groonga/rb-grn-context.c +25 -1
 - data/ext/groonga/rb-grn-database.c +1 -1
 - data/ext/groonga/rb-grn-patricia-trie.c +0 -2
 - data/ext/groonga/rb-grn-table.c +2 -2
 - data/ext/groonga/rb-grn.h +1 -1
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/2.2/groonga.so +0 -0
 - data/lib/groonga/expression-builder.rb +27 -1
 - data/rroonga-build.rb +3 -3
 - data/rroonga.gemspec +1 -0
 - data/test/test-column.rb +4 -2
 - data/test/test-context.rb +9 -1
 - data/test/test-expression-builder.rb +38 -1
 - data/test/test-remote.rb +12 -3
 - data/test/test-table-group.rb +13 -11
 - data/test/test-table.rb +4 -6
 - data/vendor/local/bin/grndb.exe +0 -0
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga.exe +0 -0
 - data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
 - data/vendor/local/bin/libgroonga-0.dll +0 -0
 - data/vendor/local/bin/libmecab-1.dll +0 -0
 - data/vendor/local/bin/libmsgpack-4.dll +0 -0
 - data/vendor/local/bin/libmsgpackc-2.dll +0 -0
 - data/vendor/local/bin/libonig-5.dll +0 -0
 - data/vendor/local/bin/libstdc++-6.dll +0 -0
 - data/vendor/local/bin/lz4.exe +0 -0
 - data/vendor/local/bin/lz4c.exe +0 -0
 - data/vendor/local/bin/lz4cat +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/zlib1.dll +0 -0
 - data/vendor/local/etc/groonga/httpd/fastcgi.conf +1 -0
 - data/vendor/local/etc/groonga/httpd/fastcgi.conf.default +1 -0
 - data/vendor/local/etc/groonga/httpd/fastcgi_params +1 -0
 - data/vendor/local/etc/groonga/httpd/fastcgi_params.default +1 -0
 - data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +3 -0
 - data/vendor/local/etc/groonga/httpd/scgi_params +1 -0
 - data/vendor/local/etc/groonga/httpd/scgi_params.default +1 -0
 - data/vendor/local/etc/groonga/httpd/uwsgi_params +1 -0
 - data/vendor/local/etc/groonga/httpd/uwsgi_params.default +1 -0
 - data/vendor/local/include/groonga/groonga/groonga.h +13 -6
 - data/vendor/local/include/groonga/groonga/ii.h +16 -8
 - data/vendor/local/include/groonga/groonga/obj.h +5 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/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/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/liblz4.a +0 -0
 - data/vendor/local/lib/liblz4.dll +0 -0
 - data/vendor/local/lib/liblz4.dll.1 +0 -0
 - data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
 - data/vendor/local/lib/libmecab.a +0 -0
 - data/vendor/local/lib/libmecab.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libonig.a +0 -0
 - data/vendor/local/lib/libonig.dll.a +0 -0
 - data/vendor/local/lib/libz.a +0 -0
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
 - data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
 - data/vendor/local/sbin/groonga-httpd.exe +0 -0
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +6 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/cooperation.txt +2 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +126 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +9 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_obj.txt +24 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/define_selector.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_put.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_reopen.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/quit.txt +2 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +11 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +117 -21
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_list.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +207 -16
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +18 -8
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +32 -6
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_at_most.txt +115 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_idf.txt +50 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/types.txt +71 -30
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +14 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +2 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +24 -5
 - 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 +14 -9
 - 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 +7 -8
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/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 +15 -7
 - data/vendor/local/share/doc/groonga/en/html/index.html +8 -7
 - data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
 - 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 +190 -61
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +5 -5
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +27 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +40 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/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/request_id.html +5 -5
 - 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/database_unmap.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +6 -6
 - 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_clear.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +6 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +6 -7
 - 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 +5 -5
 - 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/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/quit.html +7 -9
 - 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/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/select.html +14 -10
 - 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 +149 -28
 - 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_create.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +6 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +263 -22
 - 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/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 +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
 - 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/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 +27 -13
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +5 -5
 - 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 +45 -12
 - data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +96 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +170 -6
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +62 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/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 +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +93 -74
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/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 +19 -10
 - 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 +6 -6
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +6 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/cooperation.txt +2 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +126 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +9 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_obj.txt +24 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/define_selector.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_put.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_reopen.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/quit.txt +2 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +11 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +117 -21
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_list.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +207 -16
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +18 -8
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +32 -6
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_at_most.txt +115 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_idf.txt +50 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/types.txt +71 -30
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +14 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +2 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +24 -5
 - 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 +16 -11
 - 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 +7 -8
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/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 +15 -7
 - data/vendor/local/share/doc/groonga/ja/html/index.html +9 -8
 - data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news.html +159 -64
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +5 -5
 - 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 +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +26 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +40 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/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/request_id.html +5 -5
 - 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 +6 -6
 - 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 +6 -6
 - 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/database_unmap.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +6 -6
 - 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_clear.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +6 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +6 -6
 - 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 +5 -5
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +6 -6
 - 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/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/quit.html +7 -9
 - 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/request_cancel.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +9 -8
 - 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 +143 -28
 - 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_create.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +6 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +254 -22
 - 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/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 +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +13 -9
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +5 -5
 - 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/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 +27 -13
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +5 -5
 - 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 +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +32 -11
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +118 -84
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +163 -14
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +70 -53
 - data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/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 +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +93 -86
 - 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 +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/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 +10 -10
 - 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 +6 -6
 - 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 +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +6 -6
 - data/vendor/local/share/license/groonga/README.md +7 -0
 - data/vendor/local/share/man/ja/man1/groonga.1 +1078 -338
 - data/vendor/local/share/man/man1/groonga.1 +1088 -218
 - metadata +97 -91
 - data/lib/1.9/groonga.so +0 -0
 - data/vendor/local/etc/groonga/windows_event_log/provider.man +0 -38
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +0 -15
 - data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +0 -116
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +0 -15
 - data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +0 -117
 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.11. Scorer — Groonga v5.0. 
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.11. Scorer — Groonga v5.0.7-264-ga2dae20 documentation</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     '5.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '5.0.7-264-ga2dae20',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -25,7 +25,7 @@ 
     | 
|
| 
       25 
25 
     | 
    
         
             
                <script type="text/javascript" src="../_static/underscore.js"></script>
         
     | 
| 
       26 
26 
     | 
    
         
             
                <script type="text/javascript" src="../_static/doctools.js"></script>
         
     | 
| 
       27 
27 
     | 
    
         
             
                <link rel="shortcut icon" href="../_static/favicon.ico"/>
         
     | 
| 
       28 
     | 
    
         
            -
                <link rel="top" title="Groonga v5.0. 
     | 
| 
      
 28 
     | 
    
         
            +
                <link rel="top" title="Groonga v5.0.7-264-ga2dae20 documentation" href="../index.html" />
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="up" title="7. Reference manual" href="../reference.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="next" title="7.11.3.1. scorer_tf_at_most" href="scorers/scorer_tf_at_most.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="prev" title="7.10.1. QueryExpanderTSV" href="query_expanders/tsv.html" /> 
         
     | 
| 
         @@ -60,7 +60,7 @@ 
     | 
|
| 
       60 
60 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       61 
61 
     | 
    
         
             
                      <a href="query_expanders/tsv.html" title="7.10.1. QueryExpanderTSV"
         
     | 
| 
       62 
62 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       63 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../index.html">Groonga v5.0. 
     | 
| 
      
 63 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../index.html">Groonga v5.0.7-264-ga2dae20 documentation</a> »</li>
         
     | 
| 
       64 
64 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../reference.html" accesskey="U">7. Reference manual</a> »</li> 
         
     | 
| 
       65 
65 
     | 
    
         
             
                  </ul>
         
     | 
| 
       66 
66 
     | 
    
         
             
                </div>  
         
     | 
| 
         @@ -89,26 +89,18 @@ keyword, keyword ... and keyword". Search engine spammer may use 
     | 
|
| 
       89 
89 
     | 
    
         
             
            the technique.</li>
         
     | 
| 
       90 
90 
     | 
    
         
             
            </ul>
         
     | 
| 
       91 
91 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       92 
     | 
    
         
            -
            <p>Score function can solve these cases. For example, <a class="reference external" href=" 
     | 
| 
      
 92 
     | 
    
         
            +
            <p>Score function can solve these cases. For example, <a class="reference external" href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf">TF-IDF</a> (term
         
     | 
| 
       93 
93 
     | 
    
         
             
            frequency-inverse document frequency) can solve the first case.
         
     | 
| 
       94 
     | 
    
         
            -
            <a class="reference external" href=" 
     | 
| 
      
 94 
     | 
    
         
            +
            <a class="reference external" href="https://en.wikipedia.org/wiki/Okapi_BM25">Okapi BM25</a> can solve the
         
     | 
| 
       95 
95 
     | 
    
         
             
            second case. But their are slower than TF.</p>
         
     | 
| 
       96 
96 
     | 
    
         
             
            <p>Groonga provides TF-IDF based scorer as
         
     | 
| 
       97 
97 
     | 
    
         
             
            <a class="reference internal" href="scorers/scorer_tf_idf.html"><em>scorer_tf_idf</em></a> but doesn't provide Okapi BM25
         
     | 
| 
       98 
98 
     | 
    
         
             
            based scorer yet.</p>
         
     | 
| 
       99 
     | 
    
         
            -
            <table class="docutils field-list" frame="void" rules="none">
         
     | 
| 
       100 
     | 
    
         
            -
            <col class="field-name" />
         
     | 
| 
       101 
     | 
    
         
            -
            <col class="field-body" />
         
     | 
| 
       102 
     | 
    
         
            -
            <tbody valign="top">
         
     | 
| 
       103 
     | 
    
         
            -
            <tr class="field-odd field"><th class="field-name">orphan:</th><td class="field-body"></td>
         
     | 
| 
       104 
     | 
    
         
            -
            </tr>
         
     | 
| 
       105 
     | 
    
         
            -
            </tbody>
         
     | 
| 
       106 
     | 
    
         
            -
            </table>
         
     | 
| 
       107 
99 
     | 
    
         
             
            <blockquote id="note">
         
     | 
| 
       108 
100 
     | 
    
         
             
            <div><p>You don't need to resolve scoring only by score function. Score
         
     | 
| 
       109 
101 
     | 
    
         
             
            function is highly depends on search query. You may be able to use
         
     | 
| 
       110 
102 
     | 
    
         
             
            metadata of matched record.</p>
         
     | 
| 
       111 
     | 
    
         
            -
            <p>For example, Google uses <a class="reference external" href=" 
     | 
| 
      
 103 
     | 
    
         
            +
            <p>For example, Google uses <a class="reference external" href="https://en.wikipedia.org/wiki/PageRank">PageRank</a> for scoring. You may be
         
     | 
| 
       112 
104 
     | 
    
         
             
            able to use data type ("title" data are important rather than
         
     | 
| 
       113 
105 
     | 
    
         
             
            "memo" data), tag, geolocation and so on.</p>
         
     | 
| 
       114 
106 
     | 
    
         
             
            <p>Please stop to think about only score function for scoring.</p>
         
     | 
| 
         @@ -345,13 +337,50 @@ scorer, <code class="docutils literal"><span class="pre">_score</span></code> is 
     | 
|
| 
       345 
337 
     | 
    
         
             
            Because the scorer used in the <code class="docutils literal"><span class="pre">select</span></code> command limits the maximum
         
     | 
| 
       346 
338 
     | 
    
         
             
            score value to <code class="docutils literal"><span class="pre">2</span></code>.</p>
         
     | 
| 
       347 
339 
     | 
    
         
             
            <p>Here is an example that uses multiple scorers:</p>
         
     | 
| 
       348 
     | 
    
         
            -
            < 
     | 
| 
       349 
     | 
    
         
            -
             
     | 
| 
       350 
     | 
    
         
            -
             
     | 
| 
       351 
     | 
    
         
            -
             
     | 
| 
       352 
     | 
    
         
            -
             
     | 
| 
       353 
     | 
    
         
            -
             
     | 
| 
       354 
     | 
    
         
            -
             
     | 
| 
      
 340 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 341 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>select Memos \
         
     | 
| 
      
 342 
     | 
    
         
            +
              --match_columns "scorer_tf_idf(title) || scorer_tf_at_most(content, 2.0)" \
         
     | 
| 
      
 343 
     | 
    
         
            +
              --query "Groonga" \
         
     | 
| 
      
 344 
     | 
    
         
            +
              --output_columns "title, content, _score" \
         
     | 
| 
      
 345 
     | 
    
         
            +
              --sortby "-_score"
         
     | 
| 
      
 346 
     | 
    
         
            +
            # [
         
     | 
| 
      
 347 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 348 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 349 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 350 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 351 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 352 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 353 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 354 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 355 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 356 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 357 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 358 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 359 
     | 
    
         
            +
            #           "title",
         
     | 
| 
      
 360 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 361 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 362 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 363 
     | 
    
         
            +
            #           "content",
         
     | 
| 
      
 364 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 365 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 366 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 367 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 368 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 369 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 370 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 371 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 372 
     | 
    
         
            +
            #         "Groonga is fast",
         
     | 
| 
      
 373 
     | 
    
         
            +
            #         "Groonga! Groonga! Groonga! Groonga is very fast!",
         
     | 
| 
      
 374 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 375 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 376 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 377 
     | 
    
         
            +
            #         "Groonga is easy",
         
     | 
| 
      
 378 
     | 
    
         
            +
            #         "Groonga is very easy full text search engine!",
         
     | 
| 
      
 379 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 380 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 381 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 382 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 383 
     | 
    
         
            +
            # ]
         
     | 
| 
       355 
384 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       356 
385 
     | 
    
         
             
            </div>
         
     | 
| 
       357 
386 
     | 
    
         
             
            <p>The <code class="docutils literal"><span class="pre">--match_columns</span></code> uses <code class="docutils literal"><span class="pre">scorer_tf_idf(title)</span></code> and
         
     | 
| 
         @@ -359,13 +388,50 @@ score value to <code class="docutils literal"><span class="pre">2</span></code>. 
     | 
|
| 
       359 
388 
     | 
    
         
             
            <p>You can use the default scorer and custom scorer in the same
         
     | 
| 
       360 
389 
     | 
    
         
             
            <code class="docutils literal"><span class="pre">--match_columns</span></code>. You can use the default scorer by just specifying
         
     | 
| 
       361 
390 
     | 
    
         
             
            a match column:</p>
         
     | 
| 
       362 
     | 
    
         
            -
            < 
     | 
| 
       363 
     | 
    
         
            -
             
     | 
| 
       364 
     | 
    
         
            -
             
     | 
| 
       365 
     | 
    
         
            -
             
     | 
| 
       366 
     | 
    
         
            -
             
     | 
| 
       367 
     | 
    
         
            -
             
     | 
| 
       368 
     | 
    
         
            -
             
     | 
| 
      
 391 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 392 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>select Memos \
         
     | 
| 
      
 393 
     | 
    
         
            +
              --match_columns "title || scorer_tf_at_most(content, 2.0)" \
         
     | 
| 
      
 394 
     | 
    
         
            +
              --query "Groonga" \
         
     | 
| 
      
 395 
     | 
    
         
            +
              --output_columns "title, content, _score" \
         
     | 
| 
      
 396 
     | 
    
         
            +
              --sortby "-_score"
         
     | 
| 
      
 397 
     | 
    
         
            +
            # [
         
     | 
| 
      
 398 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 399 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 400 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 401 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 402 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 403 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 404 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 405 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 406 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 407 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 408 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 409 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 410 
     | 
    
         
            +
            #           "title",
         
     | 
| 
      
 411 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 412 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 413 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 414 
     | 
    
         
            +
            #           "content",
         
     | 
| 
      
 415 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 416 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 417 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 418 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 419 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 420 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 421 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 422 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 423 
     | 
    
         
            +
            #         "Groonga is fast",
         
     | 
| 
      
 424 
     | 
    
         
            +
            #         "Groonga! Groonga! Groonga! Groonga is very fast!",
         
     | 
| 
      
 425 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 426 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 427 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 428 
     | 
    
         
            +
            #         "Groonga is easy",
         
     | 
| 
      
 429 
     | 
    
         
            +
            #         "Groonga is very easy full text search engine!",
         
     | 
| 
      
 430 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 431 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 432 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 433 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 434 
     | 
    
         
            +
            # ]
         
     | 
| 
       369 
435 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       370 
436 
     | 
    
         
             
            </div>
         
     | 
| 
       371 
437 
     | 
    
         
             
            <p>The <code class="docutils literal"><span class="pre">--match_columns</span></code> uses the default scorer (TF) for <code class="docutils literal"><span class="pre">title</span></code> and
         
     | 
| 
         @@ -442,7 +508,7 @@ a match column:</p> 
     | 
|
| 
       442 
508 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       443 
509 
     | 
    
         
             
                      <a href="query_expanders/tsv.html" title="7.10.1. QueryExpanderTSV"
         
     | 
| 
       444 
510 
     | 
    
         
             
                         >previous</a> |</li>
         
     | 
| 
       445 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../index.html">Groonga v5.0. 
     | 
| 
      
 511 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../index.html">Groonga v5.0.7-264-ga2dae20 documentation</a> »</li>
         
     | 
| 
       446 
512 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../reference.html" >7. Reference manual</a> »</li> 
         
     | 
| 
       447 
513 
     | 
    
         
             
                  </ul>
         
     | 
| 
       448 
514 
     | 
    
         
             
                </div>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.11.3.1. scorer_tf_at_most — Groonga v5.0. 
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.11.3.1. scorer_tf_at_most — Groonga v5.0.7-264-ga2dae20 documentation</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     '5.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '5.0.7-264-ga2dae20',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -25,7 +25,7 @@ 
     | 
|
| 
       25 
25 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/underscore.js"></script>
         
     | 
| 
       26 
26 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/doctools.js"></script>
         
     | 
| 
       27 
27 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       28 
     | 
    
         
            -
                <link rel="top" title="Groonga v5.0. 
     | 
| 
      
 28 
     | 
    
         
            +
                <link rel="top" title="Groonga v5.0.7-264-ga2dae20 documentation" href="../../index.html" />
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="up" title="7.11. Scorer" href="../scorer.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="next" title="7.11.3.2. scorer_tf_idf" href="scorer_tf_idf.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="prev" title="7.11. Scorer" href="../scorer.html" /> 
         
     | 
| 
         @@ -60,7 +60,7 @@ 
     | 
|
| 
       60 
60 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       61 
61 
     | 
    
         
             
                      <a href="../scorer.html" title="7.11. Scorer"
         
     | 
| 
       62 
62 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       63 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0. 
     | 
| 
      
 63 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.7-264-ga2dae20 documentation</a> »</li>
         
     | 
| 
       64 
64 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../scorer.html" accesskey="U">7.11. Scorer</a> »</li> 
         
     | 
| 
       66 
66 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -83,7 +83,158 @@ 
     | 
|
| 
       83 
83 
     | 
    
         
             
            <div class="section" id="summary">
         
     | 
| 
       84 
84 
     | 
    
         
             
            <h2>7.11.3.1.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       85 
85 
     | 
    
         
             
            <p><code class="docutils literal"><span class="pre">scorer_tf_at_most</span></code> is a scorer based on TF (term frequency).</p>
         
     | 
| 
       86 
     | 
    
         
            -
            <p> 
     | 
| 
      
 86 
     | 
    
         
            +
            <p>TF based scorer includes TF-IDF based scorer has a problem for the
         
     | 
| 
      
 87 
     | 
    
         
            +
            following case:</p>
         
     | 
| 
      
 88 
     | 
    
         
            +
            <p>If document contains many same keywords such as "They are keyword,
         
     | 
| 
      
 89 
     | 
    
         
            +
            keyword, keyword ... and keyword", the document has high score. It's
         
     | 
| 
      
 90 
     | 
    
         
            +
            not expected. Search engine spammer may use the technique.</p>
         
     | 
| 
      
 91 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">scorer_tf_at_most</span></code> is a TF based scorer but it can solve the case.</p>
         
     | 
| 
      
 92 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">scorer_tf_at_most</span></code> limits the maximum score value. It means that
         
     | 
| 
      
 93 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">scorer_tf_at_most</span></code> limits effect of a match.</p>
         
     | 
| 
      
 94 
     | 
    
         
            +
            <p>If document contains many same keywords such as "They are keyword,
         
     | 
| 
      
 95 
     | 
    
         
            +
            keyword, keyword ... and keyword", <code class="docutils literal"><span class="pre">scorer_tf_at_most(column,</span> <span class="pre">2.0)</span></code>
         
     | 
| 
      
 96 
     | 
    
         
            +
            returns at most <code class="docutils literal"><span class="pre">2</span></code> as score.</p>
         
     | 
| 
      
 97 
     | 
    
         
            +
            <blockquote id="note">
         
     | 
| 
      
 98 
     | 
    
         
            +
            <div><p>You don't need to resolve scoring only by score function. Score
         
     | 
| 
      
 99 
     | 
    
         
            +
            function is highly depends on search query. You may be able to use
         
     | 
| 
      
 100 
     | 
    
         
            +
            metadata of matched record.</p>
         
     | 
| 
      
 101 
     | 
    
         
            +
            <p>For example, Google uses <a class="reference external" href="https://en.wikipedia.org/wiki/PageRank">PageRank</a> for scoring. You may be
         
     | 
| 
      
 102 
     | 
    
         
            +
            able to use data type ("title" data are important rather than
         
     | 
| 
      
 103 
     | 
    
         
            +
            "memo" data), tag, geolocation and so on.</p>
         
     | 
| 
      
 104 
     | 
    
         
            +
            <p>Please stop to think about only score function for scoring.</p>
         
     | 
| 
      
 105 
     | 
    
         
            +
            </div></blockquote>
         
     | 
| 
      
 106 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 107 
     | 
    
         
            +
            <div class="section" id="syntax">
         
     | 
| 
      
 108 
     | 
    
         
            +
            <h2>7.11.3.1.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 109 
     | 
    
         
            +
            <p>This scorer has two parameters:</p>
         
     | 
| 
      
 110 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>scorer_tf_at_most(column, max)
         
     | 
| 
      
 111 
     | 
    
         
            +
            scorer_tf_at_most(index, max)
         
     | 
| 
      
 112 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 113 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 114 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 115 
     | 
    
         
            +
            <div class="section" id="usage">
         
     | 
| 
      
 116 
     | 
    
         
            +
            <h2>7.11.3.1.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 117 
     | 
    
         
            +
            <p>This section describes how to use this scorer.</p>
         
     | 
| 
      
 118 
     | 
    
         
            +
            <p>Here are a schema definition and sample data to show usage.</p>
         
     | 
| 
      
 119 
     | 
    
         
            +
            <p>Sample schema:</p>
         
     | 
| 
      
 120 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 121 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>table_create Logs TABLE_NO_KEY
         
     | 
| 
      
 122 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 123 
     | 
    
         
            +
            column_create Logs message COLUMN_SCALAR Text
         
     | 
| 
      
 124 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 125 
     | 
    
         
            +
            table_create Terms TABLE_PAT_KEY ShortText \
         
     | 
| 
      
 126 
     | 
    
         
            +
              --default_tokenizer TokenBigram \
         
     | 
| 
      
 127 
     | 
    
         
            +
              --normalizer NormalizerAuto
         
     | 
| 
      
 128 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 129 
     | 
    
         
            +
            column_create Terms message_index COLUMN_INDEX|WITH_POSITION Logs message
         
     | 
| 
      
 130 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
      
 131 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 132 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 133 
     | 
    
         
            +
            <p>Sample data:</p>
         
     | 
| 
      
 134 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 135 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>load --table Logs
         
     | 
| 
      
 136 
     | 
    
         
            +
            [
         
     | 
| 
      
 137 
     | 
    
         
            +
            {"message": "Notice"},
         
     | 
| 
      
 138 
     | 
    
         
            +
            {"message": "Notice Notice"},
         
     | 
| 
      
 139 
     | 
    
         
            +
            {"message": "Notice Notice Notice"},
         
     | 
| 
      
 140 
     | 
    
         
            +
            {"message": "Notice Notice Notice Notice"},
         
     | 
| 
      
 141 
     | 
    
         
            +
            {"message": "Notice Notice Notice Notice Notice"}
         
     | 
| 
      
 142 
     | 
    
         
            +
            ]
         
     | 
| 
      
 143 
     | 
    
         
            +
            # [[0, 1337566253.89858, 0.000355720520019531], 5]
         
     | 
| 
      
 144 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 145 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 146 
     | 
    
         
            +
            <p>You specify <code class="docutils literal"><span class="pre">scorer_tf_at_most</span></code> in <a class="reference internal" href="../commands/select.html#select-match-columns"><span>match_columns</span></a> like
         
     | 
| 
      
 147 
     | 
    
         
            +
            the following:</p>
         
     | 
| 
      
 148 
     | 
    
         
            +
            <p>Execution example:</p>
         
     | 
| 
      
 149 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>select Logs \
         
     | 
| 
      
 150 
     | 
    
         
            +
              --match_columns "scorer_tf_at_most(message, 3.0)" \
         
     | 
| 
      
 151 
     | 
    
         
            +
              --query "Notice" \
         
     | 
| 
      
 152 
     | 
    
         
            +
              --output_columns "message, _score" \
         
     | 
| 
      
 153 
     | 
    
         
            +
              --sortby "-_score"
         
     | 
| 
      
 154 
     | 
    
         
            +
            # [
         
     | 
| 
      
 155 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 156 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 157 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 158 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 159 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 160 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 161 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 162 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 163 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 164 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 165 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 166 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 167 
     | 
    
         
            +
            #           "message",
         
     | 
| 
      
 168 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 169 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 170 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 171 
     | 
    
         
            +
            #           "_score",
         
     | 
| 
      
 172 
     | 
    
         
            +
            #           "Int32"
         
     | 
| 
      
 173 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 174 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 175 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 176 
     | 
    
         
            +
            #         "Notice Notice Notice Notice Notice",
         
     | 
| 
      
 177 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 178 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 179 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 180 
     | 
    
         
            +
            #         "Notice Notice Notice Notice",
         
     | 
| 
      
 181 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 182 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 183 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 184 
     | 
    
         
            +
            #         "Notice Notice Notice",
         
     | 
| 
      
 185 
     | 
    
         
            +
            #         3
         
     | 
| 
      
 186 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 187 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 188 
     | 
    
         
            +
            #         "Notice Notice",
         
     | 
| 
      
 189 
     | 
    
         
            +
            #         2
         
     | 
| 
      
 190 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 191 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 192 
     | 
    
         
            +
            #         "Notice",
         
     | 
| 
      
 193 
     | 
    
         
            +
            #         1
         
     | 
| 
      
 194 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 195 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 196 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 197 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 198 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 199 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 200 
     | 
    
         
            +
            <p>If a document has three or more <code class="docutils literal"><span class="pre">Notice</span></code> terms, its score is <code class="docutils literal"><span class="pre">3</span></code>.
         
     | 
| 
      
 201 
     | 
    
         
            +
            Because the <code class="docutils literal"><span class="pre">select</span></code> specify <code class="docutils literal"><span class="pre">3.0</span></code> as the max score.</p>
         
     | 
| 
      
 202 
     | 
    
         
            +
            <p>If a document has one or two <code class="docutils literal"><span class="pre">Notice</span></code> terms, its score is <code class="docutils literal"><span class="pre">1</span></code> or
         
     | 
| 
      
 203 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">2</span></code>. Because the score is less than <code class="docutils literal"><span class="pre">3.0</span></code> specified as the max score.</p>
         
     | 
| 
      
 204 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 205 
     | 
    
         
            +
            <div class="section" id="parameters">
         
     | 
| 
      
 206 
     | 
    
         
            +
            <h2>7.11.3.1.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 207 
     | 
    
         
            +
            <p>This section describes all parameters.</p>
         
     | 
| 
      
 208 
     | 
    
         
            +
            <div class="section" id="required-parameters">
         
     | 
| 
      
 209 
     | 
    
         
            +
            <h3>7.11.3.1.4.1. Required parameters<a class="headerlink" href="#required-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 210 
     | 
    
         
            +
            <p>There is only one required parameters.</p>
         
     | 
| 
      
 211 
     | 
    
         
            +
            <div class="section" id="column">
         
     | 
| 
      
 212 
     | 
    
         
            +
            <h4>7.11.3.1.4.1.1. <code class="docutils literal"><span class="pre">column</span></code><a class="headerlink" href="#column" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 213 
     | 
    
         
            +
            <p>The data column that is match target. The data column must be indexed.</p>
         
     | 
| 
      
 214 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 215 
     | 
    
         
            +
            <div class="section" id="index">
         
     | 
| 
      
 216 
     | 
    
         
            +
            <h4>7.11.3.1.4.1.2. <code class="docutils literal"><span class="pre">index</span></code><a class="headerlink" href="#index" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 217 
     | 
    
         
            +
            <p>The index column to be used for search.</p>
         
     | 
| 
      
 218 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 219 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 220 
     | 
    
         
            +
            <div class="section" id="optional-parameters">
         
     | 
| 
      
 221 
     | 
    
         
            +
            <h3>7.11.3.1.4.2. Optional parameters<a class="headerlink" href="#optional-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 222 
     | 
    
         
            +
            <p>There is no optional parameters.</p>
         
     | 
| 
      
 223 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 224 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 225 
     | 
    
         
            +
            <div class="section" id="return-value">
         
     | 
| 
      
 226 
     | 
    
         
            +
            <h2>7.11.3.1.5. Return value<a class="headerlink" href="#return-value" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 227 
     | 
    
         
            +
            <p>This scorer returns score as <a class="reference internal" href="../types.html#builtin-type-float"><span>Float</span></a>.</p>
         
     | 
| 
      
 228 
     | 
    
         
            +
            <p><a class="reference internal" href="../commands/select.html"><em>select</em></a> returns <code class="docutils literal"><span class="pre">_score</span></code> as <code class="docutils literal"><span class="pre">Int32</span></code> not
         
     | 
| 
      
 229 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">Float</span></code>. Because it casts to <code class="docutils literal"><span class="pre">Int32</span></code> from <code class="docutils literal"><span class="pre">Float</span></code> for keeping
         
     | 
| 
      
 230 
     | 
    
         
            +
            backward compatibility.</p>
         
     | 
| 
      
 231 
     | 
    
         
            +
            <p>Score is computed as TF with limitation.</p>
         
     | 
| 
      
 232 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 233 
     | 
    
         
            +
            <div class="section" id="see-also">
         
     | 
| 
      
 234 
     | 
    
         
            +
            <h2>7.11.3.1.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 235 
     | 
    
         
            +
            <ul class="simple">
         
     | 
| 
      
 236 
     | 
    
         
            +
            <li><a class="reference internal" href="../scorer.html"><em>Scorer</em></a></li>
         
     | 
| 
      
 237 
     | 
    
         
            +
            </ul>
         
     | 
| 
       87 
238 
     | 
    
         
             
            </div>
         
     | 
| 
       88 
239 
     | 
    
         
             
            </div>
         
     | 
| 
       89 
240 
     | 
    
         | 
| 
         @@ -97,6 +248,19 @@ 
     | 
|
| 
       97 
248 
     | 
    
         
             
              <ul>
         
     | 
| 
       98 
249 
     | 
    
         
             
            <li><a class="reference internal" href="#">7.11.3.1. <code class="docutils literal"><span class="pre">scorer_tf_at_most</span></code></a><ul>
         
     | 
| 
       99 
250 
     | 
    
         
             
            <li><a class="reference internal" href="#summary">7.11.3.1.1. Summary</a></li>
         
     | 
| 
      
 251 
     | 
    
         
            +
            <li><a class="reference internal" href="#syntax">7.11.3.1.2. Syntax</a></li>
         
     | 
| 
      
 252 
     | 
    
         
            +
            <li><a class="reference internal" href="#usage">7.11.3.1.3. Usage</a></li>
         
     | 
| 
      
 253 
     | 
    
         
            +
            <li><a class="reference internal" href="#parameters">7.11.3.1.4. Parameters</a><ul>
         
     | 
| 
      
 254 
     | 
    
         
            +
            <li><a class="reference internal" href="#required-parameters">7.11.3.1.4.1. Required parameters</a><ul>
         
     | 
| 
      
 255 
     | 
    
         
            +
            <li><a class="reference internal" href="#column">7.11.3.1.4.1.1. <code class="docutils literal"><span class="pre">column</span></code></a></li>
         
     | 
| 
      
 256 
     | 
    
         
            +
            <li><a class="reference internal" href="#index">7.11.3.1.4.1.2. <code class="docutils literal"><span class="pre">index</span></code></a></li>
         
     | 
| 
      
 257 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 258 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 259 
     | 
    
         
            +
            <li><a class="reference internal" href="#optional-parameters">7.11.3.1.4.2. Optional parameters</a></li>
         
     | 
| 
      
 260 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 261 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 262 
     | 
    
         
            +
            <li><a class="reference internal" href="#return-value">7.11.3.1.5. Return value</a></li>
         
     | 
| 
      
 263 
     | 
    
         
            +
            <li><a class="reference internal" href="#see-also">7.11.3.1.6. See also</a></li>
         
     | 
| 
       100 
264 
     | 
    
         
             
            </ul>
         
     | 
| 
       101 
265 
     | 
    
         
             
            </li>
         
     | 
| 
       102 
266 
     | 
    
         
             
            </ul>
         
     | 
| 
         @@ -143,7 +307,7 @@ 
     | 
|
| 
       143 
307 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       144 
308 
     | 
    
         
             
                      <a href="../scorer.html" title="7.11. Scorer"
         
     | 
| 
       145 
309 
     | 
    
         
             
                         >previous</a> |</li>
         
     | 
| 
       146 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0. 
     | 
| 
      
 310 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.7-264-ga2dae20 documentation</a> »</li>
         
     | 
| 
       147 
311 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       148 
312 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../scorer.html" >7.11. Scorer</a> »</li> 
         
     | 
| 
       149 
313 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.11.3.2. scorer_tf_idf — Groonga v5.0. 
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.11.3.2. scorer_tf_idf — Groonga v5.0.7-264-ga2dae20 documentation</title>
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
         
     | 
| 
       13 
13 
     | 
    
         
             
                <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
         
     | 
| 
         @@ -15,7 +15,7 @@ 
     | 
|
| 
       15 
15 
     | 
    
         
             
                <script type="text/javascript">
         
     | 
| 
       16 
16 
     | 
    
         
             
                  var DOCUMENTATION_OPTIONS = {
         
     | 
| 
       17 
17 
     | 
    
         
             
                    URL_ROOT:    '../../',
         
     | 
| 
       18 
     | 
    
         
            -
                    VERSION:     '5.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '5.0.7-264-ga2dae20',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -25,7 +25,7 @@ 
     | 
|
| 
       25 
25 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/underscore.js"></script>
         
     | 
| 
       26 
26 
     | 
    
         
             
                <script type="text/javascript" src="../../_static/doctools.js"></script>
         
     | 
| 
       27 
27 
     | 
    
         
             
                <link rel="shortcut icon" href="../../_static/favicon.ico"/>
         
     | 
| 
       28 
     | 
    
         
            -
                <link rel="top" title="Groonga v5.0. 
     | 
| 
      
 28 
     | 
    
         
            +
                <link rel="top" title="Groonga v5.0.7-264-ga2dae20 documentation" href="../../index.html" />
         
     | 
| 
       29 
29 
     | 
    
         
             
                <link rel="up" title="7.11. Scorer" href="../scorer.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="next" title="7.12. grn_expr" href="../grn_expr.html" />
         
     | 
| 
       31 
31 
     | 
    
         
             
                <link rel="prev" title="7.11.3.1. scorer_tf_at_most" href="scorer_tf_at_most.html" /> 
         
     | 
| 
         @@ -60,7 +60,7 @@ 
     | 
|
| 
       60 
60 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       61 
61 
     | 
    
         
             
                      <a href="scorer_tf_at_most.html" title="7.11.3.1. scorer_tf_at_most"
         
     | 
| 
       62 
62 
     | 
    
         
             
                         accesskey="P">previous</a> |</li>
         
     | 
| 
       63 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0. 
     | 
| 
      
 63 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.7-264-ga2dae20 documentation</a> »</li>
         
     | 
| 
       64 
64 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../scorer.html" accesskey="U">7.11. Scorer</a> »</li> 
         
     | 
| 
       66 
66 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -82,7 +82,7 @@ 
     | 
|
| 
       82 
82 
     | 
    
         
             
            </div>
         
     | 
| 
       83 
83 
     | 
    
         
             
            <div class="section" id="summary">
         
     | 
| 
       84 
84 
     | 
    
         
             
            <h2>7.11.3.2.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       85 
     | 
    
         
            -
            <p><code class="docutils literal"><span class="pre">scorer_tf_idf</span></code> is a scorer based of <a class="reference external" href=" 
     | 
| 
      
 85 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">scorer_tf_idf</span></code> is a scorer based of <a class="reference external" href="https://en.wikipedia.org/wiki/Tf%E2%80%93idf">TF-IDF</a> (term
         
     | 
| 
       86 
86 
     | 
    
         
             
            frequency-inverse document frequency) score function.</p>
         
     | 
| 
       87 
87 
     | 
    
         
             
            <p>To put it simply, TF (term frequency) divided by DF (document
         
     | 
| 
       88 
88 
     | 
    
         
             
            frequency) is TF-IDF. "TF" means that "the number of occurrences is
         
     | 
| 
         @@ -94,32 +94,34 @@ doesn't care about term importance but is fast.</p> 
     | 
|
| 
       94 
94 
     | 
    
         
             
            <p>TF-IDF will compute more suitable score rather than TF for many cases.
         
     | 
| 
       95 
95 
     | 
    
         
             
            But it's not perfect.</p>
         
     | 
| 
       96 
96 
     | 
    
         
             
            <p>If document contains many same keywords such as "They are keyword,
         
     | 
| 
       97 
     | 
    
         
            -
            keyword, keyword ... and keyword" 
     | 
| 
      
 97 
     | 
    
         
            +
            keyword, keyword ... and keyword", it increases score by TF and
         
     | 
| 
       98 
98 
     | 
    
         
             
            TF-IDF. Search engine spammer may use the technique. But TF-IDF
         
     | 
| 
       99 
99 
     | 
    
         
             
            doesn't guard from the technique.</p>
         
     | 
| 
       100 
     | 
    
         
            -
            <p><a class="reference external" href=" 
     | 
| 
      
 100 
     | 
    
         
            +
            <p><a class="reference external" href="https://en.wikipedia.org/wiki/Okapi_BM25">Okapi BM25</a> can solve the
         
     | 
| 
       101 
101 
     | 
    
         
             
            case. But it's more slower than TF-IDF and not implemented yet in
         
     | 
| 
       102 
102 
     | 
    
         
             
            Groonga.</p>
         
     | 
| 
       103 
     | 
    
         
            -
            < 
     | 
| 
       104 
     | 
    
         
            -
             
     | 
| 
       105 
     | 
    
         
            -
            <col class="field-body" />
         
     | 
| 
       106 
     | 
    
         
            -
            <tbody valign="top">
         
     | 
| 
       107 
     | 
    
         
            -
            <tr class="field-odd field"><th class="field-name">orphan:</th><td class="field-body"></td>
         
     | 
| 
       108 
     | 
    
         
            -
            </tr>
         
     | 
| 
       109 
     | 
    
         
            -
            </tbody>
         
     | 
| 
       110 
     | 
    
         
            -
            </table>
         
     | 
| 
      
 103 
     | 
    
         
            +
            <p>Groonga provides <a class="reference internal" href="scorer_tf_at_most.html"><em>scorer_tf_at_most</em></a> scorer that can also solve
         
     | 
| 
      
 104 
     | 
    
         
            +
            the case.</p>
         
     | 
| 
       111 
105 
     | 
    
         
             
            <blockquote id="note">
         
     | 
| 
       112 
106 
     | 
    
         
             
            <div><p>You don't need to resolve scoring only by score function. Score
         
     | 
| 
       113 
107 
     | 
    
         
             
            function is highly depends on search query. You may be able to use
         
     | 
| 
       114 
108 
     | 
    
         
             
            metadata of matched record.</p>
         
     | 
| 
       115 
     | 
    
         
            -
            <p>For example, Google uses <a class="reference external" href=" 
     | 
| 
      
 109 
     | 
    
         
            +
            <p>For example, Google uses <a class="reference external" href="https://en.wikipedia.org/wiki/PageRank">PageRank</a> for scoring. You may be
         
     | 
| 
       116 
110 
     | 
    
         
             
            able to use data type ("title" data are important rather than
         
     | 
| 
       117 
111 
     | 
    
         
             
            "memo" data), tag, geolocation and so on.</p>
         
     | 
| 
       118 
112 
     | 
    
         
             
            <p>Please stop to think about only score function for scoring.</p>
         
     | 
| 
       119 
113 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       120 
114 
     | 
    
         
             
            </div>
         
     | 
| 
      
 115 
     | 
    
         
            +
            <div class="section" id="syntax">
         
     | 
| 
      
 116 
     | 
    
         
            +
            <h2>7.11.3.2.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 117 
     | 
    
         
            +
            <p>This scorer has only one parameter:</p>
         
     | 
| 
      
 118 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>scorer_tf_idf(column)
         
     | 
| 
      
 119 
     | 
    
         
            +
            scorer_tf_idf(index)
         
     | 
| 
      
 120 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 121 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 122 
     | 
    
         
            +
            </div>
         
     | 
| 
       121 
123 
     | 
    
         
             
            <div class="section" id="usage">
         
     | 
| 
       122 
     | 
    
         
            -
            <h2>7.11.3.2. 
     | 
| 
      
 124 
     | 
    
         
            +
            <h2>7.11.3.2.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       123 
125 
     | 
    
         
             
            <p>This section describes how to use this scorer.</p>
         
     | 
| 
       124 
126 
     | 
    
         
             
            <p>Here are a schema definition and sample data to show usage.</p>
         
     | 
| 
       125 
127 
     | 
    
         
             
            <p>Sample schema:</p>
         
     | 
| 
         @@ -219,8 +221,36 @@ include <code class="docutils literal"><span class="pre">Error</span></code> is 
     | 
|
| 
       219 
221 
     | 
    
         
             
            means that the term is more characteristic term. Characteristic term
         
     | 
| 
       220 
222 
     | 
    
         
             
            is important term.</p>
         
     | 
| 
       221 
223 
     | 
    
         
             
            </div>
         
     | 
| 
      
 224 
     | 
    
         
            +
            <div class="section" id="parameters">
         
     | 
| 
      
 225 
     | 
    
         
            +
            <h2>7.11.3.2.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 226 
     | 
    
         
            +
            <p>This section describes all parameters.</p>
         
     | 
| 
      
 227 
     | 
    
         
            +
            <div class="section" id="required-parameters">
         
     | 
| 
      
 228 
     | 
    
         
            +
            <h3>7.11.3.2.4.1. Required parameters<a class="headerlink" href="#required-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 229 
     | 
    
         
            +
            <p>There is only one required parameters.</p>
         
     | 
| 
      
 230 
     | 
    
         
            +
            <div class="section" id="column">
         
     | 
| 
      
 231 
     | 
    
         
            +
            <h4>7.11.3.2.4.1.1. <code class="docutils literal"><span class="pre">column</span></code><a class="headerlink" href="#column" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 232 
     | 
    
         
            +
            <p>The data column that is match target. The data column must be indexed.</p>
         
     | 
| 
      
 233 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 234 
     | 
    
         
            +
            <div class="section" id="index">
         
     | 
| 
      
 235 
     | 
    
         
            +
            <h4>7.11.3.2.4.1.2. <code class="docutils literal"><span class="pre">index</span></code><a class="headerlink" href="#index" title="Permalink to this headline">¶</a></h4>
         
     | 
| 
      
 236 
     | 
    
         
            +
            <p>The index column to be used for search.</p>
         
     | 
| 
      
 237 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 238 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 239 
     | 
    
         
            +
            <div class="section" id="optional-parameters">
         
     | 
| 
      
 240 
     | 
    
         
            +
            <h3>7.11.3.2.4.2. Optional parameters<a class="headerlink" href="#optional-parameters" title="Permalink to this headline">¶</a></h3>
         
     | 
| 
      
 241 
     | 
    
         
            +
            <p>There is no optional parameters.</p>
         
     | 
| 
      
 242 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 243 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 244 
     | 
    
         
            +
            <div class="section" id="return-value">
         
     | 
| 
      
 245 
     | 
    
         
            +
            <h2>7.11.3.2.5. Return value<a class="headerlink" href="#return-value" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
      
 246 
     | 
    
         
            +
            <p>This scorer returns score as <a class="reference internal" href="../types.html#builtin-type-float"><span>Float</span></a>.</p>
         
     | 
| 
      
 247 
     | 
    
         
            +
            <p><a class="reference internal" href="../commands/select.html"><em>select</em></a> returns <code class="docutils literal"><span class="pre">_score</span></code> as <code class="docutils literal"><span class="pre">Int32</span></code> not
         
     | 
| 
      
 248 
     | 
    
         
            +
            <code class="docutils literal"><span class="pre">Float</span></code>. Because it casts to <code class="docutils literal"><span class="pre">Int32</span></code> from <code class="docutils literal"><span class="pre">Float</span></code> for keeping
         
     | 
| 
      
 249 
     | 
    
         
            +
            backward compatibility.</p>
         
     | 
| 
      
 250 
     | 
    
         
            +
            <p>Score is computed as TF-IDF based algorithm.</p>
         
     | 
| 
      
 251 
     | 
    
         
            +
            </div>
         
     | 
| 
       222 
252 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
       223 
     | 
    
         
            -
            <h2>7.11.3.2. 
     | 
| 
      
 253 
     | 
    
         
            +
            <h2>7.11.3.2.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
         
     | 
| 
       224 
254 
     | 
    
         
             
            <ul class="simple">
         
     | 
| 
       225 
255 
     | 
    
         
             
            <li><a class="reference internal" href="../scorer.html"><em>Scorer</em></a></li>
         
     | 
| 
       226 
256 
     | 
    
         
             
            </ul>
         
     | 
| 
         @@ -237,8 +267,19 @@ is important term.</p> 
     | 
|
| 
       237 
267 
     | 
    
         
             
              <ul>
         
     | 
| 
       238 
268 
     | 
    
         
             
            <li><a class="reference internal" href="#">7.11.3.2. <code class="docutils literal"><span class="pre">scorer_tf_idf</span></code></a><ul>
         
     | 
| 
       239 
269 
     | 
    
         
             
            <li><a class="reference internal" href="#summary">7.11.3.2.1. Summary</a></li>
         
     | 
| 
       240 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       241 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
      
 270 
     | 
    
         
            +
            <li><a class="reference internal" href="#syntax">7.11.3.2.2. Syntax</a></li>
         
     | 
| 
      
 271 
     | 
    
         
            +
            <li><a class="reference internal" href="#usage">7.11.3.2.3. Usage</a></li>
         
     | 
| 
      
 272 
     | 
    
         
            +
            <li><a class="reference internal" href="#parameters">7.11.3.2.4. Parameters</a><ul>
         
     | 
| 
      
 273 
     | 
    
         
            +
            <li><a class="reference internal" href="#required-parameters">7.11.3.2.4.1. Required parameters</a><ul>
         
     | 
| 
      
 274 
     | 
    
         
            +
            <li><a class="reference internal" href="#column">7.11.3.2.4.1.1. <code class="docutils literal"><span class="pre">column</span></code></a></li>
         
     | 
| 
      
 275 
     | 
    
         
            +
            <li><a class="reference internal" href="#index">7.11.3.2.4.1.2. <code class="docutils literal"><span class="pre">index</span></code></a></li>
         
     | 
| 
      
 276 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 277 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 278 
     | 
    
         
            +
            <li><a class="reference internal" href="#optional-parameters">7.11.3.2.4.2. Optional parameters</a></li>
         
     | 
| 
      
 279 
     | 
    
         
            +
            </ul>
         
     | 
| 
      
 280 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 281 
     | 
    
         
            +
            <li><a class="reference internal" href="#return-value">7.11.3.2.5. Return value</a></li>
         
     | 
| 
      
 282 
     | 
    
         
            +
            <li><a class="reference internal" href="#see-also">7.11.3.2.6. See also</a></li>
         
     | 
| 
       242 
283 
     | 
    
         
             
            </ul>
         
     | 
| 
       243 
284 
     | 
    
         
             
            </li>
         
     | 
| 
       244 
285 
     | 
    
         
             
            </ul>
         
     | 
| 
         @@ -285,7 +326,7 @@ is important term.</p> 
     | 
|
| 
       285 
326 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       286 
327 
     | 
    
         
             
                      <a href="scorer_tf_at_most.html" title="7.11.3.1. scorer_tf_at_most"
         
     | 
| 
       287 
328 
     | 
    
         
             
                         >previous</a> |</li>
         
     | 
| 
       288 
     | 
    
         
            -
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0. 
     | 
| 
      
 329 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.7-264-ga2dae20 documentation</a> »</li>
         
     | 
| 
       289 
330 
     | 
    
         
             
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. Reference manual</a> »</li>
         
     | 
| 
       290 
331 
     | 
    
         
             
                      <li class="nav-item nav-item-2"><a href="../scorer.html" >7.11. Scorer</a> »</li> 
         
     | 
| 
       291 
332 
     | 
    
         
             
                  </ul>
         
     |