rroonga 4.0.0-x64-mingw32 → 4.0.1-x64-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 +4 -4
 - data/.yardopts +6 -0
 - data/doc/text/news.textile +26 -0
 - data/ext/groonga/rb-grn-column.c +42 -2
 - data/ext/groonga/rb-grn-index-column.c +57 -159
 - data/ext/groonga/rb-grn-object.c +7 -0
 - data/ext/groonga/rb-grn-table.c +19 -3
 - data/ext/groonga/rb-grn-utils.c +4 -1
 - data/ext/groonga/rb-grn-variable-size-column.c +405 -5
 - data/ext/groonga/rb-grn.h +18 -1
 - data/lib/1.9/groonga.so +0 -0
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/groonga/dumper.rb +46 -22
 - data/lib/groonga/expression-builder.rb +2 -4
 - data/lib/groonga/schema.rb +16 -234
 - data/rroonga-build.rb +3 -3
 - data/rroonga.gemspec +1 -1
 - data/test/test-array.rb +6 -5
 - data/test/test-column.rb +0 -14
 - data/test/test-database.rb +6 -5
 - data/test/test-double-array-trie.rb +6 -5
 - data/test/test-expression.rb +2 -2
 - data/test/test-hash.rb +6 -5
 - data/test/test-index-column.rb +163 -33
 - data/test/test-patricia-trie.rb +6 -5
 - data/test/test-schema-dumper.rb +39 -7
 - data/test/test-table-dumper.rb +46 -1
 - data/test/test-table-select-weight.rb +12 -0
 - data/test/test-variable-size-column.rb +87 -3
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga.exe +0 -0
 - data/vendor/local/bin/libgroonga-0.dll +0 -0
 - data/vendor/local/bin/libmecab-1.dll +0 -0
 - data/vendor/local/bin/libmsgpack-3.dll +0 -0
 - data/vendor/local/bin/libmsgpackc-2.dll +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/include/groonga/groonga.h +6 -1
 - 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/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/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/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/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/share/doc/groonga/en/html/.buildinfo +1 -1
 - 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 +41 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/column.txt +25 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/columns/vector.txt +333 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +37 -17
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +4 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +99 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt +128 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-learner.txt +11 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/basic.css +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution/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/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 +11 -11
 - data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/index.html +68 -67
 - 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 +247 -200
 - 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/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 +69 -68
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +38 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +153 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +857 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +8 -9
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +47 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +8 -9
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +193 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +12 -12
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +8 -9
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +12 -12
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +10 -10
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +165 -13
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +25 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +7 -7
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +50 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +36 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +62 -62
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +140 -140
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +31 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +18 -18
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +36 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +13 -13
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +38 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +8 -8
 - 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 +9 -9
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec.html +9 -9
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +8 -8
 - 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 +12 -12
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - 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 +41 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/column.txt +25 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/columns/vector.txt +333 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +37 -17
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +4 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +99 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-httpd.txt +128 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-learner.txt +11 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution/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/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 +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/index.html +67 -66
 - 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 +262 -200
 - 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/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 +69 -68
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +35 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +150 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +824 -0
 - 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/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_create.html +6 -6
 - 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 +45 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.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/log_level.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +8 -7
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.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/ruby_eval.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +174 -5
 - 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 +10 -10
 - 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 +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +6 -6
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.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 +8 -8
 - 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 +167 -11
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +23 -6
 - 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 +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +38 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +48 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +44 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +60 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +138 -138
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +21 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +15 -15
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +35 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/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/package.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +12 -12
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
 - data/vendor/local/share/man/ja/man1/groonga.1 +526 -73
 - data/vendor/local/share/man/man1/groonga.1 +552 -80
 - metadata +148 -139
 
| 
         @@ -74,9 +74,9 @@ Build from source 
     | 
|
| 
       74 
74 
     | 
    
         
             
            Groonga uses GNU build system. So the following is the simplest build
         
     | 
| 
       75 
75 
     | 
    
         
             
            steps::
         
     | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
     | 
    
         
            -
              % wget http://packages.groonga.org/source/groonga/groonga-4.0. 
     | 
| 
       78 
     | 
    
         
            -
              % tar xvzf groonga-4.0. 
     | 
| 
       79 
     | 
    
         
            -
              % cd groonga-4.0. 
     | 
| 
      
 77 
     | 
    
         
            +
              % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
         
     | 
| 
      
 78 
     | 
    
         
            +
              % tar xvzf groonga-4.0.1.tar.gz
         
     | 
| 
      
 79 
     | 
    
         
            +
              % cd groonga-4.0.1
         
     | 
| 
       80 
80 
     | 
    
         
             
              % ./configure
         
     | 
| 
       81 
81 
     | 
    
         
             
              % make
         
     | 
| 
       82 
82 
     | 
    
         
             
              % sudo make install
         
     | 
| 
         @@ -17,9 +17,9 @@ Install required packages to build groonga:: 
     | 
|
| 
       17 
17 
     | 
    
         | 
| 
       18 
18 
     | 
    
         
             
            Download source::
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
              % wget http://packages.groonga.org/source/groonga/groonga-4.0. 
     | 
| 
       21 
     | 
    
         
            -
              % gtar xvzf groonga-4.0. 
     | 
| 
       22 
     | 
    
         
            -
              % cd groonga-4.0. 
     | 
| 
      
 20 
     | 
    
         
            +
              % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
         
     | 
| 
      
 21 
     | 
    
         
            +
              % gtar xvzf groonga-4.0.1.tar.gz
         
     | 
| 
      
 22 
     | 
    
         
            +
              % cd groonga-4.0.1
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
24 
     | 
    
         
             
            Configure with ``CFLAGS="-m64" CXXFLAGS="-m64"`` variables. They are
         
     | 
| 
       25 
