rroonga 3.0.2-x86-mingw32 → 3.0.4-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/text/news.textile +30 -1
- data/ext/groonga/extconf.rb +49 -26
- data/ext/groonga/rb-grn-array.c +56 -1
- data/ext/groonga/rb-grn-column.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie.c +1 -1
- data/ext/groonga/rb-grn-exception.c +3 -3
- data/ext/groonga/rb-grn-expression.c +14 -9
- data/ext/groonga/rb-grn-index-column.c +1 -1
- data/ext/groonga/rb-grn-operator.c +10 -3
- data/ext/groonga/rb-grn-patricia-trie.c +1 -1
- data/ext/groonga/rb-grn-table.c +71 -25
- data/ext/groonga/rb-grn-utils.c +3 -1
- data/ext/groonga/rb-grn-variable.c +17 -4
- data/ext/groonga/rb-grn.h +2 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/groonga/record.rb +9 -2
- data/lib/groonga/sub-records.rb +62 -0
- data/rroonga-build.rb +2 -1
- data/rroonga.gemspec +1 -1
- data/test/test-array.rb +35 -0
- data/test/test-context.rb +2 -1
- data/test/test-database.rb +2 -1
- data/test/test-expression.rb +14 -4
- data/test/test-sub-records.rb +109 -0
- data/test/test-table.rb +104 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/include/groonga/groonga.h +20 -2
- 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/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/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/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +2 -2
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +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 +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -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 +43 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +75 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +14 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +28 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +5 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +19 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +5 -1
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/index.html +11 -10
- 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 +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +187 -137
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +11 -10
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +16 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +514 -7
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grntest.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +8 -8
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +11 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +231 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +26 -26
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +55 -49
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +53 -44
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +9 -9
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/server/package.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +10 -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 +8 -8
- 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 +29 -11
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +17 -12
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +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 +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -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 +43 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +75 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +14 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +28 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +5 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +19 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +5 -1
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/community.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +11 -8
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +25 -15
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +9 -7
- data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +21 -13
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +23 -14
- data/vendor/local/share/doc/groonga/ja/html/index.html +11 -10
- data/vendor/local/share/doc/groonga/ja/html/install.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +14 -11
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +14 -11
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +14 -11
- 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 +38 -23
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +14 -11
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +14 -14
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +15 -10
- data/vendor/local/share/doc/groonga/ja/html/news.html +885 -481
- 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 +280 -146
- 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 +11 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +17 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +9 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +9 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +17 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +20 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +12 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +33 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +43 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +558 -75
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +9 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/add.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/get.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands_not_implemented/set.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grntest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +10 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +11 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +11 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +231 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +26 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +55 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +39 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +53 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +15 -11
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +23 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +13 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +9 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +11 -8
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +15 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +41 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +83 -46
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +41 -23
- data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +71 -38
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +55 -30
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +33 -19
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +19 -12
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +27 -16
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +17 -11
- 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 +24 -16
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +31 -11
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +16 -12
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/man/ja/man1/groonga.1 +847 -160
- data/vendor/local/share/man/man1/groonga.1 +826 -97
- metadata +10 -2
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>8.3.29. tokenize — groonga v3.0.
|
10
|
+
<title>8.3.29. tokenize — groonga v3.0.5ドキュメント</title>
|
11
11
|
|
12
12
|
<link rel="stylesheet" href="../../_static/groonga.css" type="text/css" />
|
13
13
|
<link rel="stylesheet" href="../../_static/pygments.css" type="text/css" />
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<script type="text/javascript">
|
16
16
|
var DOCUMENTATION_OPTIONS = {
|
17
17
|
URL_ROOT: '../../',
|
18
|
-
VERSION: '3.0.
|
18
|
+
VERSION: '3.0.5',
|
19
19
|
COLLAPSE_INDEX: false,
|
20
20
|
FILE_SUFFIX: '.html',
|
21
21
|
HAS_SOURCE: true
|
@@ -26,7 +26,7 @@
|
|
26
26
|
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
27
27
|
<script type="text/javascript" src="../../_static/translations.js"></script>
|
28
28
|
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
|
29
|
-
<link rel="top" title="groonga v3.0.
|
29
|
+
<link rel="top" title="groonga v3.0.5ドキュメント" href="../../index.html" />
|
30
30
|
<link rel="up" title="8.3. コマンド" href="../command.html" />
|
31
31
|
<link rel="next" title="8.3.30. truncate" href="truncate.html" />
|
32
32
|
<link rel="prev" title="8.3.28. table_remove" href="table_remove.html" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="table_remove.html" title="8.3.28. table_remove"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../../index.html">groonga v3.0.
|
64
|
+
<li><a href="../../index.html">groonga v3.0.5ドキュメント</a> »</li>
|
65
65
|
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
66
66
|
<li><a href="../command.html" accesskey="U">8.3. コマンド</a> »</li>
|
67
67
|
</ul>
|
@@ -76,14 +76,11 @@
|
|
76
76
|
<h1>8.3.29. <tt class="docutils literal"><span class="pre">tokenize</span></tt><a class="headerlink" href="#tokenize" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
77
|
<div class="section" id="summary">
|
78
78
|
<h2>8.3.29.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
79
|
-
<p><tt class="docutils literal"><span class="pre">tokenize</span></tt>
|
80
|
-
It is useful to debug tokenization.</p>
|
79
|
+
<p><tt class="docutils literal"><span class="pre">tokenize</span></tt> コマンドは指定したトークナイザーでテキストをトークナイズします。これはトークナイズ処理のデバッグに便利です。</p>
|
81
80
|
</div>
|
82
81
|
<div class="section" id="syntax">
|
83
82
|
<h2>8.3.29.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
84
|
-
<p><tt class="docutils literal"><span class="pre">tokenize</span></tt>
|
85
|
-
<tt class="docutils literal"><span class="pre">tokenizer</span></tt> and <tt class="docutils literal"><span class="pre">string</span></tt> are required parameters. Others are
|
86
|
-
optional:</p>
|
83
|
+
<p><tt class="docutils literal"><span class="pre">tokenize</span></tt> コマンドには必須の引数と省略可能な引数があります。 <tt class="docutils literal"><span class="pre">tokenizer</span></tt> と <tt class="docutils literal"><span class="pre">string</span></tt> が必須の引数で、他の引数はすべて省略可能です。</p>
|
87
84
|
<div class="highlight-none"><div class="highlight"><pre>tokenize tokenizer
|
88
85
|
string
|
89
86
|
[normalizer=null]
|
@@ -94,127 +91,613 @@ optional:</p>
|
|
94
91
|
<div class="section" id="usage">
|
95
92
|
<h2>8.3.29.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
96
93
|
<p>以下は簡単な使用例です。</p>
|
97
|
-
<p>
|
98
|
-
<
|
99
|
-
|
100
|
-
|
94
|
+
<p>実行例:</p>
|
95
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenBigram "Fulltext Search"
|
96
|
+
# [
|
97
|
+
# [
|
98
|
+
# 0,
|
99
|
+
# 1337566253.89858,
|
100
|
+
# 0.000355720520019531
|
101
|
+
# ],
|
102
|
+
# [
|
103
|
+
# {
|
104
|
+
# "position": 0,
|
105
|
+
# "value": "Fu"
|
106
|
+
# },
|
107
|
+
# {
|
108
|
+
# "position": 1,
|
109
|
+
# "value": "ul"
|
110
|
+
# },
|
111
|
+
# {
|
112
|
+
# "position": 2,
|
113
|
+
# "value": "ll"
|
114
|
+
# },
|
115
|
+
# {
|
116
|
+
# "position": 3,
|
117
|
+
# "value": "lt"
|
118
|
+
# },
|
119
|
+
# {
|
120
|
+
# "position": 4,
|
121
|
+
# "value": "te"
|
122
|
+
# },
|
123
|
+
# {
|
124
|
+
# "position": 5,
|
125
|
+
# "value": "ex"
|
126
|
+
# },
|
127
|
+
# {
|
128
|
+
# "position": 6,
|
129
|
+
# "value": "xt"
|
130
|
+
# },
|
131
|
+
# {
|
132
|
+
# "position": 7,
|
133
|
+
# "value": "t "
|
134
|
+
# },
|
135
|
+
# {
|
136
|
+
# "position": 8,
|
137
|
+
# "value": " S"
|
138
|
+
# },
|
139
|
+
# {
|
140
|
+
# "position": 9,
|
141
|
+
# "value": "Se"
|
142
|
+
# },
|
143
|
+
# {
|
144
|
+
# "position": 10,
|
145
|
+
# "value": "ea"
|
146
|
+
# },
|
147
|
+
# {
|
148
|
+
# "position": 11,
|
149
|
+
# "value": "ar"
|
150
|
+
# },
|
151
|
+
# {
|
152
|
+
# "position": 12,
|
153
|
+
# "value": "rc"
|
154
|
+
# },
|
155
|
+
# {
|
156
|
+
# "position": 13,
|
157
|
+
# "value": "ch"
|
158
|
+
# },
|
159
|
+
# {
|
160
|
+
# "position": 14,
|
161
|
+
# "value": "h"
|
162
|
+
# }
|
163
|
+
# ]
|
164
|
+
# ]
|
165
|
+
</pre></div>
|
166
|
+
</div>
|
167
|
+
<p>この例では必須のパラメーターだけ使っています。 <tt class="docutils literal"><span class="pre">tokenizer</span></tt> には <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> を、 <tt class="docutils literal"><span class="pre">string</span></tt> には <tt class="docutils literal"><span class="pre">"Fulltext</span> <span class="pre">Search"</span></tt> を指定しています。この例は <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーで <tt class="docutils literal"><span class="pre">"Fulltext</span> <span class="pre">Search"</span></tt> をトークナイズしたトークンを返します。この例では <tt class="docutils literal"><span class="pre">"Fulltext</span> <span class="pre">Search"</span></tt> を正規化していません。</p>
|
101
168
|
</div>
|
102
169
|
<div class="section" id="parameters">
|
103
170
|
<h2>8.3.29.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
104
171
|
<p>このセクションではすべての引数について説明します。引数はカテゴリわけしています。</p>
|
105
172
|
<div class="section" id="required-parameters">
|
106
|
-
<h3>8.3.29.4.1.
|
173
|
+
<h3>8.3.29.4.1. 必須引数<a class="headerlink" href="#required-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
107
174
|
<p>必須引数は二つあります。 <tt class="docutils literal"><span class="pre">tokenizer</span></tt> と <tt class="docutils literal"><span class="pre">string</span></tt> です。</p>
|
108
175
|
<div class="section" id="tokenizer">
|
109
176
|
<h4>8.3.29.4.1.1. <tt class="docutils literal"><span class="pre">tokenizer</span></tt><a class="headerlink" href="#tokenizer" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
110
|
-
<p
|
111
|
-
|
112
|
-
<p
|
113
|
-
<p
|
114
|
-
<
|
115
|
-
|
116
|
-
|
177
|
+
<p>トークナイザー名を指定します。 <tt class="docutils literal"><span class="pre">tokenize</span></tt> コマンドは <tt class="docutils literal"><span class="pre">tokenizer</span></tt> で指定された名前のトークナイザーを使います。</p>
|
178
|
+
<p>組み込みのトークナイザーについては <a class="reference internal" href="../tokenizers.html"><em>Tokenizers</em></a> を参照してください。</p>
|
179
|
+
<p>以下は <tt class="docutils literal"><span class="pre">TokenTrigram</span></tt> トークナイザーを使う例です。</p>
|
180
|
+
<p>実行例:</p>
|
181
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenTrigram "Fulltext Search"
|
182
|
+
# [
|
183
|
+
# [
|
184
|
+
# 0,
|
185
|
+
# 1337566253.89858,
|
186
|
+
# 0.000355720520019531
|
187
|
+
# ],
|
188
|
+
# [
|
189
|
+
# {
|
190
|
+
# "position": 0,
|
191
|
+
# "value": "Ful"
|
192
|
+
# },
|
193
|
+
# {
|
194
|
+
# "position": 1,
|
195
|
+
# "value": "ull"
|
196
|
+
# },
|
197
|
+
# {
|
198
|
+
# "position": 2,
|
199
|
+
# "value": "llt"
|
200
|
+
# },
|
201
|
+
# {
|
202
|
+
# "position": 3,
|
203
|
+
# "value": "lte"
|
204
|
+
# },
|
205
|
+
# {
|
206
|
+
# "position": 4,
|
207
|
+
# "value": "tex"
|
208
|
+
# },
|
209
|
+
# {
|
210
|
+
# "position": 5,
|
211
|
+
# "value": "ext"
|
212
|
+
# },
|
213
|
+
# {
|
214
|
+
# "position": 6,
|
215
|
+
# "value": "xt "
|
216
|
+
# },
|
217
|
+
# {
|
218
|
+
# "position": 7,
|
219
|
+
# "value": "t S"
|
220
|
+
# },
|
221
|
+
# {
|
222
|
+
# "position": 8,
|
223
|
+
# "value": " Se"
|
224
|
+
# },
|
225
|
+
# {
|
226
|
+
# "position": 9,
|
227
|
+
# "value": "Sea"
|
228
|
+
# },
|
229
|
+
# {
|
230
|
+
# "position": 10,
|
231
|
+
# "value": "ear"
|
232
|
+
# },
|
233
|
+
# {
|
234
|
+
# "position": 11,
|
235
|
+
# "value": "arc"
|
236
|
+
# },
|
237
|
+
# {
|
238
|
+
# "position": 12,
|
239
|
+
# "value": "rch"
|
240
|
+
# },
|
241
|
+
# {
|
242
|
+
# "position": 13,
|
243
|
+
# "value": "ch"
|
244
|
+
# },
|
245
|
+
# {
|
246
|
+
# "position": 14,
|
247
|
+
# "value": "h"
|
248
|
+
# }
|
249
|
+
# ]
|
250
|
+
# ]
|
251
|
+
</pre></div>
|
252
|
+
</div>
|
253
|
+
<p>他のトークナイザーを使いたい場合は、 <a class="reference internal" href="register.html"><em>register</em></a> コマンドでトークナイザープラグインを登録する必要があります。例えば、 <a class="reference external" href="https://github.com/groonga/groonga-normalizer-mysql">groonga-normalizer-mysql</a> を登録することでMySQL互換の正規化方法を使うことができます。</p>
|
117
254
|
</div>
|
118
255
|
<div class="section" id="string">
|
119
256
|
<h4>8.3.29.4.1.2. <tt class="docutils literal"><span class="pre">string</span></tt><a class="headerlink" href="#string" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
120
|
-
<p
|
121
|
-
|
122
|
-
|
123
|
-
<
|
257
|
+
<p>トークナイズしたい文字列を指定します。 <tt class="docutils literal"><span class="pre">string</span></tt> の中に文字列を含める場合は、シングルクォート( <tt class="docutils literal"><span class="pre">'</span></tt> )またはダブルクォート( <tt class="docutils literal"><span class="pre">"</span></tt> )で <tt class="docutils literal"><span class="pre">string</span></tt> をクォートする必要があります。</p>
|
258
|
+
<p><tt class="docutils literal"><span class="pre">string</span></tt> の中で空白を使う例です。</p>
|
259
|
+
<p>実行例:</p>
|
260
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenBigram "Groonga is a fast fulltext earch engine!"
|
261
|
+
# [
|
262
|
+
# [
|
263
|
+
# 0,
|
264
|
+
# 1337566253.89858,
|
265
|
+
# 0.000355720520019531
|
266
|
+
# ],
|
267
|
+
# [
|
268
|
+
# {
|
269
|
+
# "position": 0,
|
270
|
+
# "value": "Gr"
|
271
|
+
# },
|
272
|
+
# {
|
273
|
+
# "position": 1,
|
274
|
+
# "value": "ro"
|
275
|
+
# },
|
276
|
+
# {
|
277
|
+
# "position": 2,
|
278
|
+
# "value": "oo"
|
279
|
+
# },
|
280
|
+
# {
|
281
|
+
# "position": 3,
|
282
|
+
# "value": "on"
|
283
|
+
# },
|
284
|
+
# {
|
285
|
+
# "position": 4,
|
286
|
+
# "value": "ng"
|
287
|
+
# },
|
288
|
+
# {
|
289
|
+
# "position": 5,
|
290
|
+
# "value": "ga"
|
291
|
+
# },
|
292
|
+
# {
|
293
|
+
# "position": 6,
|
294
|
+
# "value": "a "
|
295
|
+
# },
|
296
|
+
# {
|
297
|
+
# "position": 7,
|
298
|
+
# "value": " i"
|
299
|
+
# },
|
300
|
+
# {
|
301
|
+
# "position": 8,
|
302
|
+
# "value": "is"
|
303
|
+
# },
|
304
|
+
# {
|
305
|
+
# "position": 9,
|
306
|
+
# "value": "s "
|
307
|
+
# },
|
308
|
+
# {
|
309
|
+
# "position": 10,
|
310
|
+
# "value": " a"
|
311
|
+
# },
|
312
|
+
# {
|
313
|
+
# "position": 11,
|
314
|
+
# "value": "a "
|
315
|
+
# },
|
316
|
+
# {
|
317
|
+
# "position": 12,
|
318
|
+
# "value": " f"
|
319
|
+
# },
|
320
|
+
# {
|
321
|
+
# "position": 13,
|
322
|
+
# "value": "fa"
|
323
|
+
# },
|
324
|
+
# {
|
325
|
+
# "position": 14,
|
326
|
+
# "value": "as"
|
327
|
+
# },
|
328
|
+
# {
|
329
|
+
# "position": 15,
|
330
|
+
# "value": "st"
|
331
|
+
# },
|
332
|
+
# {
|
333
|
+
# "position": 16,
|
334
|
+
# "value": "t "
|
335
|
+
# },
|
336
|
+
# {
|
337
|
+
# "position": 17,
|
338
|
+
# "value": " f"
|
339
|
+
# },
|
340
|
+
# {
|
341
|
+
# "position": 18,
|
342
|
+
# "value": "fu"
|
343
|
+
# },
|
344
|
+
# {
|
345
|
+
# "position": 19,
|
346
|
+
# "value": "ul"
|
347
|
+
# },
|
348
|
+
# {
|
349
|
+
# "position": 20,
|
350
|
+
# "value": "ll"
|
351
|
+
# },
|
352
|
+
# {
|
353
|
+
# "position": 21,
|
354
|
+
# "value": "lt"
|
355
|
+
# },
|
356
|
+
# {
|
357
|
+
# "position": 22,
|
358
|
+
# "value": "te"
|
359
|
+
# },
|
360
|
+
# {
|
361
|
+
# "position": 23,
|
362
|
+
# "value": "ex"
|
363
|
+
# },
|
364
|
+
# {
|
365
|
+
# "position": 24,
|
366
|
+
# "value": "xt"
|
367
|
+
# },
|
368
|
+
# {
|
369
|
+
# "position": 25,
|
370
|
+
# "value": "t "
|
371
|
+
# },
|
372
|
+
# {
|
373
|
+
# "position": 26,
|
374
|
+
# "value": " e"
|
375
|
+
# },
|
376
|
+
# {
|
377
|
+
# "position": 27,
|
378
|
+
# "value": "ea"
|
379
|
+
# },
|
380
|
+
# {
|
381
|
+
# "position": 28,
|
382
|
+
# "value": "ar"
|
383
|
+
# },
|
384
|
+
# {
|
385
|
+
# "position": 29,
|
386
|
+
# "value": "rc"
|
387
|
+
# },
|
388
|
+
# {
|
389
|
+
# "position": 30,
|
390
|
+
# "value": "ch"
|
391
|
+
# },
|
392
|
+
# {
|
393
|
+
# "position": 31,
|
394
|
+
# "value": "h "
|
395
|
+
# },
|
396
|
+
# {
|
397
|
+
# "position": 32,
|
398
|
+
# "value": " e"
|
399
|
+
# },
|
400
|
+
# {
|
401
|
+
# "position": 33,
|
402
|
+
# "value": "en"
|
403
|
+
# },
|
404
|
+
# {
|
405
|
+
# "position": 34,
|
406
|
+
# "value": "ng"
|
407
|
+
# },
|
408
|
+
# {
|
409
|
+
# "position": 35,
|
410
|
+
# "value": "gi"
|
411
|
+
# },
|
412
|
+
# {
|
413
|
+
# "position": 36,
|
414
|
+
# "value": "in"
|
415
|
+
# },
|
416
|
+
# {
|
417
|
+
# "position": 37,
|
418
|
+
# "value": "ne"
|
419
|
+
# },
|
420
|
+
# {
|
421
|
+
# "position": 38,
|
422
|
+
# "value": "e!"
|
423
|
+
# },
|
424
|
+
# {
|
425
|
+
# "position": 39,
|
426
|
+
# "value": "!"
|
427
|
+
# }
|
428
|
+
# ]
|
429
|
+
# ]
|
430
|
+
</pre></div>
|
431
|
+
</div>
|
124
432
|
</div>
|
125
433
|
</div>
|
126
434
|
<div class="section" id="optional-parameters">
|
127
|
-
<h3>8.3.29.4.2.
|
128
|
-
<p
|
435
|
+
<h3>8.3.29.4.2. 省略可能引数<a class="headerlink" href="#optional-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
436
|
+
<p>いくつか省略可能な引数があります。</p>
|
129
437
|
<div class="section" id="normalizer">
|
130
438
|
<h4>8.3.29.4.2.1. <tt class="docutils literal"><span class="pre">normalizer</span></tt><a class="headerlink" href="#normalizer" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
131
|
-
<p>
|
132
|
-
|
133
|
-
|
134
|
-
<p>
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
439
|
+
<p>ノーマライザー名を指定します。 <tt class="docutils literal"><span class="pre">tokenize</span></tt> コマンドは <tt class="docutils literal"><span class="pre">normalizer</span></tt> という名前のノーまライザーを使います。ノーまライザーは <tt class="docutils literal"><span class="pre">TokenBigrma</span></tt> など、N-gram関連のトークナイザーにとってとても重要です。</p>
|
440
|
+
<p>ノーマライザーはノーマライズ中にそれぞれの文字の種類を検出します。N-gram系のトークナイザーはトークナイズ中に文字の種類を利用します。</p>
|
441
|
+
<p>以下はノーマライザーを使わない例です。</p>
|
442
|
+
<p>実行例:</p>
|
443
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenBigram "Fulltext Search"
|
444
|
+
# [
|
445
|
+
# [
|
446
|
+
# 0,
|
447
|
+
# 1337566253.89858,
|
448
|
+
# 0.000355720520019531
|
449
|
+
# ],
|
450
|
+
# [
|
451
|
+
# {
|
452
|
+
# "position": 0,
|
453
|
+
# "value": "Fu"
|
454
|
+
# },
|
455
|
+
# {
|
456
|
+
# "position": 1,
|
457
|
+
# "value": "ul"
|
458
|
+
# },
|
459
|
+
# {
|
460
|
+
# "position": 2,
|
461
|
+
# "value": "ll"
|
462
|
+
# },
|
463
|
+
# {
|
464
|
+
# "position": 3,
|
465
|
+
# "value": "lt"
|
466
|
+
# },
|
467
|
+
# {
|
468
|
+
# "position": 4,
|
469
|
+
# "value": "te"
|
470
|
+
# },
|
471
|
+
# {
|
472
|
+
# "position": 5,
|
473
|
+
# "value": "ex"
|
474
|
+
# },
|
475
|
+
# {
|
476
|
+
# "position": 6,
|
477
|
+
# "value": "xt"
|
478
|
+
# },
|
479
|
+
# {
|
480
|
+
# "position": 7,
|
481
|
+
# "value": "t "
|
482
|
+
# },
|
483
|
+
# {
|
484
|
+
# "position": 8,
|
485
|
+
# "value": " S"
|
486
|
+
# },
|
487
|
+
# {
|
488
|
+
# "position": 9,
|
489
|
+
# "value": "Se"
|
490
|
+
# },
|
491
|
+
# {
|
492
|
+
# "position": 10,
|
493
|
+
# "value": "ea"
|
494
|
+
# },
|
495
|
+
# {
|
496
|
+
# "position": 11,
|
497
|
+
# "value": "ar"
|
498
|
+
# },
|
499
|
+
# {
|
500
|
+
# "position": 12,
|
501
|
+
# "value": "rc"
|
502
|
+
# },
|
503
|
+
# {
|
504
|
+
# "position": 13,
|
505
|
+
# "value": "ch"
|
506
|
+
# },
|
507
|
+
# {
|
508
|
+
# "position": 14,
|
509
|
+
# "value": "h"
|
510
|
+
# }
|
511
|
+
# ]
|
512
|
+
# ]
|
513
|
+
</pre></div>
|
514
|
+
</div>
|
515
|
+
<p>すべてのアルファベットが2文字ごとトークナイズされています。例えば、 <tt class="docutils literal"><span class="pre">Fu</span></tt> で1つのトークンになっています。</p>
|
516
|
+
<p>以下はノーマライザーを使う例です。</p>
|
517
|
+
<p>実行例:</p>
|
518
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenBigram "Fulltext Search" NormalizerAuto
|
519
|
+
# [
|
520
|
+
# [
|
521
|
+
# 0,
|
522
|
+
# 1337566253.89858,
|
523
|
+
# 0.000355720520019531
|
524
|
+
# ],
|
525
|
+
# [
|
526
|
+
# {
|
527
|
+
# "position": 0,
|
528
|
+
# "value": "fulltext"
|
529
|
+
# },
|
530
|
+
# {
|
531
|
+
# "position": 1,
|
532
|
+
# "value": "search"
|
533
|
+
# }
|
534
|
+
# ]
|
535
|
+
# ]
|
536
|
+
</pre></div>
|
537
|
+
</div>
|
538
|
+
<p>連続するアルファベットが1つのトークンにトークナイズされています。例えば、 <tt class="docutils literal"><span class="pre">fulltext</span></tt> で1つのトークンになっています。</p>
|
539
|
+
<p>ノーマライザーを使いながら2文字でトークナイズしたい場合は <tt class="docutils literal"><span class="pre">TokenBigramSplitSymbolAlpha</span></tt> を使って下さい。</p>
|
540
|
+
<p>実行例:</p>
|
541
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenBigramSplitSymbolAlpha "Fulltext Search" NormalizerAuto
|
542
|
+
# [
|
543
|
+
# [
|
544
|
+
# 0,
|
545
|
+
# 1337566253.89858,
|
546
|
+
# 0.000355720520019531
|
547
|
+
# ],
|
548
|
+
# [
|
549
|
+
# {
|
550
|
+
# "position": 0,
|
551
|
+
# "value": "fu"
|
552
|
+
# },
|
553
|
+
# {
|
554
|
+
# "position": 1,
|
555
|
+
# "value": "ul"
|
556
|
+
# },
|
557
|
+
# {
|
558
|
+
# "position": 2,
|
559
|
+
# "value": "ll"
|
560
|
+
# },
|
561
|
+
# {
|
562
|
+
# "position": 3,
|
563
|
+
# "value": "lt"
|
564
|
+
# },
|
565
|
+
# {
|
566
|
+
# "position": 4,
|
567
|
+
# "value": "te"
|
568
|
+
# },
|
569
|
+
# {
|
570
|
+
# "position": 5,
|
571
|
+
# "value": "ex"
|
572
|
+
# },
|
573
|
+
# {
|
574
|
+
# "position": 6,
|
575
|
+
# "value": "xt"
|
576
|
+
# },
|
577
|
+
# {
|
578
|
+
# "position": 7,
|
579
|
+
# "value": "t"
|
580
|
+
# },
|
581
|
+
# {
|
582
|
+
# "position": 8,
|
583
|
+
# "value": "se"
|
584
|
+
# },
|
585
|
+
# {
|
586
|
+
# "position": 9,
|
587
|
+
# "value": "ea"
|
588
|
+
# },
|
589
|
+
# {
|
590
|
+
# "position": 10,
|
591
|
+
# "value": "ar"
|
592
|
+
# },
|
593
|
+
# {
|
594
|
+
# "position": 11,
|
595
|
+
# "value": "rc"
|
596
|
+
# },
|
597
|
+
# {
|
598
|
+
# "position": 12,
|
599
|
+
# "value": "ch"
|
600
|
+
# },
|
601
|
+
# {
|
602
|
+
# "position": 13,
|
603
|
+
# "value": "h"
|
604
|
+
# }
|
605
|
+
# ]
|
606
|
+
# ]
|
607
|
+
</pre></div>
|
608
|
+
</div>
|
609
|
+
<p>すべてのアルファベットが2文字ごとにトークナイズされています。そして、すべての文字が小文字にノーマライズされています。例えば、 <tt class="docutils literal"><span class="pre">fu</span></tt> で1つのトークンになっています。</p>
|
147
610
|
</div>
|
148
611
|
<div class="section" id="flags">
|
149
612
|
<h4>8.3.29.4.2.2. <tt class="docutils literal"><span class="pre">flags</span></tt><a class="headerlink" href="#flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
150
|
-
<p
|
151
|
-
|
152
|
-
<tt class="docutils literal"><span class="pre">NONE|ENABLE_TOKENIZED_DELIMITER</span></tt>.</p>
|
153
|
-
<p>Here are available flags.</p>
|
613
|
+
<p>トークナイズ処理をカスタマイズするオプションを指定します。「 <tt class="docutils literal"><span class="pre">|</span></tt> 」で区切って複数のオプションを指定することができます。例えば、 <tt class="docutils literal"><span class="pre">NONE|ENABLE_TOKENIZED_DELIMITER</span></tt> というように指定できます。</p>
|
614
|
+
<p>指定可能なフラグは以下の通りです。</p>
|
154
615
|
<table border="1" class="docutils">
|
155
616
|
<colgroup>
|
156
617
|
<col width="50%" />
|
157
618
|
<col width="50%" />
|
158
619
|
</colgroup>
|
159
620
|
<thead valign="bottom">
|
160
|
-
<tr class="row-odd"><th class="head">
|
161
|
-
|
621
|
+
<tr class="row-odd"><th class="head"><p class="first last">フラグ</p>
|
622
|
+
</th>
|
623
|
+
<th class="head"><p class="first last">説明</p>
|
624
|
+
</th>
|
162
625
|
</tr>
|
163
626
|
</thead>
|
164
627
|
<tbody valign="top">
|
165
628
|
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">NONE</span></tt></td>
|
166
|
-
<td
|
629
|
+
<td><p class="first last">無視されます。</p>
|
630
|
+
</td>
|
167
631
|
</tr>
|
168
632
|
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">ENABLE_TOKENIZED_DELIMITER</span></tt></td>
|
169
|
-
<td
|
170
|
-
|
633
|
+
<td><p class="first last">トークナイズ済み区切り文字を有効にします。トークナイズ済み区切り文字の詳細は <a class="reference internal" href="../tokenizers.html"><em>Tokenizers</em></a> を参照してください。</p>
|
634
|
+
</td>
|
171
635
|
</tr>
|
172
636
|
</tbody>
|
173
637
|
</table>
|
174
|
-
<p
|
175
|
-
<p
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
638
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ENABLE_TOKENIZED_DELIMITER</span></tt> を使った例です。</p>
|
639
|
+
<p>実行例:</p>
|
640
|
+
<div class="highlight-none"><div class="highlight"><pre>tokenize TokenDelimit "Fulltext Seacrch" NormalizerAuto ENABLE_TOKENIZED_DELIMITER
|
641
|
+
# [
|
642
|
+
# [
|
643
|
+
# 0,
|
644
|
+
# 1337566253.89858,
|
645
|
+
# 0.000355720520019531
|
646
|
+
# ],
|
647
|
+
# [
|
648
|
+
# {
|
649
|
+
# "position": 0,
|
650
|
+
# "value": "full"
|
651
|
+
# },
|
652
|
+
# {
|
653
|
+
# "position": 1,
|
654
|
+
# "value": "text sea"
|
655
|
+
# },
|
656
|
+
# {
|
657
|
+
# "position": 2,
|
658
|
+
# "value": "crch"
|
659
|
+
# }
|
660
|
+
# ]
|
661
|
+
# ]
|
662
|
+
</pre></div>
|
663
|
+
</div>
|
664
|
+
<p><tt class="docutils literal"><span class="pre">TokenDelimit</span></tt> トークナイザーはトークナイズ済み区切り文字をサポートしているトークナイザーの1つです。 <tt class="docutils literal"><span class="pre">ENABLE_TOKENIZED_DELIMITER</span></tt> でトークナイズ済み区切り文字を有効に出来ます。トークナイズ済み区切り文字はトークンの区切りを表す特別な文字です。この文字は <tt class="docutils literal"><span class="pre">U+FFFE</span></tt> です。この文字コードはどの文字にも割り当てられていません。つまり、通常の文字列にはこの文字は現れません。よって、トークンの区切りを表すという目的には適切な文字です。 <tt class="docutils literal"><span class="pre">ENABLE_TOKENIZED_DELIMITER</span></tt> が有効のときは、対象文字列はすでにトークナイズ済みであると扱われます。トークナイザーは単にトークナイズ済み区切り文字で区切ってトークナイズします。</p>
|
184
665
|
</div>
|
185
666
|
</div>
|
186
667
|
</div>
|
187
668
|
<div class="section" id="return-value">
|
188
669
|
<h2>8.3.29.5. 戻り値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
189
|
-
<p><tt class="docutils literal"><span class="pre">tokenize</span></tt>
|
190
|
-
attributes except token itself. The attributes will be increased in
|
191
|
-
the feature:</p>
|
670
|
+
<p><tt class="docutils literal"><span class="pre">tokenize</span></tt> コマンドはトークナイズしたトークンをすべて返します。各トークンはトークン自身の文字列情報以外にいくつかの属性を持ちます。属性は今後増えていく可能性があります:</p>
|
192
671
|
<div class="highlight-none"><div class="highlight"><pre>[HEADER, tokens]
|
193
672
|
</pre></div>
|
194
673
|
</div>
|
195
674
|
<p><tt class="docutils literal"><span class="pre">HEADER</span></tt></p>
|
196
675
|
<blockquote>
|
197
|
-
<div>
|
676
|
+
<div><p><tt class="docutils literal"><span class="pre">HEADER</span></tt> については <a class="reference internal" href="../command/output_format.html"><em>出力形式</em></a> を参照してください。</p>
|
677
|
+
</div></blockquote>
|
198
678
|
<p><tt class="docutils literal"><span class="pre">tokens</span></tt></p>
|
199
679
|
<blockquote>
|
200
|
-
<div><p
|
201
|
-
attributes.</p>
|
680
|
+
<div><p><tt class="docutils literal"><span class="pre">tokens</span></tt> はトークンの配列です。トークンは以下の属性を持ったオブジェクトです。</p>
|
202
681
|
<table border="1" class="docutils">
|
203
682
|
<colgroup>
|
204
683
|
<col width="50%" />
|
205
684
|
<col width="50%" />
|
206
685
|
</colgroup>
|
207
686
|
<thead valign="bottom">
|
208
|
-
<tr class="row-odd"><th class="head">
|
209
|
-
|
687
|
+
<tr class="row-odd"><th class="head"><p class="first last">名前</p>
|
688
|
+
</th>
|
689
|
+
<th class="head"><p class="first last">説明</p>
|
690
|
+
</th>
|
210
691
|
</tr>
|
211
692
|
</thead>
|
212
693
|
<tbody valign="top">
|
213
694
|
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">value</span></tt></td>
|
214
|
-
<td
|
695
|
+
<td><p class="first last">トークン自身</p>
|
696
|
+
</td>
|
215
697
|
</tr>
|
216
698
|
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">position</span></tt></td>
|
217
|
-
<td
|
699
|
+
<td><p class="first last">N番目のトークン。</p>
|
700
|
+
</td>
|
218
701
|
</tr>
|
219
702
|
</tbody>
|
220
703
|
</table>
|
@@ -241,12 +724,12 @@ attributes.</p>
|
|
241
724
|
<li><a class="reference internal" href="#syntax">8.3.29.2. 構文</a></li>
|
242
725
|
<li><a class="reference internal" href="#usage">8.3.29.3. 使い方</a></li>
|
243
726
|
<li><a class="reference internal" href="#parameters">8.3.29.4. 引数</a><ul>
|
244
|
-
<li><a class="reference internal" href="#required-parameters">8.3.29.4.1.
|
727
|
+
<li><a class="reference internal" href="#required-parameters">8.3.29.4.1. 必須引数</a><ul>
|
245
728
|
<li><a class="reference internal" href="#tokenizer">8.3.29.4.1.1. <tt class="docutils literal"><span class="pre">tokenizer</span></tt></a></li>
|
246
729
|
<li><a class="reference internal" href="#string">8.3.29.4.1.2. <tt class="docutils literal"><span class="pre">string</span></tt></a></li>
|
247
730
|
</ul>
|
248
731
|
</li>
|
249
|
-
<li><a class="reference internal" href="#optional-parameters">8.3.29.4.2.
|
732
|
+
<li><a class="reference internal" href="#optional-parameters">8.3.29.4.2. 省略可能引数</a><ul>
|
250
733
|
<li><a class="reference internal" href="#normalizer">8.3.29.4.2.1. <tt class="docutils literal"><span class="pre">normalizer</span></tt></a></li>
|
251
734
|
<li><a class="reference internal" href="#flags">8.3.29.4.2.2. <tt class="docutils literal"><span class="pre">flags</span></tt></a></li>
|
252
735
|
</ul>
|
@@ -299,7 +782,7 @@ attributes.</p>
|
|
299
782
|
<li class="right" >
|
300
783
|
<a href="table_remove.html" title="8.3.28. table_remove"
|
301
784
|
>前へ</a> |</li>
|
302
|
-
<li><a href="../../index.html">groonga v3.0.
|
785
|
+
<li><a href="../../index.html">groonga v3.0.5ドキュメント</a> »</li>
|
303
786
|
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
304
787
|
<li><a href="../command.html" >8.3. コマンド</a> »</li>
|
305
788
|
</ul>
|