rroonga 4.0.5-x86-mingw32 → 4.0.6-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.
- checksums.yaml +5 -13
 - data/.yardopts +1 -1
 - data/benchmark/common.rb +4 -4
 - data/benchmark/create-wikipedia-database.rb +5 -5
 - data/benchmark/read-write-many-small-items.rb +8 -8
 - data/benchmark/repeat-load.rb +4 -4
 - data/benchmark/select.rb +9 -9
 - data/benchmark/write-many-small-items.rb +8 -8
 - data/doc/images/sample-schema.png +0 -0
 - data/doc/text/install.textile +2 -2
 - data/doc/text/news.textile +41 -0
 - data/doc/text/tutorial.textile +4 -4
 - data/example/bookmark.rb +6 -7
 - data/example/index-html.rb +6 -6
 - data/ext/groonga/extconf.rb +23 -1
 - data/ext/groonga/rb-grn-column.c +3 -2
 - data/ext/groonga/rb-grn-context.c +20 -3
 - data/ext/groonga/rb-grn-double-array-trie.c +11 -2
 - data/ext/groonga/rb-grn-exception.c +28 -10
 - data/ext/groonga/rb-grn-expression.c +78 -0
 - data/ext/groonga/rb-grn-hash.c +10 -0
 - data/ext/groonga/rb-grn-logger.c +7 -3
 - data/ext/groonga/rb-grn-object.c +3 -2
 - data/ext/groonga/rb-grn-patricia-trie.c +23 -20
 - data/ext/groonga/rb-grn-table-key-support.c +92 -1
 - data/ext/groonga/rb-grn-table.c +60 -17
 - data/ext/groonga/rb-grn-utils.c +51 -2
 - data/ext/groonga/rb-grn-variable-size-column.c +11 -7
 - data/ext/groonga/rb-grn.h +11 -1
 - data/lib/1.9/groonga.so +0 -0
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/groonga/dumper.rb +23 -1
 - data/lib/groonga/patricia-trie.rb +1 -1
 - data/lib/groonga/schema.rb +190 -205
 - data/misc/grnop2ruby.rb +1 -1
 - data/rroonga-build.rb +3 -3
 - data/rroonga.gemspec +1 -0
 - data/test/groonga-test-utils.rb +2 -2
 - data/test/test-column.rb +19 -0
 - data/test/test-context.rb +5 -1
 - data/test/test-double-array-trie.rb +19 -0
 - data/test/test-exception.rb +7 -2
 - data/test/test-expression.rb +19 -0
 - data/test/test-fix-size-column.rb +49 -36
 - data/test/test-hash.rb +22 -0
 - data/test/test-patricia-trie.rb +26 -7
 - data/test/test-schema-dumper.rb +65 -1
 - data/test/test-schema.rb +13 -2
 - data/test/test-variable-size-column.rb +6 -5
 - 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/libonig-5.dll +0 -0
 - data/vendor/local/bin/mecab-config +0 -0
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/onig-config +0 -0
 - data/vendor/local/include/groonga/groonga.h +21 -6
 - data/vendor/local/include/groonga/groonga/token_filter.h +71 -0
 - data/vendor/local/include/groonga/groonga/tokenizer.h +33 -1
 - 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 +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.la +1 -1
 - data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.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 +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/token_filters/stop_word.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +41 -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/groonga/plugins/tokenizers/mecab.la +2 -2
 - data/vendor/local/lib/groonga/scripts/ruby/context/rc.rb +1 -1
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +7 -2
 - data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +2 -1
 - 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/libonig.a +0 -0
 - data/vendor/local/lib/libonig.dll.a +0 -0
 - data/vendor/local/lib/libonig.la +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/sbin/groonga-httpd-restart +0 -0
 - data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/client.txt +19 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/index.txt +1 -2
 - 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 +3 -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 +6 -6
 - 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 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +68 -5
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/1.2.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +3 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +23 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_expr.txt +46 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +15 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +23 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-suggest-create-dataset.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +14 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/{geolocation_search.txt → reference/operations/geolocation_search.txt} +0 -0
 - data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest.txt +0 -1
 - data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest/completion.txt +6 -6
 - data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest/correction.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/{suggest → reference/suggest}/introduction.txt +0 -0
 - data/vendor/local/share/doc/groonga/{ja/html/_sources → en/html/_sources/reference}/suggest/suggestion.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +9404 -2
 - data/vendor/local/share/doc/groonga/en/html/_static/pygments.css +1 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +1415 -31
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/client.html +134 -0
 - data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +86 -86
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +40 -40
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +66 -66
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +105 -105
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +42 -42
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +19 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +42 -42
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/development.html +17 -17
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +23 -7
 - data/vendor/local/share/doc/groonga/en/html/index.html +215 -230
 - data/vendor/local/share/doc/groonga/en/html/install.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +8 -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 +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 +11 -11
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +8 -8
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +21 -21
 - data/vendor/local/share/doc/groonga/en/html/news.html +129 -59
 - 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 +6 -6
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +6 -6
 - 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 +154 -135
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +40 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +27 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +74 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +79 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +5 -5
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +52 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +38 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +30 -30
 - 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 +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +36 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +38 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +34 -34
 - 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 +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +42 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +98 -98
 - 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 +30 -30
 - 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 +62 -52
 - 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 +31 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +55 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +25 -25
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +48 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +68 -68
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +39 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +50 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +38 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +36 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +50 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +44 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +34 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +37 -37
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +23 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +62 -62
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +140 -140
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +25 -25
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +30 -30
 - data/vendor/local/share/doc/groonga/en/html/{suggest/tutorial.html → reference/operations.html} +31 -23
 - data/vendor/local/share/doc/groonga/en/html/{geolocation_search.html → reference/operations/geolocation_search.html} +39 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +24 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +19 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +36 -36
 - data/vendor/local/share/doc/groonga/en/html/{suggest.html → reference/suggest.html} +50 -48
 - data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/completion.html +51 -49
 - data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/correction.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/introduction.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/{suggest → reference/suggest}/suggestion.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +42 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +18 -18
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +38 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +30 -30
 - 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 +24 -24
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -17
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +32 -32
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +44 -44
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +20 -20
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +19 -19
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +42 -42
 - data/vendor/local/share/doc/groonga/en/html/spec.html +16 -16
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +36 -36
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +28 -28
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +22 -22
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -22
 - 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 +10 -10
 - 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/client.txt +19 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/index.txt +1 -2
 - 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 +3 -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 +6 -6
 - 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 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +68 -5
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.2.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +3 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +23 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_expr.txt +46 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +15 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +23 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-suggest-create-dataset.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +14 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/{geolocation_search.txt → reference/operations/geolocation_search.txt} +0 -0
 - data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest.txt +0 -1
 - data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest/completion.txt +6 -6
 - data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest/correction.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/{suggest → reference/suggest}/introduction.txt +0 -0
 - data/vendor/local/share/doc/groonga/{en/html/_sources → ja/html/_sources/reference}/suggest/suggestion.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +9404 -2
 - data/vendor/local/share/doc/groonga/ja/html/_static/pygments.css +1 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +1415 -31
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/client.html +132 -0
 - data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +86 -86
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +40 -40
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +66 -66
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +109 -109
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +42 -42
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +43 -43
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/development.html +17 -17
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +27 -11
 - data/vendor/local/share/doc/groonga/ja/html/index.html +215 -230
 - data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +10 -10
 - 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 +13 -13
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -21
 - data/vendor/local/share/doc/groonga/ja/html/news.html +131 -63
 - 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 +7 -7
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +6 -6
 - 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 +154 -135
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +40 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +27 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +27 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +74 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +79 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +27 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +52 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +38 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +30 -30
 - 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 +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +38 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +34 -34
 - 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 +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +42 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +29 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +98 -98
 - 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 +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +35 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +62 -53
 - 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 +31 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +54 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +48 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +68 -68
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +39 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +50 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +38 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +40 -40
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +54 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +44 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +34 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +30 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +46 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +32 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +37 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +23 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +64 -64
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +143 -143
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +25 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +31 -31
 - data/vendor/local/share/doc/groonga/ja/html/{suggest/tutorial.html → reference/operations.html} +31 -23
 - data/vendor/local/share/doc/groonga/ja/html/{geolocation_search.html → reference/operations/geolocation_search.html} +40 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/{suggest.html → reference/suggest.html} +51 -49
 - data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/completion.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/correction.html +48 -47
 - data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/introduction.html +44 -42
 - data/vendor/local/share/doc/groonga/ja/html/{suggest → reference/suggest}/suggestion.html +48 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +18 -18
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +38 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +30 -30
 - 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 +24 -24
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -17
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +33 -33
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +44 -44
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +20 -20
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +43 -43
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +16 -16
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +36 -36
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +28 -28
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +26 -26
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -22
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +6 -6
 - 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 +6 -6
 - 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 +6 -6
 - 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 +6 -6
 - 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 +10 -10
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
 - data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
 - data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
 - data/vendor/local/share/man/ja/man1/groonga.1 +4911 -4427
 - data/vendor/local/share/man/man1/groonga.1 +9023 -8517
 - metadata +117 -109
 - data/vendor/local/share/doc/groonga/en/html/_sources/suggest/tutorial.txt +0 -8
 - data/vendor/local/share/doc/groonga/ja/html/_sources/suggest/tutorial.txt +0 -8
 
    
        data/ext/groonga/rb-grn-column.c
    CHANGED
    
    | 
         @@ -758,7 +758,7 @@ rb_grn_column_get_indexes (int argc, VALUE *argv, VALUE self) 
     | 