25 
     | 
    
         
             
            needed for building 64-bit version. To build 32-bit version, just
         
     | 
| 
         @@ -206,9 +206,9 @@ Install required packages to build groonga:: 
     | 
|
| 
       206 
206 
     | 
    
         | 
| 
       207 
207 
     | 
    
         
             
            Download source::
         
     | 
| 
       208 
208 
     | 
    
         | 
| 
       209 
     | 
    
         
            -
              % wget http://packages.groonga.org/source/groonga/groonga-4.0. 
     | 
| 
       210 
     | 
    
         
            -
              % tar xvzf groonga-4.0. 
     | 
| 
       211 
     | 
    
         
            -
              % cd groonga-4.0. 
     | 
| 
      
 209 
     | 
    
         
            +
              % wget http://packages.groonga.org/source/groonga/groonga-4.0.1.tar.gz
         
     | 
| 
      
 210 
     | 
    
         
            +
              % tar xvzf groonga-4.0.1.tar.gz
         
     | 
| 
      
 211 
     | 
    
         
            +
              % cd groonga-4.0.1
         
     | 
| 
       212 
212 
     | 
    
         | 
| 
       213 
213 
     | 
    
         
             
            Configure (see :ref:`source-configure` about ``configure`` options)::
         
     | 
| 
       214 
214 
     | 
    
         | 
| 
         @@ -21,14 +21,14 @@ Installer 
     | 
|
| 
       21 
21 
     | 
    
         
             
            For 32-bit environment, download x86 executable binary from
         
     | 
| 
       22 
22 
     | 
    
         
             
            packages.groonga.org:
         
     | 
| 
       23 
23 
     | 
    
         | 
| 
       24 
     | 
    
         
            -
              * http://packages.groonga.org/windows/groonga/groonga-4.0. 
     | 
| 
      
 24 
     | 
    
         
            +
              * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x86.exe
         
     | 
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
            Then run it.
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
28 
     | 
    
         
             
            For 64-bit environment, download x64 executable binary from
         
     | 
| 
       29 
29 
     | 
    
         
             
            packages.goronga.org:
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
       31 
     | 
    
         
            -
              * http://packages.groonga.org/windows/groonga/groonga-4.0. 
     | 
| 
      
 31 
     | 
    
         
            +
              * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x64.exe
         
     | 
| 
       32 
32 
     | 
    
         | 
| 
       33 
33 
     | 
    
         
             
            Then run it.
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
         @@ -41,14 +41,14 @@ zip 
     | 
|
| 
       41 
41 
     | 
    
         
             
            For 32-bit environment, download x86 zip archive from
         
     | 
| 
       42 
42 
     | 
    
         
             
            packages.groonga.org:
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
              * http://packages.groonga.org/windows/groonga/groonga-4.0. 
     | 
| 
      
 44 
     | 
    
         
            +
              * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x86.zip
         
     | 
| 
       45 
45 
     | 
    
         | 
| 
       46 
46 
     | 
    
         
             
            Then extract it.
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
48 
     | 
    
         
             
            For 64-bit environment, download x64 zip archive from
         
     | 
| 
       49 
49 
     | 
    
         
             
            packages.groonga.org:
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
     | 
    
         
            -
              * http://packages.groonga.org/windows/groonga/groonga-4.0. 
     | 
| 
      
 51 
     | 
    
         
            +
              * http://packages.groonga.org/windows/groonga/groonga-4.0.1-x64.zip
         
     | 
| 
       52 
52 
     | 
    
         | 
| 
       53 
53 
     | 
    
         
             
            Then extract it.
         
     | 
| 
       54 
54 
     | 
    
         | 
| 
         @@ -66,27 +66,27 @@ Windows. Here are required tools: 
     | 
|
| 
       66 
66 
     | 
    
         | 
| 
       67 
67 
     | 
    
         
             
            Download zipped source from packages.groonga.org:
         
     | 
| 
       68 
68 
     | 
    
         | 
| 
       69 
     | 
    
         
            -
              * http://packages.groonga.org/source/groonga/groonga-4.0. 
     | 
| 
      
 69 
     | 
    
         
            +
              * http://packages.groonga.org/source/groonga/groonga-4.0.1.zip
         
     | 
| 
       70 
70 
     | 
    
         | 
| 
       71 
71 
     | 
    
         
             
            Then extract it.
         
     | 
| 
       72 
72 
     | 
    
         | 
| 
       73 
73 
     | 
    
         
             
            Move to the Groonga's source folder::
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
     | 
    
         
            -
              > cd c:\Users\%USERNAME%\Downloads\groonga-4.0. 
     | 
| 
      
 75 
     | 
    
         
            +
              > cd c:\Users\%USERNAME%\Downloads\groonga-4.0.1
         
     | 
| 
       76 
76 
     | 
    
         | 
| 
       77 
77 
     | 
    
         
             
            Configure by ``cmake``. The following commnad line is for 64-bit
         
     | 
| 
       78 
78 
     | 
    
         
             
            version. To build 32-bit version, use ``-G "Visual Studio 10"``
         
     | 
| 
       79 
79 
     | 
    
         
             
            parameter instead::
         
     | 
| 
       80 
80 
     | 
    
         | 
| 
       81 
     | 
    
         
            -
              groonga-4.0. 
     | 
| 
      
 81 
     | 
    
         
            +
              groonga-4.0.1> cmake . -G "Visual Studio 10 Win64" -DCMAKE_INSTALL_PREFIX=C:\groonga
         
     | 
| 
       82 
82 
     | 
    
         | 
| 
       83 
83 
     | 
    
         
             
            Build::
         
     | 
| 
       84 
84 
     | 
    
         | 
| 
       85 
     | 
    
         
            -
              groonga-4.0. 
     | 
