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
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH "GROONGA" "1" "
|
1
|
+
.TH "GROONGA" "1" "June 27, 2013" "3.0.5" "groonga"
|
2
2
|
.SH NAME
|
3
3
|
groonga \- groonga documentation
|
4
4
|
.
|
@@ -114,7 +114,7 @@ Start command prompt \fBcmd.exe\fP and download x86 executable binary by default
|
|
114
114
|
.sp
|
115
115
|
.nf
|
116
116
|
.ft C
|
117
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.
|
117
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.5\-x86.exe
|
118
118
|
.ft P
|
119
119
|
.fi
|
120
120
|
.UNINDENT
|
@@ -130,7 +130,7 @@ Start command prompt \fBcmd.exe\fP and download x64 executable binary by default
|
|
130
130
|
.sp
|
131
131
|
.nf
|
132
132
|
.ft C
|
133
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.
|
133
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.5\-x64.exe
|
134
134
|
.ft P
|
135
135
|
.fi
|
136
136
|
.UNINDENT
|
@@ -151,7 +151,7 @@ Start command prompt \fBcmd.exe\fP and download x86 zip archive by default brows
|
|
151
151
|
.sp
|
152
152
|
.nf
|
153
153
|
.ft C
|
154
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.
|
154
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.5\-x86.zip
|
155
155
|
.ft P
|
156
156
|
.fi
|
157
157
|
.UNINDENT
|
@@ -167,7 +167,7 @@ Start command prompt \fBcmd.exe\fP and download x64 zip archive by default brows
|
|
167
167
|
.sp
|
168
168
|
.nf
|
169
169
|
.ft C
|
170
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.
|
170
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.5\-x64.zip
|
171
171
|
.ft P
|
172
172
|
.fi
|
173
173
|
.UNINDENT
|
@@ -203,7 +203,7 @@ Visual Studio 2010 Express and download it by default browser:
|
|
203
203
|
.nf
|
204
204
|
.ft C
|
205
205
|
> cd c:\eUsers\e%USERNAME%\eDownloads
|
206
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-3.0.
|
206
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-3.0.5.zip
|
207
207
|
.ft P
|
208
208
|
.fi
|
209
209
|
.UNINDENT
|
@@ -217,7 +217,7 @@ Move to the groonga\(aqs source folder:
|
|
217
217
|
.sp
|
218
218
|
.nf
|
219
219
|
.ft C
|
220
|
-
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-3.0.
|
220
|
+
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-3.0.5
|
221
221
|
.ft P
|
222
222
|
.fi
|
223
223
|
.UNINDENT
|
@@ -231,7 +231,7 @@ parameter instead:
|
|
231
231
|
.sp
|
232
232
|
.nf
|
233
233
|
.ft C
|
234
|
-
groonga\-3.0.
|
234
|
+
groonga\-3.0.5> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
|
235
235
|
.ft P
|
236
236
|
.fi
|
237
237
|
.UNINDENT
|
@@ -243,7 +243,7 @@ Build:
|
|
243
243
|
.sp
|
244
244
|
.nf
|
245
245
|
.ft C
|
246
|
-
groonga\-3.0.
|
246
|
+
groonga\-3.0.5> cmake \-\-build . \-\-config Release
|
247
247
|
.ft P
|
248
248
|
.fi
|
249
249
|
.UNINDENT
|
@@ -255,7 +255,7 @@ Install:
|
|
255
255
|
.sp
|
256
256
|
.nf
|
257
257
|
.ft C
|
258
|
-
groonga\-3.0.
|
258
|
+
groonga\-3.0.5> cmake \-\-build . \-\-config Release \-\-target Install
|
259
259
|
.ft P
|
260
260
|
.fi
|
261
261
|
.UNINDENT
|
@@ -309,9 +309,9 @@ Download source:
|
|
309
309
|
.sp
|
310
310
|
.nf
|
311
311
|
.ft C
|
312
|
-
% curl \-O http://packages.groonga.org/source/groonga/groonga\-3.0.
|
313
|
-
% tar xvzf groonga\-3.0.
|
314
|
-
% cd groonga\-3.0.
|
312
|
+
% curl \-O http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
313
|
+
% tar xvzf groonga\-3.0.5.tar.gz
|
314
|
+
% cd groonga\-3.0.5
|
315
315
|
.ft P
|
316
316
|
.fi
|
317
317
|
.UNINDENT
|
@@ -711,9 +711,9 @@ Download source:
|
|
711
711
|
.sp
|
712
712
|
.nf
|
713
713
|
.ft C
|
714
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.
|
715
|
-
% tar xvzf groonga\-3.0.
|
716
|
-
% cd groonga\-3.0.
|
714
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
715
|
+
% tar xvzf groonga\-3.0.5.tar.gz
|
716
|
+
% cd groonga\-3.0.5
|
717
717
|
.ft P
|
718
718
|
.fi
|
719
719
|
.UNINDENT
|
@@ -1185,9 +1185,9 @@ Download source:
|
|
1185
1185
|
.sp
|
1186
1186
|
.nf
|
1187
1187
|
.ft C
|
1188
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.
|
1189
|
-
% tar xvzf groonga\-3.0.
|
1190
|
-
% cd groonga\-3.0.
|
1188
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
1189
|
+
% tar xvzf groonga\-3.0.5.tar.gz
|
1190
|
+
% cd groonga\-3.0.5
|
1191
1191
|
.ft P
|
1192
1192
|
.fi
|
1193
1193
|
.UNINDENT
|
@@ -1525,9 +1525,9 @@ Download source:
|
|
1525
1525
|
.sp
|
1526
1526
|
.nf
|
1527
1527
|
.ft C
|
1528
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.
|
1529
|
-
% tar xvzf groonga\-3.0.
|
1530
|
-
% cd groonga\-3.0.
|
1528
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
1529
|
+
% tar xvzf groonga\-3.0.5.tar.gz
|
1530
|
+
% cd groonga\-3.0.5
|
1531
1531
|
.ft P
|
1532
1532
|
.fi
|
1533
1533
|
.UNINDENT
|
@@ -1732,9 +1732,9 @@ Download source:
|
|
1732
1732
|
.sp
|
1733
1733
|
.nf
|
1734
1734
|
.ft C
|
1735
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.
|
1736
|
-
% tar xvzf groonga\-3.0.
|
1737
|
-
% cd groonga\-3.0.
|
1735
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
1736
|
+
% tar xvzf groonga\-3.0.5.tar.gz
|
1737
|
+
% cd groonga\-3.0.5
|
1738
1738
|
.ft P
|
1739
1739
|
.fi
|
1740
1740
|
.UNINDENT
|
@@ -1799,9 +1799,9 @@ Download source:
|
|
1799
1799
|
.sp
|
1800
1800
|
.nf
|
1801
1801
|
.ft C
|
1802
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.
|
1803
|
-
% gtar xvzf groonga\-3.0.
|
1804
|
-
% cd groonga\-3.0.
|
1802
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
1803
|
+
% gtar xvzf groonga\-3.0.5.tar.gz
|
1804
|
+
% cd groonga\-3.0.5
|
1805
1805
|
.ft P
|
1806
1806
|
.fi
|
1807
1807
|
.UNINDENT
|
@@ -1941,9 +1941,9 @@ steps:
|
|
1941
1941
|
.sp
|
1942
1942
|
.nf
|
1943
1943
|
.ft C
|
1944
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.
|
1945
|
-
% tar xvzf groonga\-3.0.
|
1946
|
-
% cd groonga\-3.0.
|
1944
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.5.tar.gz
|
1945
|
+
% tar xvzf groonga\-3.0.5.tar.gz
|
1946
|
+
% cd groonga\-3.0.5
|
1947
1947
|
% ./configure
|
1948
1948
|
% make
|
1949
1949
|
% sudo make install
|
@@ -2324,10 +2324,10 @@ status
|
|
2324
2324
|
# "max_command_version": 2,
|
2325
2325
|
# "n_queries": 0,
|
2326
2326
|
# "cache_hit_rate": 0.0,
|
2327
|
-
# "version": "
|
2328
|
-
# "alloc_count":
|
2327
|
+
# "version": "3.0.5",
|
2328
|
+
# "alloc_count": 157,
|
2329
2329
|
# "command_version": 1,
|
2330
|
-
# "starttime":
|
2330
|
+
# "starttime": 1372040812,
|
2331
2331
|
# "default_command_version": 1
|
2332
2332
|
# }
|
2333
2333
|
# ]
|
@@ -3478,10 +3478,10 @@ status
|
|
3478
3478
|
# "max_command_version": 2,
|
3479
3479
|
# "n_queries": 0,
|
3480
3480
|
# "cache_hit_rate": 0.0,
|
3481
|
-
# "version": "3.0.
|
3482
|
-
# "alloc_count":
|
3481
|
+
# "version": "3.0.5",
|
3482
|
+
# "alloc_count": 136,
|
3483
3483
|
# "command_version": 1,
|
3484
|
-
# "starttime":
|
3484
|
+
# "starttime": 1372040831,
|
3485
3485
|
# "default_command_version": 1
|
3486
3486
|
# }
|
3487
3487
|
# ]
|
@@ -3554,12 +3554,20 @@ Execution example:
|
|
3554
3554
|
.sp
|
3555
3555
|
.nf
|
3556
3556
|
.ft C
|
3557
|
-
% groonga \-p 80 \-d \-\-protocol http /tmp/groonga\-databases/introduction.db
|
3557
|
+
% sudo groonga \-p 80 \-d \-\-protocol http /tmp/groonga\-databases/introduction.db
|
3558
3558
|
%
|
3559
3559
|
.ft P
|
3560
3560
|
.fi
|
3561
3561
|
.UNINDENT
|
3562
3562
|
.UNINDENT
|
3563
|
+
.sp
|
3564
|
+
\fBNOTE:\fP
|
3565
|
+
.INDENT 0.0
|
3566
|
+
.INDENT 3.5
|
3567
|
+
You must have root privileges if you listen on the port number 80 (well known port).
|
3568
|
+
There is no such a limitation about the port number 1024 or over.
|
3569
|
+
.UNINDENT
|
3570
|
+
.UNINDENT
|
3563
3571
|
.SS How to send a command to an HTTP server
|
3564
3572
|
.sp
|
3565
3573
|
You can send a command to an HTTP server by sending a GET request to /d/COMMAND_NAME. Command parameters can be passed as parameters of the GET request. The format is "?NAME_1=VALUE_1&NAME_2=VALUE_2&...".
|
@@ -3586,10 +3594,10 @@ status
|
|
3586
3594
|
# "max_command_version": 2,
|
3587
3595
|
# "n_queries": 0,
|
3588
3596
|
# "cache_hit_rate": 0.0,
|
3589
|
-
# "version": "3.0.
|
3590
|
-
# "alloc_count":
|
3597
|
+
# "version": "3.0.5",
|
3598
|
+
# "alloc_count": 137,
|
3591
3599
|
# "command_version": 1,
|
3592
|
-
# "starttime":
|
3600
|
+
# "starttime": 1372040831,
|
3593
3601
|
# "default_command_version": 1
|
3594
3602
|
# }
|
3595
3603
|
# ]
|
@@ -3890,6 +3898,14 @@ select \-\-table ToyBox \-\-output_columns _key,name
|
|
3890
3898
|
.sp
|
3891
3899
|
The date and time type of groonga is Time. Actually, a Time column stores a date and time as the number of microseconds since the Epoch, 1970\-01\-01 00:00:00. A Time value can represent a date and time before the Epoch because the actual data type is a signed integer. Note that \fB/reference/commands/load\fP and \fB/reference/commands/select\fP commands use a decimal number to represent a data and time in seconds. The default value is 0.0, which means the Epoch.
|
3892
3900
|
.sp
|
3901
|
+
\fBNOTE:\fP
|
3902
|
+
.INDENT 0.0
|
3903
|
+
.INDENT 3.5
|
3904
|
+
Groonga internally holds the value of Epoch as pair of integer. The first integer represents the value of seconds, on the other hand, the second integer represents the value of micro seconds.
|
3905
|
+
So, groonga shows the value of Epoch as floating point. Integral part means the value of seconds, fraction part means the value of micro seconds.
|
3906
|
+
.UNINDENT
|
3907
|
+
.UNINDENT
|
3908
|
+
.sp
|
3893
3909
|
The following example creates a Time column and updates existing records. The first record has the default value because not updated.
|
3894
3910
|
.sp
|
3895
3911
|
Execution example:
|
@@ -6651,6 +6667,7 @@ table_create \-\-name Users \-\-flags TABLE_HASH_KEY \-\-key_type ShortText
|
|
6651
6667
|
table_create \-\-name Comments \-\-flags TABLE_HASH_KEY \-\-key_type ShortText
|
6652
6668
|
table_create \-\-name HashTags \-\-flags TABLE_HASH_KEY \-\-key_type ShortText
|
6653
6669
|
table_create \-\-name Bigram \-\-flags TABLE_PAT_KEY|KEY_NORMALIZE \-\-key_type ShortText \-\-default_tokenizer TokenBigram
|
6670
|
+
table_create \-\-name GeoIndex \-\-flags TABLE_PAT_KEY \-\-key_type WGS84GeoPoint
|
6654
6671
|
|
6655
6672
|
column_create \-\-table Users \-\-name name \-\-flags COLUMN_SCALAR \-\-type ShortText
|
6656
6673
|
column_create \-\-table Users \-\-name follower \-\-flags COLUMN_VECTOR \-\-type Users
|
@@ -6673,6 +6690,9 @@ column_create \-\-table HashTags \-\-name hash_index \-\-flags COLUMN_INDEX \-\-
|
|
6673
6690
|
|
6674
6691
|
column_create \-\-table Bigram \-\-name users_index \-\-flags COLUMN_INDEX|WITH_POSITION|WITH_SECTION \-\-type Users \-\-source name,location_str,description
|
6675
6692
|
column_create \-\-table Bigram \-\-name comment_index \-\-flags COLUMN_INDEX|WITH_POSITION \-\-type Comments \-\-source comment
|
6693
|
+
|
6694
|
+
column_create \-\-table GeoIndex \-\-name users_location \-\-type Users \-\-flags COLUMN_INDEX \-\-source location
|
6695
|
+
column_create \-\-table GeoIndex \-\-name comments_location \-\-type Comments \-\-flags COLUMN_INDEX \-\-source location
|
6676
6696
|
.ft P
|
6677
6697
|
.fi
|
6678
6698
|
.UNINDENT
|
@@ -6767,6 +6787,17 @@ Usersテーブルのfavoritesカラムに対するインデックス。
|
|
6767
6787
|
.B \fBcomment_index\fP
|
6768
6788
|
コメント内容「Comments.comment」のインデックス
|
6769
6789
|
.UNINDENT
|
6790
|
+
.SS GeoIndex table
|
6791
|
+
.sp
|
6792
|
+
This is the table which stores indexes of location column to search geo location effectively.
|
6793
|
+
.INDENT 0.0
|
6794
|
+
.TP
|
6795
|
+
.B \fBusers_location\fP
|
6796
|
+
Indexes of location column for Users table
|
6797
|
+
.TP
|
6798
|
+
.B \fBcomments_location\fP
|
6799
|
+
Indexes of location column for Comments table
|
6800
|
+
.UNINDENT
|
6770
6801
|
.SS データのロード
|
6771
6802
|
.sp
|
6772
6803
|
つづいて、テスト用データをロードします。
|
@@ -6917,6 +6948,9 @@ select \-\-table Users \-\-match_columns name,location_str,description \-\-query
|
|
6917
6948
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
6918
6949
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
6919
6950
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
6951
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
6952
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
6953
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
6920
6954
|
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
6921
6955
|
# [[0, 1337566253.89858, 0.000355720520019531], 8]
|
6922
6956
|
# [
|
@@ -7091,16 +7125,16 @@ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x50291
|
|
7091
7125
|
# ]
|
7092
7126
|
# ],
|
7093
7127
|
# [
|
7094
|
-
# "
|
7095
|
-
# "
|
7128
|
+
# "グニャラくん",
|
7129
|
+
# "groonga開発合宿のため羽田空港に来ました! #groonga #travel"
|
7096
7130
|
# ],
|
7097
7131
|
# [
|
7098
7132
|
# "グニャラくん",
|
7099
7133
|
# "groongaなう #groonga"
|
7100
7134
|
# ],
|
7101
7135
|
# [
|
7102
|
-
# "
|
7103
|
-
# "
|
7136
|
+
# "OffGao",
|
7137
|
+
# "@daijiro @tasukuchan 登録してみましたよー!"
|
7104
7138
|
# ],
|
7105
7139
|
# [
|
7106
7140
|
# "OffGao",
|
@@ -7145,11 +7179,11 @@ select \-\-table Comments \-\-filter \(aqgeo_in_circle(location,"127975798x50291
|
|
7145
7179
|
# ]
|
7146
7180
|
# ],
|
7147
7181
|
# [
|
7148
|
-
# "
|
7182
|
+
# "tasukuchan",
|
7149
7183
|
# 2
|
7150
7184
|
# ],
|
7151
7185
|
# [
|
7152
|
-
# "
|
7186
|
+
# "OffGao",
|
7153
7187
|
# 2
|
7154
7188
|
# ]
|
7155
7189
|
# ]
|
@@ -10477,10 +10511,10 @@ Execution example:
|
|
10477
10511
|
"max_command_version": 2,
|
10478
10512
|
"n_queries": 0,
|
10479
10513
|
"cache_hit_rate": 0.0,
|
10480
|
-
"version": "3.0.
|
10481
|
-
"alloc_count":
|
10514
|
+
"version": "3.0.5",
|
10515
|
+
"alloc_count": 157,
|
10482
10516
|
"command_version": 1,
|
10483
|
-
"starttime":
|
10517
|
+
"starttime": 1372040796,
|
10484
10518
|
"default_command_version": 1
|
10485
10519
|
}
|
10486
10520
|
]
|
@@ -13289,7 +13323,17 @@ Execution example:
|
|
13289
13323
|
.nf
|
13290
13324
|
.ft C
|
13291
13325
|
normalize NormalizerAuto "aBcDe 123"
|
13292
|
-
# [
|
13326
|
+
# [
|
13327
|
+
# [
|
13328
|
+
# 0,
|
13329
|
+
# 1337566253.89858,
|
13330
|
+
# 0.000355720520019531
|
13331
|
+
# ],
|
13332
|
+
# {
|
13333
|
+
# "normalized": "abcde 123",
|
13334
|
+
# "types": []
|
13335
|
+
# }
|
13336
|
+
# ]
|
13293
13337
|
.ft P
|
13294
13338
|
.fi
|
13295
13339
|
.UNINDENT
|
@@ -13923,7 +13967,7 @@ select Nonexistent
|
|
13923
13967
|
# [
|
13924
13968
|
# "grn_select",
|
13925
13969
|
# "proc.c",
|
13926
|
-
#
|
13970
|
+
# 778
|
13927
13971
|
# ]
|
13928
13972
|
# ]
|
13929
13973
|
# ]
|
@@ -16138,14 +16182,14 @@ status
|
|
16138
16182
|
# 0.000355720520019531
|
16139
16183
|
# ],
|
16140
16184
|
# {
|
16141
|
-
# "uptime":
|
16185
|
+
# "uptime": 6,
|
16142
16186
|
# "max_command_version": 2,
|
16143
|
-
# "n_queries":
|
16187
|
+
# "n_queries": 39,
|
16144
16188
|
# "cache_hit_rate": 0.0,
|
16145
|
-
# "version": "3.0.
|
16146
|
-
# "alloc_count":
|
16189
|
+
# "version": "3.0.5",
|
16190
|
+
# "alloc_count": 303,
|
16147
16191
|
# "command_version": 1,
|
16148
|
-
# "starttime":
|
16192
|
+
# "starttime": 1372040777,
|
16149
16193
|
# "default_command_version": 1
|
16150
16194
|
# }
|
16151
16195
|
# ]
|
@@ -17355,6 +17399,87 @@ tokenize tokenizer
|
|
17355
17399
|
.sp
|
17356
17400
|
Here is a simple example.
|
17357
17401
|
.sp
|
17402
|
+
Execution example:
|
17403
|
+
.INDENT 0.0
|
17404
|
+
.INDENT 3.5
|
17405
|
+
.sp
|
17406
|
+
.nf
|
17407
|
+
.ft C
|
17408
|
+
tokenize TokenBigram "Fulltext Search"
|
17409
|
+
# [
|
17410
|
+
# [
|
17411
|
+
# 0,
|
17412
|
+
# 1337566253.89858,
|
17413
|
+
# 0.000355720520019531
|
17414
|
+
# ],
|
17415
|
+
# [
|
17416
|
+
# {
|
17417
|
+
# "position": 0,
|
17418
|
+
# "value": "Fu"
|
17419
|
+
# },
|
17420
|
+
# {
|
17421
|
+
# "position": 1,
|
17422
|
+
# "value": "ul"
|
17423
|
+
# },
|
17424
|
+
# {
|
17425
|
+
# "position": 2,
|
17426
|
+
# "value": "ll"
|
17427
|
+
# },
|
17428
|
+
# {
|
17429
|
+
# "position": 3,
|
17430
|
+
# "value": "lt"
|
17431
|
+
# },
|
17432
|
+
# {
|
17433
|
+
# "position": 4,
|
17434
|
+
# "value": "te"
|
17435
|
+
# },
|
17436
|
+
# {
|
17437
|
+
# "position": 5,
|
17438
|
+
# "value": "ex"
|
17439
|
+
# },
|
17440
|
+
# {
|
17441
|
+
# "position": 6,
|
17442
|
+
# "value": "xt"
|
17443
|
+
# },
|
17444
|
+
# {
|
17445
|
+
# "position": 7,
|
17446
|
+
# "value": "t "
|
17447
|
+
# },
|
17448
|
+
# {
|
17449
|
+
# "position": 8,
|
17450
|
+
# "value": " S"
|
17451
|
+
# },
|
17452
|
+
# {
|
17453
|
+
# "position": 9,
|
17454
|
+
# "value": "Se"
|
17455
|
+
# },
|
17456
|
+
# {
|
17457
|
+
# "position": 10,
|
17458
|
+
# "value": "ea"
|
17459
|
+
# },
|
17460
|
+
# {
|
17461
|
+
# "position": 11,
|
17462
|
+
# "value": "ar"
|
17463
|
+
# },
|
17464
|
+
# {
|
17465
|
+
# "position": 12,
|
17466
|
+
# "value": "rc"
|
17467
|
+
# },
|
17468
|
+
# {
|
17469
|
+
# "position": 13,
|
17470
|
+
# "value": "ch"
|
17471
|
+
# },
|
17472
|
+
# {
|
17473
|
+
# "position": 14,
|
17474
|
+
# "value": "h"
|
17475
|
+
# }
|
17476
|
+
# ]
|
17477
|
+
# ]
|
17478
|
+
.ft P
|
17479
|
+
.fi
|
17480
|
+
.UNINDENT
|
17481
|
+
.UNINDENT
|
17482
|
+
.sp
|
17358
17483
|
It has only required parameters. \fBtokenizer\fP is \fBTokenBigram\fP and
|
17359
17484
|
\fBstring\fP is \fB"Fulltext Search"\fP. It returns tokens that is
|
17360
17485
|
generated by tokenizing \fB"Fulltext Search"\fP with \fBTokenBigram\fP
|
@@ -17374,6 +17499,87 @@ See \fB/reference/tokenizers\fP about built\-in tokenizers.
|
|
17374
17499
|
.sp
|
17375
17500
|
Here is an example to use \fBTokenTrigram\fP tokenizer.
|
17376
17501
|
.sp
|
17502
|
+
Execution example:
|
17503
|
+
.INDENT 0.0
|
17504
|
+
.INDENT 3.5
|
17505
|
+
.sp
|
17506
|
+
.nf
|
17507
|
+
.ft C
|
17508
|
+
tokenize TokenTrigram "Fulltext Search"
|
17509
|
+
# [
|
17510
|
+
# [
|
17511
|
+
# 0,
|
17512
|
+
# 1337566253.89858,
|
17513
|
+
# 0.000355720520019531
|
17514
|
+
# ],
|
17515
|
+
# [
|
17516
|
+
# {
|
17517
|
+
# "position": 0,
|
17518
|
+
# "value": "Ful"
|
17519
|
+
# },
|
17520
|
+
# {
|
17521
|
+
# "position": 1,
|
17522
|
+
# "value": "ull"
|
17523
|
+
# },
|
17524
|
+
# {
|
17525
|
+
# "position": 2,
|
17526
|
+
# "value": "llt"
|
17527
|
+
# },
|
17528
|
+
# {
|
17529
|
+
# "position": 3,
|
17530
|
+
# "value": "lte"
|
17531
|
+
# },
|
17532
|
+
# {
|
17533
|
+
# "position": 4,
|
17534
|
+
# "value": "tex"
|
17535
|
+
# },
|
17536
|
+
# {
|
17537
|
+
# "position": 5,
|
17538
|
+
# "value": "ext"
|
17539
|
+
# },
|
17540
|
+
# {
|
17541
|
+
# "position": 6,
|
17542
|
+
# "value": "xt "
|
17543
|
+
# },
|
17544
|
+
# {
|
17545
|
+
# "position": 7,
|
17546
|
+
# "value": "t S"
|
17547
|
+
# },
|
17548
|
+
# {
|
17549
|
+
# "position": 8,
|
17550
|
+
# "value": " Se"
|
17551
|
+
# },
|
17552
|
+
# {
|
17553
|
+
# "position": 9,
|
17554
|
+
# "value": "Sea"
|
17555
|
+
# },
|
17556
|
+
# {
|
17557
|
+
# "position": 10,
|
17558
|
+
# "value": "ear"
|
17559
|
+
# },
|
17560
|
+
# {
|
17561
|
+
# "position": 11,
|
17562
|
+
# "value": "arc"
|
17563
|
+
# },
|
17564
|
+
# {
|
17565
|
+
# "position": 12,
|
17566
|
+
# "value": "rch"
|
17567
|
+
# },
|
17568
|
+
# {
|
17569
|
+
# "position": 13,
|
17570
|
+
# "value": "ch"
|
17571
|
+
# },
|
17572
|
+
# {
|
17573
|
+
# "position": 14,
|
17574
|
+
# "value": "h"
|
17575
|
+
# }
|
17576
|
+
# ]
|
17577
|
+
# ]
|
17578
|
+
.ft P
|
17579
|
+
.fi
|
17580
|
+
.UNINDENT
|
17581
|
+
.UNINDENT
|
17582
|
+
.sp
|
17377
17583
|
If you want to use other tokenizers, you need to register additional
|
17378
17584
|
tokenizer plugin by \fBregister\fP command. For example, you can use
|
17379
17585
|
MySQL compatible normalizer by registering \fI\%groonga-normalizer-mysql\fP.
|
@@ -17384,6 +17590,187 @@ include spaces in \fBstring\fP, you need to quote \fBstring\fP by
|
|
17384
17590
|
single quotation (\fB\(aq\fP) or double quotation (\fB"\fP).
|
17385
17591
|
.sp
|
17386
17592
|
Here is an example to use spaces in \fBstring\fP.
|
17593
|
+
.sp
|
17594
|
+
Execution example:
|
17595
|
+
.INDENT 0.0
|
17596
|
+
.INDENT 3.5
|
17597
|
+
.sp
|
17598
|
+
.nf
|
17599
|
+
.ft C
|
17600
|
+
tokenize TokenBigram "Groonga is a fast fulltext earch engine!"
|
17601
|
+
# [
|
17602
|
+
# [
|
17603
|
+
# 0,
|
17604
|
+
# 1337566253.89858,
|
17605
|
+
# 0.000355720520019531
|
17606
|
+
# ],
|
17607
|
+
# [
|
17608
|
+
# {
|
17609
|
+
# "position": 0,
|
17610
|
+
# "value": "Gr"
|
17611
|
+
# },
|
17612
|
+
# {
|
17613
|
+
# "position": 1,
|
17614
|
+
# "value": "ro"
|
17615
|
+
# },
|
17616
|
+
# {
|
17617
|
+
# "position": 2,
|
17618
|
+
# "value": "oo"
|
17619
|
+
# },
|
17620
|
+
# {
|
17621
|
+
# "position": 3,
|
17622
|
+
# "value": "on"
|
17623
|
+
# },
|
17624
|
+
# {
|
17625
|
+
# "position": 4,
|
17626
|
+
# "value": "ng"
|
17627
|
+
# },
|
17628
|
+
# {
|
17629
|
+
# "position": 5,
|
17630
|
+
# "value": "ga"
|
17631
|
+
# },
|
17632
|
+
# {
|
17633
|
+
# "position": 6,
|
17634
|
+
# "value": "a "
|
17635
|
+
# },
|
17636
|
+
# {
|
17637
|
+
# "position": 7,
|
17638
|
+
# "value": " i"
|
17639
|
+
# },
|
17640
|
+
# {
|
17641
|
+
# "position": 8,
|
17642
|
+
# "value": "is"
|
17643
|
+
# },
|
17644
|
+
# {
|
17645
|
+
# "position": 9,
|
17646
|
+
# "value": "s "
|
17647
|
+
# },
|
17648
|
+
# {
|
17649
|
+
# "position": 10,
|
17650
|
+
# "value": " a"
|
17651
|
+
# },
|
17652
|
+
# {
|
17653
|
+
# "position": 11,
|
17654
|
+
# "value": "a "
|
17655
|
+
# },
|
17656
|
+
# {
|
17657
|
+
# "position": 12,
|
17658
|
+
# "value": " f"
|
17659
|
+
# },
|
17660
|
+
# {
|
17661
|
+
# "position": 13,
|
17662
|
+
# "value": "fa"
|
17663
|
+
# },
|
17664
|
+
# {
|
17665
|
+
# "position": 14,
|
17666
|
+
# "value": "as"
|
17667
|
+
# },
|
17668
|
+
# {
|
17669
|
+
# "position": 15,
|
17670
|
+
# "value": "st"
|
17671
|
+
# },
|
17672
|
+
# {
|
17673
|
+
# "position": 16,
|
17674
|
+
# "value": "t "
|
17675
|
+
# },
|
17676
|
+
# {
|
17677
|
+
# "position": 17,
|
17678
|
+
# "value": " f"
|
17679
|
+
# },
|
17680
|
+
# {
|
17681
|
+
# "position": 18,
|
17682
|
+
# "value": "fu"
|
17683
|
+
# },
|
17684
|
+
# {
|
17685
|
+
# "position": 19,
|
17686
|
+
# "value": "ul"
|
17687
|
+
# },
|
17688
|
+
# {
|
17689
|
+
# "position": 20,
|
17690
|
+
# "value": "ll"
|
17691
|
+
# },
|
17692
|
+
# {
|
17693
|
+
# "position": 21,
|
17694
|
+
# "value": "lt"
|
17695
|
+
# },
|
17696
|
+
# {
|
17697
|
+
# "position": 22,
|
17698
|
+
# "value": "te"
|
17699
|
+
# },
|
17700
|
+
# {
|
17701
|
+
# "position": 23,
|
17702
|
+
# "value": "ex"
|
17703
|
+
# },
|
17704
|
+
# {
|
17705
|
+
# "position": 24,
|
17706
|
+
# "value": "xt"
|
17707
|
+
# },
|
17708
|
+
# {
|
17709
|
+
# "position": 25,
|
17710
|
+
# "value": "t "
|
17711
|
+
# },
|
17712
|
+
# {
|
17713
|
+
# "position": 26,
|
17714
|
+
# "value": " e"
|
17715
|
+
# },
|
17716
|
+
# {
|
17717
|
+
# "position": 27,
|
17718
|
+
# "value": "ea"
|
17719
|
+
# },
|
17720
|
+
# {
|
17721
|
+
# "position": 28,
|
17722
|
+
# "value": "ar"
|
17723
|
+
# },
|
17724
|
+
# {
|
17725
|
+
# "position": 29,
|
17726
|
+
# "value": "rc"
|
17727
|
+
# },
|
17728
|
+
# {
|
17729
|
+
# "position": 30,
|
17730
|
+
# "value": "ch"
|
17731
|
+
# },
|
17732
|
+
# {
|
17733
|
+
# "position": 31,
|
17734
|
+
# "value": "h "
|
17735
|
+
# },
|
17736
|
+
# {
|
17737
|
+
# "position": 32,
|
17738
|
+
# "value": " e"
|
17739
|
+
# },
|
17740
|
+
# {
|
17741
|
+
# "position": 33,
|
17742
|
+
# "value": "en"
|
17743
|
+
# },
|
17744
|
+
# {
|
17745
|
+
# "position": 34,
|
17746
|
+
# "value": "ng"
|
17747
|
+
# },
|
17748
|
+
# {
|
17749
|
+
# "position": 35,
|
17750
|
+
# "value": "gi"
|
17751
|
+
# },
|
17752
|
+
# {
|
17753
|
+
# "position": 36,
|
17754
|
+
# "value": "in"
|
17755
|
+
# },
|
17756
|
+
# {
|
17757
|
+
# "position": 37,
|
17758
|
+
# "value": "ne"
|
17759
|
+
# },
|
17760
|
+
# {
|
17761
|
+
# "position": 38,
|
17762
|
+
# "value": "e!"
|
17763
|
+
# },
|
17764
|
+
# {
|
17765
|
+
# "position": 39,
|
17766
|
+
# "value": "!"
|
17767
|
+
# }
|
17768
|
+
# ]
|
17769
|
+
# ]
|
17770
|
+
.ft P
|
17771
|
+
.fi
|
17772
|
+
.UNINDENT
|
17773
|
+
.UNINDENT
|
17387
17774
|
.SS Optional parameters
|
17388
17775
|
.sp
|
17389
17776
|
There are optional parameters.
|
@@ -17399,17 +17786,204 @@ tokenizing.
|
|
17399
17786
|
.sp
|
17400
17787
|
Here is an example that doesn\(aqt use normalizer.
|
17401
17788
|
.sp
|
17789
|
+
Execution example:
|
17790
|
+
.INDENT 0.0
|
17791
|
+
.INDENT 3.5
|
17792
|
+
.sp
|
17793
|
+
.nf
|
17794
|
+
.ft C
|
17795
|
+
tokenize TokenBigram "Fulltext Search"
|
17796
|
+
# [
|
17797
|
+
# [
|
17798
|
+
# 0,
|
17799
|
+
# 1337566253.89858,
|
17800
|
+
# 0.000355720520019531
|
17801
|
+
# ],
|
17802
|
+
# [
|
17803
|
+
# {
|
17804
|
+
# "position": 0,
|
17805
|
+
# "value": "Fu"
|
17806
|
+
# },
|
17807
|
+
# {
|
17808
|
+
# "position": 1,
|
17809
|
+
# "value": "ul"
|
17810
|
+
# },
|
17811
|
+
# {
|
17812
|
+
# "position": 2,
|
17813
|
+
# "value": "ll"
|
17814
|
+
# },
|
17815
|
+
# {
|
17816
|
+
# "position": 3,
|
17817
|
+
# "value": "lt"
|
17818
|
+
# },
|
17819
|
+
# {
|
17820
|
+
# "position": 4,
|
17821
|
+
# "value": "te"
|
17822
|
+
# },
|
17823
|
+
# {
|
17824
|
+
# "position": 5,
|
17825
|
+
# "value": "ex"
|
17826
|
+
# },
|
17827
|
+
# {
|
17828
|
+
# "position": 6,
|
17829
|
+
# "value": "xt"
|
17830
|
+
# },
|
17831
|
+
# {
|
17832
|
+
# "position": 7,
|
17833
|
+
# "value": "t "
|
17834
|
+
# },
|
17835
|
+
# {
|
17836
|
+
# "position": 8,
|
17837
|
+
# "value": " S"
|
17838
|
+
# },
|
17839
|
+
# {
|
17840
|
+
# "position": 9,
|
17841
|
+
# "value": "Se"
|
17842
|
+
# },
|
17843
|
+
# {
|
17844
|
+
# "position": 10,
|
17845
|
+
# "value": "ea"
|
17846
|
+
# },
|
17847
|
+
# {
|
17848
|
+
# "position": 11,
|
17849
|
+
# "value": "ar"
|
17850
|
+
# },
|
17851
|
+
# {
|
17852
|
+
# "position": 12,
|
17853
|
+
# "value": "rc"
|
17854
|
+
# },
|
17855
|
+
# {
|
17856
|
+
# "position": 13,
|
17857
|
+
# "value": "ch"
|
17858
|
+
# },
|
17859
|
+
# {
|
17860
|
+
# "position": 14,
|
17861
|
+
# "value": "h"
|
17862
|
+
# }
|
17863
|
+
# ]
|
17864
|
+
# ]
|
17865
|
+
.ft P
|
17866
|
+
.fi
|
17867
|
+
.UNINDENT
|
17868
|
+
.UNINDENT
|
17869
|
+
.sp
|
17402
17870
|
All alphabets are tokenized by two characters. For example, \fBFu\fP is
|
17403
17871
|
a token.
|
17404
17872
|
.sp
|
17405
17873
|
Here is an example that uses normalizer.
|
17406
17874
|
.sp
|
17875
|
+
Execution example:
|
17876
|
+
.INDENT 0.0
|
17877
|
+
.INDENT 3.5
|
17878
|
+
.sp
|
17879
|
+
.nf
|
17880
|
+
.ft C
|
17881
|
+
tokenize TokenBigram "Fulltext Search" NormalizerAuto
|
17882
|
+
# [
|
17883
|
+
# [
|
17884
|
+
# 0,
|
17885
|
+
# 1337566253.89858,
|
17886
|
+
# 0.000355720520019531
|
17887
|
+
# ],
|
17888
|
+
# [
|
17889
|
+
# {
|
17890
|
+
# "position": 0,
|
17891
|
+
# "value": "fulltext"
|
17892
|
+
# },
|
17893
|
+
# {
|
17894
|
+
# "position": 1,
|
17895
|
+
# "value": "search"
|
17896
|
+
# }
|
17897
|
+
# ]
|
17898
|
+
# ]
|
17899
|
+
.ft P
|
17900
|
+
.fi
|
17901
|
+
.UNINDENT
|
17902
|
+
.UNINDENT
|
17903
|
+
.sp
|
17407
17904
|
Continuous alphabets are tokenized as one token. For example,
|
17408
17905
|
\fBfulltext\fP is a token.
|
17409
17906
|
.sp
|
17410
17907
|
If you want to tokenize by two characters with noramlizer, use
|
17411
17908
|
\fBTokenBigramSplitSymbolAlpha\fP.
|
17412
17909
|
.sp
|
17910
|
+
Execution example:
|
17911
|
+
.INDENT 0.0
|
17912
|
+
.INDENT 3.5
|
17913
|
+
.sp
|
17914
|
+
.nf
|
17915
|
+
.ft C
|
17916
|
+
tokenize TokenBigramSplitSymbolAlpha "Fulltext Search" NormalizerAuto
|
17917
|
+
# [
|
17918
|
+
# [
|
17919
|
+
# 0,
|
17920
|
+
# 1337566253.89858,
|
17921
|
+
# 0.000355720520019531
|
17922
|
+
# ],
|
17923
|
+
# [
|
17924
|
+
# {
|
17925
|
+
# "position": 0,
|
17926
|
+
# "value": "fu"
|
17927
|
+
# },
|
17928
|
+
# {
|
17929
|
+
# "position": 1,
|
17930
|
+
# "value": "ul"
|
17931
|
+
# },
|
17932
|
+
# {
|
17933
|
+
# "position": 2,
|
17934
|
+
# "value": "ll"
|
17935
|
+
# },
|
17936
|
+
# {
|
17937
|
+
# "position": 3,
|
17938
|
+
# "value": "lt"
|
17939
|
+
# },
|
17940
|
+
# {
|
17941
|
+
# "position": 4,
|
17942
|
+
# "value": "te"
|
17943
|
+
# },
|
17944
|
+
# {
|
17945
|
+
# "position": 5,
|
17946
|
+
# "value": "ex"
|
17947
|
+
# },
|
17948
|
+
# {
|
17949
|
+
# "position": 6,
|
17950
|
+
# "value": "xt"
|
17951
|
+
# },
|
17952
|
+
# {
|
17953
|
+
# "position": 7,
|
17954
|
+
# "value": "t"
|
17955
|
+
# },
|
17956
|
+
# {
|
17957
|
+
# "position": 8,
|
17958
|
+
# "value": "se"
|
17959
|
+
# },
|
17960
|
+
# {
|
17961
|
+
# "position": 9,
|
17962
|
+
# "value": "ea"
|
17963
|
+
# },
|
17964
|
+
# {
|
17965
|
+
# "position": 10,
|
17966
|
+
# "value": "ar"
|
17967
|
+
# },
|
17968
|
+
# {
|
17969
|
+
# "position": 11,
|
17970
|
+
# "value": "rc"
|
17971
|
+
# },
|
17972
|
+
# {
|
17973
|
+
# "position": 12,
|
17974
|
+
# "value": "ch"
|
17975
|
+
# },
|
17976
|
+
# {
|
17977
|
+
# "position": 13,
|
17978
|
+
# "value": "h"
|
17979
|
+
# }
|
17980
|
+
# ]
|
17981
|
+
# ]
|
17982
|
+
.ft P
|
17983
|
+
.fi
|
17984
|
+
.UNINDENT
|
17985
|
+
.UNINDENT
|
17986
|
+
.sp
|
17413
17987
|
All alphabets are tokenized by two characters. And they are normalized
|
17414
17988
|
to lower case characters. For example, \fBfu\fP is a token.
|
17415
17989
|
.SS \fBflags\fP
|
@@ -17446,10 +18020,43 @@ _
|
|
17446
18020
|
.sp
|
17447
18021
|
Here is an example that uses \fBENABLE_TOKENIZED_DELIMITER\fP.
|
17448
18022
|
.sp
|
18023
|
+
Execution example:
|
18024
|
+
.INDENT 0.0
|
18025
|
+
.INDENT 3.5
|
18026
|
+
.sp
|
18027
|
+
.nf
|
18028
|
+
.ft C
|
18029
|
+
tokenize TokenDelimit "Fulltext Seacrch" NormalizerAuto ENABLE_TOKENIZED_DELIMITER
|
18030
|
+
# [
|
18031
|
+
# [
|
18032
|
+
# 0,
|
18033
|
+
# 1337566253.89858,
|
18034
|
+
# 0.000355720520019531
|
18035
|
+
# ],
|
18036
|
+
# [
|
18037
|
+
# {
|
18038
|
+
# "position": 0,
|
18039
|
+
# "value": "full"
|
18040
|
+
# },
|
18041
|
+
# {
|
18042
|
+
# "position": 1,
|
18043
|
+
# "value": "text sea"
|
18044
|
+
# },
|
18045
|
+
# {
|
18046
|
+
# "position": 2,
|
18047
|
+
# "value": "crch"
|
18048
|
+
# }
|
18049
|
+
# ]
|
18050
|
+
# ]
|
18051
|
+
.ft P
|
18052
|
+
.fi
|
18053
|
+
.UNINDENT
|
18054
|
+
.UNINDENT
|
18055
|
+
.sp
|
17449
18056
|
\fBTokenDelimit\fP tokenizer is one of tokenized delimiter supported
|
17450
18057
|
tokenizer. \fBENABLE_TOKENIZED_DELIMITER\fP enables tokenized delimiter.
|
17451
18058
|
Tokenized delimiter is special character that indicates token
|
17452
|
-
border. It is \
|
18059
|
+
border. It is \fBU+FFFE\fP. The character is not assigned any
|
17453
18060
|
character. It means that the character is not appeared in normal
|
17454
18061
|
string. So the character is good character for this puropose. If
|
17455
18062
|
\fBENABLE_TOKENIZED_DELIMITER\fP is enabled, the target string is
|
@@ -17481,7 +18088,7 @@ See \fB/reference/command/output_format\fP about \fBHEADER\fP.
|
|
17481
18088
|
\fBtokens\fP
|
17482
18089
|
.INDENT 0.0
|
17483
18090
|
.INDENT 3.5
|
17484
|
-
|
18091
|
+
\fBtokens\fP is an array of token. Token is an object that has the following
|
17485
18092
|
attributes.
|
17486
18093
|
.TS
|
17487
18094
|
center;
|
@@ -23734,6 +24341,120 @@ true
|
|
23734
24341
|
脚注
|
23735
24342
|
.IP [1] 5
|
23736
24343
|
TokyoGeoPoint(日本測地系座標)かWGS84GeoPoint(世界測地系座標)のいずれかを指定できます。
|
24344
|
+
.SS html_untag
|
24345
|
+
.SS Summary
|
24346
|
+
.sp
|
24347
|
+
\fBhtml_untag\fP strips HTML tags from HTML and outputs plain text.
|
24348
|
+
.sp
|
24349
|
+
\fBhtml_untag\fP is used in \fB\-\-output_columns\fP described at \fB/reference/commands/select\fP.
|
24350
|
+
.SS Syntax
|
24351
|
+
.sp
|
24352
|
+
\fBhtml_untag\fP requires only one argument. It is \fBcolumn\fP.
|
24353
|
+
.INDENT 0.0
|
24354
|
+
.INDENT 3.5
|
24355
|
+
.sp
|
24356
|
+
.nf
|
24357
|
+
.ft C
|
24358
|
+
html_untag(column)
|
24359
|
+
.ft P
|
24360
|
+
.fi
|
24361
|
+
.UNINDENT
|
24362
|
+
.UNINDENT
|
24363
|
+
.SS Usage
|
24364
|
+
.sp
|
24365
|
+
Here are a schema definition and sample data to show usage.
|
24366
|
+
.sp
|
24367
|
+
Sample schema:
|
24368
|
+
.sp
|
24369
|
+
Execution example:
|
24370
|
+
.INDENT 0.0
|
24371
|
+
.INDENT 3.5
|
24372
|
+
.sp
|
24373
|
+
.nf
|
24374
|
+
.ft C
|
24375
|
+
table_create WebClips TABLE_NO_KEY
|
24376
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
24377
|
+
column_create WebClips url COLUMN_SCALAR ShortText
|
24378
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
24379
|
+
column_create WebClips content COLUMN_SCALAR ShortText
|
24380
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
24381
|
+
column_create WebClips tag COLUMN_VECTOR ShortText
|
24382
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
24383
|
+
.ft P
|
24384
|
+
.fi
|
24385
|
+
.UNINDENT
|
24386
|
+
.UNINDENT
|
24387
|
+
.sp
|
24388
|
+
Sample data:
|
24389
|
+
.sp
|
24390
|
+
Execution example:
|
24391
|
+
.INDENT 0.0
|
24392
|
+
.INDENT 3.5
|
24393
|
+
.sp
|
24394
|
+
.nf
|
24395
|
+
.ft C
|
24396
|
+
load \-\-table WebClips
|
24397
|
+
[
|
24398
|
+
{"_key": 1, "url": "http://groonga.org", "tag": ["groonga"], "content": "groonga is <span class=\(aqemphasize\(aq>fast</span>"},
|
24399
|
+
{"_key": 2, "url": "http://mroonga.org", "tag": ["mroonga"], "content": "mroonga is <span class=\e"emphasize\e">fast</span>"},
|
24400
|
+
]
|
24401
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
24402
|
+
.ft P
|
24403
|
+
.fi
|
24404
|
+
.UNINDENT
|
24405
|
+
.UNINDENT
|
24406
|
+
.sp
|
24407
|
+
Here is the simple usage of \fBhtml_untag\fP function which strips HTML tags from content of column.
|
24408
|
+
.sp
|
24409
|
+
Execution example:
|
24410
|
+
.INDENT 0.0
|
24411
|
+
.INDENT 3.5
|
24412
|
+
.sp
|
24413
|
+
.nf
|
24414
|
+
.ft C
|
24415
|
+
select WebClips \-\-output_columns "_key, html_untag(content)" \-\-command_version 2
|
24416
|
+
# [
|
24417
|
+
# [
|
24418
|
+
# 0,
|
24419
|
+
# 1337566253.89858,
|
24420
|
+
# 0.000355720520019531
|
24421
|
+
# ],
|
24422
|
+
# [
|
24423
|
+
# [
|
24424
|
+
# [
|
24425
|
+
# 2
|
24426
|
+
# ],
|
24427
|
+
# [
|
24428
|
+
# [
|
24429
|
+
# "html_untag",
|
24430
|
+
# "null"
|
24431
|
+
# ]
|
24432
|
+
# ],
|
24433
|
+
# [
|
24434
|
+
# "groonga is fast"
|
24435
|
+
# ],
|
24436
|
+
# [
|
24437
|
+
# "mroonga is fast"
|
24438
|
+
# ]
|
24439
|
+
# ]
|
24440
|
+
# ]
|
24441
|
+
# ]
|
24442
|
+
.ft P
|
24443
|
+
.fi
|
24444
|
+
.UNINDENT
|
24445
|
+
.UNINDENT
|
24446
|
+
.sp
|
24447
|
+
When executing the above query, you can see "span" tag with "class" attribute is stripped.
|
24448
|
+
Note that you must specify \fB\-\-command_version 2\fP to use \fBhtml_untag\fP function.
|
24449
|
+
.SS Parameters
|
24450
|
+
.sp
|
24451
|
+
There is one required parameter, \fBcolumn\fP.
|
24452
|
+
.SS \fBcolumn\fP
|
24453
|
+
.sp
|
24454
|
+
It specifies a column of the table.
|
24455
|
+
.SS Return value
|
24456
|
+
.sp
|
24457
|
+
\fBhtml_untag\fP returns plain text which is stripped HTML tags from content of column.
|
23737
24458
|
.SS now
|
23738
24459
|
.SS 名前
|
23739
24460
|
.sp
|
@@ -24053,24 +24774,24 @@ keywords on your purpose.
|
|
24053
24774
|
.sp
|
24054
24775
|
There are two required parameter, \fBmatch_column\fP and \fBquery_string\fP.
|
24055
24776
|
.SS \fBmatch_column\fP
|
24056
|
-
.INDENT 0.0
|
24057
|
-
.INDENT 3.5
|
24058
|
-
It specifies \fBmatch_column\fP equivalent parameter.
|
24059
|
-
.UNINDENT
|
24060
|
-
.UNINDENT
|
24061
24777
|
.sp
|
24062
|
-
|
24778
|
+
It specifies the default target column for fulltext search by
|
24779
|
+
\fBquery_string\fP parameter value. It is the same role as
|
24780
|
+
\fBmatch_column\fP parameter in \fBselect\fP.
|
24781
|
+
.sp
|
24782
|
+
See \fIselect\-match\-columns\fP about \fBmatch_column\fP parameter in
|
24783
|
+
\fBselect\fP.
|
24063
24784
|
.SS \fBquery_string\fP
|
24064
|
-
.INDENT 0.0
|
24065
|
-
.INDENT 3.5
|
24066
|
-
It specifies \fBquery\fP equivalent parameter.
|
24067
|
-
.UNINDENT
|
24068
|
-
.UNINDENT
|
24069
24785
|
.sp
|
24070
|
-
|
24786
|
+
It specifies the search condition in
|
24787
|
+
\fB/reference/grn_expr/query_syntax\fP. It is the same role as
|
24788
|
+
\fBquery\fP parameter in \fBselect\fP.
|
24789
|
+
.sp
|
24790
|
+
See \fIselect\-match\-columns\fP about \fBquery\fP parameter in
|
24791
|
+
\fBselect\fP.
|
24071
24792
|
.SS Optional parameter
|
24072
24793
|
.sp
|
24073
|
-
There
|
24794
|
+
There are some optional parameters.
|
24074
24795
|
.SS \fBquery_expander\fP
|
24075
24796
|
.sp
|
24076
24797
|
It specifies the plugin name for query expansion.
|
@@ -24086,7 +24807,9 @@ by following format such as \fB${TABLE}.${COLUMN}\fP for query expansion.
|
|
24086
24807
|
See \fIquery\-expander\fP about details.
|
24087
24808
|
.SS Return value
|
24088
24809
|
.sp
|
24089
|
-
\fBquery\fP returns
|
24810
|
+
\fBquery\fP returns whether any record is matched or not. If one or more
|
24811
|
+
records are matched, it returns \fBtrue\fP. Otherwise, it returns
|
24812
|
+
\fBfalse\fP.
|
24090
24813
|
.SS TODO
|
24091
24814
|
.INDENT 0.0
|
24092
24815
|
.IP \(bu 2
|
@@ -24351,18 +25074,20 @@ Support options by object literal.
|
|
24351
25074
|
.SS sub_filter
|
24352
25075
|
.SS Summary
|
24353
25076
|
.sp
|
24354
|
-
\fBsub_filter\fP evaluates \
|
25077
|
+
\fBsub_filter\fP evaluates \fBfilter_string\fP in \fBscope\fP context.
|
24355
25078
|
.sp
|
24356
|
-
\fBsub_filter\fP can be used in only \fB\-\-filter\fP in
|
25079
|
+
\fBsub_filter\fP can be used in only \fB\-\-filter\fP in
|
25080
|
+
\fB/reference/commands/select\fP.
|
24357
25081
|
.SS Syntax
|
24358
25082
|
.sp
|
24359
|
-
\fBsub_filter\fP requires two arguments
|
25083
|
+
\fBsub_filter\fP requires two arguments. They are \fBscope\fP and
|
25084
|
+
\fBfilter_string\fP.
|
24360
25085
|
.INDENT 0.0
|
24361
25086
|
.INDENT 3.5
|
24362
25087
|
.sp
|
24363
25088
|
.nf
|
24364
25089
|
.ft C
|
24365
|
-
sub_filter(
|
25090
|
+
sub_filter(scope, filter_string)
|
24366
25091
|
.ft P
|
24367
25092
|
.fi
|
24368
25093
|
.UNINDENT
|
@@ -24479,7 +25204,7 @@ select Blog \-\-output_columns _key \-\-filter "comments.name @ \e"A\e" && comme
|
|
24479
25204
|
.UNINDENT
|
24480
25205
|
.UNINDENT
|
24481
25206
|
.sp
|
24482
|
-
When executing above query, not only "groonga\(aqs blog", but also "mroonga\(aqs blog".
|
25207
|
+
When executing the above query, not only "groonga\(aqs blog", but also "mroonga\(aqs blog".
|
24483
25208
|
This is not what you want because user "A" does not mention "groonga" to "mroonga\(aqs blog".
|
24484
25209
|
.sp
|
24485
25210
|
Without sub_filter, it means that following conditions are met.
|
@@ -24525,40 +25250,44 @@ select Blog \-\-output_columns _key \-\-filter \(aqsub_filter(comments, "name @
|
|
24525
25250
|
.UNINDENT
|
24526
25251
|
.UNINDENT
|
24527
25252
|
.sp
|
24528
|
-
On the other hand, executing above query returns the intended result.
|
25253
|
+
On the other hand, executing the above query returns the intended result.
|
24529
25254
|
Because the arguments of sub_filter is evaluated in comments column\(aqs context.
|
24530
25255
|
.sp
|
24531
|
-
It means that sub_filter requires following condition is met.
|
25256
|
+
It means that sub_filter requires the following condition is met.
|
24532
25257
|
.INDENT 0.0
|
24533
25258
|
.IP \(bu 2
|
24534
25259
|
There are the records that user "A" mentions about "groonga".
|
24535
25260
|
.UNINDENT
|
24536
25261
|
.SS Parameters
|
24537
25262
|
.sp
|
24538
|
-
There are two required parameter, \
|
24539
|
-
.SS \
|
24540
|
-
.INDENT 0.0
|
24541
|
-
.INDENT 3.5
|
24542
|
-
It specifies \fBmatch_column\fP equivalent parameter.
|
24543
|
-
.UNINDENT
|
24544
|
-
.UNINDENT
|
25263
|
+
There are two required parameter, \fBscope\fP and \fBfilter_string\fP.
|
25264
|
+
.SS \fBscope\fP
|
24545
25265
|
.sp
|
24546
|
-
|
24547
|
-
.
|
24548
|
-
.
|
24549
|
-
|
24550
|
-
It specifies \fBquery\fP equivalent parameter.
|
24551
|
-
.UNINDENT
|
24552
|
-
.UNINDENT
|
25266
|
+
It specifies a column of the table that is specified by \fBtable\fP
|
25267
|
+
parameter in \fBselect\fP. \fBfilter_string\fP is evaluated in the column
|
25268
|
+
context. It means that \fBfilter_string\fP is evaluated like
|
25269
|
+
\fBselect \-\-table TYPE_OF_THE_COLUMN \-\-filter FILTER_STRING\fP.
|
24553
25270
|
.sp
|
24554
|
-
|
25271
|
+
The specified column type must be a table. In other words, the column
|
25272
|
+
type must be reference type.
|
25273
|
+
.sp
|
25274
|
+
See \fIselect\-table\fP about \fBtable\fP parameter in \fBselect\fP.
|
25275
|
+
.SS \fBfilter_string\fP
|
25276
|
+
.sp
|
25277
|
+
It specifies a search condition in
|
25278
|
+
\fB/reference/grn_expr/script_syntax\fP. It is evaluated in \fBscope\fP
|
25279
|
+
context.
|
24555
25280
|
.SS Return value
|
24556
25281
|
.sp
|
24557
|
-
\fBsub_filter\fP returns
|
25282
|
+
\fBsub_filter\fP returns whether any record is matched or not. If one or
|
25283
|
+
more records are matched, it returns \fBtrue\fP. Otherwise, it returns
|
25284
|
+
\fBfalse\fP.
|
24558
25285
|
.SS See also
|
24559
25286
|
.INDENT 0.0
|
24560
25287
|
.IP \(bu 2
|
24561
25288
|
\fB/reference/commands/select\fP
|
25289
|
+
.IP \(bu 2
|
25290
|
+
\fB/reference/grn_expr/script_syntax\fP
|
24562
25291
|
.UNINDENT
|
24563
25292
|
.SS Indexing
|
24564
25293
|
.sp
|
@@ -27345,7 +28074,7 @@ jekyllのインストールを行ったら、以下のコマンドでローカ
|
|
27345
28074
|
.sp
|
27346
28075
|
.nf
|
27347
28076
|
.ft C
|
27348
|
-
% jekyll
|
28077
|
+
% jekyll serve \-\-watch
|
27349
28078
|
.ft P
|
27350
28079
|
.fi
|
27351
28080
|
.UNINDENT
|