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
data/ext/groonga/rb-grn.h
CHANGED
data/lib/1.8/groonga.so
CHANGED
Binary file
|
data/lib/1.9/groonga.so
CHANGED
Binary file
|
data/rroonga-build.rb
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/bin/sh
|
2
2
|
|
3
|
-
prefix=/home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86
|
3
|
+
prefix=/home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86
|
4
4
|
exec_prefix=${prefix}
|
5
5
|
exec_prefix_set=no
|
6
6
|
|
@@ -107,7 +107,7 @@ while test $# -gt 0; do
|
|
107
107
|
;;
|
108
108
|
|
109
109
|
--libexecdir)
|
110
|
-
echo /home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86/libexec/mecab
|
110
|
+
echo /home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86/libexec/mecab
|
111
111
|
;;
|
112
112
|
|
113
113
|
--sysconfdir)
|
data/vendor/local/bin/mecab.exe
CHANGED
Binary file
|
@@ -15,7 +15,7 @@ http {
|
|
15
15
|
keepalive_timeout 65;
|
16
16
|
|
17
17
|
# The default groonga database path.
|
18
|
-
groonga_database /home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86/var/lib/groonga/db/db;
|
18
|
+
groonga_database /home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86/var/lib/groonga/db/db;
|
19
19
|
|
20
20
|
# Create a groonga database automatically if the groonga database doesn't
|
21
21
|
# exist.
|
@@ -37,7 +37,7 @@ http {
|
|
37
37
|
}
|
38
38
|
|
39
39
|
location / {
|
40
|
-
root /home/khayashi/work/groonga/groonga.clean/packages/windows/dist-x86/share/groonga/html/admin;
|
40
|
+
root /home/khayashi/work/groonga/groonga.clean-sub/packages/windows/dist-x86/share/groonga/html/admin;
|
41
41
|
index index.html;
|
42
42
|
}
|
43
43
|
|
@@ -151,6 +151,23 @@ typedef enum {
|
|
151
151
|
GRN_LOG_DUMP
|
152
152
|
} grn_log_level;
|
153
153
|
|
154
|
+
/* query log flags */
|
155
|
+
#define GRN_QUERY_LOG_NONE (0x00)
|
156
|
+
#define GRN_QUERY_LOG_COMMAND (0x01<<0)
|
157
|
+
#define GRN_QUERY_LOG_RESULT_CODE (0x01<<1)
|
158
|
+
#define GRN_QUERY_LOG_DESTINATION (0x01<<2)
|
159
|
+
#define GRN_QUERY_LOG_CACHE (0x01<<3)
|
160
|
+
#define GRN_QUERY_LOG_SIZE (0x01<<4)
|
161
|
+
#define GRN_QUERY_LOG_SCORE (0x01<<5)
|
162
|
+
#define GRN_QUERY_LOG_ALL\
|
163
|
+
(GRN_QUERY_LOG_COMMAND |\
|
164
|
+
GRN_QUERY_LOG_RESULT_CODE |\
|
165
|
+
GRN_QUERY_LOG_DESTINATION |\
|
166
|
+
GRN_QUERY_LOG_CACHE |\
|
167
|
+
GRN_QUERY_LOG_SIZE |\
|
168
|
+
GRN_QUERY_LOG_SCORE)
|
169
|
+
#define GRN_QUERY_LOG_DEFAULT GRN_QUERY_LOG_ALL
|
170
|
+
|
154
171
|
typedef enum {
|
155
172
|
GRN_CONTENT_NONE = 0,
|
156
173
|
GRN_CONTENT_TSV,
|
@@ -615,6 +632,8 @@ GRN_API const char *grn_plugin_get_suffix(void);
|
|
615
632
|
/**
|
616
633
|
* grn_proc_create:
|
617
634
|
* @name: 作成するprocの名前。
|
635
|
+
* @name_size: The number of bytes of @name. If -1 is specified, @name
|
636
|
+
* is handled as a NULL terminated string.
|
618
637
|
* @type: procの種類。
|
619
638
|
* @init: 初期化関数のポインタ
|
620
639
|
* @next: 実処理関数のポインタ
|
@@ -641,7 +660,7 @@ typedef enum {
|
|
641
660
|
} grn_proc_type;
|
642
661
|
|
643
662
|
GRN_API grn_obj *grn_proc_create(grn_ctx *ctx,
|
644
|
-
const char *name,
|
663
|
+
const char *name, int name_size, grn_proc_type type,
|
645
664
|
grn_proc_func *init, grn_proc_func *next, grn_proc_func *fin,
|
646
665
|
unsigned int nvars, grn_expr_var *vars);
|
647
666
|
/**
|
@@ -1985,6 +2004,8 @@ struct _grn_snip_mapping {
|
|
1985
2004
|
#define GRN_SNIP_COPY_TAG (0x01<<1)
|
1986
2005
|
#define GRN_SNIP_SKIP_LEADING_SPACES (0x01<<2)
|
1987
2006
|
|
2007
|
+
#define GRN_SNIP_MAPPING_HTML_ESCAPE ((grn_snip_mapping *)-1)
|
2008
|
+
|
1988
2009
|
/* grn_snip_open() should return grn_obj * instead.
|
1989
2010
|
* TODO: 3.0 */
|
1990
2011
|
GRN_API grn_snip *grn_snip_open(grn_ctx *ctx, int flags, unsigned int width,
|
@@ -2048,6 +2069,35 @@ GRN_API grn_log_level grn_default_logger_get_max_level();
|
|
2048
2069
|
}\
|
2049
2070
|
} while (0)
|
2050
2071
|
|
2072
|
+
typedef struct _grn_query_logger_info grn_query_logger_info;
|
2073
|
+
|
2074
|
+
struct _grn_query_logger_info {
|
2075
|
+
unsigned int flags;
|
2076
|
+
grn_user_data *user_data;
|
2077
|
+
void (*log)(grn_ctx *ctx, unsigned int flag,
|
2078
|
+
const char *timestamp, const char *info, const char *message,
|
2079
|
+
grn_user_data *user_data);
|
2080
|
+
void (*reopen)(grn_ctx *ctx, grn_user_data *user_data);
|
2081
|
+
void (*fin)(grn_ctx *ctx, grn_user_data *user_data);
|
2082
|
+
};
|
2083
|
+
|
2084
|
+
GRN_API grn_rc grn_query_logger_info_set(grn_ctx *ctx, const grn_query_logger_info *info);
|
2085
|
+
|
2086
|
+
GRN_API void grn_query_logger_put(grn_ctx *ctx, unsigned int flag,
|
2087
|
+
const char *mark,
|
2088
|
+
const char *format, ...) GRN_ATTRIBUTE_PRINTF(4);
|
2089
|
+
|
2090
|
+
GRN_API grn_bool grn_query_logger_pass(grn_ctx *ctx, unsigned int flag);
|
2091
|
+
|
2092
|
+
GRN_API void grn_default_query_logger_set_flags(unsigned int flags);
|
2093
|
+
GRN_API unsigned int grn_default_query_logger_get_flags(void);
|
2094
|
+
|
2095
|
+
#define GRN_QUERY_LOG(ctx, flag, mark, format, ...) do {\
|
2096
|
+
if (grn_query_logger_pass(ctx, flag)) {\
|
2097
|
+
grn_query_logger_put(ctx, (flag), (mark), format, __VA_ARGS__);\
|
2098
|
+
}\
|
2099
|
+
} while (0)
|
2100
|
+
|
2051
2101
|
/* grn_bulk */
|
2052
2102
|
|
2053
2103
|
#define GRN_BULK_BUFSIZE (sizeof(grn_obj) - sizeof(grn_obj_header))
|
@@ -2134,6 +2184,7 @@ struct _grn_obj_format {
|
|
2134
2184
|
int limit;
|
2135
2185
|
int hits_offset;
|
2136
2186
|
int flags;
|
2187
|
+
grn_obj *expression;
|
2137
2188
|
};
|
2138
2189
|
|
2139
2190
|
#define GRN_OBJ_FORMAT_INIT(format,format_nhits,format_offset,format_limit,format_hits_offset) do { \
|
@@ -2142,6 +2193,7 @@ struct _grn_obj_format {
|
|
2142
2193
|
(format)->offset = (format_offset);\
|
2143
2194
|
(format)->limit = (format_limit);\
|
2144
2195
|
(format)->hits_offset = (format_hits_offset);\
|
2196
|
+
(format)->expression = NULL;\
|
2145
2197
|
} while (0)
|
2146
2198
|
|
2147
2199
|
#define GRN_OBJ_FORMAT_FIN(ctx,format) do {\
|
@@ -2149,6 +2201,7 @@ struct _grn_obj_format {
|
|
2149
2201
|
grn_obj **columns = (grn_obj **)GRN_BULK_HEAD(&(format)->columns);\
|
2150
2202
|
while (ncolumns--) { grn_obj_unlink((ctx), *columns++); }\
|
2151
2203
|
GRN_OBJ_FIN((ctx), &(format)->columns);\
|
2204
|
+
if ((format)->expression) { GRN_OBJ_FIN((ctx), (format)->expression); } \
|
2152
2205
|
} while (0)
|
2153
2206
|
|
2154
2207
|
GRN_API void grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type output_type,
|
@@ -2156,6 +2209,24 @@ GRN_API void grn_output_obj(grn_ctx *ctx, grn_obj *outbuf, grn_content_type outp
|
|
2156
2209
|
GRN_API void grn_output_envelope(grn_ctx *ctx, grn_rc rc,
|
2157
2210
|
grn_obj *head, grn_obj *body, grn_obj *foot,
|
2158
2211
|
const char *file, int line);
|
2212
|
+
|
2213
|
+
GRN_API void grn_ctx_output_array_open(grn_ctx *ctx,
|
2214
|
+
const char *name, int nelements);
|
2215
|
+
GRN_API void grn_ctx_output_array_close(grn_ctx *ctx);
|
2216
|
+
GRN_API void grn_ctx_output_map_open(grn_ctx *ctx,
|
2217
|
+
const char *name, int nelements);
|
2218
|
+
GRN_API void grn_ctx_output_map_close(grn_ctx *ctx);
|
2219
|
+
GRN_API void grn_ctx_output_int32(grn_ctx *ctx, int value);
|
2220
|
+
GRN_API void grn_ctx_output_int64(grn_ctx *ctx, long long int value);
|
2221
|
+
GRN_API void grn_ctx_output_float(grn_ctx *ctx, double value);
|
2222
|
+
GRN_API void grn_ctx_output_cstr(grn_ctx *ctx, const char *value);
|
2223
|
+
GRN_API void grn_ctx_output_str(grn_ctx *ctx,
|
2224
|
+
const char *value, unsigned int value_len);
|
2225
|
+
GRN_API void grn_ctx_output_bool(grn_ctx *ctx, grn_bool value);
|
2226
|
+
GRN_API void grn_ctx_output_obj(grn_ctx *ctx,
|
2227
|
+
grn_obj *value, grn_obj_format *format);
|
2228
|
+
|
2229
|
+
|
2159
2230
|
GRN_API const char *grn_ctx_get_mime_type(grn_ctx *ctx);
|
2160
2231
|
GRN_API void grn_ctx_recv_handler_set(grn_ctx *,
|
2161
2232
|
void (*func)(grn_ctx *, int, void *),
|
@@ -2478,9 +2549,10 @@ GRN_API grn_rc grn_str_close(grn_ctx *ctx, grn_str *nstr);
|
|
2478
2549
|
|
2479
2550
|
/* grn_string */
|
2480
2551
|
|
2481
|
-
#define GRN_STRING_REMOVE_BLANK
|
2482
|
-
#define GRN_STRING_WITH_TYPES
|
2483
|
-
#define GRN_STRING_WITH_CHECKS
|
2552
|
+
#define GRN_STRING_REMOVE_BLANK (0x01<<0)
|
2553
|
+
#define GRN_STRING_WITH_TYPES (0x01<<1)
|
2554
|
+
#define GRN_STRING_WITH_CHECKS (0x01<<2)
|
2555
|
+
#define GRN_STRING_REMOVE_TOKENIZED_DELIMITER (0x01<<3)
|
2484
2556
|
|
2485
2557
|
#define GRN_NORMALIZER_AUTO ((grn_obj *)1)
|
2486
2558
|
|
@@ -2576,6 +2648,7 @@ typedef unsigned int grn_expr_flags;
|
|
2576
2648
|
|
2577
2649
|
#define GRN_EXPR_SYNTAX_QUERY (0x00)
|
2578
2650
|
#define GRN_EXPR_SYNTAX_SCRIPT (0x01)
|
2651
|
+
#define GRN_EXPR_SYNTAX_OUTPUT_COLUMNS (0x20)
|
2579
2652
|
#define GRN_EXPR_ALLOW_PRAGMA (0x02)
|
2580
2653
|
#define GRN_EXPR_ALLOW_COLUMN (0x04)
|
2581
2654
|
#define GRN_EXPR_ALLOW_UPDATE (0x08)
|
@@ -44,12 +44,12 @@ GRN_PLUGIN_EXPORT grn_rc GRN_PLUGIN_FIN(grn_ctx *ctx);
|
|
44
44
|
Don't call these functions directly. Use GRN_PLUGIN_MALLOC(),
|
45
45
|
GRN_PLUGIN_REALLOC() and GRN_PLUGIN_FREE() instead.
|
46
46
|
*/
|
47
|
-
void *grn_plugin_malloc(grn_ctx *ctx, size_t size, const char *file,
|
48
|
-
|
47
|
+
GRN_PLUGIN_EXPORT void *grn_plugin_malloc(grn_ctx *ctx, size_t size, const char *file,
|
48
|
+
int line, const char *func);
|
49
49
|
void *grn_plugin_realloc(grn_ctx *ctx, void *ptr, size_t size,
|
50
50
|
const char *file, int line, const char *func);
|
51
|
-
void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
|
52
|
-
|
51
|
+
GRN_PLUGIN_EXPORT void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
|
52
|
+
int line, const char *func);
|
53
53
|
|
54
54
|
/*
|
55
55
|
GRN_PLUGIN_MALLOC() allocates `size' bytes and returns a pointer to the
|
@@ -86,17 +86,17 @@ void grn_plugin_free(grn_ctx *ctx, void *ptr, const char *file,
|
|
86
86
|
Don't call grn_plugin_set_error() directly. This function is used in
|
87
87
|
GRN_PLUGIN_SET_ERROR().
|
88
88
|
*/
|
89
|
-
void grn_plugin_set_error(grn_ctx *ctx, grn_log_level level,
|
90
|
-
|
91
|
-
|
92
|
-
|
89
|
+
GRN_PLUGIN_EXPORT void grn_plugin_set_error(grn_ctx *ctx, grn_log_level level,
|
90
|
+
grn_rc error_code,
|
91
|
+
const char *file, int line, const char *func,
|
92
|
+
const char *format, ...) GRN_ATTRIBUTE_PRINTF(7);
|
93
93
|
|
94
94
|
/*
|
95
95
|
Don't call these functions directly. grn_plugin_backtrace() and
|
96
96
|
grn_plugin_logtrace() are used in GRN_PLUGIN_SET_ERROR().
|
97
97
|
*/
|
98
|
-
void grn_plugin_backtrace(grn_ctx *ctx);
|
99
|
-
void grn_plugin_logtrace(grn_ctx *ctx, grn_log_level level);
|
98
|
+
GRN_PLUGIN_EXPORT void grn_plugin_backtrace(grn_ctx *ctx);
|
99
|
+
GRN_PLUGIN_EXPORT void grn_plugin_logtrace(grn_ctx *ctx, grn_log_level level);
|
100
100
|
|
101
101
|
/*
|
102
102
|
Don't use GRN_PLUGIN_SET_ERROR() directly. This macro is used in
|
@@ -126,30 +126,60 @@ void grn_plugin_logtrace(grn_ctx *ctx, grn_log_level level);
|
|
126
126
|
typedef struct _grn_plugin_mutex grn_plugin_mutex;
|
127
127
|
|
128
128
|
/*
|
129
|
-
|
129
|
+
grn_plugin_mutex_open() returns a pointer to a new object of
|
130
130
|
grn_plugin_mutex. Memory for the new object is obtained with
|
131
|
-
GRN_PLUGIN_MALLOC().
|
131
|
+
GRN_PLUGIN_MALLOC(). grn_plugin_mutex_open() returns NULL if sufficient
|
132
132
|
memory is not available.
|
133
133
|
*/
|
134
|
+
GRN_PLUGIN_EXPORT grn_plugin_mutex *grn_plugin_mutex_open(grn_ctx *ctx);
|
135
|
+
|
136
|
+
/*
|
137
|
+
grn_plugin_mutex_create() is deprecated. Use grn_plugin_mutex_open()
|
138
|
+
instead.
|
139
|
+
*/
|
134
140
|
grn_plugin_mutex *grn_plugin_mutex_create(grn_ctx *ctx);
|
135
141
|
|
136
142
|
/*
|
137
|
-
|
143
|
+
grn_plugin_mutex_close() finalizes an object of grn_plugin_mutex and then
|
138
144
|
frees memory allocated for that object.
|
139
145
|
*/
|
146
|
+
GRN_PLUGIN_EXPORT void grn_plugin_mutex_close(grn_ctx *ctx, grn_plugin_mutex *mutex);
|
147
|
+
|
148
|
+
/*
|
149
|
+
grn_plugin_mutex_destroy() is deprecated. Use grn_plugin_mutex_close()
|
150
|
+
instead.
|
151
|
+
*/
|
140
152
|
void grn_plugin_mutex_destroy(grn_ctx *ctx, grn_plugin_mutex *mutex);
|
141
153
|
|
142
154
|
/*
|
143
155
|
grn_plugin_mutex_lock() locks a mutex object. If the object is already
|
144
156
|
locked, the calling thread waits until the object will be unlocked.
|
145
157
|
*/
|
146
|
-
void grn_plugin_mutex_lock(grn_ctx *ctx, grn_plugin_mutex *mutex);
|
158
|
+
GRN_PLUGIN_EXPORT void grn_plugin_mutex_lock(grn_ctx *ctx, grn_plugin_mutex *mutex);
|
147
159
|
|
148
160
|
/*
|
149
161
|
grn_plugin_mutex_unlock() unlocks a mutex object. grn_plugin_mutex_unlock()
|
150
162
|
should not be called for an unlocked object.
|
151
163
|
*/
|
152
|
-
void grn_plugin_mutex_unlock(grn_ctx *ctx, grn_plugin_mutex *mutex);
|
164
|
+
GRN_PLUGIN_EXPORT void grn_plugin_mutex_unlock(grn_ctx *ctx, grn_plugin_mutex *mutex);
|
165
|
+
|
166
|
+
/*
|
167
|
+
grn_plugin_proc_alloc() allocates a `grn_obj` object.
|
168
|
+
You can use it in function that is registered as GRN_PROC_FUNCTION.
|
169
|
+
*/
|
170
|
+
GRN_PLUGIN_EXPORT grn_obj *grn_plugin_proc_alloc(grn_ctx *ctx, grn_user_data *user_data,
|
171
|
+
grn_id domain, grn_obj_flags flags);
|
172
|
+
|
173
|
+
/*
|
174
|
+
grn_plugin_win32_base_dir() returns the groonga install directory.
|
175
|
+
The install directory is computed from the directory that has
|
176
|
+
`groonga.dll`. You can use the directory to generate install
|
177
|
+
directory aware path.
|
178
|
+
|
179
|
+
It only works on Windows. It returns `NULL` on other platforms.
|
180
|
+
*/
|
181
|
+
GRN_PLUGIN_EXPORT const char *grn_plugin_win32_base_dir(void);
|
182
|
+
|
153
183
|
|
154
184
|
#ifdef __cplusplus
|
155
185
|
}
|
@@ -26,6 +26,9 @@
|
|
26
26
|
extern "C" {
|
27
27
|
#endif /* __cplusplus */
|
28
28
|
|
29
|
+
#define GRN_TOKENIZER_TOKENIZED_DELIMITER_UTF8 "\xEF\xBF\xBE"
|
30
|
+
#define GRN_TOKENIZER_TOKENIZED_DELIMITER_UTF8_LEN 3
|
31
|
+
|
29
32
|
/*
|
30
33
|
grn_tokenizer_charlen() returns the length (#bytes) of the first character
|
31
34
|
in the string specified by `str_ptr' and `str_length'. If the starting bytes
|
@@ -43,6 +46,26 @@ int grn_tokenizer_charlen(grn_ctx *ctx, const char *str_ptr,
|
|
43
46
|
int grn_tokenizer_isspace(grn_ctx *ctx, const char *str_ptr,
|
44
47
|
unsigned int str_length, grn_encoding encoding);
|
45
48
|
|
49
|
+
/*
|
50
|
+
grn_tokenizer_is_tokenized_delimiter() returns whether is the first
|
51
|
+
character in the string specified by `str_ptr' and `str_length' the
|
52
|
+
special tokenized delimiter character or not.
|
53
|
+
*/
|
54
|
+
grn_bool grn_tokenizer_is_tokenized_delimiter(grn_ctx *ctx,
|
55
|
+
const char *str_ptr,
|
56
|
+
unsigned int str_length,
|
57
|
+
grn_encoding encoding);
|
58
|
+
|
59
|
+
/*
|
60
|
+
grn_tokenizer_have_tokenized_delimiter() returns whether is there
|
61
|
+
the special delimiter character in the string specified by `str_ptr'
|
62
|
+
and `str_length' the special tokenized delimiter character or not.
|
63
|
+
*/
|
64
|
+
GRN_PLUGIN_EXPORT grn_bool grn_tokenizer_have_tokenized_delimiter(grn_ctx *ctx,
|
65
|
+
const char *str_ptr,
|
66
|
+
unsigned int str_length,
|
67
|
+
grn_encoding encoding);
|
68
|
+
|
46
69
|
/*
|
47
70
|
grn_tokenizer_query is a structure for storing a query. See the following
|
48
71
|
functions.
|
@@ -58,20 +81,34 @@ struct _grn_tokenizer_query {
|
|
58
81
|
};
|
59
82
|
|
60
83
|
/*
|
61
|
-
|
84
|
+
grn_tokenizer_query_open() parses `args' and returns a new object of
|
62
85
|
grn_tokenizer_query. The new object stores information of the query.
|
63
86
|
grn_tokenizer_query_create() normalizes the query if the target table
|
64
87
|
requires normalization. grn_tokenizer_query_create() returns NULL if
|
65
88
|
something goes wrong. Note that grn_tokenizer_query_create() must be called
|
66
89
|
just once in the function that initializes a tokenizer.
|
67
90
|
*/
|
91
|
+
GRN_PLUGIN_EXPORT grn_tokenizer_query *grn_tokenizer_query_open(grn_ctx *ctx,
|
92
|
+
int num_args, grn_obj **args);
|
93
|
+
|
94
|
+
/*
|
95
|
+
grn_tokenizer_query_create() is deprecated. Use grn_tokenizer_query_open()
|
96
|
+
instead.
|
97
|
+
*/
|
98
|
+
|
68
99
|
grn_tokenizer_query *grn_tokenizer_query_create(grn_ctx *ctx,
|
69
100
|
int num_args, grn_obj **args);
|
70
101
|
|
71
102
|
/*
|
72
|
-
|
103
|
+
grn_tokenizer_query_close() finalizes an object of grn_tokenizer_query
|
73
104
|
and then frees memory allocated for that object.
|
74
105
|
*/
|
106
|
+
GRN_PLUGIN_EXPORT void grn_tokenizer_query_close(grn_ctx *ctx, grn_tokenizer_query *query);
|
107
|
+
|
108
|
+
/*
|
109
|
+
grn_tokenizer_query_destroy() is deprecated. Use grn_tokenizer_query_close()
|
110
|
+
instead.
|
111
|
+
*/
|
75
112
|
void grn_tokenizer_query_destroy(grn_ctx *ctx, grn_tokenizer_query *query);
|
76
113
|
|
77
114
|
/*
|
@@ -90,13 +127,13 @@ struct _grn_tokenizer_token {
|
|
90
127
|
grn_tokenizer_token_init() initializes `token'. Note that an initialized
|
91
128
|
object must be finalized by grn_tokenizer_token_fin().
|
92
129
|
*/
|
93
|
-
void grn_tokenizer_token_init(grn_ctx *ctx, grn_tokenizer_token *token);
|
130
|
+
GRN_PLUGIN_EXPORT void grn_tokenizer_token_init(grn_ctx *ctx, grn_tokenizer_token *token);
|
94
131
|
|
95
132
|
/*
|
96
133
|
grn_tokenizer_token_fin() finalizes `token' that has been initialized by
|
97
134
|
grn_tokenizer_token_init().
|
98
135
|
*/
|
99
|
-
void grn_tokenizer_token_fin(grn_ctx *ctx, grn_tokenizer_token *token);
|
136
|
+
GRN_PLUGIN_EXPORT void grn_tokenizer_token_fin(grn_ctx *ctx, grn_tokenizer_token *token);
|
100
137
|
|
101
138
|
/*
|
102
139
|
grn_tokenizer_status provides a list of tokenizer status codes.
|
@@ -111,16 +148,29 @@ typedef enum {
|
|
111
148
|
} grn_tokenizer_status;
|
112
149
|
|
113
150
|
/*
|
114
|
-
grn_tokenizer_token_push() pushes the next token
|
151
|
+
grn_tokenizer_token_push() pushes the next token into `token'. Note that
|
115
152
|
grn_tokenizer_token_push() does not make a copy of the given string. This
|
116
153
|
means that you have to maintain a memory space allocated to the string.
|
117
154
|
Also note that the grn_tokenizer_token object must be maintained until the
|
118
155
|
request for the next token or finalization comes. See grn_tokenizer_status in
|
119
156
|
this header for more details of `status'.
|
120
157
|
*/
|
121
|
-
void grn_tokenizer_token_push(grn_ctx *ctx, grn_tokenizer_token *token,
|
122
|
-
|
123
|
-
|
158
|
+
GRN_PLUGIN_EXPORT void grn_tokenizer_token_push(grn_ctx *ctx, grn_tokenizer_token *token,
|
159
|
+
const char *str_ptr, unsigned int str_length,
|
160
|
+
grn_tokenizer_status status);
|
161
|
+
|
162
|
+
/*
|
163
|
+
grn_tokenizer_tokenized_delimiter_next() extracts the next token
|
164
|
+
from the string specified by `str_ptr' and `str_length' and pushes
|
165
|
+
the next token into `token'. It returns the string after the next
|
166
|
+
token. The returned string may be `NULL' when all tokens are
|
167
|
+
extracted.
|
168
|
+
*/
|
169
|
+
GRN_PLUGIN_EXPORT const char *grn_tokenizer_tokenized_delimiter_next(grn_ctx *ctx,
|
170
|
+
grn_tokenizer_token *token,
|
171
|
+
const char *str_ptr,
|
172
|
+
unsigned int str_length,
|
173
|
+
grn_encoding encoding);
|
124
174
|
|
125
175
|
/*
|
126
176
|
grn_tokenizer_register() registers a plugin to the database which is
|
@@ -134,10 +184,10 @@ void grn_tokenizer_token_push(grn_ctx *ctx, grn_tokenizer_token *token,
|
|
134
184
|
details of grn_proc_func and grn_user_data, that is used as an argument of
|
135
185
|
grn_proc_func.
|
136
186
|
*/
|
137
|
-
grn_rc grn_tokenizer_register(grn_ctx *ctx, const char *plugin_name_ptr,
|
138
|
-
|
139
|
-
|
140
|
-
|
187
|
+
GRN_PLUGIN_EXPORT grn_rc grn_tokenizer_register(grn_ctx *ctx, const char *plugin_name_ptr,
|
188
|
+
unsigned int plugin_name_length,
|
189
|
+
grn_proc_func *init, grn_proc_func *next,
|
190
|
+
grn_proc_func *fin);
|
141
191
|
|
142
192
|
#ifdef __cplusplus
|
143
193
|
} /* extern "C" */
|