|
| 
       758 
758 
     | 
    
         
             
            }
         
     | 
| 
       759 
759 
     | 
    
         | 
| 
       760 
760 
     | 
    
         
             
            /*
         
     | 
| 
       761 
     | 
    
         
            -
             * Renames the  
     | 
| 
      
 761 
     | 
    
         
            +
             * Renames the column to name.
         
     | 
| 
       762 
762 
     | 
    
         
             
             * @since 1.3.0
         
     | 
| 
       763 
763 
     | 
    
         
             
             * @overload rename(name)
         
     | 
| 
       764 
764 
     | 
    
         
             
             *   @param name [String] the new name
         
     | 
| 
         @@ -782,7 +782,8 @@ rb_grn_column_rename (VALUE self, VALUE rb_name) 
     | 
|
| 
       782 
782 
     | 
    
         
             
                rc = grn_column_rename(context, column, name, name_size);
         
     | 
| 
       783 
783 
     | 
    
         
             
                rb_grn_context_check(context, self);
         
     | 
| 
       784 
784 
     | 
    
         
             
                rb_grn_rc_check(rc, self);
         
     | 
| 
       785 
     | 
    
         
            -
             
     | 
| 
      
 785 
     | 
    
         
            +
                rb_grn_named_object_set_name(RB_GRN_NAMED_OBJECT(DATA_PTR(self)),
         
     | 
| 
      
 786 
     | 
    
         
            +
                                             name, name_size);
         
     | 
| 
       786 
787 
     | 
    
         
             
                return self;
         
     | 
| 
       787 
788 
     | 
    
         
             
            }
         
     | 
| 
       788 
789 
     | 
    
         | 
| 
         @@ -670,13 +670,28 @@ rb_grn_context_support_zlib_p (VALUE self) 
     | 
|
| 
       670 
670 
     | 
    
         
             
            }
         
     | 
| 
       671 
671 
     | 
    
         | 
| 
       672 
672 
     | 
    
         
             
            /*
         
     | 
| 
       673 
     | 
    
         
            -
             *  
     | 
| 
       674 
     | 
    
         
            -
             *  
     | 
| 
      
 673 
     | 
    
         
            +
             * If Groonga supports LZO compression, it returns +true+,
         
     | 
| 
      
 674 
     | 
    
         
            +
             * otherwise it returns +false+.
         
     | 
| 
      
 675 
     | 
    
         
            +
             *
         
     | 
| 
      
 676 
     | 
    
         
            +
             * Groonga does not support LZO compression 4.0.7 or later.
         
     | 
| 
      
 677 
     | 
    
         
            +
             * This method always returns +false+.
         
     | 
| 
       675 
678 
     | 
    
         
             
             *
         
     | 
| 
       676 
679 
     | 
    
         
             
             * @overload support_lzo?
         
     | 
| 
       677 
680 
     | 
    
         
             
             */
         
     | 
| 
       678 
681 
     | 
    
         
             
            static VALUE
         
     | 
| 
       679 
682 
     | 
    
         
             
            rb_grn_context_support_lzo_p (VALUE self)
         
     | 
| 
      
 683 
     | 
    
         
            +
            {
         
     | 
| 
      
 684 
     | 
    
         
            +
                return Qfalse;
         
     | 
| 
      
 685 
     | 
    
         
            +
            }
         
     | 
| 
      
 686 
     | 
    
         
            +
             
     | 
| 
      
 687 
     | 
    
         
            +
            /*
         
     | 
| 
      
 688 
     | 
    
         
            +
             * If Groonga supports LZ4 compression, it returns +true+,
         
     | 
| 
      
 689 
     | 
    
         
            +
             * otherwise it returns +false+.
         
     | 
| 
      
 690 
     | 
    
         
            +
             *
         
     | 
| 
      
 691 
     | 
    
         
            +
             * @overload support_lz4?
         
     | 
| 
      
 692 
     | 
    
         
            +
             */
         
     | 
| 
      
 693 
     | 
    
         
            +
            static VALUE
         
     | 
| 
      
 694 
     | 
    
         
            +
            rb_grn_context_support_lz4_p (VALUE self)
         
     | 
| 
       680 
