rroonga 2.0.0-x86-mingw32 → 2.0.1-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/Rakefile +3 -2
- data/ext/groonga/rb-grn-expression.c +4 -3
- data/ext/groonga/rb-grn-object.c +13 -0
- data/ext/groonga/rb-grn-snippet.c +32 -126
- data/ext/groonga/rb-grn.h +14 -11
- 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/{grntest.exe → groonga-benchmark.exe} +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga/plugin.h +1 -1
- data/vendor/local/include/groonga/groonga.h +10 -3
- 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/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/community.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/install.txt +72 -8
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +45 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/en/html/_sources/type.txt +30 -21
- data/vendor/local/share/doc/groonga/en/html/_static/favicon.ico +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/groonga.css +309 -101
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/en/html/_static/logo.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/navigation-bar.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/command_version.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/cache_limit.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/check.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/clearlock.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_create.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_list.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/column_remove.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/define_selector.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/defrag.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/delete.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/dump.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/load.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_level.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_put.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/log_reopen.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/quit.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/select.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/shutdown.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/status.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/suggest.html +21 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_create.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_list.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/table_remove.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands/view_add.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/commands.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/contribution.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/grnslap.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/grntest.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-http.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga-suggest-create-dataset.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables/groonga.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/executables.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/expr.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/edit_distance.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_distance.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_circle.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/geo_in_rectangle.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/now.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions/rand.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/functions.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/genindex.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/index.html +25 -18
- data/vendor/local/share/doc/groonga/en/html/indexing.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/install.html +59 -9
- data/vendor/local/share/doc/groonga/en/html/limitations.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/log.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/news.html +66 -15
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/output.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/pseudo_column.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/reference.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/spec.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/suggest.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +141 -53
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +112 -106
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +2 -2
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +92 -58
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +1 -1
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +21 -14
- data/vendor/local/share/doc/groonga/en/html/type.html +30 -22
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/community.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/install.txt +72 -8
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +45 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/ja/html/_sources/type.txt +30 -21
- data/vendor/local/share/doc/groonga/ja/html/_static/favicon.ico +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/groonga.css +309 -101
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -154
- data/vendor/local/share/doc/groonga/ja/html/_static/logo.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/navigation-bar.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +29 -21
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/command_version.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/cache_limit.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/check.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/clearlock.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_create.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_list.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/column_remove.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/define_selector.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/defrag.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/delete.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/dump.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/load.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_level.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_put.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/log_reopen.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/quit.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/select.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/shutdown.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/status.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/suggest.html +19 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_create.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_list.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/table_remove.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands/view_add.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/commands.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/community.html +3 -3
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/grnslap.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/grntest.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-http.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga-suggest-create-dataset.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables/groonga.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/executables.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/expr.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/edit_distance.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_distance.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_circle.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/geo_in_rectangle.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/now.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions/rand.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/functions.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/index.html +25 -18
- data/vendor/local/share/doc/groonga/ja/html/indexing.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/install.html +72 -22
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/log.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/news.html +60 -14
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/output.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/pseudo_column.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/reference.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/spec.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +141 -53
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +108 -102
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +2 -2
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +92 -55
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +1 -1
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +21 -14
- data/vendor/local/share/doc/groonga/ja/html/type.html +30 -22
- data/vendor/local/share/doc/groonga/source/commands/suggest.txt +19 -0
- data/vendor/local/share/doc/groonga/source/community.txt +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-1.log +2 -15
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-2.log +11 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-3.log +13 -7
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-4.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-5.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-6.log +13 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-7.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/data-8.log +10 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-1.log +0 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-10.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-11.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-12.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-13.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-14.log +2 -6
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-15.log +6 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-16.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-17.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-18.log +5 -0
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-2.log +3 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-3.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-4.log +1 -3
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-5.log +4 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-6.log +13 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-7.log +2 -13
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-8.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/introduction-9.log +2 -2
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-1.log +1 -1
- data/vendor/local/share/doc/groonga/source/example/tutorial/network-3.log +6 -6
- data/vendor/local/share/doc/groonga/source/install.txt +72 -8
- data/vendor/local/share/doc/groonga/source/news.txt +45 -1
- data/vendor/local/share/doc/groonga/source/tutorial/data.txt +112 -33
- data/vendor/local/share/doc/groonga/source/tutorial/introduction.txt +109 -99
- data/vendor/local/share/doc/groonga/source/tutorial/network.txt +76 -40
- data/vendor/local/share/doc/groonga/source/type.txt +30 -21
- data/vendor/local/share/groonga/html/admin/css/admin.css +1 -1
- data/vendor/local/share/groonga/html/admin/favicon.ico +0 -0
- data/vendor/local/share/groonga/html/admin/favicon.png +0 -0
- data/vendor/local/share/groonga/html/admin/favicon.svg +107 -547
- data/vendor/local/share/groonga/html/admin/images/groonga.png +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +1 -1
- data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-foreground-white.svg +118 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon-full-size.svg +97 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo-foreground-white.svg +108 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-logo.svg +118 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar-foreground-white.svg +170 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-bar.svg +186 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-foreground-white.svg +183 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner-large.svg +179 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.png +0 -0
- data/vendor/local/share/groonga/images/logo/groonga-powered-by-banner.svg +201 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon-full-size.svg +97 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/mroonga-logo.svg +106 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon-full-size.svg +107 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/nroonga-logo.svg +117 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-foreground-white.svg +106 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon-full-size.svg +107 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-icon.svg +93 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo-foreground-white.svg +122 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo.png +0 -0
- data/vendor/local/share/groonga/images/logo/rroonga-logo.svg +117 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +510 -214
- data/vendor/local/share/man/man1/groonga.1 +510 -211
- metadata +62 -15
- data/vendor/local/bin/groonga-query-log-analyzer +0 -1419
- data/vendor/local/share/doc/groonga/en/html/_static/default.css +0 -278
- data/vendor/local/share/doc/groonga/en/html/_static/footer-bar.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/menu-header.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/sidebar.js +0 -151
- data/vendor/local/share/doc/groonga/ja/html/_static/default.css +0 -278
- data/vendor/local/share/doc/groonga/ja/html/_static/footer-bar.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/menu-header.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/sidebar.js +0 -151
data/Rakefile
CHANGED
@@ -87,11 +87,12 @@ Jeweler::Tasks.new do |_spec|
|
|
87
87
|
spec.license = "LGPLv2"
|
88
88
|
spec.files = FileList["{lib,benchmark,misc}/**/*.rb",
|
89
89
|
"bin/*",
|
90
|
-
"
|
90
|
+
"extconf.rb",
|
91
|
+
"rroonga-build.rb",
|
91
92
|
"example/*.rb",
|
92
93
|
"Rakefile",
|
93
94
|
"Gemfile",
|
94
|
-
"ext
|
95
|
+
"ext/**/*.{c,h,rb,def}"]
|
95
96
|
spec.test_files = FileList["test/**/*.rb"]
|
96
97
|
end
|
97
98
|
|
@@ -643,6 +643,7 @@ rb_grn_expression_snippet (int argc, VALUE *argv, VALUE self)
|
|
643
643
|
VALUE rb_width, rb_max_results, rb_tags;
|
644
644
|
VALUE rb_html_escape;
|
645
645
|
VALUE *rb_tag_values;
|
646
|
+
VALUE related_object;
|
646
647
|
unsigned int i;
|
647
648
|
int flags = GRN_SNIP_COPY_TAG;
|
648
649
|
unsigned int width = 100;
|
@@ -723,10 +724,10 @@ rb_grn_expression_snippet (int argc, VALUE *argv, VALUE self)
|
|
723
724
|
(const char **)open_tags, open_tag_lengths,
|
724
725
|
(const char **)close_tags, close_tag_lengths,
|
725
726
|
mapping);
|
726
|
-
|
727
|
-
|
727
|
+
related_object = rb_ary_new3(2, self, rb_ary_new4(argc, argv));
|
728
|
+
rb_grn_context_check(context, related_object);
|
728
729
|
|
729
|
-
return
|
730
|
+
return GRNOBJECT2RVAL(Qnil, context, (grn_obj *)snippet, GRN_TRUE);
|
730
731
|
}
|
731
732
|
|
732
733
|
void
|
data/ext/groonga/rb-grn-object.c
CHANGED
@@ -142,6 +142,10 @@ rb_grn_object_run_finalizer (grn_ctx *context, grn_obj *grn_object,
|
|
142
142
|
rb_grn_expression_finalizer(context, grn_object,
|
143
143
|
RB_GRN_EXPRESSION(rb_grn_object));
|
144
144
|
break;
|
145
|
+
case GRN_SNIP:
|
146
|
+
rb_grn_snippet_finalizer(context, grn_object,
|
147
|
+
RB_GRN_SNIPPET(rb_grn_object));
|
148
|
+
break;
|
145
149
|
default:
|
146
150
|
rb_raise(rb_eTypeError,
|
147
151
|
"unsupported groonga object type for finalizer: %s(%#x)",
|
@@ -239,6 +243,9 @@ rb_grn_object_to_ruby_class (grn_obj *object)
|
|
239
243
|
case GRN_ACCESSOR_VIEW:
|
240
244
|
klass = rb_cGrnViewAccessor;
|
241
245
|
break;
|
246
|
+
case GRN_SNIP:
|
247
|
+
klass = rb_cGrnSnippet;
|
248
|
+
break;
|
242
249
|
case GRN_PROC:
|
243
250
|
klass = rb_cGrnProcedure;
|
244
251
|
break;
|
@@ -441,6 +448,12 @@ rb_grn_object_assign (VALUE klass, VALUE self, VALUE rb_context,
|
|
441
448
|
context, object);
|
442
449
|
rb_grn_expression_bind(RB_GRN_EXPRESSION(rb_grn_object),
|
443
450
|
context, object);
|
451
|
+
} else if (klass == rb_cGrnSnippet) {
|
452
|
+
rb_grn_object = ALLOC(RbGrnSnippet);
|
453
|
+
rb_grn_object_bind_common(klass, self, rb_context, rb_grn_object,
|
454
|
+
context, object);
|
455
|
+
rb_grn_snippet_bind(RB_GRN_SNIPPET(rb_grn_object),
|
456
|
+
context, object);
|
444
457
|
} else {
|
445
458
|
rb_raise(rb_eTypeError,
|
446
459
|
"unsupported groonga object type for assignment: %s(%#x)",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- coding: utf-8; c-file-style: "ruby" -*- */
|
2
2
|
/*
|
3
|
-
Copyright (C) 2009-
|
3
|
+
Copyright (C) 2009-2012 Kouhei Sutou <kou@clear-code.com>
|
4
4
|
|
5
5
|
This library is free software; you can redistribute it and/or
|
6
6
|
modify it under the terms of the GNU Lesser General Public
|
@@ -18,15 +18,7 @@
|
|
18
18
|
|
19
19
|
#include "rb-grn.h"
|
20
20
|
|
21
|
-
#define SELF(object) (
|
22
|
-
|
23
|
-
typedef struct _RbGrnSnippet RbGrnSnippet;
|
24
|
-
struct _RbGrnSnippet
|
25
|
-
{
|
26
|
-
grn_ctx *context;
|
27
|
-
grn_snip *snippet;
|
28
|
-
grn_bool owner;
|
29
|
-
};
|
21
|
+
#define SELF(object) ((RbGrnSnippet *)DATA_PTR(object))
|
30
22
|
|
31
23
|
VALUE rb_cGrnSnippet;
|
32
24
|
|
@@ -36,67 +28,30 @@ VALUE rb_cGrnSnippet;
|
|
36
28
|
* スニペット(検索語周辺のテキスト)を生成するためのオブジェクト。
|
37
29
|
*/
|
38
30
|
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
RbGrnSnippet *rb_grn_snippet;
|
43
|
-
|
44
|
-
if (!RVAL2CBOOL(rb_obj_is_kind_of(object, rb_cGrnSnippet))) {
|
45
|
-
rb_raise(rb_eTypeError, "not a groonga snippet");
|
46
|
-
}
|
47
|
-
|
48
|
-
Data_Get_Struct(object, RbGrnSnippet, rb_grn_snippet);
|
49
|
-
if (!rb_grn_snippet)
|
50
|
-
rb_raise(rb_eGrnError, "groonga snippet is NULL");
|
51
|
-
|
52
|
-
return rb_grn_snippet;
|
53
|
-
}
|
54
|
-
|
55
|
-
grn_snip *
|
56
|
-
rb_grn_snippet_from_ruby_object (VALUE object)
|
31
|
+
void
|
32
|
+
rb_grn_snippet_finalizer (grn_ctx *context, grn_obj *object,
|
33
|
+
RbGrnSnippet *rb_grn_snippet)
|
57
34
|
{
|
58
|
-
|
59
|
-
return NULL;
|
60
|
-
|
61
|
-
return SELF(object)->snippet;
|
35
|
+
rb_grn_context_unregister_floating_object(RB_GRN_OBJECT(rb_grn_snippet));
|
62
36
|
}
|
63
37
|
|
64
|
-
|
65
|
-
|
38
|
+
void
|
39
|
+
rb_grn_snippet_bind (RbGrnSnippet *rb_grn_snippet,
|
40
|
+
grn_ctx *context, grn_obj *snippet)
|
66
41
|
{
|
67
|
-
RbGrnSnippet *rb_grn_snippet = object;
|
68
|
-
|
69
|
-
if (!rb_grn_exited &&
|
70
|
-
rb_grn_snippet->owner &&
|
71
|
-
rb_grn_snippet->context && rb_grn_snippet->snippet)
|
72
|
-
grn_snip_close(rb_grn_snippet->context,
|
73
|
-
rb_grn_snippet->snippet);
|
74
|
-
|
75
|
-
xfree(object);
|
76
42
|
}
|
77
43
|
|
78
|
-
|
79
|
-
|
80
|
-
|
44
|
+
void
|
45
|
+
rb_grn_snippet_deconstruct (RbGrnSnippet *rb_grn_snippet,
|
46
|
+
grn_obj **snippet,
|
47
|
+
grn_ctx **context)
|
81
48
|
{
|
82
|
-
|
83
|
-
|
84
|
-
if (!snippet)
|
85
|
-
return Qnil;
|
49
|
+
RbGrnObject *rb_grn_object;
|
86
50
|
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
return Data_Wrap_Struct(rb_cGrnSnippet, NULL,
|
93
|
-
rb_rb_grn_snippet_free, rb_grn_snippet);
|
94
|
-
}
|
95
|
-
|
96
|
-
static VALUE
|
97
|
-
rb_grn_snippet_alloc (VALUE klass)
|
98
|
-
{
|
99
|
-
return Data_Wrap_Struct(klass, NULL, rb_rb_grn_snippet_free, NULL);
|
51
|
+
rb_grn_object = RB_GRN_OBJECT(rb_grn_snippet);
|
52
|
+
rb_grn_object_deconstruct(rb_grn_object, snippet, context,
|
53
|
+
NULL, NULL,
|
54
|
+
NULL, NULL);
|
100
55
|
}
|
101
56
|
|
102
57
|
/*
|
@@ -141,7 +96,6 @@ rb_grn_snippet_alloc (VALUE klass)
|
|
141
96
|
static VALUE
|
142
97
|
rb_grn_snippet_initialize (int argc, VALUE *argv, VALUE self)
|
143
98
|
{
|
144
|
-
RbGrnSnippet *rb_grn_snippet;
|
145
99
|
grn_ctx *context = NULL;
|
146
100
|
grn_snip *snippet = NULL;
|
147
101
|
VALUE options;
|
@@ -202,11 +156,8 @@ rb_grn_snippet_initialize (int argc, VALUE *argv, VALUE self)
|
|
202
156
|
mapping);
|
203
157
|
rb_grn_context_check(context, rb_ary_new4(argc, argv));
|
204
158
|
|
205
|
-
|
206
|
-
DATA_PTR(self)
|
207
|
-
rb_grn_snippet->context = context;
|
208
|
-
rb_grn_snippet->snippet = snippet;
|
209
|
-
rb_grn_snippet->owner = GRN_TRUE;
|
159
|
+
rb_grn_object_assign(Qnil, self, rb_context, context, (grn_obj *)snippet);
|
160
|
+
rb_grn_context_register_floating_object(DATA_PTR(self));
|
210
161
|
|
211
162
|
rb_iv_set(self, "@context", rb_context);
|
212
163
|
|
@@ -234,22 +185,17 @@ rb_grn_snippet_initialize (int argc, VALUE *argv, VALUE self)
|
|
234
185
|
static VALUE
|
235
186
|
rb_grn_snippet_add_keyword (int argc, VALUE *argv, VALUE self)
|
236
187
|
{
|
237
|
-
|
188
|
+
grn_ctx *context;
|
189
|
+
grn_obj *snippet;
|
238
190
|
grn_rc rc;
|
239
191
|
VALUE rb_keyword, options;
|
240
192
|
VALUE rb_open_tag, rb_close_tag;
|
241
193
|
char *keyword, *open_tag = NULL, *close_tag = NULL;
|
242
194
|
unsigned int keyword_length, open_tag_length = 0, close_tag_length = 0;
|
243
195
|
|
244
|
-
|
245
|
-
|
246
|
-
rb_grn_snippet = SELF(self);
|
196
|
+
rb_grn_snippet_deconstruct(SELF(self), &snippet, &context);
|
247
197
|
|
248
|
-
|
249
|
-
rb_raise(rb_eGrnClosed,
|
250
|
-
"can't access already closed groonga object: %s",
|
251
|
-
rb_grn_inspect(CLASS_OF(self)));
|
252
|
-
}
|
198
|
+
rb_scan_args(argc, argv, "11", &rb_keyword, &options);
|
253
199
|
|
254
200
|
keyword = StringValuePtr(rb_keyword);
|
255
201
|
keyword_length = RSTRING_LEN(rb_keyword);
|
@@ -269,8 +215,7 @@ rb_grn_snippet_add_keyword (int argc, VALUE *argv, VALUE self)
|
|
269
215
|
close_tag_length = RSTRING_LEN(rb_close_tag);
|
270
216
|
}
|
271
217
|
|
272
|
-
rc = grn_snip_add_cond(
|
273
|
-
rb_grn_snippet->snippet,
|
218
|
+
rc = grn_snip_add_cond(context, (grn_snip *)snippet,
|
274
219
|
keyword, keyword_length,
|
275
220
|
open_tag, open_tag_length,
|
276
221
|
close_tag, close_tag_length);
|
@@ -288,39 +233,30 @@ rb_grn_snippet_add_keyword (int argc, VALUE *argv, VALUE self)
|
|
288
233
|
static VALUE
|
289
234
|
rb_grn_snippet_execute (VALUE self, VALUE rb_string)
|
290
235
|
{
|
291
|
-
RbGrnSnippet *rb_grn_snippet;
|
292
236
|
grn_rc rc;
|
293
237
|
grn_ctx *context;
|
294
|
-
|
238
|
+
grn_obj *snippet;
|
295
239
|
char *string;
|
296
240
|
unsigned int string_length;
|
297
241
|
unsigned int i, n_results, max_tagged_length;
|
298
242
|
VALUE rb_results;
|
299
243
|
char *result;
|
300
244
|
|
245
|
+
rb_grn_snippet_deconstruct(SELF(self), &snippet, &context);
|
246
|
+
|
301
247
|
if (TYPE(rb_string) != T_STRING) {
|
302
248
|
rb_raise(rb_eGrnInvalidArgument,
|
303
249
|
"snippet text must be String: <%s>",
|
304
250
|
rb_grn_inspect(rb_string));
|
305
251
|
}
|
306
252
|
|
307
|
-
rb_grn_snippet = SELF(self);
|
308
|
-
context = rb_grn_snippet->context;
|
309
|
-
snippet = rb_grn_snippet->snippet;
|
310
|
-
|
311
|
-
if (!snippet) {
|
312
|
-
rb_raise(rb_eGrnClosed,
|
313
|
-
"can't access already closed groonga object: %s",
|
314
|
-
rb_grn_inspect(CLASS_OF(self)));
|
315
|
-
}
|
316
|
-
|
317
253
|
#ifdef HAVE_RUBY_ENCODING_H
|
318
254
|
rb_string = rb_grn_context_rb_string_encode(context, rb_string);
|
319
255
|
#endif
|
320
256
|
string = StringValuePtr(rb_string);
|
321
257
|
string_length = RSTRING_LEN(rb_string);
|
322
258
|
|
323
|
-
rc = grn_snip_exec(context, snippet, string, string_length,
|
259
|
+
rc = grn_snip_exec(context, (grn_snip *)snippet, string, string_length,
|
324
260
|
&n_results, &max_tagged_length);
|
325
261
|
rb_grn_context_check(context, self);
|
326
262
|
rb_grn_rc_check(rc, self);
|
@@ -331,7 +267,8 @@ rb_grn_snippet_execute (VALUE self, VALUE rb_string)
|
|
331
267
|
VALUE rb_result;
|
332
268
|
unsigned result_length;
|
333
269
|
|
334
|
-
rc = grn_snip_get_result(context, snippet,
|
270
|
+
rc = grn_snip_get_result(context, (grn_snip *)snippet,
|
271
|
+
i, result, &result_length);
|
335
272
|
rb_grn_rc_check(rc, self);
|
336
273
|
rb_result = rb_grn_context_rb_string_new(context, result, result_length);
|
337
274
|
rb_ary_push(rb_results, rb_result);
|
@@ -340,39 +277,10 @@ rb_grn_snippet_execute (VALUE self, VALUE rb_string)
|
|
340
277
|
return rb_results;
|
341
278
|
}
|
342
279
|
|
343
|
-
/*
|
344
|
-
* Document-method: close
|
345
|
-
*
|
346
|
-
* call-seq:
|
347
|
-
* snippet.close
|
348
|
-
*
|
349
|
-
* _snippet_ が使用しているリソースを開放する。これ以降 _snippet_ を
|
350
|
-
* 使うことはできない。
|
351
|
-
*/
|
352
|
-
static VALUE
|
353
|
-
rb_grn_snippet_close (VALUE self)
|
354
|
-
{
|
355
|
-
RbGrnSnippet *rb_grn_snippet;
|
356
|
-
grn_ctx *context;
|
357
|
-
grn_snip *snippet;
|
358
|
-
|
359
|
-
rb_grn_snippet = SELF(self);
|
360
|
-
context = rb_grn_snippet->context;
|
361
|
-
snippet = rb_grn_snippet->snippet;
|
362
|
-
if (context && snippet) {
|
363
|
-
grn_snip_close(context, snippet);
|
364
|
-
rb_grn_snippet->context = NULL;
|
365
|
-
rb_grn_snippet->snippet = NULL;
|
366
|
-
}
|
367
|
-
|
368
|
-
return Qnil;
|
369
|
-
}
|
370
|
-
|
371
280
|
void
|
372
281
|
rb_grn_init_snippet (VALUE mGrn)
|
373
282
|
{
|
374
|
-
rb_cGrnSnippet = rb_define_class_under(mGrn, "Snippet",
|
375
|
-
rb_define_alloc_func(rb_cGrnSnippet, rb_grn_snippet_alloc);
|
283
|
+
rb_cGrnSnippet = rb_define_class_under(mGrn, "Snippet", rb_cGrnObject);
|
376
284
|
|
377
285
|
rb_define_method(rb_cGrnSnippet, "initialize",
|
378
286
|
rb_grn_snippet_initialize, -1);
|
@@ -380,6 +288,4 @@ rb_grn_init_snippet (VALUE mGrn)
|
|
380
288
|
rb_grn_snippet_add_keyword, -1);
|
381
289
|
rb_define_method(rb_cGrnSnippet, "execute",
|
382
290
|
rb_grn_snippet_execute, 1);
|
383
|
-
rb_define_method(rb_cGrnSnippet, "close",
|
384
|
-
rb_grn_snippet_close, 0);
|
385
291
|
}
|
data/ext/groonga/rb-grn.h
CHANGED
@@ -72,7 +72,7 @@ RB_GRN_BEGIN_DECLS
|
|
72
72
|
|
73
73
|
#define RB_GRN_MAJOR_VERSION 2
|
74
74
|
#define RB_GRN_MINOR_VERSION 0
|
75
|
-
#define RB_GRN_MICRO_VERSION
|
75
|
+
#define RB_GRN_MICRO_VERSION 1
|
76
76
|
|
77
77
|
#define RB_GRN_QUERY_DEFAULT_MAX_EXPRESSIONS 32
|
78
78
|
|
@@ -88,6 +88,7 @@ RB_GRN_BEGIN_DECLS
|
|
88
88
|
#define RB_GRN_ACCESSOR(object) ((RbGrnAccessor *)(object))
|
89
89
|
#define RB_GRN_ACCESSOR_VIEW(object) ((RbGrnAccessor *)(object))
|
90
90
|
#define RB_GRN_EXPRESSION(object) ((RbGrnExpression *)(object))
|
91
|
+
#define RB_GRN_SNIPPET(object) ((RbGrnSnippet *)(object))
|
91
92
|
#define RB_GRN_UNBIND_FUNCTION(function) ((RbGrnUnbindFunction)(function))
|
92
93
|
|
93
94
|
typedef void (*RbGrnUnbindFunction) (void *object);
|
@@ -188,6 +189,12 @@ struct _RbGrnExpression
|
|
188
189
|
grn_obj *value;
|
189
190
|
};
|
190
191
|
|
192
|
+
typedef struct _RbGrnSnippet RbGrnSnippet;
|
193
|
+
struct _RbGrnSnippet
|
194
|
+
{
|
195
|
+
RbGrnObject parent;
|
196
|
+
};
|
197
|
+
|
191
198
|
typedef struct _RbGrnPlugin RbGrnPlugin;
|
192
199
|
struct _RbGrnPlugin
|
193
200
|
{
|
@@ -597,11 +604,6 @@ VALUE rb_grn_column_expression_builder_build
|
|
597
604
|
#define RVAL2GRNVARIABLE(object, context) \
|
598
605
|
(rb_grn_variable_from_ruby_object(object, context))
|
599
606
|
|
600
|
-
#define GRNSNIPPET2RVAL(context, snippet, owner) \
|
601
|
-
(rb_grn_snippet_to_ruby_object(context, snippet, owner))
|
602
|
-
#define RVAL2GRNSNIPPET(snippet) \
|
603
|
-
(rb_grn_snippet_from_ruby_object(snippet))
|
604
|
-
|
605
607
|
|
606
608
|
grn_encoding rb_grn_encoding_from_ruby_object (VALUE object,
|
607
609
|
grn_ctx *context);
|
@@ -731,11 +733,12 @@ VALUE rb_grn_obj_to_ruby_object (VALUE klass,
|
|
731
733
|
grn_obj *obj,
|
732
734
|
VALUE related_object);
|
733
735
|
|
734
|
-
|
735
|
-
|
736
|
-
|
737
|
-
|
738
|
-
|
736
|
+
void rb_grn_snippet_bind (RbGrnSnippet *rb_grn_snippet,
|
737
|
+
grn_ctx *context,
|
738
|
+
grn_obj *snippet);
|
739
|
+
void rb_grn_snippet_finalizer (grn_ctx *context,
|
740
|
+
grn_obj *grn_object,
|
741
|
+
RbGrnSnippet *rb_grn_snippet);
|
739
742
|
RB_GRN_END_DECLS
|
740
743
|
|
741
744
|
#endif
|
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
|
data/vendor/local/bin/mecab.exe
CHANGED
Binary file
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
You should have received a copy of the GNU Lesser General Public
|
15
15
|
License along with this library; if not, write to the Free Software
|
16
|
-
Foundation, Inc.,
|
16
|
+
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
17
17
|
*/
|
18
18
|
#ifndef GRN_PLUGIN_H
|
19
19
|
#define GRN_PLUGIN_H
|
@@ -587,7 +587,7 @@ typedef enum {
|
|
587
587
|
GRN_DB_DELIMIT,
|
588
588
|
GRN_DB_UNIGRAM,
|
589
589
|
GRN_DB_BIGRAM,
|
590
|
-
GRN_DB_TRIGRAM
|
590
|
+
GRN_DB_TRIGRAM
|
591
591
|
} grn_builtin_tokenizer;
|
592
592
|
|
593
593
|
GRN_API grn_obj *grn_ctx_at(grn_ctx *ctx, grn_id id);
|
@@ -1964,6 +1964,8 @@ GRN_API grn_posting *grn_geo_cursor_next(grn_ctx *ctx, grn_obj *cursor);
|
|
1964
1964
|
#define GRN_QUERY_COLUMN ':'
|
1965
1965
|
#endif /* GRN_QUERY_COLUMN */
|
1966
1966
|
|
1967
|
+
/* grn_snip should be removed.
|
1968
|
+
* TODO: 3.0 */
|
1967
1969
|
typedef struct _grn_snip grn_snip;
|
1968
1970
|
typedef struct _grn_snip_mapping grn_snip_mapping;
|
1969
1971
|
|
@@ -1975,11 +1977,15 @@ struct _grn_snip_mapping {
|
|
1975
1977
|
#define GRN_SNIP_COPY_TAG (0x01<<1)
|
1976
1978
|
#define GRN_SNIP_SKIP_LEADING_SPACES (0x01<<2)
|
1977
1979
|
|
1980
|
+
/* grn_snip_open() should return grn_obj * instead.
|
1981
|
+
* TODO: 3.0 */
|
1978
1982
|
GRN_API grn_snip *grn_snip_open(grn_ctx *ctx, int flags, unsigned int width,
|
1979
1983
|
unsigned int max_results,
|
1980
1984
|
const char *defaultopentag, unsigned int defaultopentag_len,
|
1981
1985
|
const char *defaultclosetag, unsigned int defaultclosetag_len,
|
1982
1986
|
grn_snip_mapping *mapping);
|
1987
|
+
/* grn_snip_close() should be removed. Use grn_obj_close() instead.
|
1988
|
+
* TODO: 3.0 */
|
1983
1989
|
GRN_API grn_rc grn_snip_close(grn_ctx *ctx, grn_snip *snip);
|
1984
1990
|
GRN_API grn_rc grn_snip_add_cond(grn_ctx *ctx, grn_snip *snip,
|
1985
1991
|
const char *keyword, unsigned int keyword_len,
|
@@ -2482,13 +2488,14 @@ GRN_API grn_obj *grn_table_select(grn_ctx *ctx, grn_obj *table, grn_obj *expr,
|
|
2482
2488
|
GRN_API int grn_obj_columns(grn_ctx *ctx, grn_obj *table,
|
2483
2489
|
const char *str, unsigned int str_size, grn_obj *res);
|
2484
2490
|
|
2485
|
-
#define GRN_EXPR_CREATE_FOR_QUERY(ctx,table,expr,var) \
|
2491
|
+
#define GRN_EXPR_CREATE_FOR_QUERY(ctx,table,expr,var) do {\
|
2486
2492
|
if (((expr) = grn_expr_create((ctx), NULL, 0)) &&\
|
2487
2493
|
((var) = grn_expr_add_var((ctx), (expr), NULL, 0))) {\
|
2488
2494
|
GRN_RECORD_INIT((var), 0, grn_obj_id((ctx), (table)));\
|
2489
2495
|
} else {\
|
2490
2496
|
(var) = NULL;\
|
2491
|
-
}
|
2497
|
+
}\
|
2498
|
+
} while (0)
|
2492
2499
|
|
2493
2500
|
typedef unsigned int grn_expr_flags;
|
2494
2501
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/local/lib/libmecab.a
CHANGED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -8,10 +8,10 @@ datadir=${datarootdir}
|
|
8
8
|
document_root=${datadir}/groonga/html/admin
|
9
9
|
groonga=${bindir}/groonga.exe
|
10
10
|
groonga_suggest_create_dataset=${bindir}/groonga-suggest-create-dataset.exe
|
11
|
-
groonga_version=2.0.
|
11
|
+
groonga_version=2.0.1
|
12
12
|
|
13
13
|
Name: Groonga
|
14
14
|
Description: An Embeddable Fulltext Search Engine
|
15
|
-
Version: 2.0.
|
15
|
+
Version: 2.0.1
|
16
16
|
Libs: -L${libdir} -lgroonga -L/home/kou/work/c/groonga.clean/packages/windows/dist-x86/lib -lmsgpack
|
17
17
|
Cflags: -I${includedir}/groonga -I/home/kou/work/c/groonga.clean/packages/windows/dist-x86/include
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,4 +1,4 @@
|
|
1
1
|
# Sphinx build info version 1
|
2
2
|
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
|
3
|
-
config:
|
3
|
+
config: 9fa04971a9987b17aea0e92f94543b8a
|
4
4
|
tags: fbb0d17656682115ca4d033fb2f83ba1
|
@@ -144,6 +144,25 @@ OPTIONS
|
|
144
144
|
Default:
|
145
145
|
``auto``
|
146
146
|
|
147
|
+
``similar_search``
|
148
|
+
It specifies whether optional similar search is used or not
|
149
|
+
in correction.
|
150
|
+
|
151
|
+
Here are available values:
|
152
|
+
|
153
|
+
``yes``
|
154
|
+
Similar search is always used.
|
155
|
+
|
156
|
+
``no``
|
157
|
+
Similar search is never used.
|
158
|
+
|
159
|
+
``auto``
|
160
|
+
Similar search is used only when other search can't
|
161
|
+
find any records.
|
162
|
+
|
163
|
+
Default:
|
164
|
+
``auto``
|
165
|
+
|
147
166
|
RETURN VALUE
|
148
167
|
------------
|
149
168
|
|
@@ -13,8 +13,8 @@ Mailing List
|
|
13
13
|
|
14
14
|
There are mailing lists for discussion about groonga.
|
15
15
|
|
16
|
-
For English
|
16
|
+
For English speakers
|
17
17
|
`groonga-talk@lists.sourceforge.net <http://lists.sourceforge.net/mailman/listinfo/groonga-talk>`_
|
18
18
|
|
19
|
-
For Japanese
|
19
|
+
For Japanese speakers
|
20
20
|
`groonga-dev@lists.sourceforge.jp <http://lists.sourceforge.jp/mailman/listinfo/groonga-dev>`_
|