rroonga 2.0.7-x86-mingw32 → 2.0.8-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,110 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
Return code
|
6
|
+
===========
|
7
|
+
|
8
|
+
Summary
|
9
|
+
-------
|
10
|
+
|
11
|
+
Return code is used to show whether a processing is succeeded or
|
12
|
+
not. If the processing is not succeeded, return code shows error type.
|
13
|
+
|
14
|
+
Return code is used in C API and query API. You can check return code
|
15
|
+
via ``grn_ctx_t::rc`` in C API. You can check return code by looking
|
16
|
+
the header element in query API. See :doc:`output_format` about the
|
17
|
+
header element in query API.
|
18
|
+
|
19
|
+
List
|
20
|
+
----
|
21
|
+
|
22
|
+
Here is a list of return codes. ``GRN_SUCCESS`` (= 0) means that the
|
23
|
+
processing is succeeded. Return codes that have negative value show
|
24
|
+
error type. ``GRN_END_OF_DATA`` is a special return code. It is used
|
25
|
+
only C API. It is not showen in query API.
|
26
|
+
|
27
|
+
* 0: ``GRN_SUCCESS``
|
28
|
+
* 1: ``GRN_END_OF_DATA``
|
29
|
+
* -1: ``GRN_UNKNOWN_ERROR``
|
30
|
+
* -2: ``GRN_OPERATION_NOT_PERMITTED``
|
31
|
+
* -3: ``GRN_NO_SUCH_FILE_OR_DIRECTORY``
|
32
|
+
* -4: ``GRN_NO_SUCH_PROCESS``
|
33
|
+
* -5: ``GRN_INTERRUPTED_FUNCTION_CALL``
|
34
|
+
* -6: ``GRN_INPUT_OUTPUT_ERROR``
|
35
|
+
* -7: ``GRN_NO_SUCH_DEVICE_OR_ADDRESS``
|
36
|
+
* -8: ``GRN_ARG_LIST_TOO_LONG``
|
37
|
+
* -9: ``GRN_EXEC_FORMAT_ERROR``
|
38
|
+
* -10: ``GRN_BAD_FILE_DESCRIPTOR``
|
39
|
+
* -11: ``GRN_NO_CHILD_PROCESSES``
|
40
|
+
* -12: ``GRN_RESOURCE_TEMPORARILY_UNAVAILABLE``
|
41
|
+
* -13: ``GRN_NOT_ENOUGH_SPACE``
|
42
|
+
* -14: ``GRN_PERMISSION_DENIED``
|
43
|
+
* -15: ``GRN_BAD_ADDRESS``
|
44
|
+
* -16: ``GRN_RESOURCE_BUSY``
|
45
|
+
* -17: ``GRN_FILE_EXISTS``
|
46
|
+
* -18: ``GRN_IMPROPER_LINK``
|
47
|
+
* -19: ``GRN_NO_SUCH_DEVICE``
|
48
|
+
* -20: ``GRN_NOT_A_DIRECTORY``
|
49
|
+
* -21: ``GRN_IS_A_DIRECTORY``
|
50
|
+
* -22: ``GRN_INVALID_ARGUMENT``
|
51
|
+
* -23: ``GRN_TOO_MANY_OPEN_FILES_IN_SYSTEM``
|
52
|
+
* -24: ``GRN_TOO_MANY_OPEN_FILES``
|
53
|
+
* -25: ``GRN_INAPPROPRIATE_I_O_CONTROL_OPERATION``
|
54
|
+
* -26: ``GRN_FILE_TOO_LARGE``
|
55
|
+
* -27: ``GRN_NO_SPACE_LEFT_ON_DEVICE``
|
56
|
+
* -28: ``GRN_INVALID_SEEK``
|
57
|
+
* -29: ``GRN_READ_ONLY_FILE_SYSTEM``
|
58
|
+
* -30: ``GRN_TOO_MANY_LINKS``
|
59
|
+
* -31: ``GRN_BROKEN_PIPE``
|
60
|
+
* -32: ``GRN_DOMAIN_ERROR``
|
61
|
+
* -33: ``GRN_RESULT_TOO_LARGE``
|
62
|
+
* -34: ``GRN_RESOURCE_DEADLOCK_AVOIDED``
|
63
|
+
* -35: ``GRN_NO_MEMORY_AVAILABLE``
|
64
|
+
* -36: ``GRN_FILENAME_TOO_LONG``
|
65
|
+
* -37: ``GRN_NO_LOCKS_AVAILABLE``
|
66
|
+
* -38: ``GRN_FUNCTION_NOT_IMPLEMENTED``
|
67
|
+
* -39: ``GRN_DIRECTORY_NOT_EMPTY``
|
68
|
+
* -40: ``GRN_ILLEGAL_BYTE_SEQUENCE``
|
69
|
+
* -41: ``GRN_SOCKET_NOT_INITIALIZED``
|
70
|
+
* -42: ``GRN_OPERATION_WOULD_BLOCK``
|
71
|
+
* -43: ``GRN_ADDRESS_IS_NOT_AVAILABLE``
|
72
|
+
* -44: ``GRN_NETWORK_IS_DOWN``
|
73
|
+
* -45: ``GRN_NO_BUFFER``
|
74
|
+
* -46: ``GRN_SOCKET_IS_ALREADY_CONNECTED``
|
75
|
+
* -47: ``GRN_SOCKET_IS_NOT_CONNECTED``
|
76
|
+
* -48: ``GRN_SOCKET_IS_ALREADY_SHUTDOWNED``
|
77
|
+
* -49: ``GRN_OPERATION_TIMEOUT``
|
78
|
+
* -50: ``GRN_CONNECTION_REFUSED``
|
79
|
+
* -51: ``GRN_RANGE_ERROR``
|
80
|
+
* -52: ``GRN_TOKENIZER_ERROR``
|
81
|
+
* -53: ``GRN_FILE_CORRUPT``
|
82
|
+
* -54: ``GRN_INVALID_FORMAT``
|
83
|
+
* -55: ``GRN_OBJECT_CORRUPT``
|
84
|
+
* -56: ``GRN_TOO_MANY_SYMBOLIC_LINKS``
|
85
|
+
* -57: ``GRN_NOT_SOCKET``
|
86
|
+
* -58: ``GRN_OPERATION_NOT_SUPPORTED``
|
87
|
+
* -59: ``GRN_ADDRESS_IS_IN_USE``
|
88
|
+
* -60: ``GRN_ZLIB_ERROR``
|
89
|
+
* -61: ``GRN_LZO_ERROR``
|
90
|
+
* -62: ``GRN_STACK_OVER_FLOW``
|
91
|
+
* -63: ``GRN_SYNTAX_ERROR``
|
92
|
+
* -64: ``GRN_RETRY_MAX``
|
93
|
+
* -65: ``GRN_INCOMPATIBLE_FILE_FORMAT``
|
94
|
+
* -66: ``GRN_UPDATE_NOT_ALLOWED``
|
95
|
+
* -67: ``GRN_TOO_SMALL_OFFSET``
|
96
|
+
* -68: ``GRN_TOO_LARGE_OFFSET``
|
97
|
+
* -69: ``GRN_TOO_SMALL_LIMIT``
|
98
|
+
* -70: ``GRN_CAS_ERROR``
|
99
|
+
* -71: ``GRN_UNSUPPORTED_COMMAND_VERSION``
|
100
|
+
|
101
|
+
See also
|
102
|
+
--------
|
103
|
+
|
104
|
+
* :doc:`output_format` shows where return code is appeared in query
|
105
|
+
API response.
|
106
|
+
* :doc:`/spec/gqtp`: GQTP protocol also uses return code as status but
|
107
|
+
it uses 2byte unsigned integer. So return codes that have negative
|
108
|
+
value are statuses that have positive value in GQTP protocol. You
|
109
|
+
can convert status value in GQTP protocol to return code by
|
110
|
+
handling it as 2byte signed integer.
|
@@ -0,0 +1,59 @@
|
|
1
|
+
.. -*- rst -*-
|
2
|
+
|
3
|
+
.. highlightlang:: none
|
4
|
+
|
5
|
+
.. groonga-command
|
6
|
+
.. database: commands_register
|
7
|
+
|
8
|
+
register
|
9
|
+
========
|
10
|
+
|
11
|
+
Summary
|
12
|
+
-------
|
13
|
+
|
14
|
+
``register`` command registers a plugin. You need to register a plugin
|
15
|
+
before you use a plugin.
|
16
|
+
|
17
|
+
You need just one ``register`` command for a plugin in the same
|
18
|
+
database because registered plugin information is written into the
|
19
|
+
database. When you restart your ``groonga`` process, ``groonga``
|
20
|
+
process loads all registered plugins without ``register`` command.
|
21
|
+
|
22
|
+
.. note::
|
23
|
+
|
24
|
+
Registered plugins can't be removed for now.
|
25
|
+
|
26
|
+
Syntax
|
27
|
+
------
|
28
|
+
|
29
|
+
``register`` has a parameter ``path``. It is required parameter::
|
30
|
+
|
31
|
+
register path
|
32
|
+
|
33
|
+
Usage
|
34
|
+
-----
|
35
|
+
|
36
|
+
Here is a sample that registers ``QueryExpanderTSV`` query expander
|
37
|
+
that is included in
|
38
|
+
``${PREFIX}/lib/groonga/plugins/query_expanders/tsv.so``.
|
39
|
+
|
40
|
+
.. groonga-command
|
41
|
+
.. include:: ../../example/reference/commands/register/query_expanders_tsv.log
|
42
|
+
.. register query_expanders/tsv
|
43
|
+
|
44
|
+
You can omit ``${PREFIX}/lib/groonga/plugins/`` and suffix (``.so``).
|
45
|
+
They are completed automatically.
|
46
|
+
|
47
|
+
You can specify absolute path such as ``register
|
48
|
+
/usr/lib/groonga/plugins/query_expanders/tsv.so``.
|
49
|
+
|
50
|
+
Return value
|
51
|
+
------------
|
52
|
+
|
53
|
+
``register`` returns ``true`` as body on success such as::
|
54
|
+
|
55
|
+
[HEADER, true]
|
56
|
+
|
57
|
+
If ``register`` fails, error details are in ``HEADER``.
|
58
|
+
|
59
|
+
See :doc:`/reference/command/output_format` for ``HEADER``.
|
@@ -442,6 +442,8 @@ storategy escalation is not used because the number of matched
|
|
442
442
|
records (0) is larger than ``match_escalation_threshold`` (-1). So no
|
443
443
|
more searches aren't executed. And no records are matched.
|
444
444
|
|
445
|
+
.. _query-expansion:
|
446
|
+
|
445
447
|
``query_expansion``
|
446
448
|
"""""""""""""""""""
|
447
449
|
|
@@ -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`
|