rroonga 4.0.0-x64-mingw32 → 4.0.1-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.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
@@ -40,7 +40,7 @@ Here are a schema definition and sample data to show usage.
|
|
40
40
|
.. [
|
41
41
|
.. {"_key": 1, "status": "OK"}
|
42
42
|
.. {"_key": 2, "status": "NG"}
|
43
|
-
.. ]
|
43
|
+
.. ]
|
44
44
|
|
45
45
|
Delete the record from Entry table which has "2" as the key.
|
46
46
|
|
@@ -67,12 +67,12 @@ The country column of Users table associates with Country table.
|
|
67
67
|
.. {"_key": 2, "name": "Mike", country: "United States"}
|
68
68
|
.. {"_key": 3, "name": "Takashi", country: "Japan"}
|
69
69
|
.. {"_key": 4, "name": "Hanako", country: "Japan"}
|
70
|
-
.. ]
|
70
|
+
.. ]
|
71
71
|
.. load --table Country
|
72
72
|
.. [
|
73
73
|
.. {"_key": "United States"}
|
74
74
|
.. {"_key": "Japan"}
|
75
|
-
.. ]
|
75
|
+
.. ]
|
76
76
|
.. delete Country "United States"
|
77
77
|
.. select Country
|
78
78
|
.. select Users
|
@@ -108,8 +108,7 @@ Return value
|
|
108
108
|
|
109
109
|
``HEADER``
|
110
110
|
|
111
|
-
|
112
|
-
See :doc:`/reference/command/output_format` about HEADER.
|
111
|
+
See :doc:`/reference/command/output_format` about ``HEADER``.
|
113
112
|
|
114
113
|
``SUCCEEDED_OR_NOT``
|
115
114
|
|
@@ -132,8 +132,7 @@ Return value
|
|
132
132
|
|
133
133
|
``HEADER``
|
134
134
|
|
135
|
-
|
136
|
-
See :doc:`/reference/command/output_format` about HEADER.
|
135
|
+
See :doc:`/reference/command/output_format` about ``HEADER``.
|
137
136
|
|
138
137
|
``normalized_text``
|
139
138
|
|
@@ -42,6 +42,7 @@ Syntax
|
|
42
42
|
[query_expansion=null]
|
43
43
|
[query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
|
44
44
|
[query_expander=null]
|
45
|
+
[adjuster=null]
|
45
46
|
|
46
47
|
Usage
|
47
48
|
-----
|
@@ -838,6 +839,104 @@ TODO: write in English and add example.
|
|
838
839
|
|
839
840
|
検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。
|
840
841
|
|
842
|
+
Score related parameters
|
843
|
+
^^^^^^^^^^^^^^^^^^^^^^^^
|
844
|
+
|
845
|
+
There is a score related parameter, ``adjuster``.
|
846
|
+
|
847
|
+
.. _select-adjuster:
|
848
|
+
|
849
|
+
|
850
|
+
``adjuster``
|
851
|
+
""""""""""""
|
852
|
+
|
853
|
+
It specifies one or more score adjust expressions. You need to use
|
854
|
+
``adjuster`` with ``query`` or ``filter``. ``adjuster`` doesn't work
|
855
|
+
with not searched request.
|
856
|
+
|
857
|
+
You can increase score of specific records by ``adjuster``. You can
|
858
|
+
use ``adjuster`` to set high score for important records.
|
859
|
+
|
860
|
+
For example, you can use ``adjuster`` to increase score of records
|
861
|
+
that have ``groonga`` tag.
|
862
|
+
|
863
|
+
Here is the syntax::
|
864
|
+
|
865
|
+
--adjuster "SCORE_ADJUST_EXPRESSION1 + SCORE_ADJUST_EXPRESSION2 + ..."
|
866
|
+
|
867
|
+
Here is the ``SCORE_ADJUST_EXPRESSION`` syntax::
|
868
|
+
|
869
|
+
COLUMN @ "KEYWORD" * FACTOR
|
870
|
+
|
871
|
+
Note the following:
|
872
|
+
|
873
|
+
* ``COLUMN`` must be indexed.
|
874
|
+
* ``"KEYWORD"`` must be a string.
|
875
|
+
* ``FACTOR`` must be a positive integer.
|
876
|
+
|
877
|
+
Here is a sample ``adjuster`` usage example that uses just one
|
878
|
+
``SCORE_ADJUST_EXPRESSION``:
|
879
|
+
|
880
|
+
.. groonga-command
|
881
|
+
.. include:: ../../example/reference/commands/select/adjuster_one.log
|
882
|
+
.. select Entries \
|
883
|
+
.. --filter true \
|
884
|
+
.. --adjuster 'content @ "groonga" * 5' \
|
885
|
+
.. --output_columns _key,content,_score
|
886
|
+
|
887
|
+
The ``select`` command matches all records. Then it applies
|
888
|
+
``adjuster``. The adjuster increases score of records that have
|
889
|
+
``"groonga"`` in ``Entries.content`` column by 5. There is only one
|
890
|
+
record that has ``"groonga"`` in ``Entries.content`` column. So the
|
891
|
+
record that its key is ``"Groonga"`` has score 6 (``= 1 + 5``).
|
892
|
+
|
893
|
+
You can omit ``FACTOR``. If you omit ``FACTOR``, it is treated as 1.
|
894
|
+
|
895
|
+
Here is a sample ``adjuster`` usage example that omits ``FACTOR``:
|
896
|
+
|
897
|
+
.. groonga-command
|
898
|
+
.. include:: ../../example/reference/commands/select/adjuster_no_factor.log
|
899
|
+
.. select Entries \
|
900
|
+
.. --filter true \
|
901
|
+
.. --adjuster 'content @ "groonga"' \
|
902
|
+
.. --output_columns _key,content,_score
|
903
|
+
|
904
|
+
The ``adjuster`` in the ``select`` command doesn't have ``FACTOR``. So
|
905
|
+
the factor is treated as 1. There is only one record that has
|
906
|
+
``"groonga"`` in ``Entries.content`` column. So the record that its
|
907
|
+
key is ``"Groonga"`` has score 2 (``= 1 + 1``).
|
908
|
+
|
909
|
+
Here is a sample ``adjuster`` usage example that uses multiple
|
910
|
+
``SCORE_ADJUST_EXPRESSION``:
|
911
|
+
|
912
|
+
.. groonga-command
|
913
|
+
.. include:: ../../example/reference/commands/select/adjuster_multiple.log
|
914
|
+
.. select Entries \
|
915
|
+
.. --filter true \
|
916
|
+
.. --adjuster 'content @ "groonga" * 5 + content @ "started" * 3' \
|
917
|
+
.. --output_columns _key,content,_score
|
918
|
+
|
919
|
+
The ``adjuster`` in the ``select`` command has two
|
920
|
+
``SCORE_ADJUST_EXPRESSION`` s. The final increased score is sum of
|
921
|
+
scores of these ``SCORE_ADJUST_EXPRESSION`` s. All
|
922
|
+
``SCORE_ADJUST_EXPRESSION`` s in the ``select`` command are applied to
|
923
|
+
a record that its key is ``"Groonga"``. So the final increased score
|
924
|
+
of the record is sum of scores of all ``SCORE_ADJUST_EXPRESSION`` s.
|
925
|
+
|
926
|
+
The first ``SCORE_ADJUST_EXPRESSION`` is ``content @ "groonga" * 5``.
|
927
|
+
It increases score by 5.
|
928
|
+
|
929
|
+
The second ``SCORE_ADJUST_EXPRESSION`` is ``content @ "started" * 3``.
|
930
|
+
It increases score by 3.
|
931
|
+
|
932
|
+
The final increased score is 9 (``= 1 + 5 + 3``).
|
933
|
+
|
934
|
+
A ``SCORE_ADJUST_EXPRESSION`` has a factor for ``"KEYWORD"``. This
|
935
|
+
means that increased scores of all records that has ``"KEYWORD"`` are
|
936
|
+
the same value. You can change increase score for each record that has
|
937
|
+
the same ``"KEYWORD"``. It is useful to tune search score. See
|
938
|
+
:ref:`weight-vector-column` for details.
|
939
|
+
|
841
940
|
返値
|
842
941
|
----
|
843
942
|
|
@@ -187,7 +187,7 @@ Here are available flags:
|
|
187
187
|
+--------------------+------------------------------+
|
188
188
|
| ``TABLE_NO_KEY`` | Array table. |
|
189
189
|
+--------------------+------------------------------+
|
190
|
-
| ``
|
190
|
+
| ``TABLE_HASH_KEY`` | Hash table. |
|
191
191
|
+--------------------+------------------------------+
|
192
192
|
| ``TABLE_PAT_KEY`` | Patricia trie. |
|
193
193
|
+--------------------+------------------------------+
|
@@ -64,8 +64,7 @@ Return value
|
|
64
64
|
|
65
65
|
``HEADER``
|
66
66
|
|
67
|
-
|
68
|
-
See :doc:`/reference/command/output_format` about HEADER.
|
67
|
+
See :doc:`/reference/command/output_format` about ``HEADER``.
|
69
68
|
|
70
69
|
``SUCCEEDED_OR_NOT``
|
71
70
|
|
data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-httpd.txt
CHANGED
@@ -2,13 +2,17 @@
|
|
2
2
|
|
3
3
|
.. highlightlang:: none
|
4
4
|
|
5
|
+
.. groonga-command
|
6
|
+
.. database: groonga-suggest-httpd
|
7
|
+
|
5
8
|
groonga-suggest-httpd
|
6
9
|
=====================
|
7
10
|
|
8
11
|
Summary
|
9
12
|
-------
|
10
13
|
|
11
|
-
|
14
|
+
groonga-suggest-httpd is a program to provide interface which accepts HTTP request and returns suggestion dataset, then saves logs for learning.
|
15
|
+
groonga-suggest-httpd behaves similar in point of view of suggestion functionality, but the name of parameter is different.
|
12
16
|
|
13
17
|
Synopsis
|
14
18
|
--------
|
@@ -20,6 +24,30 @@ Synopsis
|
|
20
24
|
Usage
|
21
25
|
-----
|
22
26
|
|
27
|
+
|
28
|
+
Set up
|
29
|
+
^^^^^^
|
30
|
+
|
31
|
+
First you need to set up database for suggestion.
|
32
|
+
|
33
|
+
.. groonga-command
|
34
|
+
.. include:: ../example/reference/executables/groonga-suggest-httpd-setup.log
|
35
|
+
.. .. % groonga-suggest-create-dataset /tmp/groonga-databases/groonga-suggest-httpd query
|
36
|
+
|
37
|
+
Launch groonga-suggest-httpd
|
38
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
39
|
+
|
40
|
+
Execute groonga-suggest-httpd command:
|
41
|
+
|
42
|
+
.. groonga-command
|
43
|
+
.. include:: ../example/reference/executables/groonga-suggest-httpd-launch.log
|
44
|
+
.. .. % groonga-suggest-httpd /tmp/groonga-databases/groonga-suggest-httpd
|
45
|
+
|
46
|
+
After executing above command, groonga-suggest-httpd accepts HTTP request on 8080 port.
|
47
|
+
|
48
|
+
Request to groonga-suggest-httpd
|
49
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
50
|
+
|
23
51
|
TODO
|
24
52
|
|
25
53
|
Options
|
@@ -57,12 +85,108 @@ Options
|
|
57
85
|
|
58
86
|
Specify this option to disable checking max fd on start.
|
59
87
|
|
60
|
-
Parameters
|
61
|
-
|
88
|
+
Command line Parameters
|
89
|
+
-----------------------
|
62
90
|
|
63
91
|
There is one required parameter - ``database_path``.
|
64
92
|
|
65
93
|
``database_path``
|
66
94
|
^^^^^^^^^^^^^^^^^^^
|
67
95
|
|
68
|
-
Specifies the path to a
|
96
|
+
Specifies the path to a Groonga database. This database must be created by :doc:`groonga-suggest-create-dataset` command because it executes required initialization for suggestion.
|
97
|
+
|
98
|
+
|
99
|
+
GET Parameters
|
100
|
+
--------------
|
101
|
+
|
102
|
+
groonga-suggest-httpd accepts following GET parameters.
|
103
|
+
|
104
|
+
There are required parameters which depends on type of query.
|
105
|
+
|
106
|
+
Required parameters
|
107
|
+
^^^^^^^^^^^^^^^^^^^
|
108
|
+
|
109
|
+
.. list-table::
|
110
|
+
:header-rows: 1
|
111
|
+
|
112
|
+
* - Key
|
113
|
+
- Description
|
114
|
+
- Note
|
115
|
+
* - q
|
116
|
+
- UTF-8 encoded string which user fills in form
|
117
|
+
-
|
118
|
+
* - t
|
119
|
+
- The type of query. The value of type must be complete, correct, suggest or submit. It also accepts multiple type of query which is concatinated by '|'. Note that 'submit' is invalid value when you specify multiple type of query.
|
120
|
+
-
|
121
|
+
|
122
|
+
Required parameters for learning
|
123
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
124
|
+
|
125
|
+
.. list-table::
|
126
|
+
:header-rows: 1
|
127
|
+
|
128
|
+
* - Key
|
129
|
+
- Description
|
130
|
+
- Note
|
131
|
+
* - s
|
132
|
+
- Elapsed time from 0:00 January 1, 1970
|
133
|
+
- Note that you need specify the value of 's' in milliseconds
|
134
|
+
* - i
|
135
|
+
- Unique ID to distinct user
|
136
|
+
- Use session ID or IP address for example
|
137
|
+
* - l
|
138
|
+
- Specify the name of dataset for learning. It also accepts multiple dataset name which is concatinated by '|'
|
139
|
+
- Note that dataset name must be matched to following regular expression '[A-Za-z ][A-Za-z0-9 ]{0,15}'
|
140
|
+
|
141
|
+
Required parameters for suggestion
|
142
|
+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
143
|
+
|
144
|
+
.. list-table::
|
145
|
+
:header-rows: 1
|
146
|
+
|
147
|
+
* - Key
|
148
|
+
- Description
|
149
|
+
- Note
|
150
|
+
* - n
|
151
|
+
- Specify the name of dataset for suggestion
|
152
|
+
- This dataset name is used to calculate suggestion results
|
153
|
+
|
154
|
+
Optional parameter
|
155
|
+
^^^^^^^^^^^^^^^^^^
|
156
|
+
|
157
|
+
.. list-table::
|
158
|
+
:header-rows: 1
|
159
|
+
|
160
|
+
* - Key
|
161
|
+
- Description
|
162
|
+
- Note
|
163
|
+
* - callback
|
164
|
+
- Specify the name of function if you prefer JSONP as response format
|
165
|
+
- The name of function must be matched to reqular expression '[A-Za-z ][A-Za-z0-9 ]{0,15}'
|
166
|
+
|
167
|
+
Return value
|
168
|
+
------------
|
169
|
+
|
170
|
+
``groonga-suggest-httpd`` command returns following response in JSON or JSONP format.
|
171
|
+
|
172
|
+
In JSON format::
|
173
|
+
|
174
|
+
{TYPE: [[CANDIDATE_1, SCORE_1], [CANDIDATE_2, SCORE_2], ... [CANDIDATE_N, SCORE_N]]}
|
175
|
+
|
176
|
+
In JSONP format::
|
177
|
+
|
178
|
+
FUNCTION({TYPE: [[CANDIDATE_1, SCORE_1], [CANDIDATE_2, SCORE_2], ... [CANDIDATE_N, SCORE_N]]})
|
179
|
+
|
180
|
+
|
181
|
+
``TYPE``
|
182
|
+
|
183
|
+
'complete', 'correct' or 'suggest'.
|
184
|
+
|
185
|
+
``CANDIDATE_N``
|
186
|
+
|
187
|
+
The string of candidate (UTF-8).
|
188
|
+
|
189
|
+
``SCORE_N``
|
190
|
+
|
191
|
+
The number of score.
|
192
|
+
|
@@ -25,7 +25,17 @@ TODO
|
|
25
25
|
Options
|
26
26
|
-------
|
27
27
|
|
28
|
-
|
28
|
+
.. cmdoption:: -r, --receive-endpoint
|
29
|
+
|
30
|
+
Specify endpoint for receiver.
|
31
|
+
|
32
|
+
.. cmdoption:: -s, --send-endpoint
|
33
|
+
|
34
|
+
Specify endpoint for sender.
|
35
|
+
|
36
|
+
.. cmdoption:: -d, --daemon
|
37
|
+
|
38
|
+
Specify this option to daemonize.
|
29
39
|
|
30
40
|
Parameters
|
31
41
|
----------
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>1. Characteristics of Groonga — Groonga
|
10
|
+
<title>1. Characteristics of Groonga — Groonga v4.0.1 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: '
|
18
|
+
VERSION: '4.0.1',
|
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
|
28
|
+
<link rel="top" title="Groonga v4.0.1 documentation" href="index.html" />
|
29
29
|
<link rel="next" title="2. Install" href="install.html" />
|
30
30
|
<link rel="prev" title="Groonga documentation" href="index.html" />
|
31
31
|
</head>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<li class="right" >
|
60
60
|
<a href="index.html" title="Groonga documentation"
|
61
61
|
accesskey="P">previous</a> |</li>
|
62
|
-
<li><a href="index.html">Groonga
|
62
|
+
<li><a href="index.html">Groonga v4.0.1 documentation</a> »</li>
|
63
63
|
</ul>
|
64
64
|
</div>
|
65
65
|
|
@@ -181,7 +181,7 @@
|
|
181
181
|
<li class="right" >
|
182
182
|
<a href="index.html" title="Groonga documentation"
|
183
183
|
>previous</a> |</li>
|
184
|
-
<li><a href="index.html">Groonga
|
184
|
+
<li><a href="index.html">Groonga v4.0.1 documentation</a> »</li>
|
185
185
|
</ul>
|
186
186
|
</div>
|
187
187
|
<div class="footer" role="contentinfo">
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>3. Community — Groonga
|
10
|
+
<title>3. Community — Groonga v4.0.1 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: '
|
18
|
+
VERSION: '4.0.1',
|
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
|
28
|
+
<link rel="top" title="Groonga v4.0.1 documentation" href="index.html" />
|
29
29
|
<link rel="next" title="4. Tutorial" href="tutorial.html" />
|
30
30
|
<link rel="prev" title="2.8. Others" href="install/others.html" />
|
31
31
|
</head>
|
@@ -59,7 +59,7 @@
|
|
59
59
|
<li class="right" >
|
60
60
|
<a href="install/others.html" title="2.8. Others"
|
61
61
|
accesskey="P">previous</a> |</li>
|
62
|
-
<li><a href="index.html">Groonga
|
62
|
+
<li><a href="index.html">Groonga v4.0.1 documentation</a> »</li>
|
63
63
|
</ul>
|
64
64
|
</div>
|
65
65
|
|
@@ -155,7 +155,7 @@ Groonga related information.</p>
|
|
155
155
|
<li class="right" >
|
156
156
|
<a href="install/others.html" title="2.8. Others"
|
157
157
|
>previous</a> |</li>
|
158
|
-
<li><a href="index.html">Groonga
|
158
|
+
<li><a href="index.html">Groonga v4.0.1 documentation</a> »</li>
|
159
159
|
</ul>
|
160
160
|
</div>
|
161
161
|
<div class="footer" role="contentinfo">
|