rroonga 2.1.3-x86-mingw32 → 3.0.0-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/grndump +1 -1
- data/doc/text/news.textile +22 -4
- data/ext/groonga/rb-grn-accessor.c +1 -1
- data/ext/groonga/rb-grn-array-cursor.c +1 -1
- data/ext/groonga/rb-grn-array.c +218 -2
- data/ext/groonga/rb-grn-column.c +1 -1
- data/ext/groonga/rb-grn-context.c +1 -1
- data/ext/groonga/rb-grn-database.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-double-array-trie.c +1 -1
- data/ext/groonga/rb-grn-encoding-support.c +1 -1
- data/ext/groonga/rb-grn-encoding.c +1 -1
- data/ext/groonga/rb-grn-exception.c +1 -1
- data/ext/groonga/rb-grn-expression-builder.c +1 -1
- data/ext/groonga/rb-grn-expression.c +1 -1
- data/ext/groonga/rb-grn-fix-size-column.c +1 -1
- data/ext/groonga/rb-grn-geo-point.c +1 -1
- data/ext/groonga/rb-grn-hash-cursor.c +1 -1
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +1 -1
- data/ext/groonga/rb-grn-index-cursor.c +1 -1
- data/ext/groonga/rb-grn-logger.c +1 -1
- data/ext/groonga/rb-grn-normalizer.c +1 -1
- data/ext/groonga/rb-grn-object.c +7 -7
- data/ext/groonga/rb-grn-operator.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie-cursor.c +1 -1
- data/ext/groonga/rb-grn-patricia-trie.c +1 -1
- data/ext/groonga/rb-grn-plugin.c +1 -1
- data/ext/groonga/rb-grn-posting.c +1 -1
- data/ext/groonga/rb-grn-procedure.c +1 -1
- data/ext/groonga/rb-grn-record.c +1 -1
- data/ext/groonga/rb-grn-snippet.c +1 -1
- data/ext/groonga/rb-grn-table-cursor-key-support.c +1 -1
- data/ext/groonga/rb-grn-table-cursor.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +1 -1
- data/ext/groonga/rb-grn-table.c +1 -1
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +1 -1
- data/ext/groonga/rb-grn-variable-size-column.c +1 -1
- data/ext/groonga/rb-grn-variable.c +1 -1
- data/ext/groonga/rb-grn.h +4 -4
- data/ext/groonga/rb-groonga.c +1 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/groonga/context.rb +93 -13
- data/rroonga-build.rb +2 -2
- data/test/groonga-test-utils.rb +2 -1
- data/test/test-array.rb +86 -2
- data/test/test-context.rb +22 -2
- 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/etc/groonga/httpd/groonga-httpd.conf +1 -1
- data/vendor/local/include/groonga/groonga.h +16 -8
- data/vendor/local/include/groonga/groonga/nfkc.h +32 -0
- data/vendor/local/include/groonga/groonga/plugin.h +39 -21
- data/vendor/local/include/groonga/groonga/tokenizer.h +4 -0
- 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.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +9 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +12 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +20 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +28 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +12 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +8 -4
- 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 +36 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +11 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +112 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/check.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_remove.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +79 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/define_selector.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/defrag.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +51 -51
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_put.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_reopen.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +85 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +98 -89
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/status.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_remove.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +73 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +124 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +24 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +5 -5
- 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 +58 -57
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -16
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +18 -18
- data/vendor/local/share/doc/groonga/en/html/contribution/development/document.html +25 -25
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +61 -61
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +104 -95
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +138 -0
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +37 -37
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +9 -9
- 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 +36 -30
- data/vendor/local/share/doc/groonga/en/html/install.html +6 -6
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +23 -9
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +30 -9
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +16 -9
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +13 -13
- 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 +37 -9
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +16 -16
- data/vendor/local/share/doc/groonga/en/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/news.html +251 -120
- 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 +28 -23
- data/vendor/local/share/doc/groonga/en/html/reference/api.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 +25 -22
- 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 +8 -9
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +71 -87
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +8 -9
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +8 -9
- 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 +13 -14
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +321 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +35 -36
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +32 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +32 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +70 -69
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +34 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +34 -35
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +37 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +218 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +28 -28
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +23 -23
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +294 -288
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +38 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +31 -31
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +47 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +27 -27
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +33 -34
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +268 -0
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +11 -9
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +6 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +292 -0
- 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 +10 -10
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +32 -7
- 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 +10 -10
- 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 +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +9 -9
- 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.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +9 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +12 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +20 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +28 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +12 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +8 -4
- 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 +36 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +11 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +112 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/check.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_remove.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +79 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/define_selector.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/defrag.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +51 -51
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_put.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_reopen.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +85 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +98 -89
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/status.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_remove.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +73 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +124 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +24 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +5 -5
- 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 +58 -57
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -16
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +18 -18
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/document.html +25 -25
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +61 -61
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +104 -95
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +139 -0
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +37 -37
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +9 -9
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/geolocation_search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/index.html +36 -30
- data/vendor/local/share/doc/groonga/ja/html/install.html +6 -6
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +19 -9
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +24 -9
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +14 -9
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +13 -13
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +8 -8
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +29 -9
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +16 -16
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news.html +225 -124
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/news/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 +28 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +5 -5
- 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 +25 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +71 -87
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +8 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +8 -9
- 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 +13 -14
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +321 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +35 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +32 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +56 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +34 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +34 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +37 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +213 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +28 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +23 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +235 -229
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +38 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +31 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +47 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +33 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +268 -0
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +11 -9
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +6 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +291 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +7 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +30 -7
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/pseudo_column.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +10 -10
- 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 +9 -9
- 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 +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/completion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/correction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/suggestion.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/suggest/tutorial.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/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 +9 -9
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +5 -5
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +10 -10
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +5 -5
- data/vendor/local/share/man/ja/man1/groonga.1 +1231 -420
- data/vendor/local/share/man/man1/groonga.1 +1370 -521
- metadata +1025 -998
- data/lib/1.8/groonga.so +0 -0
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>4.10. マイクロブログ検索システムの作成 — groonga
|
10
|
+
<title>4.10. マイクロブログ検索システムの作成 — groonga v3.0.2ドキュメント</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: '
|
18
|
+
VERSION: '3.0.2',
|
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
|
29
|
+
<link rel="top" title="groonga v3.0.2ドキュメント" href="../index.html" />
|
30
30
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
31
31
|
<link rel="next" title="4.11. クエリ拡張" href="query_expansion.html" />
|
32
32
|
<link rel="prev" title="4.9. 全文検索の語彙表に対する追加情報" href="lexicon.html" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="lexicon.html" title="4.9. 全文検索の語彙表に対する追加情報"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../index.html">groonga
|
64
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
65
65
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
@@ -1002,7 +1002,7 @@ load --table Comments
|
|
1002
1002
|
<li class="right" >
|
1003
1003
|
<a href="lexicon.html" title="4.9. 全文検索の語彙表に対する追加情報"
|
1004
1004
|
>前へ</a> |</li>
|
1005
|
-
<li><a href="../index.html">groonga
|
1005
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
1006
1006
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
1007
1007
|
</ul>
|
1008
1008
|
</div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>4.2. リモートアクセス — groonga
|
10
|
+
<title>4.2. リモートアクセス — groonga v3.0.2ドキュメント</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: '
|
18
|
+
VERSION: '3.0.2',
|
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
|
29
|
+
<link rel="top" title="groonga v3.0.2ドキュメント" href="../index.html" />
|
30
30
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
31
31
|
<link rel="next" title="4.3. いろいろなデータの保存" href="data.html" />
|
32
32
|
<link rel="prev" title="4.1. 基本的な操作" href="introduction.html" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="introduction.html" title="4.1. 基本的な操作"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../index.html">groonga
|
64
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
65
65
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
@@ -353,7 +353,7 @@ select --table Site --query title:@this
|
|
353
353
|
<li class="right" >
|
354
354
|
<a href="introduction.html" title="4.1. 基本的な操作"
|
355
355
|
>前へ</a> |</li>
|
356
|
-
<li><a href="../index.html">groonga
|
356
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
357
357
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
358
358
|
</ul>
|
359
359
|
</div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>4.8. パトリシア木による前方一致検索 — groonga
|
10
|
+
<title>4.8. パトリシア木による前方一致検索 — groonga v3.0.2ドキュメント</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: '
|
18
|
+
VERSION: '3.0.2',
|
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
|
29
|
+
<link rel="top" title="groonga v3.0.2ドキュメント" href="../index.html" />
|
30
30
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
31
31
|
<link rel="next" title="4.9. 全文検索の語彙表に対する追加情報" href="lexicon.html" />
|
32
32
|
<link rel="prev" title="4.7. match_columnsパラメータ" href="match_columns.html" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="match_columns.html" title="4.7. match_columnsパラメータ"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../index.html">groonga
|
64
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
65
65
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
@@ -290,7 +290,7 @@ select --table PatSuffix --filter '_key @$ "ゆき" && ori
|
|
290
290
|
<li class="right" >
|
291
291
|
<a href="match_columns.html" title="4.7. match_columnsパラメータ"
|
292
292
|
>前へ</a> |</li>
|
293
|
-
<li><a href="../index.html">groonga
|
293
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
294
294
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
295
295
|
</ul>
|
296
296
|
</div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>4.11. クエリ拡張 — groonga
|
10
|
+
<title>4.11. クエリ拡張 — groonga v3.0.2ドキュメント</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: '
|
18
|
+
VERSION: '3.0.2',
|
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
|
29
|
+
<link rel="top" title="groonga v3.0.2ドキュメント" href="../index.html" />
|
30
30
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
31
31
|
<link rel="next" title="5. サジェスト" href="../suggest.html" />
|
32
32
|
<link rel="prev" title="4.10. マイクロブログ検索システムの作成" href="micro_blog.html" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="micro_blog.html" title="4.10. マイクロブログ検索システムの作成"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../index.html">groonga
|
64
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
65
65
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
@@ -73,7 +73,7 @@
|
|
73
73
|
|
74
74
|
<div class="section" id="id1">
|
75
75
|
<h1>4.11. クエリ拡張<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
76
|
-
<p>groongaでは、 <a class="reference internal" href="../reference/commands/select.html"><em>select</em></a> コマンドに
|
76
|
+
<p>groongaでは、 <a class="reference internal" href="../reference/commands/select.html"><em>select</em></a> コマンドにquery_expanderパラメータを指定することによって、ユーザが指定した検索文字列を適宜拡張することが可能です。</p>
|
77
77
|
<p>たとえば、ユーザが'シークヮーサー'という文字列で検索した場合に、'シークヮーサー OR シークァーサー'で検索した場合と同一の結果を返すことによって、本来ユーザが必要とする結果をよりもれなく検索できるようになります。</p>
|
78
78
|
<div class="section" id="id2">
|
79
79
|
<h2>4.11.1. 準備<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
@@ -111,7 +111,7 @@ load --table Synonym
|
|
111
111
|
</div>
|
112
112
|
<div class="section" id="id3">
|
113
113
|
<h2>4.11.2. 検索<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
114
|
-
<p>それでは実際に、準備した置換テーブルを使ってみましょう。まずは、
|
114
|
+
<p>それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expanderパラメータを指定せずにselectコマンドを使って検索してみます。</p>
|
115
115
|
<p>実行例:</p>
|
116
116
|
<div class="highlight-none"><div class="highlight"><pre>select Doc --match_columns body --query "シークァーサー"
|
117
117
|
# [
|
@@ -183,9 +183,9 @@ select Doc --match_columns body --query "シークヮーサー"
|
|
183
183
|
# ]
|
184
184
|
</pre></div>
|
185
185
|
</div>
|
186
|
-
<p>指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、
|
186
|
+
<p>指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expanderパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。</p>
|
187
187
|
<p>実行例:</p>
|
188
|
-
<div class="highlight-none"><div class="highlight"><pre>select Doc --match_columns body --query "シークァーサー" --
|
188
|
+
<div class="highlight-none"><div class="highlight"><pre>select Doc --match_columns body --query "シークァーサー" --query_expander Synonym.body
|
189
189
|
# [
|
190
190
|
# [
|
191
191
|
# 0,
|
@@ -224,7 +224,7 @@ select Doc --match_columns body --query "シークヮーサー"
|
|
224
224
|
# ]
|
225
225
|
# ]
|
226
226
|
# ]
|
227
|
-
select Doc --match_columns body --query "シークヮーサー" --
|
227
|
+
select Doc --match_columns body --query "シークヮーサー" --query_expander Synonym.body
|
228
228
|
# [
|
229
229
|
# [
|
230
230
|
# 0,
|
@@ -324,7 +324,7 @@ select Doc --match_columns body --query "シークヮーサー" --quer
|
|
324
324
|
<li class="right" >
|
325
325
|
<a href="micro_blog.html" title="4.10. マイクロブログ検索システムの作成"
|
326
326
|
>前へ</a> |</li>
|
327
|
-
<li><a href="../index.html">groonga
|
327
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
328
328
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
329
329
|
</ul>
|
330
330
|
</div>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>4.4. さまざまな検索条件の指定 — groonga
|
10
|
+
<title>4.4. さまざまな検索条件の指定 — groonga v3.0.2ドキュメント</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: '
|
18
|
+
VERSION: '3.0.2',
|
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
|
29
|
+
<link rel="top" title="groonga v3.0.2ドキュメント" href="../index.html" />
|
30
30
|
<link rel="up" title="4. チュートリアル" href="../tutorial.html" />
|
31
31
|
<link rel="next" title="4.5. ドリルダウン" href="drilldown.html" />
|
32
32
|
<link rel="prev" title="4.3. いろいろなデータの保存" href="data.html" />
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<li class="right" >
|
62
62
|
<a href="data.html" title="4.3. いろいろなデータの保存"
|
63
63
|
accesskey="P">前へ</a> |</li>
|
64
|
-
<li><a href="../index.html">groonga
|
64
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
65
65
|
<li><a href="../tutorial.html" accesskey="U">4. チュートリアル</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
@@ -608,7 +608,7 @@ select --table Site --query "_id:1 OR _id:2" --output_columns _key,loc
|
|
608
608
|
<li class="right" >
|
609
609
|
<a href="data.html" title="4.3. いろいろなデータの保存"
|
610
610
|
>前へ</a> |</li>
|
611
|
-
<li><a href="../index.html">groonga
|
611
|
+
<li><a href="../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
612
612
|
<li><a href="../tutorial.html" >4. チュートリアル</a> »</li>
|
613
613
|
</ul>
|
614
614
|
</div>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
.TH "GROONGA" "1" "2013 年
|
1
|
+
.TH "GROONGA" "1" "2013 年 03 月 28 日" "3.0.2" "groonga"
|
2
2
|
.SH NAME
|
3
3
|
groonga \- groongaのドキュメント
|
4
4
|
.
|
@@ -100,7 +100,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
100
100
|
.sp
|
101
101
|
.nf
|
102
102
|
.ft C
|
103
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-
|
103
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x86.exe
|
104
104
|
.ft P
|
105
105
|
.fi
|
106
106
|
.sp
|
@@ -112,7 +112,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
112
112
|
.sp
|
113
113
|
.nf
|
114
114
|
.ft C
|
115
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-
|
115
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x64.exe
|
116
116
|
.ft P
|
117
117
|
.fi
|
118
118
|
.sp
|
@@ -129,7 +129,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
129
129
|
.sp
|
130
130
|
.nf
|
131
131
|
.ft C
|
132
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-
|
132
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x86.zip
|
133
133
|
.ft P
|
134
134
|
.fi
|
135
135
|
.sp
|
@@ -141,7 +141,7 @@ groonga は独自のカラムストアを持つ列指向のデータベースと
|
|
141
141
|
.sp
|
142
142
|
.nf
|
143
143
|
.ft C
|
144
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-
|
144
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/windows/groonga/groonga\-3.0.2\-x64.zip
|
145
145
|
.ft P
|
146
146
|
.fi
|
147
147
|
.sp
|
@@ -171,7 +171,7 @@ Microsoft Visual Studio 2010 Expressがインストールする \fBVisual Studio
|
|
171
171
|
.nf
|
172
172
|
.ft C
|
173
173
|
> cd c:\eUsers\e%USERNAME%\eDownloads
|
174
|
-
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-
|
174
|
+
> "c:\e\eProgram Files\e\eInternet Explorer\e\eiexplore.exe" http://packages.groonga.org/source/groonga/groonga\-3.0.2.zip
|
175
175
|
.ft P
|
176
176
|
.fi
|
177
177
|
.sp
|
@@ -181,7 +181,7 @@ groongaのソースフォルダへと移動します:
|
|
181
181
|
.sp
|
182
182
|
.nf
|
183
183
|
.ft C
|
184
|
-
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-
|
184
|
+
> cd c:\eUsers\e%USERNAME%\eDownloads\egroonga\-3.0.2
|
185
185
|
.ft P
|
186
186
|
.fi
|
187
187
|
.sp
|
@@ -189,7 +189,7 @@ groongaのソースフォルダへと移動します:
|
|
189
189
|
.sp
|
190
190
|
.nf
|
191
191
|
.ft C
|
192
|
-
groonga\-
|
192
|
+
groonga\-3.0.2> cmake . \-G "Visual Studio 10 Win64" \-DCMAKE_INSTALL_PREFIX=C:\egroonga
|
193
193
|
.ft P
|
194
194
|
.fi
|
195
195
|
.sp
|
@@ -197,7 +197,7 @@ Visual C++ 2010 Expressでビルドします:
|
|
197
197
|
.sp
|
198
198
|
.nf
|
199
199
|
.ft C
|
200
|
-
groonga\-
|
200
|
+
groonga\-3.0.2> msbuild groonga.sln /p:Configuration=Release
|
201
201
|
.ft P
|
202
202
|
.fi
|
203
203
|
.sp
|
@@ -205,7 +205,7 @@ Visual C++ 2010 Expressでビルドします:
|
|
205
205
|
.sp
|
206
206
|
.nf
|
207
207
|
.ft C
|
208
|
-
groonga\-
|
208
|
+
groonga\-3.0.2> msbuild groonga.sln /p:Configuration=Release /t:Install
|
209
209
|
.ft P
|
210
210
|
.fi
|
211
211
|
.sp
|
@@ -215,7 +215,7 @@ Visual Studio 2010でビルドします:
|
|
215
215
|
.sp
|
216
216
|
.nf
|
217
217
|
.ft C
|
218
|
-
groonga\-
|
218
|
+
groonga\-3.0.2> devenv groonga.sln /Build Release
|
219
219
|
.ft P
|
220
220
|
.fi
|
221
221
|
.sp
|
@@ -223,7 +223,7 @@ Visual Studio 2010でインストールします:
|
|
223
223
|
.sp
|
224
224
|
.nf
|
225
225
|
.ft C
|
226
|
-
groonga\-
|
226
|
+
groonga\-3.0.2> devenv groonga.sln /Build Release /Project Install
|
227
227
|
.ft P
|
228
228
|
.fi
|
229
229
|
.sp
|
@@ -259,9 +259,9 @@ groonga\-2.1.2> devenv groonga.sln /Build Release /Project Install
|
|
259
259
|
.sp
|
260
260
|
.nf
|
261
261
|
.ft C
|
262
|
-
% curl \-O http://packages.groonga.org/source/groonga/groonga\-
|
263
|
-
% tar xvzf groonga\-
|
264
|
-
% cd groonga\-
|
262
|
+
% curl \-O http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
263
|
+
% tar xvzf groonga\-3.0.2.tar.gz
|
264
|
+
% cd groonga\-3.0.2
|
265
265
|
.ft P
|
266
266
|
.fi
|
267
267
|
.sp
|
@@ -285,7 +285,7 @@ configureを実行します( \fBconfigure\fP のオプションについては
|
|
285
285
|
.sp
|
286
286
|
.nf
|
287
287
|
.ft C
|
288
|
-
% sudo make
|
288
|
+
% sudo make install
|
289
289
|
.ft P
|
290
290
|
.fi
|
291
291
|
.SS Debian GNU/Linux
|
@@ -351,6 +351,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
351
351
|
% sudo aptitude \-V \-D \-y install groonga\-munin\-plugins
|
352
352
|
.ft P
|
353
353
|
.fi
|
354
|
+
.sp
|
355
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
356
|
+
.sp
|
357
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
358
|
+
.sp
|
359
|
+
.nf
|
360
|
+
.ft C
|
361
|
+
% sudo aptitude \-V \-D \-y install groonga\-normalizer\-mysql
|
362
|
+
.ft P
|
363
|
+
.fi
|
354
364
|
.SS wheezy
|
355
365
|
.sp
|
356
366
|
groongaのaptリポジトリを追加します。
|
@@ -394,6 +404,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
394
404
|
% sudo aptitude \-V \-D \-y install groonga\-munin\-plugins
|
395
405
|
.ft P
|
396
406
|
.fi
|
407
|
+
.sp
|
408
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
409
|
+
.sp
|
410
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
411
|
+
.sp
|
412
|
+
.nf
|
413
|
+
.ft C
|
414
|
+
% sudo aptitude \-V \-D \-y install groonga\-normalizer\-mysql
|
415
|
+
.ft P
|
416
|
+
.fi
|
397
417
|
.SS sid
|
398
418
|
.sp
|
399
419
|
groongaのaptリポジトリを追加します。
|
@@ -437,6 +457,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
437
457
|
% sudo aptitude \-V \-D \-y install groonga\-munin\-plugins
|
438
458
|
.ft P
|
439
459
|
.fi
|
460
|
+
.sp
|
461
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
462
|
+
.sp
|
463
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
464
|
+
.sp
|
465
|
+
.nf
|
466
|
+
.ft C
|
467
|
+
% sudo aptitude \-V \-D \-y install groonga\-normalizer\-mysql
|
468
|
+
.ft P
|
469
|
+
.fi
|
440
470
|
.SS ソースからビルド
|
441
471
|
.sp
|
442
472
|
groongaをビルドするために必要なパッケージをインストールします:
|
@@ -451,9 +481,9 @@ groongaをビルドするために必要なパッケージをインストール
|
|
451
481
|
.sp
|
452
482
|
.nf
|
453
483
|
.ft C
|
454
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-
|
455
|
-
% tar xvzf groonga\-
|
456
|
-
% cd groonga\-
|
484
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
485
|
+
% tar xvzf groonga\-3.0.2.tar.gz
|
486
|
+
% cd groonga\-3.0.2
|
457
487
|
.ft P
|
458
488
|
.fi
|
459
489
|
.sp
|
@@ -477,7 +507,7 @@ configureを実行します( \fBconfigure\fP のオプションについては
|
|
477
507
|
.sp
|
478
508
|
.nf
|
479
509
|
.ft C
|
480
|
-
% sudo make
|
510
|
+
% sudo make install
|
481
511
|
.ft P
|
482
512
|
.fi
|
483
513
|
.SS Ubuntu
|
@@ -553,6 +583,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
553
583
|
% sudo apt\-get \-y install groonga\-munin\-plugins
|
554
584
|
.ft P
|
555
585
|
.fi
|
586
|
+
.sp
|
587
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
588
|
+
.sp
|
589
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
590
|
+
.sp
|
591
|
+
.nf
|
592
|
+
.ft C
|
593
|
+
% sudo apt\-get \-y install groonga\-normalizer\-mysql
|
594
|
+
.ft P
|
595
|
+
.fi
|
556
596
|
.SS 11.10 Oneiric Ocelot
|
557
597
|
.IP ノート
|
558
598
|
groongaをインストールするためにuniverseリポジトリを有効にしてください:
|
@@ -606,6 +646,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
606
646
|
% sudo apt\-get \-y install groonga\-munin\-plugins
|
607
647
|
.ft P
|
608
648
|
.fi
|
649
|
+
.sp
|
650
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
651
|
+
.sp
|
652
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
653
|
+
.sp
|
654
|
+
.nf
|
655
|
+
.ft C
|
656
|
+
% sudo apt\-get \-y install groonga\-normalizer\-mysql
|
657
|
+
.ft P
|
658
|
+
.fi
|
609
659
|
.SS 12.04 LTS Precise Pangolin
|
610
660
|
.IP ノート
|
611
661
|
groongaをインストールするためにuniverseリポジトリを有効にしてください:
|
@@ -659,6 +709,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
659
709
|
% sudo apt\-get \-y install groonga\-munin\-plugins
|
660
710
|
.ft P
|
661
711
|
.fi
|
712
|
+
.sp
|
713
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
714
|
+
.sp
|
715
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
716
|
+
.sp
|
717
|
+
.nf
|
718
|
+
.ft C
|
719
|
+
% sudo apt\-get \-y install groonga\-normalizer\-mysql
|
720
|
+
.ft P
|
721
|
+
.fi
|
662
722
|
.SS 12.10 Quantal Quetzal
|
663
723
|
.IP ノート
|
664
724
|
groongaをインストールするためにuniverseリポジトリを有効にしてください:
|
@@ -712,6 +772,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
712
772
|
% sudo apt\-get \-y install groonga\-munin\-plugins
|
713
773
|
.ft P
|
714
774
|
.fi
|
775
|
+
.sp
|
776
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
777
|
+
.sp
|
778
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
779
|
+
.sp
|
780
|
+
.nf
|
781
|
+
.ft C
|
782
|
+
% sudo apt\-get \-y install groonga\-normalizer\-mysql
|
783
|
+
.ft P
|
784
|
+
.fi
|
715
785
|
.SS ソースからビルド
|
716
786
|
.sp
|
717
787
|
groongaをビルドするために必要なパッケージをインストールします:
|
@@ -726,9 +796,9 @@ groongaをビルドするために必要なパッケージをインストール
|
|
726
796
|
.sp
|
727
797
|
.nf
|
728
798
|
.ft C
|
729
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-
|
730
|
-
% tar xvzf groonga\-
|
731
|
-
% cd groonga\-
|
799
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
800
|
+
% tar xvzf groonga\-3.0.2.tar.gz
|
801
|
+
% cd groonga\-3.0.2
|
732
802
|
.ft P
|
733
803
|
.fi
|
734
804
|
.sp
|
@@ -752,7 +822,7 @@ configureを実行します( \fBconfigure\fP のオプションについては
|
|
752
822
|
.sp
|
753
823
|
.nf
|
754
824
|
.ft C
|
755
|
-
% sudo make
|
825
|
+
% sudo make install
|
756
826
|
.ft P
|
757
827
|
.fi
|
758
828
|
.SS CentOS
|
@@ -854,6 +924,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
854
924
|
% sudo yum install \-y groonga\-munin\-plugins
|
855
925
|
.ft P
|
856
926
|
.fi
|
927
|
+
.sp
|
928
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
929
|
+
.sp
|
930
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
931
|
+
.sp
|
932
|
+
.nf
|
933
|
+
.ft C
|
934
|
+
% sudo yum install \-y install groonga\-normalizer\-mysql
|
935
|
+
.ft P
|
936
|
+
.fi
|
857
937
|
.SS CentOS 6
|
858
938
|
.sp
|
859
939
|
インストール:
|
@@ -914,6 +994,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
914
994
|
% sudo yum install \-y groonga\-munin\-plugins
|
915
995
|
.ft P
|
916
996
|
.fi
|
997
|
+
.sp
|
998
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
999
|
+
.sp
|
1000
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
1001
|
+
.sp
|
1002
|
+
.nf
|
1003
|
+
.ft C
|
1004
|
+
% sudo yum install \-y install groonga\-normalizer\-mysql
|
1005
|
+
.ft P
|
1006
|
+
.fi
|
917
1007
|
.SS ソースからビルド
|
918
1008
|
.sp
|
919
1009
|
groongaをビルドするために必要なパッケージをインストールします:
|
@@ -928,9 +1018,9 @@ groongaをビルドするために必要なパッケージをインストール
|
|
928
1018
|
.sp
|
929
1019
|
.nf
|
930
1020
|
.ft C
|
931
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-
|
932
|
-
% tar xvzf groonga\-
|
933
|
-
% cd groonga\-
|
1021
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
1022
|
+
% tar xvzf groonga\-3.0.2.tar.gz
|
1023
|
+
% cd groonga\-3.0.2
|
934
1024
|
.ft P
|
935
1025
|
.fi
|
936
1026
|
.sp
|
@@ -954,7 +1044,7 @@ configureを実行します( \fBconfigure\fP のオプションについては
|
|
954
1044
|
.sp
|
955
1045
|
.nf
|
956
1046
|
.ft C
|
957
|
-
% sudo make
|
1047
|
+
% sudo make install
|
958
1048
|
.ft P
|
959
1049
|
.fi
|
960
1050
|
.SS Fedora
|
@@ -1028,6 +1118,16 @@ groonga\-munin\-pluginsパッケージのインストール:
|
|
1028
1118
|
% sudo yum install \-y groonga\-munin\-plugins
|
1029
1119
|
.ft P
|
1030
1120
|
.fi
|
1121
|
+
.sp
|
1122
|
+
MySQL互換のノーマライザーをgroongaのプラグインとして提供するパッケージがあります。MySQL互換のノーマライザーを使うには \fBgroonga\-normalizer\-mysql\fP パッケージをインストールしてください。
|
1123
|
+
.sp
|
1124
|
+
groonga\-normalizer\-mysqlパッケージのインストール:
|
1125
|
+
.sp
|
1126
|
+
.nf
|
1127
|
+
.ft C
|
1128
|
+
% sudo yum install \-y install groonga\-normalizer\-mysql
|
1129
|
+
.ft P
|
1130
|
+
.fi
|
1031
1131
|
.SS ソースからビルド
|
1032
1132
|
.sp
|
1033
1133
|
groongaをビルドするために必要なパッケージをインストールします:
|
@@ -1042,9 +1142,9 @@ groongaをビルドするために必要なパッケージをインストール
|
|
1042
1142
|
.sp
|
1043
1143
|
.nf
|
1044
1144
|
.ft C
|
1045
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-
|
1046
|
-
% tar xvzf groonga\-
|
1047
|
-
% cd groonga\-
|
1145
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
1146
|
+
% tar xvzf groonga\-3.0.2.tar.gz
|
1147
|
+
% cd groonga\-3.0.2
|
1048
1148
|
.ft P
|
1049
1149
|
.fi
|
1050
1150
|
.sp
|
@@ -1068,7 +1168,7 @@ configureを実行します( \fBconfigure\fP のオプションについては
|
|
1068
1168
|
.sp
|
1069
1169
|
.nf
|
1070
1170
|
.ft C
|
1071
|
-
% sudo make
|
1171
|
+
% sudo make install
|
1072
1172
|
.ft P
|
1073
1173
|
.fi
|
1074
1174
|
.SS Oracle Solaris
|
@@ -1088,9 +1188,9 @@ groongaをビルドするために必要なパッケージをインストール
|
|
1088
1188
|
.sp
|
1089
1189
|
.nf
|
1090
1190
|
.ft C
|
1091
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-
|
1092
|
-
% gtar xvzf groonga\-
|
1093
|
-
% cd groonga\-
|
1191
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
1192
|
+
% gtar xvzf groonga\-3.0.2.tar.gz
|
1193
|
+
% cd groonga\-3.0.2
|
1094
1194
|
.ft P
|
1095
1195
|
.fi
|
1096
1196
|
.sp
|
@@ -1195,9 +1295,9 @@ groongaはGNUビルドシステムを使っています。以下は一番簡単
|
|
1195
1295
|
.sp
|
1196
1296
|
.nf
|
1197
1297
|
.ft C
|
1198
|
-
% wget http://packages.groonga.org/source/groonga/groonga\-
|
1199
|
-
% tar xvzf groonga\-
|
1200
|
-
% cd groonga\-
|
1298
|
+
% wget http://packages.groonga.org/source/groonga/groonga\-3.0.2.tar.gz
|
1299
|
+
% tar xvzf groonga\-3.0.2.tar.gz
|
1300
|
+
% cd groonga\-3.0.2
|
1201
1301
|
% ./configure
|
1202
1302
|
% make
|
1203
1303
|
% sudo make install
|
@@ -6412,7 +6512,7 @@ select Comments \-\-filter \(aqlast_modified<=1268802000\(aq \-\-output_columns
|
|
6412
6512
|
2010/03/17 14:00:00以前に書かれたコメント5件がヒットしました。また、ドリルダウンの結果も返ってきており、「hsiomaneki」が2件、「グニャラくん」が3件ヒットしていることがわかります。
|
6413
6513
|
.SS クエリ拡張
|
6414
6514
|
.sp
|
6415
|
-
groongaでは、 \fB/reference/commands/select\fP コマンドに
|
6515
|
+
groongaでは、 \fB/reference/commands/select\fP コマンドにquery_expanderパラメータを指定することによって、ユーザが指定した検索文字列を適宜拡張することが可能です。
|
6416
6516
|
.sp
|
6417
6517
|
たとえば、ユーザが\(aqシークヮーサー\(aqという文字列で検索した場合に、\(aqシークヮーサー OR シークァーサー\(aqで検索した場合と同一の結果を返すことによって、本来ユーザが必要とする結果をよりもれなく検索できるようになります。
|
6418
6518
|
.SS 準備
|
@@ -6457,7 +6557,7 @@ load \-\-table Synonym
|
|
6457
6557
|
この例では、ユーザが"シークァーサー"と入力しても、"シークヮーサー"と入力しても、それぞれの異なる表記の文書をもれなく検索するための置換テーブルを作成しています。
|
6458
6558
|
.SS 検索
|
6459
6559
|
.sp
|
6460
|
-
それでは実際に、準備した置換テーブルを使ってみましょう。まずは、
|
6560
|
+
それでは実際に、準備した置換テーブルを使ってみましょう。まずは、query_expanderパラメータを指定せずにselectコマンドを使って検索してみます。
|
6461
6561
|
.sp
|
6462
6562
|
実行例:
|
6463
6563
|
.sp
|
@@ -6534,13 +6634,13 @@ select Doc \-\-match_columns body \-\-query "シークヮーサー"
|
|
6534
6634
|
.ft P
|
6535
6635
|
.fi
|
6536
6636
|
.sp
|
6537
|
-
指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、
|
6637
|
+
指定された文字列に完全に一致するレコードのみがそれぞれヒットします。次に、query_expanderパラメータに、準備したSynonymテーブルのbodyカラムを指定してみましょう。
|
6538
6638
|
.sp
|
6539
6639
|
実行例:
|
6540
6640
|
.sp
|
6541
6641
|
.nf
|
6542
6642
|
.ft C
|
6543
|
-
select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-
|
6643
|
+
select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_expander Synonym.body
|
6544
6644
|
# [
|
6545
6645
|
# [
|
6546
6646
|
# 0,
|
@@ -6579,7 +6679,7 @@ select Doc \-\-match_columns body \-\-query "シークァーサー" \-\-query_ex
|
|
6579
6679
|
# ]
|
6580
6680
|
# ]
|
6581
6681
|
# ]
|
6582
|
-
select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-
|
6682
|
+
select Doc \-\-match_columns body \-\-query "シークヮーサー" \-\-query_expander Synonym.body
|
6583
6683
|
# [
|
6584
6684
|
# [
|
6585
6685
|
# 0,
|
@@ -8546,11 +8646,13 @@ groongaのデータベースは、groongaコマンドかCライブラリイン
|
|
8546
8646
|
.TP
|
8547
8647
|
.B \-a, \-\-address <ip/hostname>
|
8548
8648
|
バージョン 1.2.2 で撤廃: Use \fI\-\-bind\-address\fP instead.
|
8649
|
+
|
8549
8650
|
.UNINDENT
|
8550
8651
|
.INDENT 0.0
|
8551
8652
|
.TP
|
8552
8653
|
.B \-\-bind\-address <ip/hostname>
|
8553
8654
|
バージョン 1.2.2 で追加.
|
8655
|
+
|
8554
8656
|
.sp
|
8555
8657
|
サーバモードかデーモンモードで実行するとき、listenするアドレスを指定します。(デフォルトは \fIhostname\fP の返すホスト名)
|
8556
8658
|
.UNINDENT
|
@@ -9751,12 +9853,15 @@ maxが指定されなかった場合には、クエリキャッシュの最大
|
|
9751
9853
|
.nf
|
9752
9854
|
.ft C
|
9753
9855
|
[以前の設定値]
|
9754
|
-
|
9755
|
-
\(ga\(ga以前の設定値\(ga\(ga
|
9756
|
-
|
9757
|
-
すでに設定されていたクエリキャッシュの最大件数を返す。
|
9758
9856
|
.ft P
|
9759
9857
|
.fi
|
9858
|
+
.sp
|
9859
|
+
\fB以前の設定値\fP
|
9860
|
+
.INDENT 0.0
|
9861
|
+
.INDENT 3.5
|
9862
|
+
すでに設定されていたクエリキャッシュの最大件数を返す。
|
9863
|
+
.UNINDENT
|
9864
|
+
.UNINDENT
|
9760
9865
|
.SS 例
|
9761
9866
|
.sp
|
9762
9867
|
.nf
|
@@ -9801,90 +9906,156 @@ checkコマンドは、groongaプロセス内の指定したオブジェクト
|
|
9801
9906
|
下記のような配列が出力されます。
|
9802
9907
|
|
9803
9908
|
[インデックスの状態, バッファの状態1, バッファの状態2, ...]
|
9804
|
-
|
9805
|
-
\(ga\(gaインデックスの状態\(ga\(gaには下記の項目がハッシュ形式で出力されます。
|
9806
|
-
|
9807
|
-
\(ga\(gaflags\(ga\(ga
|
9808
|
-
|
9809
|
-
指定されているフラグ値です。16進数で表現されています。
|
9810
|
-
|
9811
|
-
\(ga\(gamax sid\(ga\(ga
|
9812
|
-
|
9813
|
-
セグメントのうち最も大きなIDです。
|
9814
|
-
|
9815
|
-
\(ga\(ganumber of garbage segments\(ga\(ga
|
9816
|
-
|
9817
|
-
ゴミセグメントの数です。
|
9818
|
-
|
9819
|
-
\(ga\(ganumber of array segments\(ga\(ga
|
9820
|
-
|
9821
|
-
配列セグメントの数です。
|
9822
|
-
|
9823
|
-
\(ga\(gamax id of array segment\(ga\(ga
|
9824
|
-
|
9825
|
-
配列セグメントのうち最も大きなIDです。
|
9826
|
-
|
9827
|
-
\(ga\(ganumber of buffer segments\(ga\(ga
|
9828
|
-
|
9829
|
-
バッファセグメントの数です。
|
9830
|
-
|
9831
|
-
\(ga\(gamax id of buffer segment\(ga\(ga
|
9832
|
-
|
9833
|
-
バッファセグメントのうち最も大きなIDです。
|
9834
|
-
|
9835
|
-
\(ga\(gamax id of physical segment in use\(ga\(ga
|
9836
|
-
|
9837
|
-
使用中の論理セグメントのうち最も大きなIDです。
|
9838
|
-
|
9839
|
-
\(ga\(ganumber of unmanaged segments\(ga\(ga
|
9840
|
-
|
9841
|
-
管理されていないセグメントの数です。
|
9842
|
-
|
9843
|
-
\(ga\(gatotal chunk size\(ga\(ga
|
9844
|
-
|
9845
|
-
チャンクサイズの合計です。
|
9846
|
-
|
9847
|
-
\(ga\(gamax id of chunk segments in use\(ga\(ga
|
9848
|
-
|
9849
|
-
使用中のチャンクセグメントのうち最も大きなIDです。
|
9850
|
-
|
9851
|
-
\(ga\(ganumber of garbage chunk\(ga\(ga
|
9852
|
-
|
9853
|
-
各チャンク毎のゴミの数です。
|
9854
|
-
|
9855
|
-
\(ga\(gaバッファの状態\(ga\(gaには下記の項目がハッシュ形式で出力されます。
|
9856
|
-
|
9857
|
-
\(ga\(gabuffer id\(ga\(ga
|
9858
|
-
|
9859
|
-
バッファIDです。
|
9860
|
-
|
9861
|
-
\(ga\(gachunk size\(ga\(ga
|
9862
|
-
|
9863
|
-
チャンクのサイズです。
|
9864
|
-
|
9865
|
-
\(ga\(gabuffer term\(ga\(ga
|
9866
|
-
|
9867
|
-
バッファ内にある語の一覧です。各語の状態は以下のような配列となっています。
|
9868
|
-
|
9869
|
-
[語, バッファに登録されている語のID, 用語集に登録されている語のID, バッファ内でのサイズ, チャンク内でのサイズ]
|
9870
|
-
|
9871
|
-
\(ga\(gabuffer free\(ga\(ga
|
9872
|
-
|
9873
|
-
バッファの空き容量です。
|
9874
|
-
|
9875
|
-
\(ga\(gasize in buffer\(ga\(ga
|
9876
|
-
|
9877
|
-
バッファの使用量です。
|
9878
|
-
|
9879
|
-
\(ga\(ganterms\(ga\(ga
|
9880
|
-
|
9881
|
-
バッファ内にある語の数です。
|
9882
|
-
|
9883
|
-
\(ga\(ganterms with chunk\(ga\(ga
|
9884
|
-
|
9885
|
-
バッファ内にある語のうち、チャンクを使っている語の数です。
|
9886
9909
|
.ft P
|
9887
9910
|
.fi
|
9911
|
+
.sp
|
9912
|
+
\fBインデックスの状態\fP には下記の項目がハッシュ形式で出力されます。
|
9913
|
+
.INDENT 0.0
|
9914
|
+
.INDENT 3.5
|
9915
|
+
\fBflags\fP
|
9916
|
+
.INDENT 0.0
|
9917
|
+
.INDENT 3.5
|
9918
|
+
指定されているフラグ値です。16進数で表現されています。
|
9919
|
+
.UNINDENT
|
9920
|
+
.UNINDENT
|
9921
|
+
.sp
|
9922
|
+
\fBmax sid\fP
|
9923
|
+
.INDENT 0.0
|
9924
|
+
.INDENT 3.5
|
9925
|
+
セグメントのうち最も大きなIDです。
|
9926
|
+
.UNINDENT
|
9927
|
+
.UNINDENT
|
9928
|
+
.sp
|
9929
|
+
\fBnumber of garbage segments\fP
|
9930
|
+
.INDENT 0.0
|
9931
|
+
.INDENT 3.5
|
9932
|
+
ゴミセグメントの数です。
|
9933
|
+
.UNINDENT
|
9934
|
+
.UNINDENT
|
9935
|
+
.sp
|
9936
|
+
\fBnumber of array segments\fP
|
9937
|
+
.INDENT 0.0
|
9938
|
+
.INDENT 3.5
|
9939
|
+
配列セグメントの数です。
|
9940
|
+
.UNINDENT
|
9941
|
+
.UNINDENT
|
9942
|
+
.sp
|
9943
|
+
\fBmax id of array segment\fP
|
9944
|
+
.INDENT 0.0
|
9945
|
+
.INDENT 3.5
|
9946
|
+
配列セグメントのうち最も大きなIDです。
|
9947
|
+
.UNINDENT
|
9948
|
+
.UNINDENT
|
9949
|
+
.sp
|
9950
|
+
\fBnumber of buffer segments\fP
|
9951
|
+
.INDENT 0.0
|
9952
|
+
.INDENT 3.5
|
9953
|
+
バッファセグメントの数です。
|
9954
|
+
.UNINDENT
|
9955
|
+
.UNINDENT
|
9956
|
+
.sp
|
9957
|
+
\fBmax id of buffer segment\fP
|
9958
|
+
.INDENT 0.0
|
9959
|
+
.INDENT 3.5
|
9960
|
+
バッファセグメントのうち最も大きなIDです。
|
9961
|
+
.UNINDENT
|
9962
|
+
.UNINDENT
|
9963
|
+
.sp
|
9964
|
+
\fBmax id of physical segment in use\fP
|
9965
|
+
.INDENT 0.0
|
9966
|
+
.INDENT 3.5
|
9967
|
+
使用中の論理セグメントのうち最も大きなIDです。
|
9968
|
+
.UNINDENT
|
9969
|
+
.UNINDENT
|
9970
|
+
.sp
|
9971
|
+
\fBnumber of unmanaged segments\fP
|
9972
|
+
.INDENT 0.0
|
9973
|
+
.INDENT 3.5
|
9974
|
+
管理されていないセグメントの数です。
|
9975
|
+
.UNINDENT
|
9976
|
+
.UNINDENT
|
9977
|
+
.sp
|
9978
|
+
\fBtotal chunk size\fP
|
9979
|
+
.INDENT 0.0
|
9980
|
+
.INDENT 3.5
|
9981
|
+
チャンクサイズの合計です。
|
9982
|
+
.UNINDENT
|
9983
|
+
.UNINDENT
|
9984
|
+
.sp
|
9985
|
+
\fBmax id of chunk segments in use\fP
|
9986
|
+
.INDENT 0.0
|
9987
|
+
.INDENT 3.5
|
9988
|
+
使用中のチャンクセグメントのうち最も大きなIDです。
|
9989
|
+
.UNINDENT
|
9990
|
+
.UNINDENT
|
9991
|
+
.sp
|
9992
|
+
\fBnumber of garbage chunk\fP
|
9993
|
+
.INDENT 0.0
|
9994
|
+
.INDENT 3.5
|
9995
|
+
各チャンク毎のゴミの数です。
|
9996
|
+
.UNINDENT
|
9997
|
+
.UNINDENT
|
9998
|
+
.UNINDENT
|
9999
|
+
.UNINDENT
|
10000
|
+
.sp
|
10001
|
+
\fBバッファの状態\fP には下記の項目がハッシュ形式で出力されます。
|
10002
|
+
.INDENT 0.0
|
10003
|
+
.INDENT 3.5
|
10004
|
+
\fBbuffer id\fP
|
10005
|
+
.INDENT 0.0
|
10006
|
+
.INDENT 3.5
|
10007
|
+
バッファIDです。
|
10008
|
+
.UNINDENT
|
10009
|
+
.UNINDENT
|
10010
|
+
.sp
|
10011
|
+
\fBchunk size\fP
|
10012
|
+
.INDENT 0.0
|
10013
|
+
.INDENT 3.5
|
10014
|
+
チャンクのサイズです。
|
10015
|
+
.UNINDENT
|
10016
|
+
.UNINDENT
|
10017
|
+
.sp
|
10018
|
+
\fBbuffer term\fP
|
10019
|
+
.INDENT 0.0
|
10020
|
+
.INDENT 3.5
|
10021
|
+
バッファ内にある語の一覧です。各語の状態は以下のような配列となっています。
|
10022
|
+
.INDENT 0.0
|
10023
|
+
.INDENT 3.5
|
10024
|
+
[語, バッファに登録されている語のID, 用語集に登録されている語のID, バッファ内でのサイズ, チャンク内でのサイズ]
|
10025
|
+
.UNINDENT
|
10026
|
+
.UNINDENT
|
10027
|
+
.UNINDENT
|
10028
|
+
.UNINDENT
|
10029
|
+
.sp
|
10030
|
+
\fBbuffer free\fP
|
10031
|
+
.INDENT 0.0
|
10032
|
+
.INDENT 3.5
|
10033
|
+
バッファの空き容量です。
|
10034
|
+
.UNINDENT
|
10035
|
+
.UNINDENT
|
10036
|
+
.sp
|
10037
|
+
\fBsize in buffer\fP
|
10038
|
+
.INDENT 0.0
|
10039
|
+
.INDENT 3.5
|
10040
|
+
バッファの使用量です。
|
10041
|
+
.UNINDENT
|
10042
|
+
.UNINDENT
|
10043
|
+
.sp
|
10044
|
+
\fBnterms\fP
|
10045
|
+
.INDENT 0.0
|
10046
|
+
.INDENT 3.5
|
10047
|
+
バッファ内にある語の数です。
|
10048
|
+
.UNINDENT
|
10049
|
+
.UNINDENT
|
10050
|
+
.sp
|
10051
|
+
\fBnterms with chunk\fP
|
10052
|
+
.INDENT 0.0
|
10053
|
+
.INDENT 3.5
|
10054
|
+
バッファ内にある語のうち、チャンクを使っている語の数です。
|
10055
|
+
.UNINDENT
|
10056
|
+
.UNINDENT
|
10057
|
+
.UNINDENT
|
10058
|
+
.UNINDENT
|
9888
10059
|
.SS 例
|
9889
10060
|
.sp
|
9890
10061
|
テーブルTermsのインデックスカラムnameの状態を表示します。:
|
@@ -9956,12 +10127,15 @@ clearlockは、対象となるオブジェクト(データベース,テーブル
|
|
9956
10127
|
.nf
|
9957
10128
|
.ft C
|
9958
10129
|
[成功かどうかのフラグ]
|
9959
|
-
|
9960
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
9961
|
-
|
9962
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
9963
10130
|
.ft P
|
9964
10131
|
.fi
|
10132
|
+
.sp
|
10133
|
+
\fB成功かどうかのフラグ\fP
|
10134
|
+
.INDENT 0.0
|
10135
|
+
.INDENT 3.5
|
10136
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10137
|
+
.UNINDENT
|
10138
|
+
.UNINDENT
|
9965
10139
|
.SS 例
|
9966
10140
|
.sp
|
9967
10141
|
開いているデータベースのロックをすべて解除する:
|
@@ -10069,12 +10243,15 @@ column_createは、使用しているデータベースのテーブルに対し
|
|
10069
10243
|
.nf
|
10070
10244
|
.ft C
|
10071
10245
|
[成功かどうかのフラグ]
|
10072
|
-
|
10073
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10074
|
-
|
10075
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10076
10246
|
.ft P
|
10077
10247
|
.fi
|
10248
|
+
.sp
|
10249
|
+
\fB成功かどうかのフラグ\fP
|
10250
|
+
.INDENT 0.0
|
10251
|
+
.INDENT 3.5
|
10252
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10253
|
+
.UNINDENT
|
10254
|
+
.UNINDENT
|
10078
10255
|
.SS 例
|
10079
10256
|
.sp
|
10080
10257
|
テーブルEntryに、ShortText型の値を格納するカラム、bodyを作成します。:
|
@@ -10263,12 +10440,15 @@ column_removeはテーブルに定義されているカラムを削除します
|
|
10263
10440
|
.nf
|
10264
10441
|
.ft C
|
10265
10442
|
[成功かどうかのフラグ]
|
10266
|
-
|
10267
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10268
|
-
|
10269
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10270
10443
|
.ft P
|
10271
10444
|
.fi
|
10445
|
+
.sp
|
10446
|
+
\fB成功かどうかのフラグ\fP
|
10447
|
+
.INDENT 0.0
|
10448
|
+
.INDENT 3.5
|
10449
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10450
|
+
.UNINDENT
|
10451
|
+
.UNINDENT
|
10272
10452
|
.SS 例
|
10273
10453
|
.sp
|
10274
10454
|
.nf
|
@@ -10281,8 +10461,187 @@ column_remove Entry body
|
|
10281
10461
|
脚注
|
10282
10462
|
.IP [1] 5
|
10283
10463
|
マルチセクションインデックスの一部である場合も、インデックスが削除されます。
|
10284
|
-
.SS
|
10285
|
-
.SS
|
10464
|
+
.SS \fBcolumn_rename\fP
|
10465
|
+
.SS 概要
|
10466
|
+
.sp
|
10467
|
+
\fBcolumn_rename\fP コマンドは指定したテーブルのカラム名を変更します。
|
10468
|
+
.SS 構文
|
10469
|
+
.sp
|
10470
|
+
\fBcolumn_rename\fP コマンドは引数を二つとります。
|
10471
|
+
.sp
|
10472
|
+
\fBtable\fP と \fBcolumn_name\fP が必須の引数です。
|
10473
|
+
.sp
|
10474
|
+
.nf
|
10475
|
+
.ft C
|
10476
|
+
column_rename table column
|
10477
|
+
.ft P
|
10478
|
+
.fi
|
10479
|
+
.SS 使い方
|
10480
|
+
.sp
|
10481
|
+
以下は \fBcolumn_rename\fP コマンドの簡単な使用例です。
|
10482
|
+
.sp
|
10483
|
+
実行例:
|
10484
|
+
.sp
|
10485
|
+
.nf
|
10486
|
+
.ft C
|
10487
|
+
table_create Users TABLE_PAT_KEY ShortText
|
10488
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
10489
|
+
column_create Users score COLUMN_SCALAR Int32
|
10490
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
10491
|
+
load \-\-table Users
|
10492
|
+
[
|
10493
|
+
{"_key": "Alice", "score": 2},
|
10494
|
+
{"_key": "Bob", "score": 0},
|
10495
|
+
{"_key": "Carlos", "score": \-1}
|
10496
|
+
]
|
10497
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
10498
|
+
column_rename Users score point
|
10499
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
10500
|
+
column_list Users
|
10501
|
+
# [
|
10502
|
+
# [
|
10503
|
+
# 0,
|
10504
|
+
# 1337566253.89858,
|
10505
|
+
# 0.000355720520019531
|
10506
|
+
# ],
|
10507
|
+
# [
|
10508
|
+
# [
|
10509
|
+
# [
|
10510
|
+
# "id",
|
10511
|
+
# "UInt32"
|
10512
|
+
# ],
|
10513
|
+
# [
|
10514
|
+
# "name",
|
10515
|
+
# "ShortText"
|
10516
|
+
# ],
|
10517
|
+
# [
|
10518
|
+
# "path",
|
10519
|
+
# "ShortText"
|
10520
|
+
# ],
|
10521
|
+
# [
|
10522
|
+
# "type",
|
10523
|
+
# "ShortText"
|
10524
|
+
# ],
|
10525
|
+
# [
|
10526
|
+
# "flags",
|
10527
|
+
# "ShortText"
|
10528
|
+
# ],
|
10529
|
+
# [
|
10530
|
+
# "domain",
|
10531
|
+
# "ShortText"
|
10532
|
+
# ],
|
10533
|
+
# [
|
10534
|
+
# "range",
|
10535
|
+
# "ShortText"
|
10536
|
+
# ],
|
10537
|
+
# [
|
10538
|
+
# "source",
|
10539
|
+
# "ShortText"
|
10540
|
+
# ]
|
10541
|
+
# ],
|
10542
|
+
# [
|
10543
|
+
# 256,
|
10544
|
+
# "_key",
|
10545
|
+
# "",
|
10546
|
+
# "",
|
10547
|
+
# "COLUMN_SCALAR",
|
10548
|
+
# "Users",
|
10549
|
+
# "ShortText",
|
10550
|
+
# []
|
10551
|
+
# ],
|
10552
|
+
# [
|
10553
|
+
# 257,
|
10554
|
+
# "point",
|
10555
|
+
# "/tmp/groonga\-databases/commands_column_rename.0000101",
|
10556
|
+
# "fix",
|
10557
|
+
# "COLUMN_SCALAR|PERSISTENT",
|
10558
|
+
# "Users",
|
10559
|
+
# "Int32",
|
10560
|
+
# []
|
10561
|
+
# ]
|
10562
|
+
# ]
|
10563
|
+
# ]
|
10564
|
+
select Users
|
10565
|
+
# [
|
10566
|
+
# [
|
10567
|
+
# 0,
|
10568
|
+
# 1337566253.89858,
|
10569
|
+
# 0.000355720520019531
|
10570
|
+
# ],
|
10571
|
+
# [
|
10572
|
+
# [
|
10573
|
+
# [
|
10574
|
+
# 3
|
10575
|
+
# ],
|
10576
|
+
# [
|
10577
|
+
# [
|
10578
|
+
# "_id",
|
10579
|
+
# "UInt32"
|
10580
|
+
# ],
|
10581
|
+
# [
|
10582
|
+
# "_key",
|
10583
|
+
# "ShortText"
|
10584
|
+
# ],
|
10585
|
+
# [
|
10586
|
+
# "point",
|
10587
|
+
# "Int32"
|
10588
|
+
# ]
|
10589
|
+
# ],
|
10590
|
+
# [
|
10591
|
+
# 1,
|
10592
|
+
# "Alice",
|
10593
|
+
# 2
|
10594
|
+
# ],
|
10595
|
+
# [
|
10596
|
+
# 2,
|
10597
|
+
# "Bob",
|
10598
|
+
# 0
|
10599
|
+
# ],
|
10600
|
+
# [
|
10601
|
+
# 3,
|
10602
|
+
# "Carlos",
|
10603
|
+
# \-1
|
10604
|
+
# ]
|
10605
|
+
# ]
|
10606
|
+
# ]
|
10607
|
+
# ]
|
10608
|
+
.ft P
|
10609
|
+
.fi
|
10610
|
+
.SS 引数
|
10611
|
+
.sp
|
10612
|
+
このセクションでは \fBcolumn_rename\fP の引数について説明します。
|
10613
|
+
.SS 必須引数
|
10614
|
+
.sp
|
10615
|
+
必須引数は二つあります。 \fBtable_name\fP と \fBcolumn_name\fP です。
|
10616
|
+
.SS \fBtable_name\fP
|
10617
|
+
.sp
|
10618
|
+
テーブルの名前を指定します。
|
10619
|
+
.SS \fBcolumn_name\fP
|
10620
|
+
.sp
|
10621
|
+
カラムの名前を指定します。
|
10622
|
+
.SS 戻り値
|
10623
|
+
.sp
|
10624
|
+
.nf
|
10625
|
+
.ft C
|
10626
|
+
[HEADER, SUCCEEDED_OR_NOT]
|
10627
|
+
.ft P
|
10628
|
+
.fi
|
10629
|
+
.sp
|
10630
|
+
\fBHEADER\fP
|
10631
|
+
.INDENT 0.0
|
10632
|
+
.INDENT 3.5
|
10633
|
+
HEADERのフォーマットは [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME] です。HEADERについては \fB/reference/command/output_format\fP を参照してください。
|
10634
|
+
.UNINDENT
|
10635
|
+
.UNINDENT
|
10636
|
+
.sp
|
10637
|
+
\fBSUCCEEDED_OR_NOT\fP
|
10638
|
+
.INDENT 0.0
|
10639
|
+
.INDENT 3.5
|
10640
|
+
コマンドの実行が成功するとtrueを返します。失敗するとエラーとしてfalseを返します。
|
10641
|
+
.UNINDENT
|
10642
|
+
.UNINDENT
|
10643
|
+
.SS define_selector
|
10644
|
+
.SS 名前
|
10286
10645
|
.sp
|
10287
10646
|
define_selector \- 検索コマンドを定義
|
10288
10647
|
.SS 書式
|
@@ -10411,12 +10770,15 @@ define_selectorは、検索条件をカスタマイズした新たな検索コ
|
|
10411
10770
|
.nf
|
10412
10771
|
.ft C
|
10413
10772
|
[成功かどうかのフラグ]
|
10414
|
-
|
10415
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10416
|
-
|
10417
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10418
10773
|
.ft P
|
10419
10774
|
.fi
|
10775
|
+
.sp
|
10776
|
+
\fB成功かどうかのフラグ\fP
|
10777
|
+
.INDENT 0.0
|
10778
|
+
.INDENT 3.5
|
10779
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10780
|
+
.UNINDENT
|
10781
|
+
.UNINDENT
|
10420
10782
|
.SS 例
|
10421
10783
|
.sp
|
10422
10784
|
テーブルEntryの全レコード・全カラムの値を出力するselectorコマンドを定義します。:
|
@@ -10460,12 +10822,15 @@ defragは、対象となるオブジェクト(データベースか可変長サ
|
|
10460
10822
|
.nf
|
10461
10823
|
.ft C
|
10462
10824
|
[フラグメンテーション解消を実行したセグメントの数]
|
10463
|
-
|
10464
|
-
\(ga\(gaフラグメンテーション解消を実行したセグメントの数\(ga\(ga
|
10465
|
-
|
10466
|
-
フラグメンテーション解消を実行したセグメントの数を返す。
|
10467
10825
|
.ft P
|
10468
10826
|
.fi
|
10827
|
+
.sp
|
10828
|
+
\fBフラグメンテーション解消を実行したセグメントの数\fP
|
10829
|
+
.INDENT 0.0
|
10830
|
+
.INDENT 3.5
|
10831
|
+
フラグメンテーション解消を実行したセグメントの数を返す。
|
10832
|
+
.UNINDENT
|
10833
|
+
.UNINDENT
|
10469
10834
|
.SS 例
|
10470
10835
|
.sp
|
10471
10836
|
開いているデータベースのフラグメンテーションを解消する:
|
@@ -10538,12 +10903,15 @@ script形式のgrn_expr文字列によってレコードを指定します。fil
|
|
10538
10903
|
.nf
|
10539
10904
|
.ft C
|
10540
10905
|
[成功かどうかのフラグ]
|
10541
|
-
|
10542
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10543
|
-
|
10544
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10545
10906
|
.ft P
|
10546
10907
|
.fi
|
10908
|
+
.sp
|
10909
|
+
\fB成功かどうかのフラグ\fP
|
10910
|
+
.INDENT 0.0
|
10911
|
+
.INDENT 3.5
|
10912
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10913
|
+
.UNINDENT
|
10914
|
+
.UNINDENT
|
10547
10915
|
.SS 例
|
10548
10916
|
.sp
|
10549
10917
|
テーブルEntryからレコードを削除します。:
|
@@ -10645,44 +11013,40 @@ load \-\-table Sites
|
|
10645
11013
|
]
|
10646
11014
|
.ft P
|
10647
11015
|
.fi
|
10648
|
-
.SS
|
10649
|
-
.SS
|
11016
|
+
.SS \fBload\fP
|
11017
|
+
.SS 概要
|
10650
11018
|
.sp
|
10651
|
-
|
10652
|
-
.SS
|
11019
|
+
\fBload\fP は、使用しているデータベースのテーブルにレコードを登録し、カラムの値を更新します。
|
11020
|
+
.SS 構文
|
10653
11021
|
.sp
|
10654
11022
|
.nf
|
10655
11023
|
.ft C
|
10656
11024
|
load values table [columns [ifexists [input_type]]]
|
10657
11025
|
.ft P
|
10658
11026
|
.fi
|
10659
|
-
.SS 説明
|
10660
|
-
.sp
|
10661
|
-
groonga組込コマンドの一つであるloadについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
|
10662
|
-
.sp
|
10663
|
-
loadは、使用しているデータベースのテーブルにレコードを登録し、カラムの値を更新します。
|
10664
11027
|
.SS 引数
|
10665
11028
|
.sp
|
11029
|
+
このセクションではすべての引数について説明します。
|
11030
|
+
.sp
|
10666
11031
|
\fBvalues\fP
|
10667
11032
|
.INDENT 0.0
|
10668
11033
|
.INDENT 3.5
|
10669
11034
|
input_typeに指定する形式で登録するレコードの値を表現した文字列を渡します。
|
10670
|
-
.sp
|
10671
11035
|
input_typeがjsonである場合には、以下のいずれかの形式が使用できます。
|
10672
11036
|
.INDENT 0.0
|
10673
11037
|
.TP
|
10674
|
-
.B \fB形式1
|
11038
|
+
.B \fB形式1:\fP
|
10675
11039
|
[[カラム名1, カラム名2,..], [カラム値1, カラム値2,..], [カラム値1, カラム値2,..],..]
|
10676
11040
|
.TP
|
10677
|
-
.B \fB形式2
|
11041
|
+
.B \fB形式2:\fP
|
10678
11042
|
[{カラム名1: カラム値1, カラム名2: カラム値2}, {カラム名1: カラム値1, カラム名2: カラム値2},..]
|
10679
11043
|
.UNINDENT
|
10680
11044
|
.sp
|
10681
|
-
形式1の[カラム名1, カラム名2,..]の要素は
|
11045
|
+
形式1の[カラム名1, カラム名2,..]の要素は \fBcolumns\fP 引数が省略された場合のみ有効です。
|
10682
11046
|
.sp
|
10683
|
-
|
11047
|
+
対象のテーブルが主キーを持つテーブルであった場合は、カラム名の中に \fB_key\fP (主キーを示す疑似カラム名)が含まれていなければなりません。
|
10684
11048
|
.sp
|
10685
|
-
|
11049
|
+
\fBvalues\fP 引数が省略された場合には、括弧の対応が取れるまで標準入力から \fBvalues\fP の値を読み取ります。引数として値を指定する場合は、文字列のエスケープが必要ですが、標準入力から与える文字列はエスケープする必要がありません。
|
10686
11050
|
.sp
|
10687
11051
|
続きの文字列については、空白文字(\(aq \(aq)をエスケープする必要はありません。
|
10688
11052
|
.UNINDENT
|
@@ -10705,7 +11069,7 @@ values引数が省略された場合には、括弧の対応が取れるまで
|
|
10705
11069
|
\fBifexists\fP
|
10706
11070
|
.INDENT 0.0
|
10707
11071
|
.INDENT 3.5
|
10708
|
-
指定した主キーに対応するレコードが既にテーブルに登録済みであった場合に実行するscript形式の
|
11072
|
+
指定した主キーに対応するレコードが既にテーブルに登録済みであった場合に実行するscript形式の \fBgrn_expr\fP 文字列を指定します。 \fBifexists\fP に \fBgrn_expr\fP が指定された場合は、式の値が真である場合に限り、その他のカラムの値が更新されます。(デフォルトはtrue)
|
10709
11073
|
.UNINDENT
|
10710
11074
|
.UNINDENT
|
10711
11075
|
.sp
|
@@ -10715,28 +11079,13 @@ values引数が省略された場合には、括弧の対応が取れるまで
|
|
10715
11079
|
入力形式を指定します。JSONのみに対応しています。
|
10716
11080
|
.UNINDENT
|
10717
11081
|
.UNINDENT
|
10718
|
-
.SS
|
10719
|
-
.SS JSON形式
|
10720
|
-
.sp
|
10721
|
-
.nf
|
10722
|
-
.ft C
|
10723
|
-
[登録件数]
|
10724
|
-
.ft P
|
10725
|
-
.fi
|
10726
|
-
.sp
|
10727
|
-
\fB登録件数\fP
|
10728
|
-
.INDENT 0.0
|
10729
|
-
.INDENT 3.5
|
10730
|
-
テーブルに登録されたレコードの件数が返されます。
|
10731
|
-
.UNINDENT
|
10732
|
-
.UNINDENT
|
10733
|
-
.SS 例
|
11082
|
+
.SS 使い方
|
10734
11083
|
.sp
|
10735
11084
|
テーブルEntryにレコードを登録します。:
|
10736
11085
|
.sp
|
10737
11086
|
.nf
|
10738
11087
|
.ft C
|
10739
|
-
load \-\-table Entry \-\-input_type json \-\-values [{\e"_key\e":\e"
|
11088
|
+
load \-\-table Entry \-\-input_type json \-\-values [{\e"_key\e":\e"Groonga\e",\e"body\e":\e"It\(aqs very fast!!\e"}]
|
10740
11089
|
|
10741
11090
|
[1]
|
10742
11091
|
.ft P
|
@@ -10748,13 +11097,26 @@ load \-\-table Entry \-\-input_type json \-\-values [{\e"_key\e":\e"abandon\e",\
|
|
10748
11097
|
.ft C
|
10749
11098
|
load \-\-table Entry \-\-input_type json
|
10750
11099
|
[
|
10751
|
-
{"_key": "
|
11100
|
+
{"_key": "Groonga", "body": "It\(aqs very fast!!"}
|
10752
11101
|
]
|
10753
11102
|
|
10754
11103
|
[1]
|
10755
11104
|
.ft P
|
10756
11105
|
.fi
|
10757
|
-
.SS
|
11106
|
+
.SS 戻り値
|
11107
|
+
.SS JSON形式
|
11108
|
+
.INDENT 0.0
|
11109
|
+
.INDENT 3.5
|
11110
|
+
テーブルに登録されたレコードの件数が返されます。
|
11111
|
+
.sp
|
11112
|
+
.nf
|
11113
|
+
.ft C
|
11114
|
+
[NUMBER]
|
11115
|
+
.ft P
|
11116
|
+
.fi
|
11117
|
+
.UNINDENT
|
11118
|
+
.UNINDENT
|
11119
|
+
.SS 参考
|
10758
11120
|
.sp
|
10759
11121
|
\fB/reference/grn_expr\fP
|
10760
11122
|
.SS log_level
|
@@ -10799,12 +11161,15 @@ debug
|
|
10799
11161
|
.nf
|
10800
11162
|
.ft C
|
10801
11163
|
[成功かどうかのフラグ]
|
10802
|
-
|
10803
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10804
|
-
|
10805
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10806
11164
|
.ft P
|
10807
11165
|
.fi
|
11166
|
+
.sp
|
11167
|
+
\fB成功かどうかのフラグ\fP
|
11168
|
+
.INDENT 0.0
|
11169
|
+
.INDENT 3.5
|
11170
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
11171
|
+
.UNINDENT
|
11172
|
+
.UNINDENT
|
10808
11173
|
.SS 例
|
10809
11174
|
.sp
|
10810
11175
|
.nf
|
@@ -10866,12 +11231,15 @@ debug
|
|
10866
11231
|
.nf
|
10867
11232
|
.ft C
|
10868
11233
|
[成功かどうかのフラグ]
|
10869
|
-
|
10870
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10871
|
-
|
10872
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10873
11234
|
.ft P
|
10874
11235
|
.fi
|
11236
|
+
.sp
|
11237
|
+
\fB成功かどうかのフラグ\fP
|
11238
|
+
.INDENT 0.0
|
11239
|
+
.INDENT 3.5
|
11240
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
11241
|
+
.UNINDENT
|
11242
|
+
.UNINDENT
|
10875
11243
|
.SS 例
|
10876
11244
|
.sp
|
10877
11245
|
.nf
|
@@ -10911,12 +11279,15 @@ log_reopenは、ログファイルを再読み込みします。
|
|
10911
11279
|
.nf
|
10912
11280
|
.ft C
|
10913
11281
|
[成功かどうかのフラグ]
|
10914
|
-
|
10915
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
10916
|
-
|
10917
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
10918
11282
|
.ft P
|
10919
11283
|
.fi
|
11284
|
+
.sp
|
11285
|
+
\fB成功かどうかのフラグ\fP
|
11286
|
+
.INDENT 0.0
|
11287
|
+
.INDENT 3.5
|
11288
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
11289
|
+
.UNINDENT
|
11290
|
+
.UNINDENT
|
10920
11291
|
.SS 例
|
10921
11292
|
.sp
|
10922
11293
|
.nf
|
@@ -10941,6 +11312,74 @@ log_reopenコマンドを実行する。
|
|
10941
11312
|
.sp
|
10942
11313
|
\fBlog_level\fP
|
10943
11314
|
\fBlog_put\fP
|
11315
|
+
.SS \fBnormalize\fP
|
11316
|
+
.IP ご用心
|
11317
|
+
\fBnormalize\fP コマンドは実験的な機能です。このコマンドは将来的に変更されるかも知れません。
|
11318
|
+
.RE
|
11319
|
+
.SS 概要
|
11320
|
+
.sp
|
11321
|
+
\fBnormalize\fP コマンドは指定したノーマライザーでテキストを正規化します。
|
11322
|
+
.sp
|
11323
|
+
\fBnormalize\fP コマンドを使うのにテーブルを作成する必要はありません。このコマンドは、ノーマライザーの結果を確認するのに便利です。
|
11324
|
+
.SS 構文
|
11325
|
+
.sp
|
11326
|
+
\fBnormalize\fP コマンドは \fBnormalizer\fP と \fBstring\fP という二つの引数をとります。これらの引数はどちらも必須です。
|
11327
|
+
.sp
|
11328
|
+
.nf
|
11329
|
+
.ft C
|
11330
|
+
normalize normalizer string
|
11331
|
+
.ft P
|
11332
|
+
.fi
|
11333
|
+
.SS 使い方
|
11334
|
+
.sp
|
11335
|
+
以下は \fBnormalize\fP コマンドの簡単な使用例です。
|
11336
|
+
.sp
|
11337
|
+
実行例:
|
11338
|
+
.sp
|
11339
|
+
.nf
|
11340
|
+
.ft C
|
11341
|
+
normalize NormalizerAuto "aBcDe 123"
|
11342
|
+
# [[0, 1337566253.89858, 0.000355720520019531], "abcde 123"]
|
11343
|
+
.ft P
|
11344
|
+
.fi
|
11345
|
+
.SS 引数
|
11346
|
+
.sp
|
11347
|
+
このセクションでは \fBnormalizer\fP の引数について説明します。
|
11348
|
+
.SS 必須引数
|
11349
|
+
.sp
|
11350
|
+
必須引数は二つあります。 \fBnormalizer\fP と \fBstring\fP です。
|
11351
|
+
.SS \fBnormalizer\fP
|
11352
|
+
.sp
|
11353
|
+
ノーマライザーの名前を指定します。今のところ \fBnormalize\fP コマンドは \fBNormalizerAuto\fP もしくは \fBNormalizerNFKC51\fP を組み込みノーマライザーとして受けつけます。もし他のノーマライザーを使いたい場合には、追加したいノーマライザーを \fB/reference/commands/register\fP コマンドで登録する必要があります。
|
11354
|
+
.SS \fBstring\fP
|
11355
|
+
.sp
|
11356
|
+
正規化したい文字列を指定します。
|
11357
|
+
.SS 戻り値
|
11358
|
+
.sp
|
11359
|
+
.nf
|
11360
|
+
.ft C
|
11361
|
+
[HEADER, normalized]
|
11362
|
+
.ft P
|
11363
|
+
.fi
|
11364
|
+
.sp
|
11365
|
+
\fBHEADER\fP
|
11366
|
+
.INDENT 0.0
|
11367
|
+
.INDENT 3.5
|
11368
|
+
HEADERのフォーマットは [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME] です。HEADERについては \fB/reference/command/output_format\fP を参照してください。
|
11369
|
+
.UNINDENT
|
11370
|
+
.UNINDENT
|
11371
|
+
.sp
|
11372
|
+
\fBnormalized\fP
|
11373
|
+
.INDENT 0.0
|
11374
|
+
.INDENT 3.5
|
11375
|
+
normalizedは指定したノーマライザーによる正規化されたテキストです。
|
11376
|
+
.UNINDENT
|
11377
|
+
.UNINDENT
|
11378
|
+
.SS 参考
|
11379
|
+
.INDENT 0.0
|
11380
|
+
.IP \(bu 2
|
11381
|
+
\fB/reference/normalizers\fP
|
11382
|
+
.UNINDENT
|
10944
11383
|
.SS quit
|
10945
11384
|
.SS 名前
|
10946
11385
|
.sp
|
@@ -11047,6 +11486,7 @@ select table
|
|
11047
11486
|
[match_escalation_threshold=0]
|
11048
11487
|
[query_expansion=null]
|
11049
11488
|
[query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
|
11489
|
+
[query_expander=null]
|
11050
11490
|
.ft P
|
11051
11491
|
.fi
|
11052
11492
|
.SS 使い方
|
@@ -12037,46 +12477,46 @@ select Entries \-\-match_columns content \-\-query groo \-\-match_escalation_thr
|
|
12037
12477
|
2番目の \fBselect\fP コマンドも \fBEntries\fP テーブルから \fBcontent\fP カラムの値に \fBgroo\fP という単語を含むレコードを検索します。そして、この \fBselect\fP コマンドもマッチしません。この場合、マッチしたレコード数(0)が \fBmatch_escalation_threshold\fP (\-1)より大きいので、検索方法をエスカレーションしません。そして、1つもレコードがマッチしません。
|
12038
12478
|
.SS \fBquery_expansion\fP
|
12039
12479
|
.sp
|
12040
|
-
|
12480
|
+
Deprecated. Use \fIquery\-expander\fP instead.
|
12481
|
+
.SS \fBquery_flags\fP
|
12041
12482
|
.sp
|
12042
|
-
\fBquery\fP
|
12483
|
+
\fBquery\fP パラメーターの構文をカスタマイズします。デフォルトでは \fBquery\fP パラメーターでカラムの値を更新することはできません。しかし、 \fBquery_flags\fP に \fBALLOW_COLUMN|ALLOW_UPDATE\fP を指定することで \fBquery\fP でカラムの値を更新することができます。
|
12043
12484
|
.sp
|
12044
|
-
|
12485
|
+
指定可能な値は以下の通りです。
|
12486
|
+
.INDENT 0.0
|
12487
|
+
.IP \(bu 2
|
12488
|
+
\fBALLOW_PRAGMA\fP
|
12489
|
+
.IP \(bu 2
|
12490
|
+
\fBALLOW_COLUMN\fP
|
12491
|
+
.IP \(bu 2
|
12492
|
+
\fBALLOW_UPDATE\fP
|
12493
|
+
.IP \(bu 2
|
12494
|
+
\fBALLOW_LEADING_NOT\fP
|
12495
|
+
.IP \(bu 2
|
12496
|
+
\fBNONE\fP
|
12497
|
+
.UNINDENT
|
12045
12498
|
.sp
|
12046
|
-
|
12499
|
+
\fBALLOW_PRAGMA\fP を指定すると \fBquery\fP の先頭でプラグマを指定することができます。この機能はまだ実装されていません。
|
12047
12500
|
.sp
|
12048
|
-
|
12501
|
+
\fBALLOW_COLUMN\fP を指定すると \fBmatch_columns\fP で指定していないカラムでも検索できるように成ります。カラムを指定するには \fBCOLUMN:...\fP というような構文を使います。
|
12049
12502
|
.sp
|
12050
|
-
|
12503
|
+
\fBALLOW_UPDATE\fP を指定すると \fBCOLUMN:=NEW_VALUE\fP という構文を使って \fBquery\fP でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 \fBALLOW_COLUMN\fP も一緒に指定する必要があります。
|
12051
12504
|
.sp
|
12052
|
-
|
12505
|
+
\fBALLOW_LEADING_NOT\fP を指定すると \fB\-WORD\fP という構文を使って最初の条件として否定条件を指定できます。このクエリーは \fBWORD\fP にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリーは多くの場合重いクエリーになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリーとなるということを十分気をつけてください。
|
12053
12506
|
.sp
|
12054
|
-
|
12055
|
-
.ft C
|
12056
|
-
table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
12057
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
12058
|
-
column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
12059
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
12060
|
-
load \-\-table Thesaurus
|
12061
|
-
[
|
12062
|
-
{"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
12063
|
-
{"_key": "groonga", "synonym": ["groonga", "senna"]}
|
12064
|
-
]
|
12065
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
12066
|
-
.ft P
|
12067
|
-
.fi
|
12507
|
+
\fBNONE\fP は単に無視されます。フラグを指定しないときに \fBNONE\fP を使えます。
|
12068
12508
|
.sp
|
12069
|
-
|
12509
|
+
これらのフラグは \fBALLOW_COLUMN|ALLOW_UPDATE\fP のように \fB|\fP で区切って同時に指定することができます。
|
12070
12510
|
.sp
|
12071
|
-
|
12511
|
+
デフォルト値は \fBALLOW_PRAGMA|ALLOW_COLUMN\fP です。
|
12072
12512
|
.sp
|
12073
|
-
|
12513
|
+
以下は \fBALLOW_COLUMN\fP の使用例です。
|
12074
12514
|
.sp
|
12075
12515
|
実行例:
|
12076
12516
|
.sp
|
12077
12517
|
.nf
|
12078
12518
|
.ft C
|
12079
|
-
select Entries \-\-
|
12519
|
+
select Entries \-\-query content:@mroonga \-\-query_flags ALLOW_COLUMN
|
12080
12520
|
# [
|
12081
12521
|
# [
|
12082
12522
|
# 0,
|
@@ -12115,7 +12555,28 @@ select Entries \-\-match_columns content \-\-query "mroonga"
|
|
12115
12555
|
# ]
|
12116
12556
|
# ]
|
12117
12557
|
# ]
|
12118
|
-
|
12558
|
+
.ft P
|
12559
|
+
.fi
|
12560
|
+
.sp
|
12561
|
+
この \fBselect\fP コマンドは \fBEntries\fP テーブルの中から \fBcontent\fP カラムの値に \fBmroonga\fP を含んでいるレコードを検索します。
|
12562
|
+
.sp
|
12563
|
+
以下は \fBALLOW_UPDATE\fP の使用例です。
|
12564
|
+
.sp
|
12565
|
+
実行例:
|
12566
|
+
.sp
|
12567
|
+
.nf
|
12568
|
+
.ft C
|
12569
|
+
table_create Users TABLE_HASH_KEY ShortText
|
12570
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
12571
|
+
column_create Users age COLUMN_SCALAR UInt32
|
12572
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
12573
|
+
load \-\-table Users
|
12574
|
+
[
|
12575
|
+
{"_key": "alice", "age": 18},
|
12576
|
+
{"_key": "bob", "age": 20}
|
12577
|
+
]
|
12578
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
12579
|
+
select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
12119
12580
|
# [
|
12120
12581
|
# [
|
12121
12582
|
# 0,
|
@@ -12137,30 +12598,24 @@ select Entries \-\-match_columns content \-\-query "mroonga" \-\-query_expansion
|
|
12137
12598
|
# "ShortText"
|
12138
12599
|
# ],
|
12139
12600
|
# [
|
12140
|
-
# "
|
12141
|
-
# "Text"
|
12142
|
-
# ],
|
12143
|
-
# [
|
12144
|
-
# "n_likes",
|
12601
|
+
# "age",
|
12145
12602
|
# "UInt32"
|
12146
12603
|
# ]
|
12147
12604
|
# ],
|
12148
12605
|
# [
|
12149
|
-
#
|
12150
|
-
# "
|
12151
|
-
#
|
12152
|
-
# 15
|
12606
|
+
# 1,
|
12607
|
+
# "alice",
|
12608
|
+
# 19
|
12153
12609
|
# ],
|
12154
12610
|
# [
|
12155
|
-
#
|
12156
|
-
# "
|
12157
|
-
#
|
12158
|
-
# 3
|
12611
|
+
# 2,
|
12612
|
+
# "bob",
|
12613
|
+
# 19
|
12159
12614
|
# ]
|
12160
12615
|
# ]
|
12161
12616
|
# ]
|
12162
12617
|
# ]
|
12163
|
-
select
|
12618
|
+
select Users
|
12164
12619
|
# [
|
12165
12620
|
# [
|
12166
12621
|
# 0,
|
@@ -12182,25 +12637,19 @@ select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (
|
|
12182
12637
|
# "ShortText"
|
12183
12638
|
# ],
|
12184
12639
|
# [
|
12185
|
-
# "
|
12186
|
-
# "Text"
|
12187
|
-
# ],
|
12188
|
-
# [
|
12189
|
-
# "n_likes",
|
12640
|
+
# "age",
|
12190
12641
|
# "UInt32"
|
12191
12642
|
# ]
|
12192
12643
|
# ],
|
12193
12644
|
# [
|
12194
|
-
#
|
12195
|
-
# "
|
12196
|
-
#
|
12197
|
-
# 15
|
12645
|
+
# 1,
|
12646
|
+
# "alice",
|
12647
|
+
# 19
|
12198
12648
|
# ],
|
12199
12649
|
# [
|
12200
|
-
#
|
12201
|
-
# "
|
12202
|
-
#
|
12203
|
-
# 3
|
12650
|
+
# 2,
|
12651
|
+
# "bob",
|
12652
|
+
# 19
|
12204
12653
|
# ]
|
12205
12654
|
# ]
|
12206
12655
|
# ]
|
@@ -12208,22 +12657,15 @@ select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (
|
|
12208
12657
|
.ft P
|
12209
12658
|
.fi
|
12210
12659
|
.sp
|
12211
|
-
最初の \fBselect\fP
|
12212
|
-
.sp
|
12213
|
-
それぞれの置換する値は \fB(...)\fP や \fBOR\fP といった \fB/reference/grn_expr/query_syntax\fP を使えます。これらの構文を使うことにより複雑な置換をすることができます。
|
12660
|
+
最初の \fBselect\fP コマンドは全てのレコードの \fBage\fP カラムの値を \fB19\fP にします。二番目の \fBselect\fP コマンドは \fBage\fP カラムの値を出力します。
|
12214
12661
|
.sp
|
12215
|
-
|
12662
|
+
以下は \fBALLOW_LEADING_NOT\fP の使用例です。
|
12216
12663
|
.sp
|
12217
12664
|
実行例:
|
12218
12665
|
.sp
|
12219
12666
|
.nf
|
12220
12667
|
.ft C
|
12221
|
-
|
12222
|
-
[
|
12223
|
-
{"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
12224
|
-
]
|
12225
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
12226
|
-
select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion Thesaurus.synonym
|
12668
|
+
select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALLOW_LEADING_NOT
|
12227
12669
|
# [
|
12228
12670
|
# [
|
12229
12671
|
# 0,
|
@@ -12233,7 +12675,7 @@ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion
|
|
12233
12675
|
# [
|
12234
12676
|
# [
|
12235
12677
|
# [
|
12236
|
-
#
|
12678
|
+
# 4
|
12237
12679
|
# ],
|
12238
12680
|
# [
|
12239
12681
|
# [
|
@@ -12254,16 +12696,28 @@ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion
|
|
12254
12696
|
# ]
|
12255
12697
|
# ],
|
12256
12698
|
# [
|
12699
|
+
# 1,
|
12700
|
+
# "The first post!",
|
12701
|
+
# "Welcome! This is my first post!",
|
12702
|
+
# 5
|
12703
|
+
# ],
|
12704
|
+
# [
|
12257
12705
|
# 2,
|
12258
12706
|
# "Groonga",
|
12259
12707
|
# "I started to use groonga. It\(aqs very fast!",
|
12260
12708
|
# 10
|
12261
12709
|
# ],
|
12262
12710
|
# [
|
12263
|
-
#
|
12264
|
-
# "
|
12265
|
-
# "I
|
12266
|
-
#
|
12711
|
+
# 4,
|
12712
|
+
# "Good\-bye Senna",
|
12713
|
+
# "I migrated all Senna system!",
|
12714
|
+
# 3
|
12715
|
+
# ],
|
12716
|
+
# [
|
12717
|
+
# 5,
|
12718
|
+
# "Good\-bye Tritonn",
|
12719
|
+
# "I also migrated all Tritonn system!",
|
12720
|
+
# 3
|
12267
12721
|
# ]
|
12268
12722
|
# ]
|
12269
12723
|
# ]
|
@@ -12271,48 +12725,15 @@ select Entries \-\-match_columns content \-\-query "popular" \-\-query_expansion
|
|
12271
12725
|
.ft P
|
12272
12726
|
.fi
|
12273
12727
|
.sp
|
12274
|
-
この \
|
12275
|
-
.sp
|
12276
|
-
この \fBselect\fP コマンドは \fBEntries\fP テーブルの中から \fBn_likes\fP カラムの値が \fB10\fP 以上のレコードを出力します。
|
12277
|
-
.SS \fBquery_flags\fP
|
12278
|
-
.sp
|
12279
|
-
\fBquery\fP パラメーターの構文をカスタマイズします。デフォルトでは \fBquery\fP パラメーターでカラムの値を更新することはできません。しかし、 \fBquery_flags\fP に \fBALLOW_COLUMN|ALLOW_UPDATE\fP を指定することで \fBquery\fP でカラムの値を更新することができます。
|
12280
|
-
.sp
|
12281
|
-
指定可能な値は以下の通りです。
|
12282
|
-
.INDENT 0.0
|
12283
|
-
.IP \(bu 2
|
12284
|
-
\fBALLOW_PRAGMA\fP
|
12285
|
-
.IP \(bu 2
|
12286
|
-
\fBALLOW_COLUMN\fP
|
12287
|
-
.IP \(bu 2
|
12288
|
-
\fBALLOW_UPDATE\fP
|
12289
|
-
.IP \(bu 2
|
12290
|
-
\fBALLOW_LEADING_NOT\fP
|
12291
|
-
.IP \(bu 2
|
12292
|
-
\fBNONE\fP
|
12293
|
-
.UNINDENT
|
12294
|
-
.sp
|
12295
|
-
\fBALLOW_PRAGMA\fP を指定すると \fBquery\fP の先頭でプラグマを指定することができます。この機能はまだ実装されていません。
|
12296
|
-
.sp
|
12297
|
-
\fBALLOW_COLUMN\fP を指定すると \fBmatch_columns\fP で指定していないカラムでも検索できるように成ります。カラムを指定するには \fBCOLUMN:...\fP というような構文を使います。
|
12298
|
-
.sp
|
12299
|
-
\fBALLOW_UPDATE\fP を指定すると \fBCOLUMN:=NEW_VALUE\fP という構文を使って \fBquery\fP でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 \fBALLOW_COLUMN\fP も一緒に指定する必要があります。
|
12300
|
-
.sp
|
12301
|
-
\fBALLOW_LEADING_NOT\fP を指定すると \fB\-WORD\fP という構文を使って最初の条件として否定条件を指定できます。このクエリーは \fBWORD\fP にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリーは多くの場合重いクエリーになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリーとなるということを十分気をつけてください。
|
12302
|
-
.sp
|
12303
|
-
\fBNONE\fP は単に無視されます。フラグを指定しないときに \fBNONE\fP を使えます。
|
12304
|
-
.sp
|
12305
|
-
これらのフラグは \fBALLOW_COLUMN|ALLOW_UPDATE\fP のように \fB|\fP で区切って同時に指定することができます。
|
12306
|
-
.sp
|
12307
|
-
デフォルト値は \fBALLOW_PRAGMA|ALLOW_COLUMN\fP です。
|
12728
|
+
この \fBselect\fP コマンドは \fBEntries\fP テーブルの中から \fBcontent\fP カラムの値に \fBmroonga\fP を含んでいないレコードを検索します。
|
12308
12729
|
.sp
|
12309
|
-
以下は \
|
12730
|
+
以下は \fBNONE\fP の使用例です。
|
12310
12731
|
.sp
|
12311
12732
|
実行例:
|
12312
12733
|
.sp
|
12313
12734
|
.nf
|
12314
12735
|
.ft C
|
12315
|
-
select Entries \-\-
|
12736
|
+
select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(aq \-\-query_flags NONE
|
12316
12737
|
# [
|
12317
12738
|
# [
|
12318
12739
|
# 0,
|
@@ -12354,25 +12775,51 @@ select Entries \-\-query content:@mroonga \-\-query_flags ALLOW_COLUMN
|
|
12354
12775
|
.ft P
|
12355
12776
|
.fi
|
12356
12777
|
.sp
|
12357
|
-
この \fBselect\fP コマンドは \fBEntries\fP テーブルの中から \fBcontent\fP カラムの値に \fBmroonga\fP
|
12778
|
+
この \fBselect\fP コマンドは \fBEntries\fP テーブルの中から \fBcontent\fP カラムの値に \fBmroonga\fP または \fB_key:Groonga\fP のどちらかの単語を含んでいるレコードを検索します。 \fB_key:Groonga\fP が \fB_key\fP カラムの値が \fBGroonga\fP という条件にはならないことに注意してください。これは \fBALLOW_COLUMN\fP フラグが指定されていないからです。
|
12779
|
+
.sp
|
12780
|
+
\fB/reference/grn_expr/query_syntax\fP も見てください。
|
12781
|
+
.SS クエリー展開オブジェクト一覧
|
12782
|
+
.sp
|
12783
|
+
クエリー展開用の引数です。クエリー展開はクエリー中の特定の単語を別の単語に置換します。通常は類義語検索に使います。
|
12358
12784
|
.sp
|
12359
|
-
|
12785
|
+
\fBquery\fP 引数の値を置換するために使うカラムを指定します。この引数の値の書式は「 \fB${TABLE}.${COLUMN}\fP 」です。例えば、 「 \fBTerms.synonym\fP 」は \fBTerms\fP テーブルの \fBsynonym\fP カラムを指定しています。
|
12786
|
+
.sp
|
12787
|
+
クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは \fBShortText\fP にしてください。そのため、配列テーブル( \fBTABLE_NO_KEY\fP )は置換テーブルに使うことはできません。なぜなら、配列テーブルにはキーがないからです。
|
12788
|
+
.sp
|
12789
|
+
クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は \fBShortText\fP にしてください。カラムの種類はベクター( \fBCOLUMN_VECTOR\fP )にしてください。
|
12790
|
+
.sp
|
12791
|
+
クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 \fBquery\fP の中にある単語が置換テーブルのキーだったら、キーに対応する置換カラムの値でその単語を置換します。置換は再帰的に実行しません。これは、置換されたクエリー内に置換対象の単語があっても置換されないということです。
|
12792
|
+
.sp
|
12793
|
+
以下は \fBquery_expander\fP の簡単な使用例を示すためのサンプル置換テーブルです。
|
12360
12794
|
.sp
|
12361
12795
|
実行例:
|
12362
12796
|
.sp
|
12363
12797
|
.nf
|
12364
12798
|
.ft C
|
12365
|
-
table_create
|
12799
|
+
table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
12366
12800
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
12367
|
-
column_create
|
12801
|
+
column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
12368
12802
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
12369
|
-
load \-\-table
|
12803
|
+
load \-\-table Thesaurus
|
12370
12804
|
[
|
12371
|
-
{"_key": "
|
12372
|
-
{"_key": "
|
12805
|
+
{"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
12806
|
+
{"_key": "groonga", "synonym": ["groonga", "senna"]}
|
12373
12807
|
]
|
12374
12808
|
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
12375
|
-
|
12809
|
+
.ft P
|
12810
|
+
.fi
|
12811
|
+
.sp
|
12812
|
+
\fBThesaurus\fP 置換テーブルは2つの類義語があります。 \fB"mroonga"\fP と \fB"groonga"\fP です。ユーザが \fB"mroonga"\fP で検索すると、groongaは \fB"((mroonga) OR (tritonn) OR (groonga mysql))"\fP で検索します。ユーザーが \fB"groonga"\fP で検索すると、groongaは \fB"((groonga) OR (senna))"\fP で検索します。通常、置換テーブルには \fBKEY_NORMALIZE\fP フラグをつけた方がよいです。このフラグを使うと、置換対象の単語が大文字小文字区別せずにマッチするようになります。
|
12813
|
+
.sp
|
12814
|
+
これらの類義語の値の中に \fB"mroonga"\fP や \fB"groonga"\fP といったキーの値も含まれていることに注意してください。このように類義語にキーの値も含めることを推奨します。もしキーの値を含めないと、置換した値には元の置換対象の値が含まれません。通常、元の値が含まれていた方がよい検索結果になります。もし、検索してほしくない単語がある場合は、元の単語を含めないでください。例えば、空のベクター値を指定することで「ストップワード」機能を実現することもできます。
|
12815
|
+
.sp
|
12816
|
+
以下は簡単な \fBquery_expander\fP の使用例です。
|
12817
|
+
.sp
|
12818
|
+
実行例:
|
12819
|
+
.sp
|
12820
|
+
.nf
|
12821
|
+
.ft C
|
12822
|
+
select Entries \-\-match_columns content \-\-query "mroonga"
|
12376
12823
|
# [
|
12377
12824
|
# [
|
12378
12825
|
# 0,
|
@@ -12382,7 +12829,7 @@ select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
|
12382
12829
|
# [
|
12383
12830
|
# [
|
12384
12831
|
# [
|
12385
|
-
#
|
12832
|
+
# 1
|
12386
12833
|
# ],
|
12387
12834
|
# [
|
12388
12835
|
# [
|
@@ -12394,24 +12841,24 @@ select Users \-\-query age:=19 \-\-query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
|
12394
12841
|
# "ShortText"
|
12395
12842
|
# ],
|
12396
12843
|
# [
|
12397
|
-
# "
|
12844
|
+
# "content",
|
12845
|
+
# "Text"
|
12846
|
+
# ],
|
12847
|
+
# [
|
12848
|
+
# "n_likes",
|
12398
12849
|
# "UInt32"
|
12399
12850
|
# ]
|
12400
12851
|
# ],
|
12401
12852
|
# [
|
12402
|
-
#
|
12403
|
-
# "
|
12404
|
-
#
|
12405
|
-
#
|
12406
|
-
# [
|
12407
|
-
# 2,
|
12408
|
-
# "bob",
|
12409
|
-
# 19
|
12853
|
+
# 3,
|
12854
|
+
# "Mroonga",
|
12855
|
+
# "I also started to use mroonga. It\(aqs also very fast! Really fast!",
|
12856
|
+
# 15
|
12410
12857
|
# ]
|
12411
12858
|
# ]
|
12412
12859
|
# ]
|
12413
12860
|
# ]
|
12414
|
-
select
|
12861
|
+
select Entries \-\-match_columns content \-\-query "mroonga" \-\-query_expander Thesaurus.synonym
|
12415
12862
|
# [
|
12416
12863
|
# [
|
12417
12864
|
# 0,
|
@@ -12433,35 +12880,30 @@ select Users
|
|
12433
12880
|
# "ShortText"
|
12434
12881
|
# ],
|
12435
12882
|
# [
|
12436
|
-
# "
|
12883
|
+
# "content",
|
12884
|
+
# "Text"
|
12885
|
+
# ],
|
12886
|
+
# [
|
12887
|
+
# "n_likes",
|
12437
12888
|
# "UInt32"
|
12438
12889
|
# ]
|
12439
12890
|
# ],
|
12440
12891
|
# [
|
12441
|
-
#
|
12442
|
-
# "
|
12443
|
-
#
|
12892
|
+
# 3,
|
12893
|
+
# "Mroonga",
|
12894
|
+
# "I also started to use mroonga. It\(aqs also very fast! Really fast!",
|
12895
|
+
# 15
|
12444
12896
|
# ],
|
12445
12897
|
# [
|
12446
|
-
#
|
12447
|
-
# "
|
12448
|
-
#
|
12898
|
+
# 5,
|
12899
|
+
# "Good\-bye Tritonn",
|
12900
|
+
# "I also migrated all Tritonn system!",
|
12901
|
+
# 3
|
12449
12902
|
# ]
|
12450
12903
|
# ]
|
12451
12904
|
# ]
|
12452
12905
|
# ]
|
12453
|
-
|
12454
|
-
.fi
|
12455
|
-
.sp
|
12456
|
-
最初の \fBselect\fP コマンドは全てのレコードの \fBage\fP カラムの値を \fB19\fP にします。二番目の \fBselect\fP コマンドは \fBage\fP カラムの値を出力します。
|
12457
|
-
.sp
|
12458
|
-
以下は \fBALLOW_LEADING_NOT\fP の使用例です。
|
12459
|
-
.sp
|
12460
|
-
実行例:
|
12461
|
-
.sp
|
12462
|
-
.nf
|
12463
|
-
.ft C
|
12464
|
-
select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALLOW_LEADING_NOT
|
12906
|
+
select Entries \-\-match_columns content \-\-query "((mroonga) OR (tritonn) OR (groonga mysql))"
|
12465
12907
|
# [
|
12466
12908
|
# [
|
12467
12909
|
# 0,
|
@@ -12471,7 +12913,7 @@ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALL
|
|
12471
12913
|
# [
|
12472
12914
|
# [
|
12473
12915
|
# [
|
12474
|
-
#
|
12916
|
+
# 2
|
12475
12917
|
# ],
|
12476
12918
|
# [
|
12477
12919
|
# [
|
@@ -12492,22 +12934,10 @@ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALL
|
|
12492
12934
|
# ]
|
12493
12935
|
# ],
|
12494
12936
|
# [
|
12495
|
-
#
|
12496
|
-
# "
|
12497
|
-
# "
|
12498
|
-
#
|
12499
|
-
# ],
|
12500
|
-
# [
|
12501
|
-
# 2,
|
12502
|
-
# "Groonga",
|
12503
|
-
# "I started to use groonga. It\(aqs very fast!",
|
12504
|
-
# 10
|
12505
|
-
# ],
|
12506
|
-
# [
|
12507
|
-
# 4,
|
12508
|
-
# "Good\-bye Senna",
|
12509
|
-
# "I migrated all Senna system!",
|
12510
|
-
# 3
|
12937
|
+
# 3,
|
12938
|
+
# "Mroonga",
|
12939
|
+
# "I also started to use mroonga. It\(aqs also very fast! Really fast!",
|
12940
|
+
# 15
|
12511
12941
|
# ],
|
12512
12942
|
# [
|
12513
12943
|
# 5,
|
@@ -12521,15 +12951,22 @@ select Entries \-\-match_columns content \-\-query \-mroonga \-\-query_flags ALL
|
|
12521
12951
|
.ft P
|
12522
12952
|
.fi
|
12523
12953
|
.sp
|
12524
|
-
|
12954
|
+
最初の \fBselect\fP コマンドはクエリー展開を使いません。そのため、 \fB"tritonn"\fP という単語を含んでいるレコードは見つかりません。2番目の \fBselect\fP コマンドはクエリー展開を使っています。そのため、 \fB"tritonn"\fP という単語を含んでいるレコードが見つかります。3番目の \fBselect\fP コマンドはクエリー展開を使っていませんが、2番目の \fBselect\fP コマンドと同じ結果になります。これは、3番目の \fBselect\fP コマンドは展開後のクエリーを使っているからです。
|
12525
12955
|
.sp
|
12526
|
-
|
12956
|
+
それぞれの置換する値は \fB(...)\fP や \fBOR\fP といった \fB/reference/grn_expr/query_syntax\fP を使えます。これらの構文を使うことにより複雑な置換をすることができます。
|
12957
|
+
.sp
|
12958
|
+
以下はクエリー構文を使った複雑な置換の使用例です。
|
12527
12959
|
.sp
|
12528
12960
|
実行例:
|
12529
12961
|
.sp
|
12530
12962
|
.nf
|
12531
12963
|
.ft C
|
12532
|
-
|
12964
|
+
load \-\-table Thesaurus
|
12965
|
+
[
|
12966
|
+
{"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
12967
|
+
]
|
12968
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
12969
|
+
select Entries \-\-match_columns content \-\-query "popular" \-\-query_expander Thesaurus.synonym
|
12533
12970
|
# [
|
12534
12971
|
# [
|
12535
12972
|
# 0,
|
@@ -12539,7 +12976,7 @@ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(
|
|
12539
12976
|
# [
|
12540
12977
|
# [
|
12541
12978
|
# [
|
12542
|
-
#
|
12979
|
+
# 2
|
12543
12980
|
# ],
|
12544
12981
|
# [
|
12545
12982
|
# [
|
@@ -12560,6 +12997,12 @@ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(
|
|
12560
12997
|
# ]
|
12561
12998
|
# ],
|
12562
12999
|
# [
|
13000
|
+
# 2,
|
13001
|
+
# "Groonga",
|
13002
|
+
# "I started to use groonga. It\(aqs very fast!",
|
13003
|
+
# 10
|
13004
|
+
# ],
|
13005
|
+
# [
|
12563
13006
|
# 3,
|
12564
13007
|
# "Mroonga",
|
12565
13008
|
# "I also started to use mroonga. It\(aqs also very fast! Really fast!",
|
@@ -12571,9 +13014,9 @@ select Entries \-\-match_columns content \-\-query \(aqmroonga OR _key:Groonga\(
|
|
12571
13014
|
.ft P
|
12572
13015
|
.fi
|
12573
13016
|
.sp
|
12574
|
-
この \
|
13017
|
+
この \fBload\fP コマンドは新しく \fB"popular"\fP という類義語を登録しています。これは \fB((popular) OR (n_likes:>=10))\fP に置換されます。置換されたクエリーは、「popular」というのは「popular」という単語を含んでいるか10以上の「いいね!」数を持つエントリという意味になります。
|
12575
13018
|
.sp
|
12576
|
-
\
|
13019
|
+
この \fBselect\fP コマンドは \fBEntries\fP テーブルの中から \fBn_likes\fP カラムの値が \fB10\fP 以上のレコードを出力します。
|
12577
13020
|
.SS 出力関連の引数
|
12578
13021
|
.SS \fBoutput_columns\fP
|
12579
13022
|
.sp
|
@@ -13294,20 +13737,29 @@ statusコマンドは、groongaプロセスの状態を表示します。主にg
|
|
13294
13737
|
.nf
|
13295
13738
|
.ft C
|
13296
13739
|
下記の項目がハッシュ形式で出力されます。
|
13297
|
-
|
13298
|
-
\(ga\(gaalloc_count\(ga\(ga
|
13299
|
-
|
13300
|
-
groongaプロセスの内部でアロケートされ、まだ解放されてないメモリブロックの数を示します。groongaをbuildする際に、configureオプションで \-\-enable\-exact\-alloc\-countが指定されていたならば、正確な値を返します。それ以外の場合は不正確な値を返す場合があります。
|
13301
|
-
|
13302
|
-
\(ga\(gastarttime\(ga\(ga
|
13303
|
-
|
13304
|
-
groongaプロセスが起動した時刻のtvsec値を返します。
|
13305
|
-
|
13306
|
-
\(ga\(gauptime\(ga\(ga
|
13307
|
-
|
13308
|
-
groongaプロセスが起動してから経過した秒数を返します。
|
13309
13740
|
.ft P
|
13310
13741
|
.fi
|
13742
|
+
.sp
|
13743
|
+
\fBalloc_count\fP
|
13744
|
+
.INDENT 0.0
|
13745
|
+
.INDENT 3.5
|
13746
|
+
groongaプロセスの内部でアロケートされ、まだ解放されてないメモリブロックの数を示します。groongaをbuildする際に、configureオプションで \-\-enable\-exact\-alloc\-countが指定されていたならば、正確な値を返します。それ以外の場合は不正確な値を返す場合があります。
|
13747
|
+
.UNINDENT
|
13748
|
+
.UNINDENT
|
13749
|
+
.sp
|
13750
|
+
開始時間
|
13751
|
+
.INDENT 0.0
|
13752
|
+
.INDENT 3.5
|
13753
|
+
groongaプロセスが起動した時刻のtvsec値を返します。
|
13754
|
+
.UNINDENT
|
13755
|
+
.UNINDENT
|
13756
|
+
.sp
|
13757
|
+
稼動時間
|
13758
|
+
.INDENT 0.0
|
13759
|
+
.INDENT 3.5
|
13760
|
+
groongaプロセスが起動してから経過した秒数を返します。
|
13761
|
+
.UNINDENT
|
13762
|
+
.UNINDENT
|
13311
13763
|
.SS 例
|
13312
13764
|
.sp
|
13313
13765
|
実行例:
|
@@ -14267,62 +14719,193 @@ table_list
|
|
14267
14719
|
# null
|
14268
14720
|
# ],
|
14269
14721
|
# [
|
14270
|
-
# 258,
|
14271
|
-
# "Tags",
|
14272
|
-
# "/tmp/groonga\-databases/commands_table_create.0000102",
|
14273
|
-
# "TABLE_HASH_KEY|PERSISTENT",
|
14274
|
-
# "ShortText",
|
14275
|
-
# null,
|
14276
|
-
# null,
|
14277
|
-
# null
|
14722
|
+
# 258,
|
14723
|
+
# "Tags",
|
14724
|
+
# "/tmp/groonga\-databases/commands_table_create.0000102",
|
14725
|
+
# "TABLE_HASH_KEY|PERSISTENT",
|
14726
|
+
# "ShortText",
|
14727
|
+
# null,
|
14728
|
+
# null,
|
14729
|
+
# null
|
14730
|
+
# ]
|
14731
|
+
# ]
|
14732
|
+
# ]
|
14733
|
+
.ft P
|
14734
|
+
.fi
|
14735
|
+
.SS table_remove
|
14736
|
+
.SS 名前
|
14737
|
+
.sp
|
14738
|
+
table_remove \- テーブルの削除
|
14739
|
+
.SS 書式
|
14740
|
+
.sp
|
14741
|
+
.nf
|
14742
|
+
.ft C
|
14743
|
+
table_remove name
|
14744
|
+
.ft P
|
14745
|
+
.fi
|
14746
|
+
.SS 説明
|
14747
|
+
.sp
|
14748
|
+
groonga組込コマンドの一つであるtable_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
|
14749
|
+
.sp
|
14750
|
+
table_removeはテーブルと定義されているカラムを削除します。カラムに付随するインデックスも再帰的に削除されます。
|
14751
|
+
.SS 引数
|
14752
|
+
.INDENT 0.0
|
14753
|
+
.TP
|
14754
|
+
.B \fBname\fP
|
14755
|
+
削除対象のカラムが定義されているテーブルの名前を指定します。
|
14756
|
+
.UNINDENT
|
14757
|
+
.SS 返値
|
14758
|
+
.SS json形式
|
14759
|
+
.sp
|
14760
|
+
.nf
|
14761
|
+
.ft C
|
14762
|
+
[成功かどうかのフラグ]
|
14763
|
+
.ft P
|
14764
|
+
.fi
|
14765
|
+
.sp
|
14766
|
+
\fB成功かどうかのフラグ\fP
|
14767
|
+
.INDENT 0.0
|
14768
|
+
.INDENT 3.5
|
14769
|
+
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
14770
|
+
.UNINDENT
|
14771
|
+
.UNINDENT
|
14772
|
+
.SS 例
|
14773
|
+
.sp
|
14774
|
+
.nf
|
14775
|
+
.ft C
|
14776
|
+
table_remove Entry
|
14777
|
+
|
14778
|
+
[true]
|
14779
|
+
.ft P
|
14780
|
+
.fi
|
14781
|
+
.SS \fBtruncate\fP
|
14782
|
+
.SS 概要
|
14783
|
+
.sp
|
14784
|
+
\fBtruncate\fP コマンドは指定したテーブルのレコードをすべて削除します。
|
14785
|
+
.SS 構文
|
14786
|
+
.sp
|
14787
|
+
\fBtruncate\fP コマンドの引数は1つだけです:
|
14788
|
+
.sp
|
14789
|
+
\fBtable\fP だけが必須の引数です。
|
14790
|
+
.sp
|
14791
|
+
.nf
|
14792
|
+
.ft C
|
14793
|
+
truncate table
|
14794
|
+
.ft P
|
14795
|
+
.fi
|
14796
|
+
.SS 使い方
|
14797
|
+
.sp
|
14798
|
+
以下は \fBtruncate\fP コマンドの簡単な使用例です。
|
14799
|
+
.sp
|
14800
|
+
実行例:
|
14801
|
+
.sp
|
14802
|
+
.nf
|
14803
|
+
.ft C
|
14804
|
+
table_create Users TABLE_PAT_KEY ShortText
|
14805
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
14806
|
+
load \-\-table Users
|
14807
|
+
[
|
14808
|
+
{"_key": "Alice", "score": 2},
|
14809
|
+
{"_key": "Bob", "score": 0},
|
14810
|
+
{"_key": "Carlos", "score": \-1}
|
14811
|
+
]
|
14812
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
14813
|
+
select Users
|
14814
|
+
# [
|
14815
|
+
# [
|
14816
|
+
# 0,
|
14817
|
+
# 1337566253.89858,
|
14818
|
+
# 0.000355720520019531
|
14819
|
+
# ],
|
14820
|
+
# [
|
14821
|
+
# [
|
14822
|
+
# [
|
14823
|
+
# 3
|
14824
|
+
# ],
|
14825
|
+
# [
|
14826
|
+
# [
|
14827
|
+
# "_id",
|
14828
|
+
# "UInt32"
|
14829
|
+
# ],
|
14830
|
+
# [
|
14831
|
+
# "_key",
|
14832
|
+
# "ShortText"
|
14833
|
+
# ]
|
14834
|
+
# ],
|
14835
|
+
# [
|
14836
|
+
# 1,
|
14837
|
+
# "Alice"
|
14838
|
+
# ],
|
14839
|
+
# [
|
14840
|
+
# 2,
|
14841
|
+
# "Bob"
|
14842
|
+
# ],
|
14843
|
+
# [
|
14844
|
+
# 3,
|
14845
|
+
# "Carlos"
|
14846
|
+
# ]
|
14847
|
+
# ]
|
14848
|
+
# ]
|
14849
|
+
# ]
|
14850
|
+
truncate Users
|
14851
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
14852
|
+
select Users
|
14853
|
+
# [
|
14854
|
+
# [
|
14855
|
+
# 0,
|
14856
|
+
# 1337566253.89858,
|
14857
|
+
# 0.000355720520019531
|
14858
|
+
# ],
|
14859
|
+
# [
|
14860
|
+
# [
|
14861
|
+
# [
|
14862
|
+
# 0
|
14863
|
+
# ],
|
14864
|
+
# [
|
14865
|
+
# [
|
14866
|
+
# "_id",
|
14867
|
+
# "UInt32"
|
14868
|
+
# ],
|
14869
|
+
# [
|
14870
|
+
# "_key",
|
14871
|
+
# "ShortText"
|
14872
|
+
# ]
|
14873
|
+
# ]
|
14278
14874
|
# ]
|
14279
14875
|
# ]
|
14280
14876
|
# ]
|
14281
14877
|
.ft P
|
14282
14878
|
.fi
|
14283
|
-
.SS
|
14284
|
-
.SS 名前
|
14879
|
+
.SS 引数
|
14285
14880
|
.sp
|
14286
|
-
|
14287
|
-
.SS
|
14881
|
+
このセクションでは \fBtruncate\fP の引数について説明します。
|
14882
|
+
.SS 必須引数
|
14883
|
+
.sp
|
14884
|
+
\fBtable_name\fP だけが必須の引数です。
|
14885
|
+
.SS \fBtable_name\fP
|
14886
|
+
.sp
|
14887
|
+
テーブルの名前を指定します。
|
14888
|
+
.SS 戻り値
|
14288
14889
|
.sp
|
14289
14890
|
.nf
|
14290
14891
|
.ft C
|
14291
|
-
|
14892
|
+
[HEADER, SUCCEEDED_OR_NOT]
|
14292
14893
|
.ft P
|
14293
14894
|
.fi
|
14294
|
-
.SS 説明
|
14295
|
-
.sp
|
14296
|
-
groonga組込コマンドの一つであるtable_removeについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。
|
14297
14895
|
.sp
|
14298
|
-
|
14299
|
-
.SS 引数
|
14896
|
+
\fBHEADER\fP
|
14300
14897
|
.INDENT 0.0
|
14301
|
-
.
|
14302
|
-
|
14303
|
-
|
14898
|
+
.INDENT 3.5
|
14899
|
+
HEADERのフォーマットは [0, UNIX_TIME_WHEN_COMMAND_IS_STARTED, ELAPSED_TIME] です。HEADERについては \fB/reference/command/output_format\fP を参照してください。
|
14900
|
+
.UNINDENT
|
14304
14901
|
.UNINDENT
|
14305
|
-
.SS 返値
|
14306
|
-
.SS json形式
|
14307
|
-
.sp
|
14308
|
-
.nf
|
14309
|
-
.ft C
|
14310
|
-
[成功かどうかのフラグ]
|
14311
|
-
|
14312
|
-
\(ga\(ga成功かどうかのフラグ\(ga\(ga
|
14313
|
-
|
14314
|
-
エラーが生じなかった場合にはtrue、エラーが生じた場合にはfalseを返す。
|
14315
|
-
.ft P
|
14316
|
-
.fi
|
14317
|
-
.SS 例
|
14318
14902
|
.sp
|
14319
|
-
|
14320
|
-
.
|
14321
|
-
|
14322
|
-
|
14323
|
-
|
14324
|
-
.
|
14325
|
-
.fi
|
14903
|
+
\fBSUCCEEDED_OR_NOT\fP
|
14904
|
+
.INDENT 0.0
|
14905
|
+
.INDENT 3.5
|
14906
|
+
コマンドの実行が成功するとtrueを返します。失敗するとエラーとしてfalseを返します。
|
14907
|
+
.UNINDENT
|
14908
|
+
.UNINDENT
|
14326
14909
|
.SS データ型
|
14327
14910
|
.SS 名前
|
14328
14911
|
.sp
|
@@ -14838,6 +15421,41 @@ table_create NFKC51Lexicon TABLE_HASH_KEY ShortText \-\-normalizer NormalizerNFK
|
|
14838
15421
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
14839
15422
|
.ft P
|
14840
15423
|
.fi
|
15424
|
+
.SS 追加のノーマライザー
|
15425
|
+
.sp
|
15426
|
+
\fBgroonga\-normalizer\-mysql\fP パッケージで提供される追加のノーマライザーのリストです。
|
15427
|
+
.INDENT 0.0
|
15428
|
+
.INDENT 3.5
|
15429
|
+
.INDENT 0.0
|
15430
|
+
.IP \(bu 2
|
15431
|
+
\fBNormalizerMySQLGeneralCI\fP
|
15432
|
+
.UNINDENT
|
15433
|
+
.UNINDENT
|
15434
|
+
.UNINDENT
|
15435
|
+
.sp
|
15436
|
+
\fBgroonga\-normalizer\-mysql\fP はgroongaのプラグインです。MySQL互換のノーマライザーを提供します。ノーマライザー \fBNormalizerMySQLGeneralCI\fP に対応するのは \fButf8mb4_general_ci\fP です。
|
15437
|
+
.sp
|
15438
|
+
事前に \fBnormalizers/mysql\fP プラグインを登録する必要があります。
|
15439
|
+
.sp
|
15440
|
+
実行例:
|
15441
|
+
.sp
|
15442
|
+
.nf
|
15443
|
+
.ft C
|
15444
|
+
register normalizers/mysql
|
15445
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
15446
|
+
.ft P
|
15447
|
+
.fi
|
15448
|
+
.sp
|
15449
|
+
以下は \fBNormalizerMySQLGeneralCI\fP ノーマライザーを使う例です。
|
15450
|
+
.sp
|
15451
|
+
実行例:
|
15452
|
+
.sp
|
15453
|
+
.nf
|
15454
|
+
.ft C
|
15455
|
+
table_create MySQLGeneralLexicon TABLE_HASH_KEY ShortText \-\-normalizer NormalizerMySQLGeneralCI
|
15456
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
15457
|
+
.ft P
|
15458
|
+
.fi
|
14841
15459
|
.SS 参考
|
14842
15460
|
.INDENT 0.0
|
14843
15461
|
.IP \(bu 2
|
@@ -19255,6 +19873,175 @@ select Documents \-\-output_columns \(aqsnippet_html("Groonga is very fast fullt
|
|
19255
19873
|
.IP \(bu 2
|
19256
19874
|
\fB/reference/commands/select\fP
|
19257
19875
|
.UNINDENT
|
19876
|
+
.SS sub_filter
|
19877
|
+
.SS 概要
|
19878
|
+
.sp
|
19879
|
+
\fBsub_filter\fP は \fBquery_string\fP を \fBmatch_column\fP のコンテキストで評価します。
|
19880
|
+
.sp
|
19881
|
+
\fBsub_filter\fP は \fB/reference/commands/select\fP コマンドの \fB\-\-filter\fP 内でのみ指定できます。
|
19882
|
+
.SS 構文
|
19883
|
+
.sp
|
19884
|
+
\fBsub_filter\fP は2つの引数が必要です。 \fBmatch_column\fP と \fBquery_string\fP です。
|
19885
|
+
.sp
|
19886
|
+
.nf
|
19887
|
+
.ft C
|
19888
|
+
sub_filter(match_column, query_string)
|
19889
|
+
.ft P
|
19890
|
+
.fi
|
19891
|
+
.SS 使い方
|
19892
|
+
.sp
|
19893
|
+
使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。
|
19894
|
+
.sp
|
19895
|
+
サンプルスキーマ:
|
19896
|
+
.sp
|
19897
|
+
実行例:
|
19898
|
+
.sp
|
19899
|
+
.nf
|
19900
|
+
.ft C
|
19901
|
+
table_create Comment TABLE_PAT_KEY UInt32
|
19902
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19903
|
+
column_create Comment name COLUMN_SCALAR ShortText
|
19904
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19905
|
+
column_create Comment content COLUMN_SCALAR ShortText
|
19906
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19907
|
+
table_create Blog TABLE_PAT_KEY ShortText
|
19908
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19909
|
+
column_create Blog title COLUMN_SCALAR ShortText
|
19910
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19911
|
+
column_create Blog content COLUMN_SCALAR ShortText
|
19912
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19913
|
+
column_create Blog comments COLUMN_VECTOR Comment
|
19914
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19915
|
+
column_create Comment blog_comment_index COLUMN_INDEX Blog comments
|
19916
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19917
|
+
table_create Lexicon TABLE_PAT_KEY ShortText \-\-default_tokenizer TokenBigram
|
19918
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19919
|
+
column_create Lexicon comment_content COLUMN_INDEX|WITH_POSITION Comment content
|
19920
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19921
|
+
column_create Lexicon comment_name COLUMN_INDEX|WITH_POSITION Comment name
|
19922
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19923
|
+
column_create Lexicon blog_content COLUMN_INDEX|WITH_POSITION Blog content
|
19924
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
19925
|
+
.ft P
|
19926
|
+
.fi
|
19927
|
+
.sp
|
19928
|
+
サンプルデータ:
|
19929
|
+
.sp
|
19930
|
+
実行例:
|
19931
|
+
.sp
|
19932
|
+
.nf
|
19933
|
+
.ft C
|
19934
|
+
load \-\-table Comment
|
19935
|
+
[
|
19936
|
+
{"_key": 1, "name": "A", "content": "groonga"},
|
19937
|
+
{"_key": 2, "name": "B", "content": "groonga"},
|
19938
|
+
{"_key": 3, "name": "C", "content": "rroonga"},
|
19939
|
+
{"_key": 4, "name": "A", "content": "mroonga"},
|
19940
|
+
]
|
19941
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 4]
|
19942
|
+
load \-\-table Blog
|
19943
|
+
[
|
19944
|
+
{"_key": "groonga\(aqs blog", "content": "content of groonga\(aqs blog", comments: [1, 2, 3]},
|
19945
|
+
{"_key": "mroonga\(aqs blog", "content": "content of mroonga\(aqs blog", comments: [2, 3, 4]},
|
19946
|
+
{"_key": "rroonga\(aqs blog", "content": "content of rroonga\(aqs blog", comments: [3]},
|
19947
|
+
]
|
19948
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 3]
|
19949
|
+
.ft P
|
19950
|
+
.fi
|
19951
|
+
.INDENT 0.0
|
19952
|
+
.TP
|
19953
|
+
.B ブログのエントリを抽出する \fBsub_filter\fP 関数の使用例です。
|
19954
|
+
ユーザー\(aqA\(aqのコメント
|
19955
|
+
.UNINDENT
|
19956
|
+
.sp
|
19957
|
+
実行例:
|
19958
|
+
.sp
|
19959
|
+
.nf
|
19960
|
+
.ft C
|
19961
|
+
select Blog \-\-output_columns _key \e
|
19962
|
+
\-\-filter "comments.name @ \e"A\e" && comments.content @ \e"groonga\e""
|
19963
|
+
.ft P
|
19964
|
+
.fi
|
19965
|
+
.sp
|
19966
|
+
上記のクエリを実行すると、"groonga\(aqs blog"だけでなく、"mroonga\(aqs blog"もマッチします。ユーザー"A"は"mroonga\(aqs blog"に対しては"groonga"に言及していないので、これは意図していない結果です。
|
19967
|
+
.sp
|
19968
|
+
sub_filterなしでは、以下の条件が満たされます。
|
19969
|
+
.INDENT 0.0
|
19970
|
+
.IP \(bu 2
|
19971
|
+
すくなくとも一つはユーザー"A"がコメントしたレコードがある。
|
19972
|
+
.IP \(bu 2
|
19973
|
+
すくなくとも一つは"groonga"について言及したレコードがある。
|
19974
|
+
.UNINDENT
|
19975
|
+
.sp
|
19976
|
+
実行例:
|
19977
|
+
.sp
|
19978
|
+
.nf
|
19979
|
+
.ft C
|
19980
|
+
select Blog \-\-output_columns _key \e
|
19981
|
+
# [
|
19982
|
+
# [
|
19983
|
+
# 0,
|
19984
|
+
# 1337566253.89858,
|
19985
|
+
# 0.000355720520019531
|
19986
|
+
# ],
|
19987
|
+
# [
|
19988
|
+
# [
|
19989
|
+
# [
|
19990
|
+
# 2
|
19991
|
+
# ],
|
19992
|
+
# [
|
19993
|
+
# [
|
19994
|
+
# "_key",
|
19995
|
+
# "ShortText"
|
19996
|
+
# ]
|
19997
|
+
# ],
|
19998
|
+
# [
|
19999
|
+
# "groonga\(aqs blog"
|
20000
|
+
# ],
|
20001
|
+
# [
|
20002
|
+
# "mroonga\(aqs blog"
|
20003
|
+
# ]
|
20004
|
+
# ]
|
20005
|
+
# ]
|
20006
|
+
# ]
|
20007
|
+
\-\-filter \(aqsub_filter(comments, "name @ \e\e"A\e\e" && content @ \e\e"groonga\e\e"")\(aq
|
20008
|
+
.ft P
|
20009
|
+
.fi
|
20010
|
+
.sp
|
20011
|
+
一方、上記のクエリは意図した結果を返します。これは、sub_filterの引数がcommentsカラムのコンテキストで評価されるからです。
|
20012
|
+
.sp
|
20013
|
+
sub_filterは以下の条件が満たされていることを要求します。
|
20014
|
+
.INDENT 0.0
|
20015
|
+
.IP \(bu 2
|
20016
|
+
ユーザー"A"が"groonga"について言及しているレコードがある。
|
20017
|
+
.UNINDENT
|
20018
|
+
.SS 引数
|
20019
|
+
.sp
|
20020
|
+
必須引数は二つあります。 \fBmatch_column\fP と \fBquery_string\fP です。
|
20021
|
+
.SS \fBmatch_column\fP
|
20022
|
+
.INDENT 0.0
|
20023
|
+
.INDENT 3.5
|
20024
|
+
\fBmatch_columns\fP と同様のパラメータを指定します。
|
20025
|
+
.UNINDENT
|
20026
|
+
.UNINDENT
|
20027
|
+
.sp
|
20028
|
+
match_columnについては \fIselect\-match\-columns\fP を参照してください。
|
20029
|
+
.SS \fBquery_string\fP
|
20030
|
+
.INDENT 0.0
|
20031
|
+
.INDENT 3.5
|
20032
|
+
\fBquery\fP と同様のパラメータを指定します。
|
20033
|
+
.UNINDENT
|
20034
|
+
.UNINDENT
|
20035
|
+
.sp
|
20036
|
+
query stringについては \fIselect\-query\fP を参照してください。
|
20037
|
+
.SS 戻り値
|
20038
|
+
.sp
|
20039
|
+
\fBsub_filter\fP は真偽値(trueもしくはfalse)を返します。
|
20040
|
+
.SS 参考
|
20041
|
+
.INDENT 0.0
|
20042
|
+
.IP \(bu 2
|
20043
|
+
\fB/reference/commands/select\fP
|
20044
|
+
.UNINDENT
|
19258
20045
|
.SS インデックス構築
|
19259
20046
|
.sp
|
19260
20047
|
groongaは2.0.0から動的なインデックス構築方法と静的なインデックス構築方法を両方サポートしています。
|
@@ -20575,6 +21362,17 @@ groonga用の課題追跡システム(ITS, Issue Tracking System)が2つあ
|
|
20575
21362
|
.sp
|
20576
21363
|
groongaプロジェクトではgroongaについて議論するための \fB/community\fP があります。バグを説明したメールを送ってください。
|
20577
21364
|
.SS groonga開発者向け情報
|
21365
|
+
.SS リポジトリ
|
21366
|
+
.sp
|
21367
|
+
groongaのリポジトリは \fI\%GitHub\fP 上にあります。次のコマンドでcloneできます。
|
21368
|
+
.sp
|
21369
|
+
.nf
|
21370
|
+
.ft C
|
21371
|
+
% git clone git://github.com/groonga/groonga.git
|
21372
|
+
.ft P
|
21373
|
+
.fi
|
21374
|
+
.sp
|
21375
|
+
\fI\%groonga関係のプロジェクト(grntest, fluent-plugin-groongaなど)\fP のリストはリンク先をごらんください。
|
20578
21376
|
.SS groonga 通信アーキテクチャ
|
20579
21377
|
.SS gqtpでのアーキテクチャ
|
20580
21378
|
.INDENT 0.0
|
@@ -21679,6 +22477,17 @@ centosの場合、CENTOS_VERSIONSを指定することで特定のバージョ
|
|
21679
22477
|
.sp
|
21680
22478
|
パッケージの署名に必要な秘密鍵のパスフレーズについては
|
21681
22479
|
リリース担当者向けの秘密鍵を復号したテキストの1行目に記載してあります。
|
22480
|
+
.SS バージョンを明示的に指定してドキュメントを生成したい
|
22481
|
+
.sp
|
22482
|
+
リリース後にドキュメントの一部を差し替えたい場合、特に何も指定しないと生成したHTMLに埋め込まれるバージョンが「v3.0.1\-xxxxxドキュメント」となってしまうことがあります。gitでのコミット時ハッシュの一部が使われるためです。
|
22483
|
+
.sp
|
22484
|
+
これを回避するには、以下のようにDOCUMENT_VERSIONやDOCUMENT_VERSION_FULLを明示的に指定します。:
|
22485
|
+
.sp
|
22486
|
+
.nf
|
22487
|
+
.ft C
|
22488
|
+
% make update\-document DOCUMENT_VERSION=3.0.1 DOCUMENT_VERSION_FULL=3.0.1
|
22489
|
+
.ft P
|
22490
|
+
.fi
|
21682
22491
|
.SS テスト方法
|
21683
22492
|
.SS テスト環境の構築
|
21684
22493
|
.SS Cutterのインストール
|
@@ -21949,6 +22758,7 @@ pull requestを送るためのコマンドライン:
|
|
21949
22758
|
.fi
|
21950
22759
|
.sp
|
21951
22760
|
これでGitHub上でpull requestを送る準備ができました。あとは、GitHub上の自分のリポジトリのページへアクセスして \fIPull Request\fP ボタンを押すだけです。
|
22761
|
+
.IP 参考
|
21952
22762
|
pull requestの送り方
|
21953
22763
|
.RE
|
21954
22764
|
.SS パッチの送り方
|
@@ -21979,6 +22789,7 @@ doc/locale/${LANGUAGE}/LC_MESSAGES/以下を.tar.gzや.zipなどでアーカイ
|
|
21979
22789
|
.fi
|
21980
22790
|
.sp
|
21981
22791
|
\fI${LANGUAGE}\fP は\(aqja\(aqなどの自分の言語の言語コードに置き換えてください。
|
22792
|
+
.IP 参考
|
21982
22793
|
言語名を表記するためのコード
|
21983
22794
|
.RE
|
21984
22795
|
.INDENT 0.0
|