695 
     | 
    
         
             
            {
         
     | 
| 
       681 
696 
     | 
    
         
             
                VALUE rb_support_p;
         
     | 
| 
       682 
697 
     | 
    
         
             
                grn_ctx *context;
         
     | 
| 
         @@ -684,7 +699,7 @@ rb_grn_context_support_lzo_p (VALUE self) 
     | 
|
| 
       684 
699 
     | 
    
         | 
| 
       685 
700 
     | 
    
         
             
                context = SELF(self);
         
     | 
| 
       686 
701 
     | 
    
         
             
                GRN_BOOL_INIT(&support_p, 0);
         
     | 
| 
       687 
     | 
    
         
            -
                grn_obj_get_info(context, NULL,  
     | 
| 
      
 702 
     | 
    
         
            +
                grn_obj_get_info(context, NULL, GRN_INFO_SUPPORT_LZ4, &support_p);
         
     | 
| 
       688 
703 
     | 
    
         
             
                rb_support_p = CBOOL2RVAL(GRN_BOOL_VALUE(&support_p));
         
     | 
| 
       689 
704 
     | 
    
         
             
                GRN_OBJ_FIN(context, &support_p);
         
     | 
| 
       690 
705 
     | 
    
         | 
| 
         @@ -974,6 +989,8 @@ rb_grn_init_context (VALUE mGrn) 
     | 
|
| 
       974 
989 
     | 
    
         
             
                                 rb_grn_context_support_zlib_p, 0);
         
     | 
| 
       975 
990 
     | 
    
         
             
                rb_define_method(cGrnContext, "support_lzo?",
         
     | 
| 
       976 
991 
     | 
    
         
             
                                 rb_grn_context_support_lzo_p, 0);
         
     | 
| 
      
 992 
     | 
    
         
            +
                rb_define_method(cGrnContext, "support_lz4?",
         
     | 
| 
      
 993 
     | 
    
         
            +
                                 rb_grn_context_support_lz4_p, 0);
         
     | 
| 
       977 
994 
     | 
    
         | 
| 
       978 
995 
     | 
    
         
             
                rb_define_method(cGrnContext, "database", rb_grn_context_get_database, 0);
         
     | 
| 
       979 
996 
     | 
    
         | 
| 
         @@ -219,6 +219,10 @@ rb_grn_double_array_trie_bind (RbGrnDoubleArrayTrie *rb_grn_double_array_trie, 
     | 
|
| 
       219 
219 
     | 
    
         
             
             *       {Groonga::IndexColumn} を定義する場合は
         
     | 
| 
       220 
220 
     | 
    
         
             
             *       @"TokenBigram"@ などを指定する必要がある。
         
     | 
| 
       221 
221 
     | 
    
         
             
             *
         
     | 
| 
      
 222 
     | 
    
         
            +
             *     @option options [::Array<String, Groonga::Procedure>, nil]
         
     | 
| 
      
 223 
     | 
    
         
            +
             *       :token_filters (nil) The token filters to be used in the
         
     | 
| 
      
 224 
     | 
    
         
            +
             *       table.
         
     | 
| 
      
 225 
     | 
    
         
            +
             *
         
     | 
| 
       222 
226 
     | 
    
         
             
             *     @option options :sub_records
         
     | 
| 
       223 
227 
     | 
    
         
             
             *       +true+ を指定すると {#group} でグループ化したときに、
         
     | 
| 
       224 
228 
     | 
    
         
             
             *       {Groonga::Record#n_sub_records} でグループに含まれるレコー
         
     | 
| 
         @@ -246,7 +250,9 @@ rb_grn_double_array_trie_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       246 
250 
     | 
    
         
             
                VALUE options, rb_context, rb_name, rb_path, rb_persistent;
         
     | 
| 
       247 
251 
     | 
    
         
             
                VALUE rb_key_normalize, rb_key_with_sis, rb_key_type;
         
     | 
| 
       248 
252 
     | 
    
         
             
                VALUE rb_value_type;
         
     | 
| 
       249 
     | 
    
         
            -
                VALUE rb_default_tokenizer 
     | 
| 
      
 253 
     | 
    
         
            +
                VALUE rb_default_tokenizer;
         
     | 
| 
      
 254 
     | 
    
         
            +
                VALUE rb_token_filters;
         
     | 
| 
      
 255 
     | 
    
         
            +
                VALUE rb_sub_records;
         
     | 
| 
       250 
256 
     | 
    
         
             
                VALUE rb_normalizer;
         
     | 
| 
       251 
257 
     | 
    
         | 
| 
       252 
258 
     | 
    
         
             
                rb_scan_args(argc, argv, "01", &options);
         
     | 
| 
         @@ -261,6 +267,7 @@ rb_grn_double_array_trie_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       261 
267 
     | 
    
         
             
                                    "key_type", &rb_key_type,
         
     | 
| 
       262 
268 
     | 
    
         
             
                                    "value_type", &rb_value_type,
         
     | 
| 
       263 
269 
     | 
    
         
             
                                    "default_tokenizer", &rb_default_tokenizer,
         
     | 
| 
      
 270 
     | 
    
         
            +
                                    "token_filters", &rb_token_filters,
         
     | 
| 
       264 
271 
     | 
    
         
             
                                    "sub_records", &rb_sub_records,
         
     | 
| 
       265 
272 
     | 
    
         
             
                                    "normalizer", &rb_normalizer,
         
     | 
| 
       266 
273 
     | 
    
         
             
                                    NULL);
         
     | 
| 
         @@ -308,7 +315,9 @@ rb_grn_double_array_trie_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       308 
315 
     | 
    
         
             
                if (!NIL_P(rb_default_tokenizer))
         
     | 
| 
       309 
316 
     | 
    
         
             
                    rb_funcall(rb_table, rb_intern("default_tokenizer="), 1,
         
     | 
| 
       310 
317 
     | 
    
         
             
                               rb_default_tokenizer);
         
     | 
| 
       311 
     | 
    
         
            -
             
     | 
| 
      
 318 
     | 
    
         
            +
                if (!NIL_P(rb_token_filters))
         
     | 
| 
      
 319 
     | 
    
         
            +
                    rb_funcall(rb_table, rb_intern("token_filters="), 1,
         
     | 
| 
      
 320 
     | 
    
         
            +
                               rb_token_filters);
         
     | 
| 
       312 
321 
     | 
    
         
             
                if (!NIL_P(rb_normalizer))
         
     | 
| 
       313 
322 
     | 
    
         
             
                    rb_funcall(rb_table, rb_intern("normalizer="), 1,
         
     | 
| 
       314 
323 
     | 
    
         
             
                               rb_normalizer);
         
     | 
| 
         @@ -1,6 +1,7 @@ 
     | 
|
| 
       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-2014  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
      
 4 
     | 
    
         
            +
              Copyright (C) 2014  Masafumi Yokoyama <myokoym@gmail.com>
         
     | 
| 
       4 
5 
     | 
    
         | 
| 
       5 
6 
     | 
    
         
             
              This library is free software; you can redistribute it and/or
         
     | 
| 
       6 
7 
     | 
    
         
             
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -83,7 +84,7 @@ static VALUE eGrnNotSocket; 
     | 
|
| 
       83 
84 
     | 
    
         
             
            static VALUE eGrnOperationNotSupported;
         
     | 
| 
       84 
85 
     | 
    
         
             
            static VALUE eGrnAddressIsInUse;
         
     | 
| 
       85 
86 
     | 
    
         
             
            static VALUE eGrnZLibError;
         
     | 
| 
       86 
     | 
    
         
            -
            static VALUE  
     | 
| 
      
 87 
     | 
    
         
            +
            static VALUE eGrnLZ4Error;
         
     | 
| 
       87 
88 
     | 
    
         
             
            static VALUE eGrnStackOverFlow;
         
     | 
| 
       88 
89 
     | 
    
         
             
            static VALUE eGrnSyntaxError;
         
     | 
| 
       89 
90 
     | 
    
         
             
            static VALUE eGrnRetryMax;
         
     | 
| 
         @@ -95,6 +96,7 @@ static VALUE eGrnTooSmallLimit; 
     | 
|
| 
       95 
96 
     | 
    
         
             
            static VALUE eGrnCASError;
         
     | 
| 
       96 
97 
     | 
    
         
             
            static VALUE eGrnUnsupportedCommandVersion;
         
     | 
| 
       97 
98 
     | 
    
         
             
            static VALUE eGrnNormalizerError;
         
     | 
| 
      
 99 
     | 
    
         
            +
            static VALUE eGrnTokenFilterError;
         
     | 
| 
       98 
100 
     | 
    
         | 
| 
       99 
101 
     | 
    
         
             
            VALUE
         
     | 
| 
       100 
102 
     | 
    
         
             
            rb_grn_rc_to_exception (grn_rc rc)
         
     | 
| 
         @@ -288,8 +290,8 @@ rb_grn_rc_to_exception (grn_rc rc) 
     | 
|
| 
       288 
290 
     | 
    
         
             
                  case GRN_ZLIB_ERROR:
         
     | 
| 
       289 
291 
     | 
    
         
             
                    exception = eGrnZLibError;
         
     | 
| 
       290 
292 
     | 
    
         
             
                    break;
         
     | 
| 
       291 
     | 
    
         
            -
                  case  
     | 
| 
       292 
     | 
    
         
            -
                    exception =  
     | 
| 
      
 293 
     | 
    
         
            +
                  case GRN_LZ4_ERROR:
         
     | 
| 
      
 294 
     | 
    
         
            +
                    exception = eGrnLZ4Error;
         
     | 
| 
       293 
295 
     | 
    
         
             
                    break;
         
     | 
| 
       294 
296 
     | 
    
         
             
                  case GRN_STACK_OVER_FLOW:
         
     | 
| 
       295 
297 
     | 
    
         
             
                    exception = eGrnStackOverFlow;
         
     | 
| 
         @@ -324,6 +326,9 @@ rb_grn_rc_to_exception (grn_rc rc) 
     | 
|
| 
       324 
326 
     | 
    
         
             
                  case GRN_NORMALIZER_ERROR:
         
     | 
| 
       325 
327 
     | 
    
         
             
                    exception = eGrnNormalizerError;
         
     | 
| 
       326 
328 
     | 
    
         
             
                    break;
         
     | 
| 
      
 329 
     | 
    
         
            +
                  case GRN_TOKEN_FILTER_ERROR:
         
     | 
| 
      
 330 
     | 
    
         
            +
                    exception = eGrnTokenFilterError;
         
     | 
| 
      
 331 
     | 
    
         
            +
                    break;
         
     | 
| 
       327 
332 
     | 
    
         
             
                }
         
     | 
| 
       328 
333 
     | 
    
         | 
| 
       329 
334 
     | 
    
         
             
                if (NIL_P(exception))
         
     | 
| 
         @@ -524,8 +529,8 @@ rb_grn_rc_to_message (grn_rc rc) 
     | 
|
| 
       524 
529 
     | 
    
         
             
                  case GRN_ZLIB_ERROR:
         
     | 
| 
       525 
530 
     | 
    
         
             
                    message = "ZLib error";
         
     | 
| 
       526 
531 
     | 
    
         
             
                    break;
         
     | 
| 
       527 
     | 
    
         
            -
                  case  
     | 
| 
       528 
     | 
    
         
            -
                    message = " 
     | 
| 
      
 532 
     | 
    
         
            +
                  case GRN_LZ4_ERROR:
         
     | 
| 
      
 533 
     | 
    
         
            +
                    message = "LZ4 error";
         
     | 
| 
       529 
534 
     | 
    
         
             
                    break;
         
     | 
| 
       530 
535 
     | 
    
         
             
                  case GRN_STACK_OVER_FLOW:
         
     | 
| 
       531 
536 
     | 
    
         
             
                    message = "stack over flow";
         
     | 
| 
         @@ -560,6 +565,9 @@ rb_grn_rc_to_message (grn_rc rc) 
     | 
|
| 
       560 
565 
     | 
    
         
             
                  case GRN_NORMALIZER_ERROR:
         
     | 
| 
       561 
566 
     | 
    
         
             
                    message = "normalizer error";
         
     | 
| 
       562 
567 
     | 
    
         
             
                    break;
         
     | 
| 
      
 568 
     | 
    
         
            +
                  case GRN_TOKEN_FILTER_ERROR:
         
     | 
| 
      
 569 
     | 
    
         
            +
                    message = "token filter error";
         
     | 
| 
      
 570 
     | 
    
         
            +
                    break;
         
     | 
| 
       563 
571 
     | 
    
         
             
                }
         
     | 
| 
       564 
572 
     | 
    
         | 
| 
       565 
573 
     | 
    
         
             
                if (!message)
         
     | 
| 
         @@ -1114,12 +1122,12 @@ rb_grn_init_exception (VALUE mGrn) 
     | 
|
| 
       1114 
1122 
     | 
    
         
             
                    rb_define_class_under(mGrn, "ZLibError", rb_eGrnError);
         
     | 
| 
       1115 
1123 
     | 
    
         | 
| 
       1116 
1124 
     | 
    
         
             
                /*
         
     | 
| 
       1117 
     | 
    
         
            -
                 * Document-class: Groonga:: 
     | 
| 
      
 1125 
     | 
    
         
            +
                 * Document-class: Groonga::LZ4Error
         
     | 
| 
       1118 
1126 
     | 
    
         
             
                 *
         
     | 
| 
       1119 
     | 
    
         
            -
                 *  
     | 
| 
      
 1127 
     | 
    
         
            +
                 * LZ4に問題があるときに発生する。
         
     | 
| 
       1120 
1128 
     | 
    
         
             
                 */
         
     | 
| 
       1121 
     | 
    
         
            -
                 
     | 
| 
       1122 
     | 
    
         
            -
                    rb_define_class_under(mGrn, " 
     | 
| 
      
 1129 
     | 
    
         
            +
                eGrnLZ4Error =
         
     | 
| 
      
 1130 
     | 
    
         
            +
                    rb_define_class_under(mGrn, "LZ4Error", rb_eGrnError);
         
     | 
| 
       1123 
1131 
     | 
    
         | 
| 
       1124 
1132 
     | 
    
         
             
                /*
         
     | 
| 
       1125 
1133 
     | 
    
         
             
                 * Document-class: Groonga::StackOverFlow
         
     | 
| 
         @@ -1209,4 +1217,14 @@ rb_grn_init_exception (VALUE mGrn) 
     | 
|
| 
       1209 
1217 
     | 
    
         
             
                 */
         
     | 
| 
       1210 
1218 
     | 
    
         
             
                eGrnNormalizerError =
         
     | 
| 
       1211 
1219 
     | 
    
         
             
                    rb_define_class_under(mGrn, "NormalizerError", rb_eGrnError);
         
     | 
| 
      
 1220 
     | 
    
         
            +
             
     | 
| 
      
 1221 
     | 
    
         
            +
                /*
         
     | 
| 
      
 1222 
     | 
    
         
            +
                 * Document-class: Groonga::TokenFilterError
         
     | 
| 
      
 1223 
     | 
    
         
            +
                 *
         
     | 
| 
      
 1224 
     | 
    
         
            +
                 * It is used when a token filter causes an error.
         
     | 
| 
      
 1225 
     | 
    
         
            +
                 *
         
     | 
| 
      
 1226 
     | 
    
         
            +
                 * @since 4.0.6
         
     | 
| 
      
 1227 
     | 
    
         
            +
                 */
         
     | 
| 
      
 1228 
     | 
    
         
            +
                eGrnTokenFilterError =
         
     | 
| 
      
 1229 
     | 
    
         
            +
                    rb_define_class_under(mGrn, "TokenFilterError", rb_eGrnError);
         
     | 
| 
       1212 
1230 
     | 
    
         
             
            }
         
     | 
| 
         @@ -1,6 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
         
     | 
| 
       2 
2 
     | 
    
         
             
            /*
         
     | 
| 
       3 
3 
     | 
    
         
             
              Copyright (C) 2009-2014  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
      
 4 
     | 
    
         
            +
              Copyright (C) 2014  Masafumi Yokoyama <myokoym@gmail.com>
         
     | 
| 
       4 
5 
     | 
    
         | 
| 
       5 
6 
     | 
    
         
             
              This library is free software; you can redistribute it and/or
         
     | 
| 
       6 
7 
     | 
    
         
             
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -493,6 +494,37 @@ rb_grn_expression_compile (VALUE self) 
     | 
|
| 
       493 
494 
     | 
    
         
             
                return Qnil;
         
     | 
| 
       494 
495 
     | 
    
         
             
            }
         
     | 
| 
       495 
496 
     | 
    
         | 
| 
      
 497 
     | 
    
         
            +
            /*
         
     | 
| 
      
 498 
     | 
    
         
            +
             * Dump execution plan of the `expression` in string.
         
     | 
| 
      
 499 
     | 
    
         
            +
             *
         
     | 
| 
      
 500 
     | 
    
         
            +
             * @overload dump_plan
         
     | 
| 
      
 501 
     | 
    
         
            +
             * @since 4.0.8
         
     | 
| 
      
 502 
     | 
    
         
            +
             */
         
     | 
| 
      
 503 
     | 
    
         
            +
            static VALUE
         
     | 
| 
      
 504 
     | 
    
         
            +
            rb_grn_expression_dump_plan (VALUE self)
         
     | 
| 
      
 505 
     | 
    
         
            +
            {
         
     | 
| 
      
 506 
     | 
    
         
            +
            /* TODO: Remove me after Groogna 4.0.8 is released. */
         
     | 
| 
      
 507 
     | 
    
         
            +
            #ifdef HAVE_GRN_EXPR_DUMP_PLAN
         
     | 
| 
      
 508 
     | 
    
         
            +
                grn_ctx *context = NULL;
         
     | 
| 
      
 509 
     | 
    
         
            +
                grn_obj *expression;
         
     | 
| 
      
 510 
     | 
    
         
            +
                grn_obj dumped_plan;
         
     | 
| 
      
 511 
     | 
    
         
            +
                VALUE rb_dumped_plan;
         
     | 
| 
      
 512 
     | 
    
         
            +
             
     | 
| 
      
 513 
     | 
    
         
            +
                rb_grn_expression_deconstruct(SELF(self), &expression, &context,
         
     | 
| 
      
 514 
     | 
    
         
            +
                                              NULL, NULL,
         
     | 
| 
      
 515 
     | 
    
         
            +
                                              NULL, NULL, NULL);
         
     | 
| 
      
 516 
     | 
    
         
            +
             
     | 
| 
      
 517 
     | 
    
         
            +
                GRN_TEXT_INIT(&dumped_plan, 0);
         
     | 
| 
      
 518 
     | 
    
         
            +
                grn_expr_dump_plan(context, expression, &dumped_plan);
         
     | 
| 
      
 519 
     | 
    
         
            +
                rb_dumped_plan = GRNBULK2RVAL(context, &dumped_plan, NULL, self);
         
     | 
| 
      
 520 
     | 
    
         
            +
                grn_obj_unlink(context, &dumped_plan);
         
     | 
| 
      
 521 
     | 
    
         
            +
             
     | 
| 
      
 522 
     | 
    
         
            +
                return rb_dumped_plan;
         
     | 
| 
      
 523 
     | 
    
         
            +
            #else
         
     | 
| 
      
 524 
     | 
    
         
            +
                return rb_str_new2("");
         
     | 
| 
      
 525 
     | 
    
         
            +
            #endif
         
     | 
| 
      
 526 
     | 
    
         
            +
            }
         
     | 
| 
      
 527 
     | 
    
         
            +
             
     | 
| 
       496 
528 
     | 
    
         
             
            /*
         
     | 
| 
       497 
529 
     | 
    
         
             
             * _expression_ で使用可能な変数のうち、名前が _name_
         
     | 
| 
       498 
530 
     | 
    
         
             
             * または _offset_ 番目に {Expression#append_object}
         
     | 
| 
         @@ -717,6 +749,47 @@ rb_grn_expression_snippet (int argc, VALUE *argv, VALUE self) 
     | 
|
| 
       717 
749 
     | 
    
         
             
                return GRNOBJECT2RVAL(Qnil, context, snippet, GRN_TRUE);
         
     | 
| 
       718 
750 
     | 
    
         
             
            }
         
     | 
| 
       719 
751 
     | 
    
         | 
| 
      
 752 
     | 
    
         
            +
            /*
         
     | 
| 
      
 753 
     | 
    
         
            +
             * Extracts keywords from _expression_. The keywords order isn't
         
     | 
| 
      
 754 
     | 
    
         
            +
             * guaranteed.
         
     | 
| 
      
 755 
     | 
    
         
            +
             *
         
     | 
| 
      
 756 
     | 
    
         
            +
             * @example
         
     | 
| 
      
 757 
     | 
    
         
            +
             *   expression.parse("Ruby OR Groonga")
         
     | 
| 
      
 758 
     | 
    
         
            +
             *   expression.keywords  #=> ["Groonga", "Ruby"]
         
     | 
| 
      
 759 
     | 
    
         
            +
             *
         
     | 
| 
      
 760 
     | 
    
         
            +
             * @overload keywords
         
     | 
| 
      
 761 
     | 
    
         
            +
             *   @return [::Array<String>] the extracted keywords
         
     | 
| 
      
 762 
     | 
    
         
            +
             *
         
     | 
| 
      
 763 
     | 
    
         
            +
             * @since 4.0.6
         
     | 
| 
      
 764 
     | 
    
         
            +
             */
         
     | 
| 
      
 765 
     | 
    
         
            +
            static VALUE
         
     | 
| 
      
 766 
     | 
    
         
            +
            rb_grn_expression_get_keywords (VALUE self)
         
     | 
| 
      
 767 
     | 
    
         
            +
            {
         
     | 
| 
      
 768 
     | 
    
         
            +
                grn_ctx *context = NULL;
         
     | 
| 
      
 769 
     | 
    
         
            +
                grn_obj *expression;
         
     | 
| 
      
 770 
     | 
    
         
            +
                grn_obj keywords;
         
     | 
| 
      
 771 
     | 
    
         
            +
                VALUE rb_keywords = rb_ary_new();
         
     | 
| 
      
 772 
     | 
    
         
            +
             
     | 
| 
      
 773 
     | 
    
         
            +
                rb_grn_expression_deconstruct(SELF(self), &expression, &context,
         
     | 
| 
      
 774 
     | 
    
         
            +
                                              NULL, NULL,
         
     | 
| 
      
 775 
     | 
    
         
            +
                                              NULL, NULL, NULL);
         
     | 
| 
      
 776 
     | 
    
         
            +
             
     | 
| 
      
 777 
     | 
    
         
            +
                GRN_PTR_INIT(&keywords, GRN_OBJ_VECTOR, GRN_ID_NIL);
         
     | 
| 
      
 778 
     | 
    
         
            +
                grn_expr_get_keywords(context, expression, &keywords);
         
     | 
| 
      
 779 
     | 
    
         
            +
                {
         
     | 
| 
      
 780 
     | 
    
         
            +
                    int i, n_keywords;
         
     | 
| 
      
 781 
     | 
    
         
            +
                    n_keywords = GRN_BULK_VSIZE(&keywords) / sizeof(grn_obj *);
         
     | 
| 
      
 782 
     | 
    
         
            +
                    for (i = 0; i < n_keywords; i++) {
         
     | 
| 
      
 783 
     | 
    
         
            +
                        grn_obj *keyword = GRN_PTR_VALUE_AT(&keywords, i);
         
     | 
| 
      
 784 
     | 
    
         
            +
                        rb_ary_push(rb_keywords,
         
     | 
| 
      
 785 
     | 
    
         
            +
                                    GRNBULK2RVAL(context, keyword, NULL, self));
         
     | 
| 
      
 786 
     | 
    
         
            +
                    }
         
     | 
| 
      
 787 
     | 
    
         
            +
                }
         
     | 
| 
      
 788 
     | 
    
         
            +
                GRN_OBJ_FIN(context, &keywords);
         
     | 
| 
      
 789 
     | 
    
         
            +
             
     | 
| 
      
 790 
     | 
    
         
            +
                return rb_keywords;
         
     | 
| 
      
 791 
     | 
    
         
            +
            }
         
     | 
| 
      
 792 
     | 
    
         
            +
             
     | 
| 
       720 
793 
     | 
    
         
             
            void
         
     | 
| 
       721 
794 
     | 
    
         
             
            rb_grn_init_expression (VALUE mGrn)
         
     | 
| 
       722 
795 
     | 
    
         
             
            {
         
     | 
| 
         @@ -741,6 +814,8 @@ rb_grn_init_expression (VALUE mGrn) 
     | 
|
| 
       741 
814 
     | 
    
         
             
                                 rb_grn_expression_execute, 0);
         
     | 
| 
       742 
815 
     | 
    
         
             
                rb_define_method(rb_cGrnExpression, "compile",
         
     | 
| 
       743 
816 
     | 
    
         
             
                                 rb_grn_expression_compile, 0);
         
     | 
| 
      
 817 
     | 
    
         
            +
                rb_define_method(rb_cGrnExpression, "dump_plan",
         
     | 
| 
      
 818 
     | 
    
         
            +
                                 rb_grn_expression_dump_plan, 0);
         
     | 
| 
       744 
819 
     | 
    
         | 
| 
       745 
820 
     | 
    
         
             
                rb_define_method(rb_cGrnExpression, "[]",
         
     | 
| 
       746 
821 
     | 
    
         
             
                                 rb_grn_expression_array_reference, 1);
         
     | 
| 
         @@ -748,6 +823,9 @@ rb_grn_init_expression (VALUE mGrn) 
     | 
|
| 
       748 
823 
     | 
    
         
             
                rb_define_method(rb_cGrnExpression, "snippet",
         
     | 
| 
       749 
824 
     | 
    
         
             
                                 rb_grn_expression_snippet, -1);
         
     | 
| 
       750 
825 
     | 
    
         | 
| 
      
 826 
     | 
    
         
            +
                rb_define_method(rb_cGrnExpression, "keywords",
         
     | 
| 
      
 827 
     | 
    
         
            +
                                 rb_grn_expression_get_keywords, 0);
         
     | 
| 
      
 828 
     | 
    
         
            +
             
     | 
| 
       751 
829 
     | 
    
         
             
                rb_define_method(rb_cGrnExpression, "inspect",
         
     | 
| 
       752 
830 
     | 
    
         
             
                                 rb_grn_expression_inspect, 0);
         
     | 
| 
       753 
831 
     | 
    
         
             
            }
         
     | 
    
        data/ext/groonga/rb-grn-hash.c
    CHANGED
    
    | 
         @@ -131,6 +131,11 @@ VALUE rb_cGrnHash; 
     | 