| 
      
 85 
     | 
    
         
            +
              groonga-4.0.1> cmake --build . --config Release
         
     | 
| 
       86 
86 
     | 
    
         | 
| 
       87 
87 
     | 
    
         
             
            Install::
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
     | 
    
         
            -
              groonga-4.0. 
     | 
| 
      
 89 
     | 
    
         
            +
              groonga-4.0.1> cmake --build . --config Release --target Install
         
     | 
| 
       90 
90 
     | 
    
         | 
| 
       91 
91 
     | 
    
         
             
            After the above steps, :doc:`/reference/executables/groonga` is found in
         
     | 
| 
       92 
92 
     | 
    
         
             
            ``c:\groonga\bin\groonga.exe``.
         
     | 
| 
         @@ -5,6 +5,47 @@ 
     | 
|
| 
       5 
5 
     | 
    
         
             
            News
         
     | 
| 
       6 
6 
     | 
    
         
             
            ====
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
      
 8 
     | 
    
         
            +
            .. _release-4-0-1:
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            Release 4.0.1 - 2014/03/29
         
     | 
| 
      
 12 
     | 
    
         
            +
            --------------------------
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            Improvements
         
     | 
| 
      
 15 
     | 
    
         
            +
            ^^^^^^^^^^^^
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            * [doc] Added a link in return value to detailed header description (:doc:`/reference/command/output_format`).
         
     | 
| 
      
 18 
     | 
    
         
            +
            * Supported to inspect vector and object value in JSON load.
         
     | 
| 
      
 19 
     | 
    
         
            +
              It shows more details about data which is failed to load.
         
     | 
| 
      
 20 
     | 
    
         
            +
            * Added ``adjuster`` option to select command.
         
     | 
| 
      
 21 
     | 
    
         
            +
              adjuster options accepts following syntax: INDEX_COLUMN @ STRING_LITERAL (* FACTOR).
         
     | 
| 
      
 22 
     | 
    
         
            +
            * Supported :ref:`weight-vector-column`. You need to specify 'COLUMN_VECTOR|WITH_WEIGHT' flags 
         
     | 
| 
      
 23 
     | 
    
         
            +
              to create weight vector column.
         
     | 
