rroonga 3.0.1-x86-mingw32 → 3.0.2-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/text/news.textile +21 -0
- data/ext/groonga/rb-grn-index-column.c +353 -1
- data/ext/groonga/rb-grn-object.c +529 -495
- data/ext/groonga/rb-grn-table.c +48 -0
- data/ext/groonga/rb-grn-utils.c +585 -418
- data/ext/groonga/rb-grn.h +6 -4
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/groonga/dumper.rb +25 -8
- data/lib/groonga/record.rb +21 -2
- data/lib/groonga/schema.rb +2 -2
- data/rroonga-build.rb +1 -1
- data/rroonga.gemspec +2 -0
- data/test/test-database-dumper.rb +45 -3
- data/test/test-expression-builder.rb +0 -13
- data/test/test-fix-size-column.rb +40 -9
- data/test/test-index-column.rb +130 -1
- data/test/test-record.rb +43 -8
- data/test/test-schema-create-table.rb +2 -2
- data/test/test-schema-dumper.rb +46 -6
- data/test/test-table.rb +4 -3
- data/test/test-variable-size-column.rb +115 -26
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +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/libstdc++-6.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +1 -9
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- 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 +1 -1
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +1 -1
- 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/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 +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +43 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -50
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +11 -21
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +51 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +49 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api.txt +8 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +196 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +16 -0
- data/vendor/local/share/doc/groonga/en/html/_static/pygments.css +2 -2
- 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/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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.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 +13 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.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/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +22 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +19 -14
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +48 -12
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +16 -60
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -25
- data/vendor/local/share/doc/groonga/en/html/install.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- 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/news.html +187 -129
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +198 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +31 -6
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +18 -11
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +7 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +17 -17
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +310 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +26 -26
- 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/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +5 -5
- 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 +5 -5
- 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/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +20 -5
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference.html +12 -7
- 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/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.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/package.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +10 -10
- 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/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.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/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +43 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -50
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +11 -21
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +51 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +49 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api.txt +8 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +196 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +16 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/pygments.css +2 -2
- 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/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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.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 +17 -9
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.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/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +31 -7
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +19 -14
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +44 -12
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +16 -56
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -25
- data/vendor/local/share/doc/groonga/ja/html/install.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- 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/news.html +178 -129
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +195 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +31 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +17 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +7 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +17 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +311 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +26 -26
- 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/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.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/function.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +20 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference.html +12 -7
- 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/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +10 -10
- 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/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +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/ja/html/tutorial.html +5 -5
- data/vendor/local/share/man/ja/man1/groonga.1 +3227 -197
- data/vendor/local/share/man/man1/groonga.1 +3230 -195
- metadata +131 -123
data/doc/text/news.textile
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
h1. NEWS
|
2
2
|
|
3
|
+
h2(#3-0-1). 3.0.2: 2013-05-29
|
4
|
+
|
5
|
+
h3. Improvements
|
6
|
+
|
7
|
+
* Required groonga >= 3.0.4.
|
8
|
+
* Supported set/get a vector of Time.
|
9
|
+
* [grndump] Stopped to dump index only tables. They are needless.
|
10
|
+
* Added {Groonga::Record#to_json}.
|
11
|
+
* Added {Groonga::IndexColumn#add}.
|
12
|
+
* Added {Groonga::IndexColumn#delete}.
|
13
|
+
* Added {Groonga::IndexColumn#update}.
|
14
|
+
* Deprecated {Groonga::IndexColumn#[]=}. Use {Groonga::IndexColumn#add},
|
15
|
+
{Groonga::IndexColumn#delete} or {Groonga::IndexColumn#update} instead.
|
16
|
+
* Added {Groonga::Table#have_n_sub_records_space?}.
|
17
|
+
* [grndump] Don't dump "register PLUGIN" when schema dump is disabled.
|
18
|
+
|
19
|
+
h3. Fixes
|
20
|
+
|
21
|
+
* [grndump]
|
22
|
+
Fixed a bug that reference tables may be dumpped before referenced tables.
|
23
|
+
|
3
24
|
h2(#3-0-1). 3.0.1: 2013-05-01
|
4
25
|
|
5
26
|
h3. Improvements
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2
2
|
/*
|
3
|
-
Copyright (C) 2009-
|
3
|
+
Copyright (C) 2009-2013 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
|
@@ -157,6 +157,8 @@ rb_grn_index_column_deconstruct (RbGrnIndexColumn *rb_grn_index_column,
|
|
157
157
|
* 新しい値を指定する。 _value_ を指定した場合と _options_ で
|
158
158
|
* @{:value => value}@ を指定した場合は同じ動作とな
|
159
159
|
* る。
|
160
|
+
*
|
161
|
+
* @deprecated Since 3.0.2. Use {#add}, {#delete} or {#update} instead.
|
160
162
|
*/
|
161
163
|
static VALUE
|
162
164
|
rb_grn_index_column_array_set (VALUE self, VALUE rb_id, VALUE rb_value)
|
@@ -219,6 +221,349 @@ rb_grn_index_column_array_set (VALUE self, VALUE rb_id, VALUE rb_value)
|
|
219
221
|
return original_rb_value;
|
220
222
|
}
|
221
223
|
|
224
|
+
/*
|
225
|
+
* Adds a record that has @value@ content to inverted index for fast
|
226
|
+
* fulltext serach. Normally, this method is not used
|
227
|
+
* explicitly. Inverted index for fulltext search is updated
|
228
|
+
* automatically by using @:source@ option of
|
229
|
+
* {Groonga::Table#define_index_column}.
|
230
|
+
*
|
231
|
+
* @example Adds sentences of an article to index
|
232
|
+
* articles = Groonga::Array.create(:name => "Articles")
|
233
|
+
* articles.define_column("title", "ShortText")
|
234
|
+
* articles.define_column("content", "Text")
|
235
|
+
*
|
236
|
+
* terms = Groonga::Hash.create(:name => "Terms",
|
237
|
+
* :key_type => "ShortText",
|
238
|
+
* :default_tokenizer => "TokenBigram")
|
239
|
+
* content_index = terms.define_index_column("content", articles,
|
240
|
+
* :with_position => true,
|
241
|
+
* :with_section => true)
|
242
|
+
*
|
243
|
+
* content = <<-CONTENT
|
244
|
+
* Groonga is a fast and accurate full text search engine based on
|
245
|
+
* inverted index. One of the characteristics of groonga is that a
|
246
|
+
* newly registered document instantly appears in search
|
247
|
+
* results. Also, groonga allows updates without read locks. These
|
248
|
+
* characteristics result in superior performance on real-time
|
249
|
+
* applications.
|
250
|
+
*
|
251
|
+
* Groonga is also a column-oriented database management system
|
252
|
+
* (DBMS). Compared with well-known row-oriented systems, such as
|
253
|
+
* MySQL and PostgreSQL, column-oriented systems are more suited for
|
254
|
+
* aggregate queries. Due to this advantage, groonga can cover
|
255
|
+
* weakness of row-oriented systems.
|
256
|
+
*
|
257
|
+
* The basic functions of groonga are provided in a C library. Also,
|
258
|
+
* libraries for using groonga in other languages, such as Ruby, are
|
259
|
+
* provided by related projects. In addition, groonga-based storage
|
260
|
+
* engines are provided for MySQL and PostgreSQL. These libraries
|
261
|
+
* and storage engines allow any application to use groonga. See
|
262
|
+
* usage examples.
|
263
|
+
* CONTENT
|
264
|
+
*
|
265
|
+
* groonga = articles.add(:title => "groonga", :content => content)
|
266
|
+
*
|
267
|
+
* content.split(/\n{2,}/).each_with_index do |sentence, i|
|
268
|
+
* content_index.add(groonga, sentence, :section => i + 1)
|
269
|
+
* end
|
270
|
+
*
|
271
|
+
* content_index.search("engine").each do |record|
|
272
|
+
* p record.key["title"] # -> "groonga"
|
273
|
+
* end
|
274
|
+
*
|
275
|
+
* @overload add(record, value, options={})
|
276
|
+
* @param [Groonga::Record, Integer] record
|
277
|
+
* The record that has a @value@ as its value. It can be Integer as
|
278
|
+
* record id.
|
279
|
+
* @param [String] value
|
280
|
+
* The value of the @record@.
|
281
|
+
* @param [::Hash] options
|
282
|
+
* The options.
|
283
|
+
* @option options [Integer] :section (1)
|
284
|
+
* The section number. It is one-origin.
|
285
|
+
*
|
286
|
+
* You must specify @{:with_section => true}@ in
|
287
|
+
* {Groonga::Table#define_index_column} to use this option.
|
288
|
+
* @return [void]
|
289
|
+
*
|
290
|
+
* @since 3.0.2
|
291
|
+
*/
|
292
|
+
static VALUE
|
293
|
+
rb_grn_index_column_add (int argc, VALUE *argv, VALUE self)
|
294
|
+
{
|
295
|
+
grn_ctx *context = NULL;
|
296
|
+
grn_obj *column, *range;
|
297
|
+
grn_rc rc;
|
298
|
+
grn_id id;
|
299
|
+
unsigned int section;
|
300
|
+
grn_obj *new_value;
|
301
|
+
VALUE rb_record, rb_value, rb_options, rb_section;
|
302
|
+
|
303
|
+
rb_scan_args(argc, argv, "21", &rb_record, &rb_value, &rb_options);
|
304
|
+
|
305
|
+
rb_grn_index_column_deconstruct(SELF(self), &column, &context,
|
306
|
+
NULL, NULL,
|
307
|
+
&new_value, NULL,
|
308
|
+
NULL, &range,
|
309
|
+
NULL, NULL);
|
310
|
+
|
311
|
+
id = RVAL2GRNID(rb_record, context, range, self);
|
312
|
+
|
313
|
+
GRN_BULK_REWIND(new_value);
|
314
|
+
RVAL2GRNBULK(rb_value, context, new_value);
|
315
|
+
|
316
|
+
rb_grn_scan_options(rb_options,
|
317
|
+
"section", &rb_section,
|
318
|
+
NULL);
|
319
|
+
|
320
|
+
if (NIL_P(rb_section)) {
|
321
|
+
section = 1;
|
322
|
+
} else {
|
323
|
+
section = NUM2UINT(rb_section);
|
324
|
+
}
|
325
|
+
|
326
|
+
rc = grn_column_index_update(context, column, id, section, NULL, new_value);
|
327
|
+
rb_grn_context_check(context, self);
|
328
|
+
rb_grn_rc_check(rc, self);
|
329
|
+
|
330
|
+
return self;
|
331
|
+
}
|
332
|
+
|
333
|
+
/*
|
334
|
+
* Deletes a record that has @value@ content from inverted
|
335
|
+
* index. Normally, this method is not used explicitly. Inverted index
|
336
|
+
* for fulltext search is updated automatically by using @:source@
|
337
|
+
* option of {Groonga::Table#define_index_column}.
|
338
|
+
*
|
339
|
+
* @example Deletes sentences of an article to index
|
340
|
+
* articles = Groonga::Array.create(:name => "Articles")
|
341
|
+
* articles.define_column("title", "ShortText")
|
342
|
+
* articles.define_column("content", "Text")
|
343
|
+
*
|
344
|
+
* terms = Groonga::Hash.create(:name => "Terms",
|
345
|
+
* :key_type => "ShortText",
|
346
|
+
* :default_tokenizer => "TokenBigram")
|
347
|
+
* content_index = terms.define_index_column("content", articles,
|
348
|
+
* :with_position => true,
|
349
|
+
* :with_section => true)
|
350
|
+
*
|
351
|
+
* content = <<-CONTENT
|
352
|
+
* Groonga is a fast and accurate full text search engine based on
|
353
|
+
* inverted index. One of the characteristics of groonga is that a
|
354
|
+
* newly registered document instantly appears in search
|
355
|
+
* results. Also, groonga allows updates without read locks. These
|
356
|
+
* characteristics result in superior performance on real-time
|
357
|
+
* applications.
|
358
|
+
*
|
359
|
+
* Groonga is also a column-oriented database management system
|
360
|
+
* (DBMS). Compared with well-known row-oriented systems, such as
|
361
|
+
* MySQL and PostgreSQL, column-oriented systems are more suited for
|
362
|
+
* aggregate queries. Due to this advantage, groonga can cover
|
363
|
+
* weakness of row-oriented systems.
|
364
|
+
*
|
365
|
+
* The basic functions of groonga are provided in a C library. Also,
|
366
|
+
* libraries for using groonga in other languages, such as Ruby, are
|
367
|
+
* provided by related projects. In addition, groonga-based storage
|
368
|
+
* engines are provided for MySQL and PostgreSQL. These libraries
|
369
|
+
* and storage engines allow any application to use groonga. See
|
370
|
+
* usage examples.
|
371
|
+
* CONTENT
|
372
|
+
*
|
373
|
+
* groonga = articles.add(:title => "groonga", :content => content)
|
374
|
+
*
|
375
|
+
* content.split(/\n{2,}/).each_with_index do |sentence, i|
|
376
|
+
* content_index.add(groonga, sentence, :section => i + 1)
|
377
|
+
* end
|
378
|
+
*
|
379
|
+
* content_index.search("engine").each do |record|
|
380
|
+
* p record.key["title"] # -> "groonga"
|
381
|
+
* end
|
382
|
+
*
|
383
|
+
* content.split(/\n{2,}/).each_with_index do |sentence, i|
|
384
|
+
* content_index.delete(groonga, sentence, :section => i + 1)
|
385
|
+
* end
|
386
|
+
*
|
387
|
+
* p content_index.search("engine").size # -> 0
|
388
|
+
*
|
389
|
+
* @overload delete(record, value, options={})
|
390
|
+
* @param [Groonga::Record, Integer] record
|
391
|
+
* The record that has a @value@ as its value. It can be Integer as
|
392
|
+
* record id.
|
393
|
+
* @param [String] value
|
394
|
+
* The value of the @record@.
|
395
|
+
* @param [::Hash] options
|
396
|
+
* The options.
|
397
|
+
* @option options [Integer] :section (1)
|
398
|
+
* The section number. It is one-origin.
|
399
|
+
*
|
400
|
+
* You must specify @{:with_section => true}@ in
|
401
|
+
* {Groonga::Table#define_index_column} to use this option.
|
402
|
+
* @return [void]
|
403
|
+
*
|
404
|
+
* @since 3.0.2
|
405
|
+
*/
|
406
|
+
static VALUE
|
407
|
+
rb_grn_index_column_delete (int argc, VALUE *argv, VALUE self)
|
408
|
+
{
|
409
|
+
grn_ctx *context = NULL;
|
410
|
+
grn_obj *column, *range;
|
411
|
+
grn_rc rc;
|
412
|
+
grn_id id;
|
413
|
+
unsigned int section;
|
414
|
+
grn_obj *old_value;
|
415
|
+
VALUE rb_record, rb_value, rb_options, rb_section;
|
416
|
+
|
417
|
+
rb_scan_args(argc, argv, "21", &rb_record, &rb_value, &rb_options);
|
418
|
+
|
419
|
+
rb_grn_index_column_deconstruct(SELF(self), &column, &context,
|
420
|
+
NULL, NULL,
|
421
|
+
NULL, &old_value,
|
422
|
+
NULL, &range,
|
423
|
+
NULL, NULL);
|
424
|
+
|
425
|
+
id = RVAL2GRNID(rb_record, context, range, self);
|
426
|
+
|
427
|
+
GRN_BULK_REWIND(old_value);
|
428
|
+
RVAL2GRNBULK(rb_value, context, old_value);
|
429
|
+
|
430
|
+
rb_grn_scan_options(rb_options,
|
431
|
+
"section", &rb_section,
|
432
|
+
NULL);
|
433
|
+
|
434
|
+
if (NIL_P(rb_section)) {
|
435
|
+
section = 1;
|
436
|
+
} else {
|
437
|
+
section = NUM2UINT(rb_section);
|
438
|
+
}
|
439
|
+
|
440
|
+
rc = grn_column_index_update(context, column, id, section, old_value, NULL);
|
441
|
+
rb_grn_context_check(context, self);
|
442
|
+
rb_grn_rc_check(rc, self);
|
443
|
+
|
444
|
+
return self;
|
445
|
+
}
|
446
|
+
|
447
|
+
/*
|
448
|
+
* Updates a record that has @new_value@ as new content and
|
449
|
+
* @old_value@ as old content in inverted index. Normally, this method
|
450
|
+
* is not used explicitly. Inverted index for fulltext search is
|
451
|
+
* updated automatically by using @:source@ option of
|
452
|
+
* {Groonga::Table#define_index_column}.
|
453
|
+
*
|
454
|
+
* @example Updates sentences of an article to index
|
455
|
+
* articles = Groonga::Array.create(:name => "Articles")
|
456
|
+
* articles.define_column("title", "ShortText")
|
457
|
+
* articles.define_column("content", "Text")
|
458
|
+
*
|
459
|
+
* terms = Groonga::Hash.create(:name => "Terms",
|
460
|
+
* :key_type => "ShortText",
|
461
|
+
* :default_tokenizer => "TokenBigram")
|
462
|
+
* content_index = terms.define_index_column("content", articles,
|
463
|
+
* :with_position => true,
|
464
|
+
* :with_section => true)
|
465
|
+
*
|
466
|
+
* old_sentence = <<-SENTENCE
|
467
|
+
* Groonga is a fast and accurate full text search engine based on
|
468
|
+
* inverted index. One of the characteristics of groonga is that a
|
469
|
+
* newly registered document instantly appears in search
|
470
|
+
* results. Also, groonga allows updates without read locks. These
|
471
|
+
* characteristics result in superior performance on real-time
|
472
|
+
* applications.
|
473
|
+
* SENTENCE
|
474
|
+
*
|
475
|
+
* new_sentence = <<-SENTENCE
|
476
|
+
* Groonga is also a column-oriented database management system
|
477
|
+
* (DBMS). Compared with well-known row-oriented systems, such as
|
478
|
+
* MySQL and PostgreSQL, column-oriented systems are more suited for
|
479
|
+
* aggregate queries. Due to this advantage, groonga can cover
|
480
|
+
* weakness of row-oriented systems.
|
481
|
+
* SENTENCE
|
482
|
+
*
|
483
|
+
* groonga = articles.add(:title => "groonga", :content => old_sentence)
|
484
|
+
*
|
485
|
+
* content_index.add(groonga, old_sentence, :section => 1)
|
486
|
+
* p content_index.search("engine").size # -> 1
|
487
|
+
* p content_index.search("MySQL").size # -> 0
|
488
|
+
*
|
489
|
+
* groonga[:content] = new_sentence
|
490
|
+
* content_index.update(groonga, old_sentence, new_sentence, :section => 1)
|
491
|
+
* p content_index.search("engine").size # -> 0
|
492
|
+
* p content_index.search("MySQL").size # -> 1
|
493
|
+
*
|
494
|
+
* @overload update(record, old_value, new_value, options={})
|
495
|
+
* @param [Groonga::Record, Integer] record
|
496
|
+
* The record that has a @new_value@ as its new value and
|
497
|
+
* @old_value@ as its old value. It can be Integer as record id.
|
498
|
+
* @param [String] old_value
|
499
|
+
* The old value of the @record@.
|
500
|
+
* @param [String] new_value
|
501
|
+
* The new value of the @record@.
|
502
|
+
* @param [::Hash] options
|
503
|
+
* The options.
|
504
|
+
* @option options [Integer] :section (1)
|
505
|
+
* The section number. It is one-origin.
|
506
|
+
*
|
507
|
+
* You must specify @{:with_section => true}@ in
|
508
|
+
* {Groonga::Table#define_index_column} to use this option.
|
509
|
+
* @return [void]
|
510
|
+
*
|
511
|
+
* @since 3.0.2
|
512
|
+
*/
|
513
|
+
static VALUE
|
514
|
+
rb_grn_index_column_update (int argc, VALUE *argv, VALUE self)
|
515
|
+
{
|
516
|
+
grn_ctx *context = NULL;
|
517
|
+
grn_obj *column, *range;
|
518
|
+
grn_rc rc;
|
519
|
+
grn_id id;
|
520
|
+
unsigned int section;
|
521
|
+
grn_obj *old_value, *new_value;
|
522
|
+
VALUE rb_record, rb_old_value, rb_new_value, rb_options, rb_section;
|
523
|
+
|
524
|
+
rb_scan_args(argc, argv, "31",
|
525
|
+
&rb_record, &rb_old_value, &rb_new_value, &rb_options);
|
526
|
+
|
527
|
+
rb_grn_index_column_deconstruct(SELF(self), &column, &context,
|
528
|
+
NULL, NULL,
|
529
|
+
&new_value, &old_value,
|
530
|
+
NULL, &range,
|
531
|
+
NULL, NULL);
|
532
|
+
|
533
|
+
id = RVAL2GRNID(rb_record, context, range, self);
|
534
|
+
|
535
|
+
if (NIL_P(rb_old_value)) {
|
536
|
+
old_value = NULL;
|
537
|
+
} else {
|
538
|
+
GRN_BULK_REWIND(old_value);
|
539
|
+
RVAL2GRNBULK(rb_old_value, context, old_value);
|
540
|
+
}
|
541
|
+
|
542
|
+
if (NIL_P(rb_new_value)) {
|
543
|
+
new_value = NULL;
|
544
|
+
} else {
|
545
|
+
GRN_BULK_REWIND(new_value);
|
546
|
+
RVAL2GRNBULK(rb_new_value, context, new_value);
|
547
|
+
}
|
548
|
+
|
549
|
+
rb_grn_scan_options(rb_options,
|
550
|
+
"section", &rb_section,
|
551
|
+
NULL);
|
552
|
+
|
553
|
+
if (NIL_P(rb_section)) {
|
554
|
+
section = 1;
|
555
|
+
} else {
|
556
|
+
section = NUM2UINT(rb_section);
|
557
|
+
}
|
558
|
+
|
559
|
+
rc = grn_column_index_update(context, column, id, section,
|
560
|
+
old_value, new_value);
|
561
|
+
rb_grn_context_check(context, self);
|
562
|
+
rb_grn_rc_check(rc, self);
|
563
|
+
|
564
|
+
return self;
|
565
|
+
}
|
566
|
+
|
222
567
|
/*
|
223
568
|
* インデックス対象となっている {Groonga::Column} の配列を返す。
|
224
569
|
*
|
@@ -627,6 +972,13 @@ rb_grn_init_index_column (VALUE mGrn)
|
|
627
972
|
rb_define_method(rb_cGrnIndexColumn, "[]=",
|
628
973
|
rb_grn_index_column_array_set, 2);
|
629
974
|
|
975
|
+
rb_define_method(rb_cGrnIndexColumn, "add",
|
976
|
+
rb_grn_index_column_add, -1);
|
977
|
+
rb_define_method(rb_cGrnIndexColumn, "delete",
|
978
|
+
rb_grn_index_column_delete, -1);
|
979
|
+
rb_define_method(rb_cGrnIndexColumn, "update",
|
980
|
+
rb_grn_index_column_update, -1);
|
981
|
+
|
630
982
|
rb_define_method(rb_cGrnIndexColumn, "sources",
|
631
983
|
rb_grn_index_column_get_sources, 0);
|
632
984
|
rb_define_method(rb_cGrnIndexColumn, "sources=",
|