rroonga 2.0.7-x86-mingw32 → 2.0.8-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/1.8/groonga.so +0 -0
- data/lib/1.9/groonga.so +0 -0
- data/rroonga-build.rb +1 -1
- 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-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/etc/groonga/synonyms.tsv +5 -0
- data/vendor/local/include/groonga/groonga.h +77 -4
- data/vendor/local/include/groonga/groonga/plugin.h +45 -15
- data/vendor/local/include/groonga/groonga/tokenizer.h +62 -12
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +41 -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/suggest/suggest.la +2 -2
- 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/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +1 -1
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +1 -1
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +1 -1
- data/vendor/local/lib/pkgconfig/groonga.pc +4 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +23 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +24 -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 +13 -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 +42 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +26 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +12 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +96 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +20 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/{command_version.txt → command/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/output_format.txt +228 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/return_code.txt +110 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +59 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/function.txt +20 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +25 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +120 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +3 -1
- data/vendor/local/share/doc/groonga/{ja/html/_sources/reference/functions.txt → en/html/_sources/reference/query_expanders.txt} +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +153 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +12 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +214 -0
- 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 +11 -10
- 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/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 +42 -19
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +62 -52
- data/vendor/local/share/doc/groonga/en/html/install.html +7 -6
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +26 -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 +17 -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 +47 -10
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +25 -16
- data/vendor/local/share/doc/groonga/en/html/limitations.html +23 -13
- data/vendor/local/share/doc/groonga/en/html/news.html +175 -67
- 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 +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/{commands.html → command.html} +49 -44
- data/vendor/local/share/doc/groonga/en/html/reference/{command_version.html → command/command_version.html} +46 -46
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +356 -0
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +248 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +33 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +36 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +190 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +92 -92
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +34 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +30 -30
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands/view_add.html +32 -32
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/{functions.html → function.html} +15 -9
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +13 -13
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +98 -16
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +13 -13
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +303 -0
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +138 -0
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +315 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +15 -15
- data/vendor/local/share/doc/groonga/en/html/reference/type.html +27 -27
- 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 +19 -8
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +12 -11
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +412 -0
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +22 -22
- 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/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +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/contribution.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +23 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +24 -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 +13 -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 +42 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +26 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +12 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +96 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +20 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/{command_version.txt → command/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/output_format.txt +228 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/return_code.txt +110 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +59 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/function.txt +20 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +25 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +120 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +3 -1
- data/vendor/local/share/doc/groonga/{source/reference/functions.txt → ja/html/_sources/reference/query_expanders.txt} +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +153 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +12 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +214 -0
- 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 +11 -10
- 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/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 +42 -19
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +63 -53
- data/vendor/local/share/doc/groonga/ja/html/install.html +7 -6
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +26 -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 +17 -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 +45 -10
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +25 -16
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -11
- data/vendor/local/share/doc/groonga/ja/html/news.html +155 -68
- 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 +44 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/{commands.html → command.html} +48 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/{command_version.html → command/command_version.html} +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +331 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +237 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +33 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +34 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +36 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +183 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +107 -107
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +30 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/view_add.html +32 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +6 -6
- 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.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/{functions.html → function.html} +13 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +96 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +281 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +139 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +278 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +15 -15
- data/vendor/local/share/doc/groonga/ja/html/reference/type.html +27 -27
- 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 +17 -8
- 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/spec.html +12 -11
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +404 -0
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +22 -22
- 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/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/source/contribution.txt +3 -3
- data/vendor/local/share/doc/groonga/source/contribution/development/release.txt +23 -0
- data/vendor/local/share/doc/groonga/source/example/reference/commands/register/query_expanders_tsv.log +4 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_equator.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_meridian.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/geo_distance_distance_rectangle_across_the_date_line.log +26 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage.log +28 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_basic.log +29 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_setup.log +17 -0
- data/vendor/local/share/doc/groonga/source/example/reference/functions/snippet_html/usage_string_literal.log +28 -0
- data/vendor/local/share/doc/groonga/source/install/centos.txt +24 -3
- data/vendor/local/share/doc/groonga/source/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/fedora.txt +13 -3
- data/vendor/local/share/doc/groonga/source/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/source/install/ubuntu.txt +42 -3
- data/vendor/local/share/doc/groonga/source/install/windows.txt +26 -16
- data/vendor/local/share/doc/groonga/source/limitations.txt +12 -2
- data/vendor/local/share/doc/groonga/source/news.txt +96 -1
- data/vendor/local/share/doc/groonga/source/reference.txt +3 -3
- data/vendor/local/share/doc/groonga/source/reference/command.txt +20 -0
- data/vendor/local/share/doc/groonga/source/reference/{command_version.txt → command/command_version.txt} +0 -0
- data/vendor/local/share/doc/groonga/source/reference/command/output_format.txt +228 -0
- data/vendor/local/share/doc/groonga/source/reference/command/return_code.txt +110 -0
- data/vendor/local/share/doc/groonga/source/reference/commands/register.txt +59 -0
- data/vendor/local/share/doc/groonga/source/reference/commands/select.txt +2 -0
- data/vendor/local/share/doc/groonga/source/reference/function.txt +20 -0
- data/vendor/local/share/doc/groonga/source/reference/functions/geo_distance.txt +25 -8
- data/vendor/local/share/doc/groonga/source/reference/functions/snippet_html.txt +120 -0
- data/vendor/local/share/doc/groonga/source/reference/indexing.txt +3 -1
- data/vendor/local/share/doc/groonga/{en/html/_sources/reference/functions.txt → source/reference/query_expanders.txt} +3 -3
- data/vendor/local/share/doc/groonga/source/reference/query_expanders/tsv.txt +153 -0
- data/vendor/local/share/doc/groonga/source/server/http/comparison.txt +12 -2
- data/vendor/local/share/doc/groonga/source/spec/gqtp.txt +214 -0
- data/vendor/local/share/groonga/html/admin/js/groonga-admin.js +5 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +1589 -218
- data/vendor/local/share/man/man1/groonga.1 +1685 -190
- metadata +66 -18
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands.txt +0 -15
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands.txt +0 -15
- data/vendor/local/share/doc/groonga/source/reference/commands.txt +0 -15
@@ -0,0 +1,20 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
Function
|
6
|
+
========
|
7
|
+
|
8
|
+
Function can be used in some commands. For example, you can use
|
9
|
+
function in ``--filter``, ``--scorer`` and ``output_columns``
|
10
|
+
options of :doc:`commands/select`.
|
11
|
+
|
12
|
+
This section describes about function and built-in functions.
|
13
|
+
|
14
|
+
TODO: Add documentations about function.
|
15
|
+
|
16
|
+
.. toctree::
|
17
|
+
:maxdepth: 1
|
18
|
+
:glob:
|
19
|
+
|
20
|
+
functions/*
|
@@ -192,17 +192,11 @@ You can specify the value of ``approximate_type`` by one of the followings.
|
|
192
192
|
|
193
193
|
There is a limitation about ``geo_distance``. ``geo_distance`` can not
|
194
194
|
calculate the value of distance between two points across meridian,
|
195
|
-
|
195
|
+
equator or the date line if you use ``sphere`` or ``ellipsoid`` as
|
196
|
+
approximate type. There is not such a limitation for ``rectangle``.
|
196
197
|
This is temporary limitation according to the implementation of groonga,
|
197
198
|
but it will be fixed in the future release.
|
198
199
|
|
199
|
-
.. note::
|
200
|
-
|
201
|
-
There is a limitation about ``geo_distance`` above notice.
|
202
|
-
But it relaxes the limitation if you use ``rectangle`` as approximate type.
|
203
|
-
You can calculate the correct distance if two point are placed at northern
|
204
|
-
hemisphere or southern hemisphere.
|
205
|
-
|
206
200
|
``rectangle``
|
207
201
|
...............
|
208
202
|
|
@@ -223,6 +217,29 @@ Here is a sample about calculating the value of distance with explicitly specifi
|
|
223
217
|
|
224
218
|
.. include:: ../../example/reference/functions/geo_distance_distance_rectangle.log
|
225
219
|
|
220
|
+
Here are samples about calculating the value of distance with explicitly specified point across meridian, equator, the date line.
|
221
|
+
|
222
|
+
.. groonga-command
|
223
|
+
.. include:: ../../example/reference/functions/geo_distance_distance_rectangle_across_meridian.log
|
224
|
+
.. select Geo --output_columns distance --scorer 'distance = geo_distance("175904000x8464000", "145508000x-13291000", "rectangle")'
|
225
|
+
|
226
|
+
This sample shows the value of distance across meridian.
|
227
|
+
The return value of ``geo_distance("175904000x8464000", "145508000x-13291000", "rectangle")`` is the value of distance from Paris, Flance to Madrid, Spain.
|
228
|
+
|
229
|
+
.. groonga-command
|
230
|
+
.. include:: ../../example/reference/functions/geo_distance_distance_rectangle_across_equator.log
|
231
|
+
.. select Geo --output_columns distance --scorer 'distance = geo_distance("146566000x-266422000", "-56880000x-172310000", "rectangle")'
|
232
|
+
|
233
|
+
This sample shows the value of distance across equator.
|
234
|
+
The return value of ``geo_distance("146566000x-266422000", "-56880000x-172310000", "rectangle")`` is the value of distance from New York, The United Status to Brasillia, Brasil.
|
235
|
+
|
236
|
+
.. groonga-command
|
237
|
+
.. include:: ../../example/reference/functions/geo_distance_distance_rectangle_across_the_date_line.log
|
238
|
+
.. select Geo --output_columns distance --scorer 'distance = geo_distance("143660000x419009000", "135960000x-440760000", "rectangle")'
|
239
|
+
|
240
|
+
This sample shows the value of distance across the date line.
|
241
|
+
The return value of ``geo_distance("143660000x419009000", "135960000x-440760000", "rectangle")`` is the value of distance from Beijin, China to San Francisco, The United States.
|
242
|
+
|
226
243
|
.. note::
|
227
244
|
|
228
245
|
``geo_distance`` uses square approximation as default. If you omit ``approximate_type``, ``geo_distance`` behaves like ``rectangle`` was specified.
|
@@ -0,0 +1,120 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: functions_snippet_html
|
7
|
+
|
8
|
+
snippet_html
|
9
|
+
============
|
10
|
+
|
11
|
+
.. caution::
|
12
|
+
|
13
|
+
This feature is experimental. API will be changed.
|
14
|
+
|
15
|
+
Summary
|
16
|
+
-------
|
17
|
+
|
18
|
+
``snippet_html`` extracts snippets of target text around search
|
19
|
+
keywords (``KWIC``. ``KeyWord In Context``). The snippets are prepared
|
20
|
+
for embedding HTML. Special characters such as ``<`` and ``>`` are
|
21
|
+
escapsed as ``<`` and ``>``. Keyword is surrounded with ``<span
|
22
|
+
class="keyword">`` and ``</span>``. For example, a snippet of ``I am a
|
23
|
+
groonga user. <3`` for keyword ``groonga`` is ``I am a <span
|
24
|
+
class="keyword">groonga</span> user. <3``.
|
25
|
+
|
26
|
+
Syntax
|
27
|
+
------
|
28
|
+
|
29
|
+
``snippet_html`` has only one parameter::
|
30
|
+
|
31
|
+
snippet_html(column)
|
32
|
+
|
33
|
+
``snippet_html`` has many parameters internally but they can't be
|
34
|
+
specified for now. You will be able to custom those parameters soon.
|
35
|
+
|
36
|
+
Usage
|
37
|
+
-----
|
38
|
+
|
39
|
+
Here are a schema definition and sample data to show usage.
|
40
|
+
|
41
|
+
.. groonga-command
|
42
|
+
.. include:: ../../example/reference/functions/snippet_html/usage_setup.log
|
43
|
+
.. table_create Documents TABLE_NO_KEY
|
44
|
+
.. column_create Documents content COLUMN_SCALAR Text
|
45
|
+
.. table_create Terms TABLE_PAT_KEY|KEY_NORMALIZE ShortText --default_tokenizer TokenBigram
|
46
|
+
.. column_create Terms documents_content_index COLUMN_INDEX|WITH_POSITION Documents content
|
47
|
+
.. load --table Documents
|
48
|
+
.. [
|
49
|
+
.. ["content"],
|
50
|
+
.. ["Groonga is a fast and accurate full text search engine based on inverted index. One of the characteristics of groonga is that a newly registered document instantly appears in search results. Also, groonga allows updates without read locks. These characteristics result in superior performance on real-time applications."],
|
51
|
+
.. ["Groonga is also a column-oriented database management system (DBMS). Compared with well-known row-oriented systems, such as MySQL and PostgreSQL, column-oriented systems are more suited for aggregate queries. Due to this advantage, groonga can cover weakness of row-oriented systems."]
|
52
|
+
.. ]
|
53
|
+
|
54
|
+
``snippet_html`` can be used in only ``--output_columns`` in
|
55
|
+
:doc:`/reference/commands/select`.
|
56
|
+
|
57
|
+
You need to specify ``--command_version 2`` argument explicitly
|
58
|
+
because function call in ``--output_columns`` is experimental feature
|
59
|
+
in groonga 2.0.9. It will be enabled by default soon.
|
60
|
+
|
61
|
+
You also need to specify ``--query`` and/or ``--filter``. Keywords are
|
62
|
+
extracted from ``--query`` and ``--filter`` arguments.
|
63
|
+
|
64
|
+
The following example uses ``--query "fast performance"``. In this
|
65
|
+
case, ``fast`` and ``performance`` are used as keywords.
|
66
|
+
|
67
|
+
.. groonga-command
|
68
|
+
.. include:: ../../example/reference/functions/snippet_html/usage_basic.log
|
69
|
+
.. select Documents --output_columns "snippet_html(content)" --command_version 2 --match_columns content --query "fast performance"
|
70
|
+
|
71
|
+
``--query "fast performance"`` matches to only the first record's
|
72
|
+
content. ``snippet_html(content)`` extracts two text parts that
|
73
|
+
include the keywords ``fast`` or ``performance`` and surronds the
|
74
|
+
keywords with ``<span class="keyword">`` and ``</span>``.
|
75
|
+
|
76
|
+
The max number of text parts is 3. If there are 4 or more text parts
|
77
|
+
that include the keywords, only the leading 3 parts are only used.
|
78
|
+
|
79
|
+
The max size of a text part is 200byte. The unit is bytes not
|
80
|
+
chracters. The size doesn't include inserted ``<span keyword="keyword">``
|
81
|
+
and ``</span>``.
|
82
|
+
|
83
|
+
Both the max number of text parts and the max size of a text part
|
84
|
+
aren't customizable.
|
85
|
+
|
86
|
+
You can specify string literal instead of column.
|
87
|
+
|
88
|
+
.. groonga-command
|
89
|
+
.. include:: ../../example/reference/functions/snippet_html/usage_string_literal.log
|
90
|
+
.. select Documents --output_columns 'snippet_html("Groonga is very fast fulltext search engine.")' --command_version 2 --match_columns content --query "fast performance"
|
91
|
+
|
92
|
+
Return value
|
93
|
+
------------
|
94
|
+
|
95
|
+
``snippet_html`` returns an array of string. An element of array is a
|
96
|
+
snippet::
|
97
|
+
|
98
|
+
[SNIPPET1, SNIPPET2, SNIPPET3]
|
99
|
+
|
100
|
+
A snippet includes one or more keywords. The max byte size of a
|
101
|
+
snippet except ``<span keyword="keyword">`` and ``</span>`` is
|
102
|
+
200byte. The unit isn't the number of chracters.
|
103
|
+
|
104
|
+
The array size is larger than or equal to 0 and less than or equal
|
105
|
+
to 3. The max size 3 will be customizable soon.
|
106
|
+
|
107
|
+
TODO
|
108
|
+
----
|
109
|
+
|
110
|
+
* Make the max number of text parts customizable.
|
111
|
+
* Make the max size of a text part customizable.
|
112
|
+
* Make keywords customizable.
|
113
|
+
* Make tag that surrounds a keyword customizable.
|
114
|
+
* Make normalization customizable.
|
115
|
+
* Support options by object literal.
|
116
|
+
|
117
|
+
See also
|
118
|
+
--------
|
119
|
+
|
120
|
+
* :doc:`/reference/commands/select`
|
@@ -9,7 +9,7 @@ Indexing
|
|
9
9
|
========
|
10
10
|
|
11
11
|
Groonga supports both online index construction and offline
|
12
|
-
index construction since
|
12
|
+
index construction since 2.0.0.
|
13
13
|
|
14
14
|
Online index construction
|
15
15
|
-------------------------
|
@@ -25,6 +25,8 @@ tweets, news, blog posts and so on will value
|
|
25
25
|
freshness. Online index construction can make fresh
|
26
26
|
documents searchable and keep searchable while indexing.
|
27
27
|
|
28
|
+
.. _offline-index-construction:
|
29
|
+
|
28
30
|
Offline index construction
|
29
31
|
--------------------------
|
30
32
|
|
@@ -0,0 +1,153 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
QueryExpanderTSV
|
6
|
+
================
|
7
|
+
|
8
|
+
Summary
|
9
|
+
-------
|
10
|
+
|
11
|
+
``QueryExpanderTSV`` is a query expander plugin that reads synonyms
|
12
|
+
from TSV (Tab Separated Values) file. This plugin provides poor
|
13
|
+
feature than the embedded query expansion feature. For example, it
|
14
|
+
doesn't support word normalization. But it may be easy to use because
|
15
|
+
you can manage your synonyms by TSV file. You can edit your synonyms
|
16
|
+
by spreadsheet application such as Excel. With the embedded query
|
17
|
+
expansion feature, you manage your synonyms by groonga's table.
|
18
|
+
|
19
|
+
Install
|
20
|
+
-------
|
21
|
+
|
22
|
+
You need to register ``query_expanders/tsv`` as a plugin before you
|
23
|
+
use ``QueryExpanderTSV``::
|
24
|
+
|
25
|
+
register query_expanders/tsv
|
26
|
+
|
27
|
+
Usage
|
28
|
+
-----
|
29
|
+
|
30
|
+
You just add ``--query_expansion QueryExpanderTSV`` parameter to
|
31
|
+
``select`` command::
|
32
|
+
|
33
|
+
select --query "QUERY" --query_expansion QueryExpanderTSV
|
34
|
+
|
35
|
+
If ``QUERY`` has registered synonyms, they are expanded. For example,
|
36
|
+
there are the following synonyms.
|
37
|
+
|
38
|
+
+----------------------------+------------------------+----------------------+
|
39
|
+
| word | synonym 1 | synonym 2 |
|
40
|
+
+============================+========================+======================+
|
41
|
+
| groonga | groonga | Senna |
|
42
|
+
+----------------------------+------------------------+----------------------+
|
43
|
+
| mroonga | mroonga | groonga MySQL |
|
44
|
+
+----------------------------+------------------------+----------------------+
|
45
|
+
|
46
|
+
The table means that ``synonym 1`` and ``synonym 2`` are synonyms of
|
47
|
+
``word``. For example, ``groonga`` and ``Senna`` are synonyms of
|
48
|
+
``groonga``. And ``mroonga`` and ``groonga MySQL`` are synonyms of
|
49
|
+
``mroonga``.
|
50
|
+
|
51
|
+
Here is an example of query expnasion that uses ``groonga`` as query::
|
52
|
+
|
53
|
+
select --query "groonga" --query_expansion QueryExpanderTSV
|
54
|
+
|
55
|
+
The above command equals to the following command::
|
56
|
+
|
57
|
+
select --query "groonga OR Senna" --query_expansion QueryExpanderTSV
|
58
|
+
|
59
|
+
Here is another example of query expnasion that uses ``mroonga
|
60
|
+
search`` as query::
|
61
|
+
|
62
|
+
select --query "mroonga search" --query_expansion QueryExpanderTSV
|
63
|
+
|
64
|
+
The above command equals to the following command::
|
65
|
+
|
66
|
+
select --query "(mroonga OR (groonga MySQL)) search" --query_expansion QueryExpanderTSV
|
67
|
+
|
68
|
+
It is important that registered words (``groonga`` and ``mroonga``)
|
69
|
+
are only expanded to synonyms and not registered words (``search``)
|
70
|
+
are not expanded. Query expansion isn't occurred
|
71
|
+
recursively. ``groonga`` is appeared in ``(mroonga OR (groonga
|
72
|
+
MySQL))`` as query expansion result but it isn't expanded.
|
73
|
+
|
74
|
+
Normally, you need to include ``word`` itself into synonyms. For
|
75
|
+
example, ``groonga`` and ``mroonga`` are included in synonyms of
|
76
|
+
themselves. If you want to ignore ``word`` itself, you don't include
|
77
|
+
``word`` itself into synonyms. For example, if you want to use query
|
78
|
+
expansion as spelling correction, you should use the following
|
79
|
+
synonyms.
|
80
|
+
|
81
|
+
+----------------------------+------------------------+
|
82
|
+
| word | synonym |
|
83
|
+
+============================+========================+
|
84
|
+
| gronga | groonga |
|
85
|
+
+----------------------------+------------------------+
|
86
|
+
|
87
|
+
``gronga`` in ``word`` has a typo. A ``o`` is missing. ``groonga`` in
|
88
|
+
``synonym`` is the correct word.
|
89
|
+
|
90
|
+
Here is an example of using query expnasion as spelling correction::
|
91
|
+
|
92
|
+
select --query "gronga" --query_expansion QueryExpanderTSV
|
93
|
+
|
94
|
+
The above command equals to the following command::
|
95
|
+
|
96
|
+
select --query "groonga" --query_expansion QueryExpanderTSV
|
97
|
+
|
98
|
+
The former command has a typo in ``--query`` value but the latter
|
99
|
+
command doesn't have any typos.
|
100
|
+
|
101
|
+
TSV File
|
102
|
+
--------
|
103
|
+
|
104
|
+
Synonyms are defined in TSV format file. This section describes about
|
105
|
+
it.
|
106
|
+
|
107
|
+
Location
|
108
|
+
^^^^^^^^
|
109
|
+
|
110
|
+
The file name should be ``synonyms.tsv`` and it is located at
|
111
|
+
configuration directory. For example, ``/etc/groonga/synonyms.tsv`` is
|
112
|
+
a TSV file location. The location is decided at build time.
|
113
|
+
|
114
|
+
You can change the location by environment variable
|
115
|
+
``GRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE`` at run time::
|
116
|
+
|
117
|
+
% env GRN_QUERY_EXPANDER_TSV_SYNONYMS_FILE=/tmp/synonyms.tsv groonga
|
118
|
+
|
119
|
+
With the above command, ``/tmp/synonyms.tsv`` file is used.
|
120
|
+
|
121
|
+
Format
|
122
|
+
^^^^^^
|
123
|
+
|
124
|
+
You can define zero or more synonyms in a TSV file. You define a
|
125
|
+
``word`` and ``synonyms`` pair by a line. ``word`` is expanded to
|
126
|
+
``synonyms`` in ``--query`` value. ``Synonyms`` are combined by
|
127
|
+
``OR``. For example, ``groonga`` and ``Senna`` synonyms are expanded
|
128
|
+
as ``groonga OR Senna``.
|
129
|
+
|
130
|
+
The first column is ``word`` and the rest columns are ``synonyms`` of
|
131
|
+
the ``word``. Here is a sample line for ``word`` is ``groonga`` and
|
132
|
+
``synonyms`` are ``groonga`` and ``Senna``. ``(TAB)`` means a tab
|
133
|
+
character (``U+0009``)::
|
134
|
+
|
135
|
+
groonga(TAB)groonga(TAB)Senna
|
136
|
+
|
137
|
+
Comment line is supported. Lines that start with ``#`` are ignored.
|
138
|
+
Here is an example for comment line. ``groonga`` line is ignored as
|
139
|
+
comment line::
|
140
|
+
|
141
|
+
#groonga(TAB)groonga(TAB)Senna
|
142
|
+
mroonga(TAB)mroonga(TAB)groonga MySQL
|
143
|
+
|
144
|
+
Limitation
|
145
|
+
----------
|
146
|
+
|
147
|
+
You need to restart groonga to reload your synonyms. TSV file is
|
148
|
+
loaded only at the plugin load time.
|
149
|
+
|
150
|
+
See also
|
151
|
+
--------
|
152
|
+
|
153
|
+
* :ref:`query-expansion`
|
@@ -27,7 +27,7 @@ There are many differences between :doc:`groonga` and
|
|
27
27
|
+----------------------------+------------------------+----------------------+
|
28
28
|
| Gzip compression | x | o |
|
29
29
|
+----------------------------+------------------------+----------------------+
|
30
|
-
| POST | x |
|
30
|
+
| POST | x | o |
|
31
31
|
+----------------------------+------------------------+----------------------+
|
32
32
|
| HTTPS | x | o |
|
33
33
|
+----------------------------+------------------------+----------------------+
|
@@ -270,7 +270,17 @@ processed by groonga. You don't need to consider about other modules.
|
|
270
270
|
POST
|
271
271
|
----
|
272
272
|
|
273
|
-
|
273
|
+
You can load your data by POST JSON data. You need follow the
|
274
|
+
following rules to use loading by POST.
|
275
|
+
|
276
|
+
* `Content-Type` header value must be `application/json`.
|
277
|
+
* JSON data is sent as body.
|
278
|
+
* Table name is specified by query parameter such as ``table=NAME``.
|
279
|
+
|
280
|
+
Here is an example curl command line that loads two users `alice` and
|
281
|
+
`bob` to `Users` table::
|
282
|
+
|
283
|
+
% curl --data-binary '[{"_key": "alice"}, {"_key": "bob"}]' -H "Content-Type: application/json" "http://localhost:10041/d/load?table=Users"
|
274
284
|
|
275
285
|
HTTPS
|
276
286
|
-----
|
@@ -0,0 +1,214 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
GQTP
|
6
|
+
====
|
7
|
+
|
8
|
+
GQTP is the acronym of Groonga Query Transfer Protocol. GQTP is the
|
9
|
+
original protocol for groonga.
|
10
|
+
|
11
|
+
Protocol
|
12
|
+
--------
|
13
|
+
|
14
|
+
GQTP is stateful client server model protocol. The following sequence
|
15
|
+
is one processing unit:
|
16
|
+
|
17
|
+
* Client sends a request
|
18
|
+
* Server receives the request
|
19
|
+
* Server processes the request
|
20
|
+
* Server sends a response
|
21
|
+
* Client receives the response
|
22
|
+
|
23
|
+
You can do zero or more processing units in a session.
|
24
|
+
|
25
|
+
Both request and response consist of GQTP header and body. GQTP header
|
26
|
+
is fixed size data. Body is variable size data and its size is stored
|
27
|
+
in GQTP header. The content of body isn't defined in GQTP.
|
28
|
+
|
29
|
+
.. _gqtp-header-spec:
|
30
|
+
|
31
|
+
GQTP header
|
32
|
+
^^^^^^^^^^^
|
33
|
+
|
34
|
+
GQTP header consists of the following unsigned integer values:
|
35
|
+
|
36
|
+
+----------------+-------+----------------------------+
|
37
|
+
| Name | Size | Description |
|
38
|
+
+================+=======+============================+
|
39
|
+
| ``protocol`` | 1byte | Protocol type. |
|
40
|
+
+----------------+-------+----------------------------+
|
41
|
+
| ``query_type`` | 1byte | Content type of body. |
|
42
|
+
+----------------+-------+----------------------------+
|
43
|
+
| ``key_length`` | 2byte | Not used. |
|
44
|
+
+----------------+-------+----------------------------+
|
45
|
+
| ``level`` | 1byte | Not used. |
|
46
|
+
+----------------+-------+----------------------------+
|
47
|
+
| ``flags`` | 1byte | Flags. |
|
48
|
+
+----------------+-------+----------------------------+
|
49
|
+
| ``status`` | 2byte | Return code. |
|
50
|
+
+----------------+-------+----------------------------+
|
51
|
+
| ``size`` | 4byte | Body size. |
|
52
|
+
+----------------+-------+----------------------------+
|
53
|
+
| ``opaque`` | 4byte | Not used. |
|
54
|
+
+----------------+-------+----------------------------+
|
55
|
+
| ``cas`` | 8byte | Not used. |
|
56
|
+
+----------------+-------+----------------------------+
|
57
|
+
|
58
|
+
All header values are encoded by network byte order.
|
59
|
+
|
60
|
+
The following sections describes available values of each header value.
|
61
|
+
|
62
|
+
The total size of GQTP header is 24byte.
|
63
|
+
|
64
|
+
``protocol``
|
65
|
+
""""""""""""
|
66
|
+
|
67
|
+
The value is always ``0xc7`` in both request and response GQTP header.
|
68
|
+
|
69
|
+
``query_type``
|
70
|
+
""""""""""""""
|
71
|
+
|
72
|
+
The value is one of the following values:
|
73
|
+
|
74
|
+
+-------------+--------+----------------------------+
|
75
|
+
| Name | Value | Description |
|
76
|
+
+=============+========+============================+
|
77
|
+
| ``NONE`` | 0 | Free format. |
|
78
|
+
+-------------+--------+----------------------------+
|
79
|
+
| ``TSV`` | 1 | Tab Separated Values. |
|
80
|
+
+-------------+--------+----------------------------+
|
81
|
+
| ``JSON`` | 2 | JSON. |
|
82
|
+
+-------------+--------+----------------------------+
|
83
|
+
| ``XML`` | 3 | XML. |
|
84
|
+
+-------------+--------+----------------------------+
|
85
|
+
| ``MSGPACK`` | 4 | MessagePack. |
|
86
|
+
+-------------+--------+----------------------------+
|
87
|
+
|
88
|
+
This is not used in request GQTP header.
|
89
|
+
|
90
|
+
This is used in response GQTP header. Body is formatted as specified
|
91
|
+
type.
|
92
|
+
|
93
|
+
``flags``
|
94
|
+
"""""""""
|
95
|
+
|
96
|
+
The value is bitwise OR of the following values:
|
97
|
+
|
98
|
+
+-----------+--------+----------------------------+
|
99
|
+
| Name | Value | Description |
|
100
|
+
+===========+========+============================+
|
101
|
+
| ``MORE`` | 0x01 | There are more data. |
|
102
|
+
+-----------+--------+----------------------------+
|
103
|
+
| ``TAIL`` | 0x02 | There are no more data. |
|
104
|
+
+-----------+--------+----------------------------+
|
105
|
+
| ``HEAD`` | 0x04 | Not used. |
|
106
|
+
+-----------+--------+----------------------------+
|
107
|
+
| ``QUIET`` | 0x08 | Be quiet. |
|
108
|
+
+-----------+--------+----------------------------+
|
109
|
+
| ``QUIT`` | 0x10 | Quit. |
|
110
|
+
+-----------+--------+----------------------------+
|
111
|
+
|
112
|
+
You must specify ``MORE`` or ``TAIL`` flag.
|
113
|
+
|
114
|
+
If you use ``MORE`` flag, you should also use ``QUIET`` flag. Because
|
115
|
+
you don't need to show a response for your partial request.
|
116
|
+
|
117
|
+
Use ``QUIT`` flag to quit this session.
|
118
|
+
|
119
|
+
``status``
|
120
|
+
""""""""""
|
121
|
+
|
122
|
+
Here are available values. The new statuses will be added in the
|
123
|
+
future.
|
124
|
+
|
125
|
+
* 0: ``SUCCESS``
|
126
|
+
* 1: ``END_OF_DATA``
|
127
|
+
* 65535: ``UNKNOWN_ERROR``
|
128
|
+
* 65534: ``OPERATION_NOT_PERMITTED``
|
129
|
+
* 65533: ``NO_SUCH_FILE_OR_DIRECTORY``
|
130
|
+
* 65532: ``NO_SUCH_PROCESS``
|
131
|
+
* 65531: ``INTERRUPTED_FUNCTION_CALL``
|
132
|
+
* 65530: ``INPUT_OUTPUT_ERROR``
|
133
|
+
* 65529: ``NO_SUCH_DEVICE_OR_ADDRESS``
|
134
|
+
* 65528: ``ARG_LIST_TOO_LONG``
|
135
|
+
* 65527: ``EXEC_FORMAT_ERROR``
|
136
|
+
* 65526: ``BAD_FILE_DESCRIPTOR``
|
137
|
+
* 65525: ``NO_CHILD_PROCESSES``
|
138
|
+
* 65524: ``RESOURCE_TEMPORARILY_UNAVAILABLE``
|
139
|
+
* 65523: ``NOT_ENOUGH_SPACE``
|
140
|
+
* 65522: ``PERMISSION_DENIED``
|
141
|
+
* 65521: ``BAD_ADDRESS``
|
142
|
+
* 65520: ``RESOURCE_BUSY``
|
143
|
+
* 65519: ``FILE_EXISTS``
|
144
|
+
* 65518: ``IMPROPER_LINK``
|
145
|
+
* 65517: ``NO_SUCH_DEVICE``
|
146
|
+
* 65516: ``NOT_A_DIRECTORY``
|
147
|
+
* 65515: ``IS_A_DIRECTORY``
|
148
|
+
* 65514: ``INVALID_ARGUMENT``
|
149
|
+
* 65513: ``TOO_MANY_OPEN_FILES_IN_SYSTEM``
|
150
|
+
* 65512: ``TOO_MANY_OPEN_FILES``
|
151
|
+
* 65511: ``INAPPROPRIATE_I_O_CONTROL_OPERATION``
|
152
|
+
* 65510: ``FILE_TOO_LARGE``
|
153
|
+
* 65509: ``NO_SPACE_LEFT_ON_DEVICE``
|
154
|
+
* 65508: ``INVALID_SEEK``
|
155
|
+
* 65507: ``READ_ONLY_FILE_SYSTEM``
|
156
|
+
* 65506: ``TOO_MANY_LINKS``
|
157
|
+
* 65505: ``BROKEN_PIPE``
|
158
|
+
* 65504: ``DOMAIN_ERROR``
|
159
|
+
* 65503: ``RESULT_TOO_LARGE``
|
160
|
+
* 65502: ``RESOURCE_DEADLOCK_AVOIDED``
|
161
|
+
* 65501: ``NO_MEMORY_AVAILABLE``
|
162
|
+
* 65500: ``FILENAME_TOO_LONG``
|
163
|
+
* 65499: ``NO_LOCKS_AVAILABLE``
|
164
|
+
* 65498: ``FUNCTION_NOT_IMPLEMENTED``
|
165
|
+
* 65497: ``DIRECTORY_NOT_EMPTY``
|
166
|
+
* 65496: ``ILLEGAL_BYTE_SEQUENCE``
|
167
|
+
* 65495: ``SOCKET_NOT_INITIALIZED``
|
168
|
+
* 65494: ``OPERATION_WOULD_BLOCK``
|
169
|
+
* 65493: ``ADDRESS_IS_NOT_AVAILABLE``
|
170
|
+
* 65492: ``NETWORK_IS_DOWN``
|
171
|
+
* 65491: ``NO_BUFFER``
|
172
|
+
* 65490: ``SOCKET_IS_ALREADY_CONNECTED``
|
173
|
+
* 65489: ``SOCKET_IS_NOT_CONNECTED``
|
174
|
+
* 65488: ``SOCKET_IS_ALREADY_SHUTDOWNED``
|
175
|
+
* 65487: ``OPERATION_TIMEOUT``
|
176
|
+
* 65486: ``CONNECTION_REFUSED``
|
177
|
+
* 65485: ``RANGE_ERROR``
|
178
|
+
* 65484: ``TOKENIZER_ERROR``
|
179
|
+
* 65483: ``FILE_CORRUPT``
|
180
|
+
* 65482: ``INVALID_FORMAT``
|
181
|
+
* 65481: ``OBJECT_CORRUPT``
|
182
|
+
* 65480: ``TOO_MANY_SYMBOLIC_LINKS``
|
183
|
+
* 65479: ``NOT_SOCKET``
|
184
|
+
* 65478: ``OPERATION_NOT_SUPPORTED``
|
185
|
+
* 65477: ``ADDRESS_IS_IN_USE``
|
186
|
+
* 65476: ``ZLIB_ERROR``
|
187
|
+
* 65475: ``LZO_ERROR``
|
188
|
+
* 65474: ``STACK_OVER_FLOW``
|
189
|
+
* 65473: ``SYNTAX_ERROR``
|
190
|
+
* 65472: ``RETRY_MAX``
|
191
|
+
* 65471: ``INCOMPATIBLE_FILE_FORMAT``
|
192
|
+
* 65470: ``UPDATE_NOT_ALLOWED``
|
193
|
+
* 65469: ``TOO_SMALL_OFFSET``
|
194
|
+
* 65468: ``TOO_LARGE_OFFSET``
|
195
|
+
* 65467: ``TOO_SMALL_LIMIT``
|
196
|
+
* 65466: ``CAS_ERROR``
|
197
|
+
* 65465: ``UNSUPPORTED_COMMAND_VERSION``
|
198
|
+
|
199
|
+
``size``
|
200
|
+
""""""""
|
201
|
+
|
202
|
+
The size of body. The maximum body size is 4GiB because ``size`` is
|
203
|
+
4byte unsigned integer. If you want to send 4GiB or more larger data,
|
204
|
+
use ``MORE`` flag.
|
205
|
+
|
206
|
+
Example
|
207
|
+
-------
|
208
|
+
|
209
|
+
TODO
|
210
|
+
|
211
|
+
See also
|
212
|
+
--------
|
213
|
+
|
214
|
+
TODO
|