|
| 
       131 
131 
     | 
    
         
             
             *       デフォルトでは何も設定されていないので、テーブルに
         
     | 
| 
       132 
132 
     | 
    
         
             
             *       {Groonga::IndexColumn} を定義する場合は
         
     | 
| 
       133 
133 
     | 
    
         
             
             *       @"TokenBigram"@ などを指定する必要がある。
         
     | 
| 
      
 134 
     | 
    
         
            +
             *
         
     | 
| 
      
 135 
     | 
    
         
            +
             *     @option options [::Array<String, Groonga::Procedure>, nil]
         
     | 
| 
      
 136 
     | 
    
         
            +
             *       :token_filters (nil) The token filters to be used in the
         
     | 
| 
      
 137 
     | 
    
         
            +
             *       table.
         
     | 
| 
      
 138 
     | 
    
         
            +
             *
         
     | 
| 
       134 
139 
     | 
    
         
             
             *     @option options [Groonga::Record#n_sub_records] :sub_records
         
     | 
| 
       135 
140 
     | 
    
         
             
             *       +true+ を指定すると {#group} でグループ化したときに、
         
     | 
| 
       136 
141 
     | 
    
         
             
             *       {Groonga::Record#n_sub_records} でグループに含まれるレコー
         
     | 
| 
         @@ -157,6 +162,7 @@ rb_grn_hash_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       157 
162 
     | 
    
         
             
                VALUE rb_table;
         
     | 
| 
       158 
163 
     | 
    
         
             
                VALUE options, rb_context, rb_name, rb_path, rb_persistent;
         
     | 
| 
       159 
164 
     | 
    
         
             
                VALUE rb_key_normalize, rb_key_type, rb_value_type, rb_default_tokenizer;
         
     | 
| 
      
 165 
     | 
    
         
            +
                VALUE rb_token_filters;
         
     | 
| 
       160 
166 
     | 
    
         
             
                VALUE rb_sub_records;
         
     | 
| 
       161 
167 
     | 
    
         
             
                VALUE rb_normalizer;
         
     | 
| 
       162 
168 
     | 
    
         | 
| 
         @@ -171,6 +177,7 @@ rb_grn_hash_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       171 
177 
     | 
    
         
             
                                    "key_type", &rb_key_type,
         
     | 
| 
       172 
178 
     | 
    
         
             
                                    "value_type", &rb_value_type,
         
     | 
| 
       173 
179 
     | 
    
         
             
                                    "default_tokenizer", &rb_default_tokenizer,
         
     | 
| 
      
 180 
     | 
    
         
            +
                                    "token_filters", &rb_token_filters,
         
     | 
| 
       174 
181 
     | 
    
         
             
                                    "sub_records", &rb_sub_records,
         
     | 
| 
       175 
182 
     | 
    
         
             
                                    "normalizer", &rb_normalizer,
         
     | 
| 
       176 
183 
     | 
    
         
             
                                    NULL);
         
     | 
| 
         @@ -215,6 +222,9 @@ rb_grn_hash_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       215 
222 
     | 
    
         
             
                if (!NIL_P(rb_default_tokenizer))
         
     | 
| 
       216 
223 
     | 
    
         
             
                    rb_funcall(rb_table, rb_intern("default_tokenizer="), 1,
         
     | 
| 
       217 
224 
     | 
    
         
             
                               rb_default_tokenizer);
         
     | 
| 
      
 225 
     | 
    
         
            +
                if (!NIL_P(rb_token_filters))
         
     | 
| 
      
 226 
     | 
    
         
            +
                    rb_funcall(rb_table, rb_intern("token_filters="), 1,
         
     | 
| 
      
 227 
     | 
    
         
            +
                               rb_token_filters);
         
     | 
| 
       218 
228 
     | 
    
         
             
                if (!NIL_P(rb_normalizer))
         
     | 
| 
       219 
229 
     | 
    
         
             
                    rb_funcall(rb_table, rb_intern("normalizer="), 1,
         
     | 
| 
       220 
230 
     | 
    
         
             
                               rb_normalizer);
         
     | 
    
        data/ext/groonga/rb-grn-logger.c
    CHANGED
    
    | 
         @@ -193,13 +193,14 @@ rb_grn_logger_fin (grn_ctx *ctx, void *user_data) 
     | 
|
| 
       193 
193 
     | 
    
         
             
             * groongaがログを出力する度に呼び出されるブロックを登録する。
         
     | 
| 
       194 
194 
     | 
    
         
             
             *
         
     | 
| 
       195 
195 
     | 
    
         
             
             * @overload register(options={})
         
     | 
| 
       196 
     | 
    
         
            -
             *   @yield [level, time, title, message, location]
         
     | 
| 
       197 
     | 
    
         
            -
             *     _level_ はSymbol、それ以外は全て文字列で渡される。 
     | 
| 
      
 196 
     | 
    
         
            +
             *   @yield [event, level, time, title, message, location]
         
     | 
| 
      
 197 
     | 
    
         
            +
             *     _event_ と _level_ はSymbol、それ以外は全て文字列で渡される。
         
     | 
| 
      
 198 
     | 
    
         
            +
             *     _event_ と _level_ 以外
         
     | 
| 
       198 
199 
     | 
    
         
             
             *     の4つについては _options_ で +false+ を指定することでブロックに
         
     | 
| 
       199 
200 
     | 
    
         
             
             *     渡さないようにすることができ、その場合は空文字列が実際には渡される。
         
     | 
| 
       200 
201 
     | 
    
         
             
             *   @param options [::Hash] The name and value
         
     | 
| 
       201 
202 
     | 
    
         
             
             *     pairs. Omitted names are initialized as the default value.
         
     | 
| 
       202 
     | 
    
         
            -
             *   @option options : 
     | 
| 
      
 203 
     | 
    
         
            +
             *   @option options :max_level (:notice)
         
     | 
| 
       203 
204 
     | 
    
         
             
             *     ログのレベルを +:none+ ,  +:emergency+ ,  +:alert+ ,
         
     | 
| 
       204 
205 
     | 
    
         
             
             *     +:critical+ , +:error+ , +:warning+ , +:notice+ , +:info+ ,
         
     | 
| 
       205 
206 
     | 
    
         
             
             *     +:debug+ ,  +:dump+ のいずれかで指定する。それより重要度が
         
     | 
| 
         @@ -234,6 +235,9 @@ rb_grn_logger_s_register (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       234 
235 
     | 
    
         
             
                rb_scan_args(argc, argv, "02&", &rb_logger, &rb_options, &rb_callback);
         
     | 
| 
       235 
236 
     | 
    
         | 
| 
       236 
237 
     | 
    
         
             
                if (rb_block_given_p()) {
         
     | 
| 
      
 238 
     | 
    
         
            +
                    if (!NIL_P(rb_logger)) {
         
     | 
| 
      
 239 
     | 
    
         
            +
                        rb_options = rb_logger;
         
     | 
| 
      
 240 
     | 
    
         
            +
                    }
         
     | 
| 
       237 
241 
     | 
    
         
             
                    rb_logger = rb_funcall(cGrnCallbackLogger, id_new, 1, rb_callback);
         
     | 
| 
       238 
242 
     | 
    
         
             
                }
         
     | 
| 
       239 
243 
     | 
    
         | 
    
        data/ext/groonga/rb-grn-object.c
    CHANGED
    
    | 
         @@ -1,6 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
         
     | 
| 
       2 
2 
     | 
    
         
             
            /*
         
     | 
| 
       3 
3 
     | 
    
         
             
              Copyright (C) 2009-2014  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
      
 4 
     | 
    
         
            +
              Copyright (C) 2014  Masafumi Yokoyama <myokoym@gmail.com>
         
     | 
| 
       4 
5 
     | 
    
         | 
| 
       5 
6 
     | 
    
         
             
              This library is free software; you can redistribute it and/or
         
     | 
| 
       6 
7 
     | 
    
         
             
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -901,8 +902,8 @@ rb_grn_object_inspect_content_flags_with_label (VALUE inspected, 
     | 
|
| 
       901 
902 
     | 
    
         
             
                  case GRN_COLUMN_VAR_SIZE:
         
     | 
| 
       902 
903 
     | 
    
         
             
                    if (flags & GRN_OBJ_COMPRESS_ZLIB)
         
     | 
| 
       903 
904 
     | 
    
         
             
                        rb_ary_push(inspected_flags, rb_str_new2("COMPRESS_ZLIB"));
         
     | 
| 
       904 
     | 
    
         
            -
                    if (flags &  
     | 
| 
       905 
     | 
    
         
            -
                        rb_ary_push(inspected_flags, rb_str_new2(" 
     | 
| 
      
 905 
     | 
    
         
            +
                    if (flags & GRN_OBJ_COMPRESS_LZ4)
         
     | 
| 
      
 906 
     | 
    
         
            +
                        rb_ary_push(inspected_flags, rb_str_new2("COMPRESS_LZ4"));
         
     | 
| 
       906 
907 
     | 
    
         
             
                    break;
         
     | 
| 
       907 
908 
     | 
    
         
             
                  case GRN_COLUMN_INDEX:
         
     | 
| 
       908 
909 
     | 
    
         
             
                    if (flags & GRN_OBJ_WITH_SECTION)
         
     | 
| 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            /* -*- coding: utf-8; mode: C; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
         
     | 
| 
       2 
2 
     | 
    
         
             
            /* vim: set sts=4 sw=4 ts=8 noet: */
         
     | 
| 
       3 
3 
     | 
    
         
             
            /*
         
     | 
| 
       4 
     | 
    
         
            -
              Copyright (C) 2009  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
      
 4 
     | 
    
         
            +
              Copyright (C) 2009-2014  Kouhei Sutou <kou@clear-code.com>
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
              This library is free software; you can redistribute it and/or
         
     | 
| 
       7 
7 
     | 
    
         
             
              modify it under the terms of the GNU Lesser General Public
         
     | 
| 
         @@ -141,6 +141,11 @@ VALUE rb_cGrnPatriciaTrie; 
     | 
|
| 
       141 
141 
     | 
    
         
             
             *       デフォルトでは何も設定されていないので、テーブルに
         
     | 
| 
       142 
142 
     | 
    
         
             
             *       {Groonga::IndexColumn} を定義する場合は
         
     | 
| 
       143 
143 
     | 
    
         
             
             *       @"TokenBigram"@ などを指定する必要がある。
         
     | 
| 
      
 144 
     | 
    
         
            +
             *
         
     | 
| 
      
 145 
     | 
    
         
            +
             *     @option options [::Array<String, Groonga::Procedure>, nil]
         
     | 
| 
      
 146 
     | 
    
         
            +
             *       :token_filters (nil) The token filters to be used in the
         
     | 
| 
      
 147 
     | 
    
         
            +
             *       table.
         
     | 
| 
      
 148 
     | 
    
         
            +
             *
         
     | 
| 
       144 
149 
     | 
    
         
             
             *     @option options :sub_records
         
     | 
| 
       145 
150 
     | 
    
         
             
             *       +true+ を指定すると {#group} でグループ化したときに、
         
     | 
| 
       146 
151 
     | 
    
         
             
             *       {Groonga::Record#n_sub_records} でグループに含まれるレコー
         
     | 
| 
         @@ -168,7 +173,9 @@ rb_grn_patricia_trie_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       168 
173 
     | 
    
         
             
                VALUE options, rb_context, rb_name, rb_path, rb_persistent;
         
     | 
| 
       169 
174 
     | 
    
         
             
                VALUE rb_key_normalize, rb_key_with_sis, rb_key_type;
         
     | 
| 
       170 
175 
     | 
    
         
             
                VALUE rb_value_type;
         
     | 
| 
       171 
     | 
    
         
            -
                VALUE rb_default_tokenizer 
     | 
| 
      
 176 
     | 
    
         
            +
                VALUE rb_default_tokenizer;
         
     | 
| 
      
 177 
     | 
    
         
            +
                VALUE rb_token_filters;
         
     | 
| 
      
 178 
     | 
    
         
            +
                VALUE rb_sub_records;
         
     | 
| 
       172 
179 
     | 
    
         
             
                VALUE rb_normalizer;
         
     | 
| 
       173 
180 
     | 
    
         | 
| 
       174 
181 
     | 
    
         
             
                rb_scan_args(argc, argv, "01", &options);
         
     | 
| 
         @@ -183,6 +190,7 @@ rb_grn_patricia_trie_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       183 
190 
     | 
    
         
             
                                    "key_type", &rb_key_type,
         
     | 
| 
       184 
191 
     | 
    
         
             
                                    "value_type", &rb_value_type,
         
     | 
| 
       185 
192 
     | 
    
         
             
                                    "default_tokenizer", &rb_default_tokenizer,
         
     | 
| 
      
 193 
     | 
    
         
            +
                                    "token_filters", &rb_token_filters,
         
     | 
| 
       186 
194 
     | 
    
         
             
                                    "sub_records", &rb_sub_records,
         
     | 
| 
       187 
195 
     | 
    
         
             
                                    "normalizer", &rb_normalizer,
         
     | 
| 
       188 
196 
     | 
    
         
             
                                    NULL);
         
     | 
| 
         @@ -230,6 +238,9 @@ rb_grn_patricia_trie_s_create (int argc, VALUE *argv, VALUE klass) 
     | 
|
| 
       230 
238 
     | 
    
         
             
                if (!NIL_P(rb_default_tokenizer))
         
     | 
| 
       231 
239 
     | 
    
         
             
                    rb_funcall(rb_table, rb_intern("default_tokenizer="), 1,
         
     | 
| 
       232 
240 
     | 
    
         
             
                               rb_default_tokenizer);
         
     | 
| 
      
 241 
     | 
    
         
            +
                if (!NIL_P(rb_token_filters))
         
     | 
| 
      
 242 
     | 
    
         
            +
                    rb_funcall(rb_table, rb_intern("token_filters="), 1,
         
     | 
| 
      
 243 
     | 
    
         
            +
                               rb_token_filters);
         
     | 
| 
       233 
244 
     | 
    
         
             
                if (!NIL_P(rb_normalizer))
         
     | 
| 
       234 
245 
     | 
    
         
             
                    rb_funcall(rb_table, rb_intern("normalizer="), 1,
         
     | 
| 
       235 
246 
     | 
    
         
             
                               rb_normalizer);
         
     | 
| 
         @@ -340,7 +351,7 @@ rb_grn_patricia_trie_search (int argc, VALUE *argv, VALUE self) 
     | 
|
| 
       340 
351 
     | 
    
         
             
             *
         
     | 
| 
       341 
352 
     | 
    
         
             
             * @example
         
     | 
| 
       342 
353 
     | 
    
         
             
             *   words = Groonga::PatriciaTrie.create(:key_type => "ShortText",
         
     | 
| 
       343 
     | 
    
         
            -
             *                                        : 
     | 
| 
      
 354 
     | 
    
         
            +
             *                                        :normalizer => "NormalizerAuto")
         
     | 
| 
       344 
355 
     | 
    
         
             
             *   words.add("リンク")
         
     | 
| 
       345 
356 
     | 
    
         
             
             *   adventure_of_link = words.add('リンクの冒険')
         
     | 
| 
       346 
357 
     | 
    
         
             
             *   words.add('冒険')
         
     | 
| 
         @@ -753,10 +764,11 @@ rb_grn_patricia_trie_open_rk_cursor (int argc, VALUE *argv, VALUE self) 
     | 
|
| 
       753 
764 
     | 
    
         | 
| 
       754 
765 
     | 
    
         
             
            static grn_table_cursor *
         
     | 
| 
       755 
766 
     | 
    
         
             
            rb_grn_patricia_trie_open_grn_near_cursor (int argc, VALUE *argv, VALUE self,
         
     | 
| 
       756 
     | 
    
         
            -
             
     | 
| 
      
 767 
     | 
    
         
            +
                                                       grn_ctx **context, int flags)
         
     | 
| 
       757 
768 
     | 
    
         
             
            {
         
     | 
| 
       758 
769 
     | 
    
         
             
                grn_obj *table;
         
     | 
| 
       759 
     | 
    
         
            -
                 
     | 
| 
      
 770 
     | 
    
         
            +
                grn_id domain_id;
         
     | 
| 
      
 771 
     | 
    
         
            +
                grn_obj *key, *domain;
         
     | 
| 
       760 
772 
     | 
    
         
             
                grn_table_cursor *cursor;
         
     | 
| 
       761 
773 
     | 
    
         
             
                unsigned min_size = 0;
         
     | 
| 
       762 
774 
     | 
    
         
             
                int offset = 0, limit = -1;
         
     | 
| 
         @@ -765,10 +777,10 @@ rb_grn_patricia_trie_open_grn_near_cursor (int argc, VALUE *argv, VALUE self, 
     | 
|
| 
       765 
777 
     | 
    
         | 
| 
       766 
778 
     | 
    
         
             
                flags |= GRN_CURSOR_PREFIX;
         
     | 
| 
       767 
779 
     | 
    
         | 
| 
       768 
     | 
    
         
            -
                 
     | 
| 
       769 
     | 
    
         
            -
             
     | 
| 
       770 
     | 
    
         
            -
             
     | 
| 
       771 
     | 
    
         
            -
             
     | 
| 
      
 780 
     | 
    
         
            +
                rb_grn_table_key_support_deconstruct(SELF(self), &table, context,
         
     | 
| 
      
 781 
     | 
    
         
            +
                                                     &key, &domain_id, &domain,
         
     | 
| 
      
 782 
     | 
    
         
            +
                                                     NULL, NULL, NULL,
         
     | 
| 
      
 783 
     | 
    
         
            +
                                                     NULL);
         
     | 
| 
       772 
784 
     | 
    
         | 
| 
       773 
785 
     | 
    
         
             
                rb_scan_args(argc, argv, "11", &rb_key, &options);
         
     | 
| 
       774 
786 
     | 
    
         | 
| 
         @@ -780,15 +792,7 @@ rb_grn_patricia_trie_open_grn_near_cursor (int argc, VALUE *argv, VALUE self, 
     | 
|
| 
       780 
792 
     | 
    
         
             
                                    "less_than", &rb_less_than,
         
     | 
| 
       781 
793 
     | 
    
         
             
                                    NULL);
         
     | 
| 
       782 
794 
     | 
    
         | 
| 
       783 
     | 
    
         
            -
                 
     | 
| 
       784 
     | 
    
         
            -
                                               table->header.domain,
         
     | 
| 
       785 
     | 
    
         
            -
                                               grn_ctx_at(*context, table->header.domain));
         
     | 
| 
       786 
     | 
    
         
            -
                GRN_OBJ_INIT(&casted_key, GRN_BULK, 0, table->header.domain);
         
     | 
| 
       787 
     | 
    
         
            -
                if (key_p->header.domain != table->header.domain) {
         
     | 
| 
       788 
     | 
    
         
            -
                    grn_obj_cast(*context, key_p, &casted_key, GRN_FALSE);
         
     | 
| 
       789 
     | 
    
         
            -
                    grn_obj_unlink(*context, key_p);
         
     | 
| 
       790 
     | 
    
         
            -
                    key_p = &casted_key;
         
     | 
| 
       791 
     | 
    
         
            -
                }
         
     | 
| 
      
 795 
     | 
    
         
            +
                RVAL2GRNBULK_WITH_TYPE(rb_key, *context, key, domain_id, domain);
         
     | 
| 
       792 
796 
     | 
    
         | 
| 
       793 
797 
     | 
    
         
             
                if (!NIL_P(rb_min_size))
         
     | 
| 
       794 
798 
     | 
    
         
             
                    min_size = NUM2UINT(rb_min_size);
         
     | 
| 
         @@ -804,9 +808,8 @@ rb_grn_patricia_trie_open_grn_near_cursor (int argc, VALUE *argv, VALUE self, 
     | 
|
| 
       804 
808 
     | 
    
         | 
| 
       805 
809 
     | 
    
         
             
                cursor = grn_table_cursor_open(*context, table,
         
     | 
| 
       806 
810 
     | 
    
         
             
                                               NULL, min_size,
         
     | 
| 
       807 
     | 
    
         
            -
                                               GRN_BULK_HEAD( 
     | 
| 
      
 811 
     | 
    
         
            +
                                               GRN_BULK_HEAD(key), GRN_BULK_VSIZE(key),
         
     | 
| 
       808 
812 
     | 
    
         
             
                                               offset, limit, flags);
         
     | 
| 
       809 
     | 
    
         
            -
                GRN_OBJ_FIN(*context, &casted_key);
         
     | 
| 
       810 
813 
     | 
    
         
             
                rb_grn_context_check(*context, self);
         
     | 
| 
       811 
814 
     | 
    
         | 
| 
       812 
815 
     | 
    
         
             
                return cursor;
         
     |