| 
      
 24 
     | 
    
         
            +
            * Added missing MIN/MAX macros on SunOS. [GitHub#154] [Patch by Sebastian Wiedenroth]
         
     | 
| 
      
 25 
     | 
    
         
            +
            * Improved recycling garbage data. It suppress to increse database size.
         
     | 
| 
      
 26 
     | 
    
         
            +
            * [doc] Added documentation about GET parameters for :doc:`/reference/executables/groonga-suggest-httpd`.
         
     | 
| 
      
 27 
     | 
    
         
            +
            * [doc] Added documentation about :doc:`/reference/column`.
         
     | 
| 
      
 28 
     | 
    
         
            +
            * [doc] Added documentation about :doc:`/reference/columns/vector`.
         
     | 
| 
      
 29 
     | 
    
         
            +
            * [column_list] Supported to show weight vector column.
         
     | 
| 
      
 30 
     | 
    
         
            +
            * [column_create] Added error check for creating multi column index without WITH_SECTION.
         
     | 
| 
      
 31 
     | 
    
         
            +
            * [httpd] Enabled stub status module (NginxHttpStubStatusModule) for groonga-httpd. [Suggested by Masahiro Nagano]
         
     | 
| 
      
 32 
     | 
    
         
            +
             
     | 
| 
      
 33 
     | 
    
         
            +
            Fixes
         
     | 
| 
      
 34 
     | 
    
         
            +
            ^^^^^
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
            * Fixed a bug that a division overflow caused a fatal error.
         
     | 
| 
      
 37 
     | 
    
         
            +
              For example, it occurs when you execute 'COLUMN / -1' operation to Int32 or Int64 column. [#2307]
         
     | 
| 
      
 38 
     | 
    
         
            +
            * Fixed a bug that '%' operations performs '/' operations. [#2307]
         
     | 
| 
      
 39 
     | 
    
         
            +
            * [doc] Fixed a wrong documentation about :doc:`reference/commands/column_rename`.
         
     | 
| 
      
 40 
     | 
    
         
            +
            * Fixed the issue that out of bound array element access may occurs. [GitHub#158] [Reported by dcb314]
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
            Thanks
         
     | 
| 
      
 43 
     | 
    
         
            +
            ^^^^^^
         
     | 
| 
      
 44 
     | 
    
         
            +
             
     | 
| 
      
 45 
     | 
    
         
            +
            * nise_nabe
         
     | 
| 
      
 46 
     | 
    
         
            +
            * Sebastian Wiedenroth
         
     | 
| 
      
 47 
     | 
    
         
            +
            * dcb314
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
       8 
49 
     | 
    
         
             
            .. _release-4-0-0:
         
     | 
| 
       9 
50 
     | 
    
         | 
| 
       10 
51 
     | 
    
         | 
| 
         @@ -3,8 +3,8 @@ 
     | 
|
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            .. highlightlang:: none
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
      
 6 
     | 
    
         
            +
            Reference manual
         
     | 
| 
      
 7 
     | 
    
         
            +
            ================
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
9 
     | 
    
         
             
            .. toctree::
         
     | 
| 
       10 
10 
     | 
    
         
             
               :maxdepth: 2
         
     | 
| 
         @@ -14,6 +14,7 @@ 
     | 
|
| 
       14 
14 
     | 
    
         
             
               reference/command
         
     | 
| 
       15 
15 
     | 
    
         
             
               reference/types
         
     | 
| 
       16 
16 
     | 
    
         
             
               reference/tables
         
     | 
| 
      
 17 
     | 
    
         
            +
               reference/column
         
     | 
| 
       17 
18 
     | 
    
         
             
               reference/normalizers
         
     | 
| 
       18 
19 
     | 
    
         
             
               reference/tokenizers
         
     | 
| 
       19 
20 
     | 
    
         
             
               reference/query_expanders
         
     | 
| 
         @@ -0,0 +1,25 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .. -*- rst -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            .. highlightlang:: none
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            Column
         
     | 
| 
      
 6 
     | 
    
         
            +
            ======
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            Column is a data store object or an index object for fast search.
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            A column belongs to a table. Table has zero or more columns.
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            Both data store column and index column have type. Type of data store
         
     | 
| 
      
 13 
     | 
    
         
            +
            column specifies data range. In other words, it is "value type". Type
         
     | 
| 
      
 14 
     | 
    
         
            +
            of index column specifies set of documents to be indexed. A set of
         
     | 
| 
      
 15 
     | 
    
         
            +
            documents is a table in Groonga. In other words, type of index column
         
     | 
| 
      
 16 
     | 
    
         
            +
            must be a table.
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            Here are data store columns:
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              * :doc:`columns/scalar`
         
     | 
| 
      
 21 
     | 
    
         
            +
              * :doc:`columns/vector`
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            Here is an index column:
         
     | 
| 
      
 24 
     | 
    
         
            +
             
     | 
| 
      
 25 
     | 
    
         
            +
              * :doc:`columns/index`
         
     | 
| 
         @@ -0,0 +1,333 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            .. -*- rst -*-
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            .. highlightlang:: none
         
     | 
| 
      
 4 
     | 
    
         
            +
             
     | 
| 
      
 5 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 6 
     | 
    
         
            +
            .. database: columns_vector
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            Vector column
         
     | 
| 
      
 9 
     | 
    
         
            +
            =============
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            Summary
         
     | 
| 
      
 12 
     | 
    
         
            +
            -------
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            Vector column is a data store object. It can stores zero or more
         
     | 
| 
      
 15 
     | 
    
         
            +
            scalar values. In short, scalar value is a single value such as number
         
     | 
| 
      
 16 
     | 
    
         
            +
            and string. See :doc:`scalar` about scalar value details.
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            One of vector column use cases is tags store. You can use a vector
         
     | 
| 
      
 19 
     | 
    
         
            +
            column to store tag values.
         
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
            You can use vector column as index search target in the same way as
         
     | 
| 
      
 22 
     | 
    
         
            +
            scalar column. You can set weight for each element. The element that
         
     | 
| 
      
 23 
     | 
    
         
            +
            has one or more weight is matched, the record has more score rather
         
     | 
| 
      
 24 
     | 
    
         
            +
            than no weight case. It is a vector column specific feature. Vector
         
     | 
| 
      
 25 
     | 
    
         
            +
            column that can store weight is called weight vector column.
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
            You can also do full text search against each text element. But search
         
     | 
| 
      
 28 
     | 
    
         
            +
            score is too high when weight is used. You should use full text search
         
     | 
| 
      
 29 
     | 
    
         
            +
            with weight carefully.
         
     | 
| 
      
 30 
     | 
    
         
            +
             
     | 
| 
      
 31 
     | 
    
         
            +
            Usage
         
     | 
| 
      
 32 
     | 
    
         
            +
            -----
         
     | 
| 
      
 33 
     | 
    
         
            +
             
     | 
| 
      
 34 
     | 
    
         
            +
            There are three vector column types:
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
              * Normal vector column
         
     | 
| 
      
 37 
     | 
    
         
            +
              * Reference vector column
         
     | 
| 
      
 38 
     | 
    
         
            +
              * Weight vector column
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
            This section describes how to use these types.
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
            .. _normal-vector-column:
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
            Normal vector column
         
     | 
| 
      
 45 
     | 
    
         
            +
            ^^^^^^^^^^^^^^^^^^^^
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
            Normal vector column stores zero or more scalar data. For example,
         
     | 
| 
      
 48 
     | 
    
         
            +
            scalar data are number, string and so on.
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
      
 50 
     | 
    
         
            +
            A normal vector column can store the same type elements. You can't mix
         
     | 
| 
      
 51 
     | 
    
         
            +
            types. For example, you can't store a number and a string in the same
         
     | 
| 
      
 52 
     | 
    
         
            +
            normal vector column.
         
     | 
| 
      
 53 
     | 
    
         
            +
             
     | 
| 
      
 54 
     | 
    
         
            +
            Normal vector column is useful when a record has multiple values with
         
     | 
| 
      
 55 
     | 
    
         
            +
            a key. Tags are the most popular use case.
         
     | 
| 
      
 56 
     | 
    
         
            +
             
     | 
| 
      
 57 
     | 
    
         
            +
            How to create
         
     | 
| 
      
 58 
     | 
    
         
            +
            """""""""""""
         
     | 
| 
      
 59 
     | 
    
         
            +
             
     | 
| 
      
 60 
     | 
    
         
            +
            Use :doc:`/reference/commands/column_create` command to create a
         
     | 
| 
      
 61 
     | 
    
         
            +
            normal vector column. The point is ``COLUMN_VECTOR`` flag:
         
     | 
| 
      
 62 
     | 
    
         
            +
             
     | 
| 
      
 63 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 64 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_create_normal.log
         
     | 
| 
      
 65 
     | 
    
         
            +
            .. table_create Bookmarks TABLE_HASH_KEY ShortText
         
     | 
| 
      
 66 
     | 
    
         
            +
            .. column_create Bookmarks tags COLUMN_VECTOR ShortText
         
     | 
| 
      
 67 
     | 
    
         
            +
             
     | 
| 
      
 68 
     | 
    
         
            +
            You can set zero or more tags to a bookmark.
         
     | 
| 
      
 69 
     | 
    
         
            +
             
     | 
| 
      
 70 
     | 
    
         
            +
            How to load
         
     | 
| 
      
 71 
     | 
    
         
            +
            """""""""""
         
     | 
| 
      
 72 
     | 
    
         
            +
             
     | 
| 
      
 73 
     | 
    
         
            +
            You can load vector data by JSON array syntax::
         
     | 
| 
      
 74 
     | 
    
         
            +
             
     | 
| 
      
 75 
     | 
    
         
            +
              [ELEMENT1, ELEMENT2, ELEMENT3, ...]
         
     | 
| 
      
 76 
     | 
    
         
            +
             
     | 
| 
      
 77 
     | 
    
         
            +
            Let's load the following data:
         
     | 
| 
      
 78 
     | 
    
         
            +
             
     | 
| 
      
 79 
     | 
    
         
            +
            .. list-table::
         
     | 
| 
      
 80 
     | 
    
         
            +
               :header-rows: 1
         
     | 
| 
      
 81 
     | 
    
         
            +
             
     | 
| 
      
 82 
     | 
    
         
            +
               * - ``_key``
         
     | 
| 
      
 83 
     | 
    
         
            +
                 - ``tags``
         
     | 
| 
      
 84 
     | 
    
         
            +
               * - ``http://groonga.org/``
         
     | 
| 
      
 85 
     | 
    
         
            +
                 - ``["groonga"]``
         
     | 
| 
      
 86 
     | 
    
         
            +
               * - ``http://mroonga.org/``
         
     | 
| 
      
 87 
     | 
    
         
            +
                 - ``["mroonga", "mysql", "groonga"]``
         
     | 
| 
      
 88 
     | 
    
         
            +
               * - ``http://ranguba.org/``
         
     | 
| 
      
 89 
     | 
    
         
            +
                 - ``["ruby", "groonga"]``
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
      
 91 
     | 
    
         
            +
            Here is a command that loads the data:
         
     | 
| 
      
 92 
     | 
    
         
            +
             
     | 
| 
      
 93 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 94 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_load_normal.log
         
     | 
| 
      
 95 
     | 
    
         
            +
            .. load --table Bookmarks
         
     | 
| 
      
 96 
     | 
    
         
            +
            .. [
         
     | 
| 
      
 97 
     | 
    
         
            +
            .. {"_key": "http://groonga.org/", "tags": ["groonga"]},
         
     | 
| 
      
 98 
     | 
    
         
            +
            .. {"_key": "http://mroonga.org/", "tags": ["mroonga", "mysql", "groonga"]},
         
     | 
| 
      
 99 
     | 
    
         
            +
            .. {"_key": "http://ranguba.org/", "tags": ["ruby", "groonga"]}
         
     | 
| 
      
 100 
     | 
    
         
            +
            .. ]
         
     | 
| 
      
 101 
     | 
    
         
            +
             
     | 
| 
      
 102 
     | 
    
         
            +
            The loaded data can be outputted as JSON array syntax:
         
     | 
| 
      
 103 
     | 
    
         
            +
             
     | 
| 
      
 104 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 105 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_output_normal.log
         
     | 
| 
      
 106 
     | 
    
         
            +
            .. select Bookmarks
         
     | 
| 
      
 107 
     | 
    
         
            +
             
     | 
| 
      
 108 
     | 
    
         
            +
            How to search
         
     | 
| 
      
 109 
     | 
    
         
            +
            """""""""""""
         
     | 
| 
      
 110 
     | 
    
         
            +
             
     | 
| 
      
 111 
     | 
    
         
            +
            You need to create an index to search normal vector column:
         
     | 
| 
      
 112 
     | 
    
         
            +
             
     | 
| 
      
 113 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 114 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_index_normal.log
         
     | 
| 
      
 115 
     | 
    
         
            +
            .. table_create Tags TABLE_PAT_KEY ShortText
         
     | 
| 
      
 116 
     | 
    
         
            +
            .. column_create Tags bookmark_index COLUMN_INDEX Bookmarks tags
         
     | 
| 
      
 117 
     | 
    
         
            +
             
     | 
| 
      
 118 
     | 
    
         
            +
            There are no vector column specific way. You can create an index like
         
     | 
| 
      
 119 
     | 
    
         
            +
            a scalar column.
         
     | 
| 
      
 120 
     | 
    
         
            +
             
     | 
| 
      
 121 
     | 
    
         
            +
            You can search an element in ``tags`` like full text search syntax.
         
     | 
| 
      
 122 
     | 
    
         
            +
             
     | 
| 
      
 123 
     | 
    
         
            +
            With :ref:`select-match-columns` and :ref:`select-query`:
         
     | 
| 
      
 124 
     | 
    
         
            +
             
     | 
| 
      
 125 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 126 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_query_normal.log
         
     | 
| 
      
 127 
     | 
    
         
            +
            .. select Bookmarks --match_columns tags --query mysql --output_columns _key,tags,_score
         
     | 
| 
      
 128 
     | 
    
         
            +
             
     | 
| 
      
 129 
     | 
    
         
            +
            You can also use weight in :ref:`select-match-columns`:
         
     | 
| 
      
 130 
     | 
    
         
            +
             
     | 
| 
      
 131 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 132 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_query_weight_normal.log
         
     | 
| 
      
 133 
     | 
    
         
            +
            .. select Bookmarks --match_columns 'tags * 3' --query mysql --output_columns _key,tags,_score
         
     | 
| 
      
 134 
     | 
    
         
            +
             
     | 
| 
      
 135 
     | 
    
         
            +
            With :ref:`select-filter`:
         
     | 
| 
      
 136 
     | 
    
         
            +
             
     | 
| 
      
 137 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 138 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_filter_normal.log
         
     | 
| 
      
 139 
     | 
    
         
            +
            .. select Bookmarks --filter 'tags @ "msyql"' --output_columns _key,tags,_score
         
     | 
| 
      
 140 
     | 
    
         
            +
             
     | 
| 
      
 141 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 142 
     | 
    
         
            +
            .. table_remove Tags
         
     | 
| 
      
 143 
     | 
    
         
            +
            .. table_remove Bookmarks
         
     | 
| 
      
 144 
     | 
    
         
            +
             
     | 
| 
      
 145 
     | 
    
         
            +
            .. _reference-vector-column:
         
     | 
| 
      
 146 
     | 
    
         
            +
             
     | 
| 
      
 147 
     | 
    
         
            +
            Reference vector column
         
     | 
| 
      
 148 
     | 
    
         
            +
            ^^^^^^^^^^^^^^^^^^^^^^^
         
     | 
| 
      
 149 
     | 
    
         
            +
             
     | 
| 
      
 150 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 151 
     | 
    
         
            +
             
     | 
| 
      
 152 
     | 
    
         
            +
            Reference vector column is space-efficient if there are many same
         
     | 
| 
      
 153 
     | 
    
         
            +
            value elements. Reference vector column keeps reference record IDs not
         
     | 
| 
      
 154 
     | 
    
         
            +
            value itself. Record ID is smaller than value itself.
         
     | 
| 
      
 155 
     | 
    
         
            +
             
     | 
| 
      
 156 
     | 
    
         
            +
            How to create
         
     | 
| 
      
 157 
     | 
    
         
            +
            """""""""""""
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 160 
     | 
    
         
            +
             
     | 
| 
      
 161 
     | 
    
         
            +
            How to load
         
     | 
| 
      
 162 
     | 
    
         
            +
            """""""""""
         
     | 
| 
      
 163 
     | 
    
         
            +
             
     | 
| 
      
 164 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 165 
     | 
    
         
            +
             
     | 
| 
      
 166 
     | 
    
         
            +
            How to search
         
     | 
| 
      
 167 
     | 
    
         
            +
            """""""""""""
         
     | 
| 
      
 168 
     | 
    
         
            +
             
     | 
| 
      
 169 
     | 
    
         
            +
            TODO
         
     | 
| 
      
 170 
     | 
    
         
            +
             
     | 
| 
      
 171 
     | 
    
         
            +
            .. _weight-vector-column:
         
     | 
| 
      
 172 
     | 
    
         
            +
             
     | 
| 
      
 173 
     | 
    
         
            +
            Weight vector column
         
     | 
| 
      
 174 
     | 
    
         
            +
            ^^^^^^^^^^^^^^^^^^^^
         
     | 
| 
      
 175 
     | 
    
         
            +
             
     | 
| 
      
 176 
     | 
    
         
            +
            Weight vector column is similar to normal vector column. It can store
         
     | 
| 
      
 177 
     | 
    
         
            +
            elements. It can also stores weights for them. Weight is degree of
         
     | 
| 
      
 178 
     | 
    
         
            +
            importance of the element.
         
     | 
| 
      
 179 
     | 
    
         
            +
             
     | 
| 
      
 180 
     | 
    
         
            +
            Weight is positive integer. ``0`` is the default weight. It means that
         
     | 
| 
      
 181 
     | 
    
         
            +
            no weight.
         
     | 
| 
      
 182 
     | 
    
         
            +
             
     | 
| 
      
 183 
     | 
    
         
            +
            If weight is one or larger, search score is increased by the
         
     | 
| 
      
 184 
     | 
    
         
            +
            weight. If the weight is ``0``, score is ``1``. If the weight is
         
     | 
| 
      
 185 
     | 
    
         
            +
            ``10``, score is ``11`` (``= 1 + 10``).
         
     | 
| 
      
 186 
     | 
    
         
            +
             
     | 
| 
      
 187 
     | 
    
         
            +
            Weight vector column is useful for tuning search score. See also
         
     | 
| 
      
 188 
     | 
    
         
            +
            :ref:`select-adjuster`. You can increase search score of specific
         
     | 
| 
      
 189 
     | 
    
         
            +
            records.
         
     | 
| 
      
 190 
     | 
    
         
            +
             
     | 
| 
      
 191 
     | 
    
         
            +
            Limitations
         
     | 
| 
      
 192 
     | 
    
         
            +
            """""""""""
         
     | 
| 
      
 193 
     | 
    
         
            +
             
     | 
| 
      
 194 
     | 
    
         
            +
            There are some limitations for now. They will be resolved in the
         
     | 
| 
      
 195 
     | 
    
         
            +
            future.
         
     | 
| 
      
 196 
     | 
    
         
            +
             
     | 
| 
      
 197 
     | 
    
         
            +
            Here are limitations:
         
     | 
| 
      
 198 
     | 
    
         
            +
             
     | 
| 
      
 199 
     | 
    
         
            +
              * You need to use string representation for element value on load.
         
     | 
| 
      
 200 
     | 
    
         
            +
                For example, you can't use ``29`` for number 29. You need to use
         
     | 
| 
      
 201 
     | 
    
         
            +
                ``"29"`` for number 29.
         
     | 
| 
      
 202 
     | 
    
         
            +
              * You can't use reference type.
         
     | 
| 
      
 203 
     | 
    
         
            +
             
     | 
| 
      
 204 
     | 
    
         
            +
            How to create
         
     | 
| 
      
 205 
     | 
    
         
            +
            """""""""""""
         
     | 
| 
      
 206 
     | 
    
         
            +
             
     | 
| 
      
 207 
     | 
    
         
            +
            Use :doc:`/reference/commands/column_create` command to create a
         
     | 
| 
      
 208 
     | 
    
         
            +
            weight vector column. The point is ``COLUMN_VECTOR|WITH_WEIGHT``
         
     | 
| 
      
 209 
     | 
    
         
            +
            flags:
         
     | 
| 
      
 210 
     | 
    
         
            +
             
     | 
| 
      
 211 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 212 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_create_weight.log
         
     | 
| 
      
 213 
     | 
    
         
            +
            .. table_create Bookmarks TABLE_HASH_KEY ShortText
         
     | 
| 
      
 214 
     | 
    
         
            +
            .. column_create Bookmarks tags COLUMN_VECTOR|WITH_WEIGHT ShortText
         
     | 
| 
      
 215 
     | 
    
         
            +
             
     | 
| 
      
 216 
     | 
    
         
            +
            If you don't specify ``WITH_WEIGHT`` flag, it is just a normal vector
         
     | 
| 
      
 217 
     | 
    
         
            +
            column.
         
     | 
| 
      
 218 
     | 
    
         
            +
             
     | 
| 
      
 219 
     | 
    
         
            +
            You can set zero or more tags with weight to a bookmark.
         
     | 
| 
      
 220 
     | 
    
         
            +
             
     | 
| 
      
 221 
     | 
    
         
            +
            How to load
         
     | 
| 
      
 222 
     | 
    
         
            +
            """""""""""
         
     | 
| 
      
 223 
     | 
    
         
            +
             
     | 
| 
      
 224 
     | 
    
         
            +
            You can load vector data by JSON object syntax::
         
     | 
| 
      
 225 
     | 
    
         
            +
             
     | 
| 
      
 226 
     | 
    
         
            +
              {"ELEMENT1": WEIGHT1, "ELEMENT2": WEIGHT2, "ELEMENT3": WEIGHT3, ...}
         
     | 
| 
      
 227 
     | 
    
         
            +
             
     | 
| 
      
 228 
     | 
    
         
            +
            Let's load the following data:
         
     | 
| 
      
 229 
     | 
    
         
            +
             
     | 
| 
      
 230 
     | 
    
         
            +
            .. list-table::
         
     | 
| 
      
 231 
     | 
    
         
            +
               :header-rows: 1
         
     | 
| 
      
 232 
     | 
    
         
            +
             
     | 
| 
      
 233 
     | 
    
         
            +
               * - ``_key``
         
     | 
| 
      
 234 
     | 
    
         
            +
                 - ``tags``
         
     | 
| 
      
 235 
     | 
    
         
            +
               * - ``http://groonga.org/``
         
     | 
| 
      
 236 
     | 
    
         
            +
                 - ``{"groonga": 100}``
         
     | 
| 
      
 237 
     | 
    
         
            +
               * - ``http://mroonga.org/``
         
     | 
| 
      
 238 
     | 
    
         
            +
                 - ``{"mroonga": 100, "mysql": 50, "groonga": 10}``
         
     | 
| 
      
 239 
     | 
    
         
            +
               * - ``http://ranguba.org/``
         
     | 
| 
      
 240 
     | 
    
         
            +
                 - ``{"ruby": 100, "groonga": 50}``
         
     | 
| 
      
 241 
     | 
    
         
            +
             
     | 
| 
      
 242 
     | 
    
         
            +
            Here is a command that loads the data:
         
     | 
| 
      
 243 
     | 
    
         
            +
             
     | 
| 
      
 244 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 245 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_load_weight.log
         
     | 
| 
      
 246 
     | 
    
         
            +
            .. load --table Bookmarks
         
     | 
| 
      
 247 
     | 
    
         
            +
            .. [
         
     | 
| 
      
 248 
     | 
    
         
            +
            .. {"_key": "http://groonga.org/",
         
     | 
| 
      
 249 
     | 
    
         
            +
            ..  "tags": {"groonga": 100}},
         
     | 
| 
      
 250 
     | 
    
         
            +
            .. {"_key": "http://mroonga.org/",
         
     | 
| 
      
 251 
     | 
    
         
            +
            ..  "tags": {"mroonga": 100,
         
     | 
| 
      
 252 
     | 
    
         
            +
            ..           "mysql":   50,
         
     | 
| 
      
 253 
     | 
    
         
            +
            ..           "groonga": 10}},
         
     | 
| 
      
 254 
     | 
    
         
            +
            .. {"_key": "http://ranguba.org/",
         
     | 
| 
      
 255 
     | 
    
         
            +
            ..  "tags": {"ruby": 100,
         
     | 
| 
      
 256 
     | 
    
         
            +
            ..           "groonga": 50}}
         
     | 
| 
      
 257 
     | 
    
         
            +
            .. ]
         
     | 
| 
      
 258 
     | 
    
         
            +
             
     | 
| 
      
 259 
     | 
    
         
            +
            The loaded data can be outputted as JSON object syntax:
         
     | 
| 
      
 260 
     | 
    
         
            +
             
     | 
| 
      
 261 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 262 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_output_weight.log
         
     | 
| 
      
 263 
     | 
    
         
            +
            .. select Bookmarks
         
     | 
| 
      
 264 
     | 
    
         
            +
             
     | 
| 
      
 265 
     | 
    
         
            +
            How to search
         
     | 
| 
      
 266 
     | 
    
         
            +
            """""""""""""
         
     | 
| 
      
 267 
     | 
    
         
            +
             
     | 
| 
      
 268 
     | 
    
         
            +
            You need to create an index to search weight vector column. You don't
         
     | 
| 
      
 269 
     | 
    
         
            +
            forget to specify ``WITH_WEIGHT`` flag to ``column_create``:
         
     | 
| 
      
 270 
     | 
    
         
            +
             
     | 
| 
      
 271 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 272 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_index_weight.log
         
     | 
| 
      
 273 
     | 
    
         
            +
            .. table_create Tags TABLE_PAT_KEY ShortText
         
     | 
| 
      
 274 
     | 
    
         
            +
            .. column_create Tags bookmark_index COLUMN_INDEX|WITH_WEIGHT Bookmarks tags
         
     | 
| 
      
 275 
     | 
    
         
            +
             
     | 
| 
      
 276 
     | 
    
         
            +
            There are no weight vector column specific way except ``WITH_WEIGHT``
         
     | 
| 
      
 277 
     | 
    
         
            +
            flag. You can create an index like a scalar column.
         
     | 
| 
      
 278 
     | 
    
         
            +
             
     | 
| 
      
 279 
     | 
    
         
            +
            You can search an element in ``tags`` like full text search syntax.
         
     | 
| 
      
 280 
     | 
    
         
            +
             
     | 
| 
      
 281 
     | 
    
         
            +
            With :ref:`select-match-columns` and :ref:`select-query`:
         
     | 
| 
      
 282 
     | 
    
         
            +
             
     | 
| 
      
 283 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 284 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_query_weight.log
         
     | 
| 
      
 285 
     | 
    
         
            +
            .. select Bookmarks --match_columns tags --query groonga --output_columns _key,tags,_score
         
     | 
| 
      
 286 
     | 
    
         
            +
             
     | 
| 
      
 287 
     | 
    
         
            +
            You can also use weight in :ref:`select-match-columns`. The score is
         
     | 
| 
      
 288 
     | 
    
         
            +
            ``(1 + weight_in_weight_vector) * weight_in_match_columns``:
         
     | 
| 
      
 289 
     | 
    
         
            +
             
     | 
| 
      
 290 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 291 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_query_weight_weight.log
         
     | 
| 
      
 292 
     | 
    
         
            +
            .. select Bookmarks --match_columns 'tags * 3' --query groonga --output_columns _key,tags,_score
         
     | 
| 
      
 293 
     | 
    
         
            +
             
     | 
| 
      
 294 
     | 
    
         
            +
            With :ref:`select-filter`:
         
     | 
| 
      
 295 
     | 
    
         
            +
             
     | 
| 
      
 296 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 297 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_filter_weight.log
         
     | 
| 
      
 298 
     | 
    
         
            +
            .. select Bookmarks --filter 'tags @ "groonga"' --output_columns _key,tags,_score
         
     | 
| 
      
 299 
     | 
    
         
            +
             
     | 
| 
      
 300 
     | 
    
         
            +
            How to apply just weight
         
     | 
| 
      
 301 
     | 
    
         
            +
            """"""""""""""""""""""""
         
     | 
| 
      
 302 
     | 
    
         
            +
             
     | 
| 
      
 303 
     | 
    
         
            +
            You can use weight in weight vector column to just increase search
         
     | 
| 
      
 304 
     | 
    
         
            +
            score without changing a set of matched records.
         
     | 
| 
      
 305 
     | 
    
         
            +
             
     | 
| 
      
 306 
     | 
    
         
            +
            Use :ref:`select-adjuster` for the purpose:
         
     | 
| 
      
 307 
     | 
    
         
            +
             
     | 
| 
      
 308 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 309 
     | 
    
         
            +
            .. include:: ../../example/reference/columns/vector/usage_adjuster_weight.log
         
     | 
| 
      
 310 
     | 
    
         
            +
            .. select Bookmarks \
         
     | 
| 
      
 311 
     | 
    
         
            +
            ..   --filter true \
         
     | 
| 
      
 312 
     | 
    
         
            +
            ..   --adjuster 'tags @ "mysql" * 10 + tags @ "groonga" * 5' \
         
     | 
| 
      
 313 
     | 
    
         
            +
            ..   --output_columns _key,tags,_score
         
     | 
| 
      
 314 
     | 
    
         
            +
             
     | 
| 
      
 315 
     | 
    
         
            +
            The ``select`` command uses ``--filter true``. So all records are
         
     | 
| 
      
 316 
     | 
    
         
            +
            matched with score 1. Then it applies ``--adjuster``. The adjuster
         
     | 
| 
      
 317 
     | 
    
         
            +
            does the following:
         
     | 
| 
      
 318 
     | 
    
         
            +
             
     | 
| 
      
 319 
     | 
    
         
            +
              * ``tags @ "mysql" * 10`` increases score by ``(1 + weight) * 10``
         
     | 
| 
      
 320 
     | 
    
         
            +
                of records that has ``"mysql"`` tag.
         
     | 
| 
      
 321 
     | 
    
         
            +
              * ``tags @ "groonga" * 5`` increases score by ``(1 + weight) * 5``
         
     | 
| 
      
 322 
     | 
    
         
            +
                of records that has ``"groonga"`` tag.
         
     | 
| 
      
 323 
     | 
    
         
            +
             
     | 
| 
      
 324 
     | 
    
         
            +
            For example, record ``"http://mroonga.org/"`` has both ``"mysql"`` tag
         
     | 
| 
      
 325 
     | 
    
         
            +
            and ``"groonga"`` tag. So its score is increased by ``565`` (``=
         
     | 
| 
      
 326 
     | 
    
         
            +
            ((1 + 50) * 10) + ((1 + 10) * 5) = (51 * 10) + (11 * 5) = 510 + 55``).
         
     | 
| 
      
 327 
     | 
    
         
            +
            The search score is 1 by ``--filter true`` before applying
         
     | 
| 
      
 328 
     | 
    
         
            +
            ``--adjuster``. So the final search score is ``566`` (``= 1 + 565``)
         
     | 
| 
      
 329 
     | 
    
         
            +
            of record ``"http://mroonga.org/"``.
         
     | 
| 
      
 330 
     | 
    
         
            +
             
     | 
| 
      
 331 
     | 
    
         
            +
            .. groonga-command
         
     | 
| 
      
 332 
     | 
    
         
            +
            .. table_remove Tags
         
     | 
| 
      
 333 
     | 
    
         
            +
            .. table_remove Bookmarks
         
     |