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>8.3.
|
10
|
+
<title>8.3.20. quit — 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,10 +26,10 @@
|
|
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="8.3. コマンド" href="../command.html" />
|
31
|
-
<link rel="next" title="8.3.
|
32
|
-
<link rel="prev" title="8.3.
|
31
|
+
<link rel="next" title="8.3.21. register" href="register.html" />
|
32
|
+
<link rel="prev" title="8.3.19. normalize" href="normalize.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,12 +56,12 @@
|
|
56
56
|
<a href="../../genindex.html" title="総合索引"
|
57
57
|
accesskey="I">索引</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="register.html" title="8.3.
|
59
|
+
<a href="register.html" title="8.3.21. register"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="
|
62
|
+
<a href="normalize.html" title="8.3.19. normalize"
|
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="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
66
66
|
<li><a href="../command.html" accesskey="U">8.3. コマンド</a> »</li>
|
67
67
|
</ul>
|
@@ -73,32 +73,32 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="quit">
|
76
|
-
<h1>8.3.
|
76
|
+
<h1>8.3.20. quit<a class="headerlink" href="#quit" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
77
|
<div class="section" id="id1">
|
78
|
-
<h2>8.3.
|
78
|
+
<h2>8.3.20.1. 名前<a class="headerlink" href="#id1" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
79
79
|
<p>quit - セッション終了</p>
|
80
80
|
</div>
|
81
81
|
<div class="section" id="id2">
|
82
|
-
<h2>8.3.
|
82
|
+
<h2>8.3.20.2. 書式<a class="headerlink" href="#id2" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
83
83
|
<div class="highlight-none"><div class="highlight"><pre>quit
|
84
84
|
</pre></div>
|
85
85
|
</div>
|
86
86
|
</div>
|
87
87
|
<div class="section" id="id3">
|
88
|
-
<h2>8.3.
|
88
|
+
<h2>8.3.20.3. 説明<a class="headerlink" href="#id3" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
89
89
|
<p>groonga組込コマンドの一つであるquitについて説明します。組込コマンドは、groonga実行ファイルの引数、標準入力、またはソケット経由でgroongaサーバにリクエストを送信することによって実行します。</p>
|
90
90
|
<p>quitは、groongaプロセスとのセッションを終了します。クライアントプロセスならばgroongaプロセスとの接続を切ります。</p>
|
91
91
|
</div>
|
92
92
|
<div class="section" id="id4">
|
93
|
-
<h2>8.3.
|
93
|
+
<h2>8.3.20.4. 引数<a class="headerlink" href="#id4" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
94
94
|
<p>ありません。</p>
|
95
95
|
</div>
|
96
96
|
<div class="section" id="id5">
|
97
|
-
<h2>8.3.
|
97
|
+
<h2>8.3.20.5. 返値<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
98
98
|
<p>ありません。</p>
|
99
99
|
</div>
|
100
100
|
<div class="section" id="id6">
|
101
|
-
<h2>8.3.
|
101
|
+
<h2>8.3.20.6. 例<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
102
102
|
<div class="highlight-none"><div class="highlight"><pre>quit
|
103
103
|
</pre></div>
|
104
104
|
</div>
|
@@ -113,23 +113,23 @@
|
|
113
113
|
<div class="sphinxsidebarwrapper">
|
114
114
|
<h3><a href="../../index.html">目次</a></h3>
|
115
115
|
<ul>
|
116
|
-
<li><a class="reference internal" href="#">8.3.
|
117
|
-
<li><a class="reference internal" href="#id1">8.3.
|
118
|
-
<li><a class="reference internal" href="#id2">8.3.
|
119
|
-
<li><a class="reference internal" href="#id3">8.3.
|
120
|
-
<li><a class="reference internal" href="#id4">8.3.
|
121
|
-
<li><a class="reference internal" href="#id5">8.3.
|
122
|
-
<li><a class="reference internal" href="#id6">8.3.
|
116
|
+
<li><a class="reference internal" href="#">8.3.20. quit</a><ul>
|
117
|
+
<li><a class="reference internal" href="#id1">8.3.20.1. 名前</a></li>
|
118
|
+
<li><a class="reference internal" href="#id2">8.3.20.2. 書式</a></li>
|
119
|
+
<li><a class="reference internal" href="#id3">8.3.20.3. 説明</a></li>
|
120
|
+
<li><a class="reference internal" href="#id4">8.3.20.4. 引数</a></li>
|
121
|
+
<li><a class="reference internal" href="#id5">8.3.20.5. 返値</a></li>
|
122
|
+
<li><a class="reference internal" href="#id6">8.3.20.6. 例</a></li>
|
123
123
|
</ul>
|
124
124
|
</li>
|
125
125
|
</ul>
|
126
126
|
|
127
127
|
<h4>前のトピックへ</h4>
|
128
|
-
<p class="topless"><a href="
|
129
|
-
title="前の章へ">8.3.
|
128
|
+
<p class="topless"><a href="normalize.html"
|
129
|
+
title="前の章へ">8.3.19. <tt class="docutils literal docutils literal docutils literal"><span class="pre">normalize</span></tt></a></p>
|
130
130
|
<h4>次のトピックへ</h4>
|
131
131
|
<p class="topless"><a href="register.html"
|
132
|
-
title="次の章へ">8.3.
|
132
|
+
title="次の章へ">8.3.21. register</a></p>
|
133
133
|
<h3>このページ</h3>
|
134
134
|
<ul class="this-page-menu">
|
135
135
|
<li><a href="../../_sources/reference/commands/quit.txt"
|
@@ -159,12 +159,12 @@
|
|
159
159
|
<a href="../../genindex.html" title="総合索引"
|
160
160
|
>索引</a></li>
|
161
161
|
<li class="right" >
|
162
|
-
<a href="register.html" title="8.3.
|
162
|
+
<a href="register.html" title="8.3.21. register"
|
163
163
|
>次へ</a> |</li>
|
164
164
|
<li class="right" >
|
165
|
-
<a href="
|
165
|
+
<a href="normalize.html" title="8.3.19. normalize"
|
166
166
|
>前へ</a> |</li>
|
167
|
-
<li><a href="../../index.html">groonga
|
167
|
+
<li><a href="../../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
168
168
|
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
169
169
|
<li><a href="../command.html" >8.3. コマンド</a> »</li>
|
170
170
|
</ul>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>8.3.
|
10
|
+
<title>8.3.21. register — 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,10 +26,10 @@
|
|
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="8.3. コマンド" href="../command.html" />
|
31
|
-
<link rel="next" title="8.3.
|
32
|
-
<link rel="prev" title="8.3.
|
31
|
+
<link rel="next" title="8.3.22. select" href="select.html" />
|
32
|
+
<link rel="prev" title="8.3.20. quit" href="quit.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,12 +56,12 @@
|
|
56
56
|
<a href="../../genindex.html" title="総合索引"
|
57
57
|
accesskey="I">索引</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="select.html" title="8.3.
|
59
|
+
<a href="select.html" title="8.3.22. select"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="quit.html" title="8.3.
|
62
|
+
<a href="quit.html" title="8.3.20. quit"
|
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="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
66
66
|
<li><a href="../command.html" accesskey="U">8.3. コマンド</a> »</li>
|
67
67
|
</ul>
|
@@ -73,9 +73,9 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="register">
|
76
|
-
<h1>8.3.
|
76
|
+
<h1>8.3.21. register<a class="headerlink" href="#register" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
77
|
<div class="section" id="summary">
|
78
|
-
<h2>8.3.
|
78
|
+
<h2>8.3.21.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
79
79
|
<p><tt class="docutils literal"><span class="pre">register</span></tt> コマンドはプラグインを登録します。プラグインを使う前にプラグインを登録する必要があります。</p>
|
80
80
|
<p>同じデータベースに対しては1つのプラグインについて一度だけ <cite>register`</cite> コマンドを実行すれば十分です。これは、登録されたプラグイン情報はデータベースに記録されているからです。 <tt class="docutils literal"><span class="pre">groonga</span></tt> プロセスを再起動したときは、 <tt class="docutils literal"><span class="pre">register</span></tt> コマンドを実行しなくてもすでに登録されているプラグインを読み込みます。</p>
|
81
81
|
<div class="admonition note">
|
@@ -84,14 +84,14 @@
|
|
84
84
|
</div>
|
85
85
|
</div>
|
86
86
|
<div class="section" id="syntax">
|
87
|
-
<h2>8.3.
|
87
|
+
<h2>8.3.21.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
88
88
|
<p><tt class="docutils literal"><span class="pre">register</span></tt> の引数は <tt class="docutils literal"><span class="pre">path</span></tt> だけです。これは必須の引数です:</p>
|
89
89
|
<div class="highlight-none"><div class="highlight"><pre>register path
|
90
90
|
</pre></div>
|
91
91
|
</div>
|
92
92
|
</div>
|
93
93
|
<div class="section" id="usage">
|
94
|
-
<h2>8.3.
|
94
|
+
<h2>8.3.21.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
95
95
|
<p>これは <tt class="docutils literal"><span class="pre">${PREFIX}/lib/groonga/plugins/query_expanders/tsv.so</span></tt> に含まれている <tt class="docutils literal"><span class="pre">QueryExpanderTSV</span></tt> クエリー展開オブジェクトを登録する例です。</p>
|
96
96
|
<p>実行例:</p>
|
97
97
|
<div class="highlight-none"><div class="highlight"><pre>register query_expanders/tsv
|
@@ -102,7 +102,7 @@
|
|
102
102
|
<p><tt class="docutils literal"><span class="pre">register</span> <span class="pre">/usr/lib/groonga/plugins/query_expanders/tsv.so</span></tt> というように絶対パスを指定することもできます。</p>
|
103
103
|
</div>
|
104
104
|
<div class="section" id="return-value">
|
105
|
-
<h2>8.3.
|
105
|
+
<h2>8.3.21.4. 戻り値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
106
106
|
<p><tt class="docutils literal"><span class="pre">register</span></tt> が成功したときは以下のようにボディは <tt class="docutils literal"><span class="pre">true</span></tt> になります:</p>
|
107
107
|
<div class="highlight-none"><div class="highlight"><pre>[HEADER, true]
|
108
108
|
</pre></div>
|
@@ -120,21 +120,21 @@
|
|
120
120
|
<div class="sphinxsidebarwrapper">
|
121
121
|
<h3><a href="../../index.html">目次</a></h3>
|
122
122
|
<ul>
|
123
|
-
<li><a class="reference internal" href="#">8.3.
|
124
|
-
<li><a class="reference internal" href="#summary">8.3.
|
125
|
-
<li><a class="reference internal" href="#syntax">8.3.
|
126
|
-
<li><a class="reference internal" href="#usage">8.3.
|
127
|
-
<li><a class="reference internal" href="#return-value">8.3.
|
123
|
+
<li><a class="reference internal" href="#">8.3.21. register</a><ul>
|
124
|
+
<li><a class="reference internal" href="#summary">8.3.21.1. 概要</a></li>
|
125
|
+
<li><a class="reference internal" href="#syntax">8.3.21.2. 構文</a></li>
|
126
|
+
<li><a class="reference internal" href="#usage">8.3.21.3. 使い方</a></li>
|
127
|
+
<li><a class="reference internal" href="#return-value">8.3.21.4. 戻り値</a></li>
|
128
128
|
</ul>
|
129
129
|
</li>
|
130
130
|
</ul>
|
131
131
|
|
132
132
|
<h4>前のトピックへ</h4>
|
133
133
|
<p class="topless"><a href="quit.html"
|
134
|
-
title="前の章へ">8.3.
|
134
|
+
title="前の章へ">8.3.20. quit</a></p>
|
135
135
|
<h4>次のトピックへ</h4>
|
136
136
|
<p class="topless"><a href="select.html"
|
137
|
-
title="次の章へ">8.3.
|
137
|
+
title="次の章へ">8.3.22. <tt class="docutils literal"><span class="pre">select</span></tt></a></p>
|
138
138
|
<h3>このページ</h3>
|
139
139
|
<ul class="this-page-menu">
|
140
140
|
<li><a href="../../_sources/reference/commands/register.txt"
|
@@ -164,12 +164,12 @@
|
|
164
164
|
<a href="../../genindex.html" title="総合索引"
|
165
165
|
>索引</a></li>
|
166
166
|
<li class="right" >
|
167
|
-
<a href="select.html" title="8.3.
|
167
|
+
<a href="select.html" title="8.3.22. select"
|
168
168
|
>次へ</a> |</li>
|
169
169
|
<li class="right" >
|
170
|
-
<a href="quit.html" title="8.3.
|
170
|
+
<a href="quit.html" title="8.3.20. quit"
|
171
171
|
>前へ</a> |</li>
|
172
|
-
<li><a href="../../index.html">groonga
|
172
|
+
<li><a href="../../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
173
173
|
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
174
174
|
<li><a href="../command.html" >8.3. コマンド</a> »</li>
|
175
175
|
</ul>
|
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>8.3.
|
10
|
+
<title>8.3.22. select — 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,10 +26,10 @@
|
|
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="8.3. コマンド" href="../command.html" />
|
31
|
-
<link rel="next" title="8.3.
|
32
|
-
<link rel="prev" title="8.3.
|
31
|
+
<link rel="next" title="8.3.23. shutdown" href="shutdown.html" />
|
32
|
+
<link rel="prev" title="8.3.21. register" href="register.html" />
|
33
33
|
</head>
|
34
34
|
<body>
|
35
35
|
<div class="header">
|
@@ -56,12 +56,12 @@
|
|
56
56
|
<a href="../../genindex.html" title="総合索引"
|
57
57
|
accesskey="I">索引</a></li>
|
58
58
|
<li class="right" >
|
59
|
-
<a href="shutdown.html" title="8.3.
|
59
|
+
<a href="shutdown.html" title="8.3.23. shutdown"
|
60
60
|
accesskey="N">次へ</a> |</li>
|
61
61
|
<li class="right" >
|
62
|
-
<a href="register.html" title="8.3.
|
62
|
+
<a href="register.html" title="8.3.21. register"
|
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="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
66
66
|
<li><a href="../command.html" accesskey="U">8.3. コマンド</a> »</li>
|
67
67
|
</ul>
|
@@ -73,14 +73,14 @@
|
|
73
73
|
<div class="body">
|
74
74
|
|
75
75
|
<div class="section" id="select">
|
76
|
-
<h1>8.3.
|
76
|
+
<h1>8.3.22. <tt class="docutils literal"><span class="pre">select</span></tt><a class="headerlink" href="#select" title="このヘッドラインへのパーマリンク">¶</a></h1>
|
77
77
|
<div class="section" id="summary">
|
78
|
-
<h2>8.3.
|
78
|
+
<h2>8.3.22.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
79
79
|
<p><tt class="docutils literal"><span class="pre">select</span></tt> はテーブルから指定された条件にマッチするレコードを検索し、見つかったレコードを出力します。</p>
|
80
80
|
<p><tt class="docutils literal"><span class="pre">select</span></tt> は最も重要なgroongaのコマンドです。groongaの力を最大限に活かすためには <tt class="docutils literal"><span class="pre">select</span></tt> を理解する必要があります。</p>
|
81
81
|
</div>
|
82
82
|
<div class="section" id="syntax">
|
83
|
-
<h2>8.3.
|
83
|
+
<h2>8.3.22.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
84
84
|
<p><tt class="docutils literal"><span class="pre">select</span></tt> には多くの引数があります。必須の引数は <tt class="docutils literal"><span class="pre">table</span></tt> だけで、残りは省略できます。:</p>
|
85
85
|
<div class="highlight-none"><div class="highlight"><pre>select table
|
86
86
|
[match_columns=null]
|
@@ -100,11 +100,12 @@
|
|
100
100
|
[match_escalation_threshold=0]
|
101
101
|
[query_expansion=null]
|
102
102
|
[query_flags=ALLOW_PRAGMA|ALLOW_COLUMN|ALLOW_UPDATE|ALLOW_LEADING_NOT|NONE]
|
103
|
+
[query_expander=null]
|
103
104
|
</pre></div>
|
104
105
|
</div>
|
105
106
|
</div>
|
106
107
|
<div class="section" id="usage">
|
107
|
-
<h2>8.3.
|
108
|
+
<h2>8.3.22.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
108
109
|
<p>例を使いながら <tt class="docutils literal"><span class="pre">select</span></tt> の使い方を学びましょう。このセクションではよく使われる使い方を紹介します。</p>
|
109
110
|
<p>使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
|
110
111
|
<p>実行例:</p>
|
@@ -145,7 +146,7 @@ load --table Entries
|
|
145
146
|
<p><tt class="docutils literal"><span class="pre">Entries._key</span></tt> カラムと <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムには <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーを使ったインデックスを作成します。そのため、 <tt class="docutils literal"><span class="pre">Entries._key</span></tt> と <tt class="docutils literal"><span class="pre">Entries.content</span></tt> は両方とも全文検索できます。</p>
|
146
147
|
<p>これで例を示すためのスキーマとデータの準備ができました。</p>
|
147
148
|
<div class="section" id="simple-usage">
|
148
|
-
<h3>8.3.
|
149
|
+
<h3>8.3.22.3.1. 簡単な使い方<a class="headerlink" href="#simple-usage" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
149
150
|
<p>上記のスキーマとデータを使った一番簡単な使い方は以下の通りです。これは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルのすべてのレコードを出力します。</p>
|
150
151
|
<p>実行例:</p>
|
151
152
|
<div class="highlight-none"><div class="highlight"><pre>select Entries
|
@@ -216,10 +217,10 @@ load --table Entries
|
|
216
217
|
<p>どうしてこのコマンドがすべてのレコードを出力するのでしょうか?理由は2つです。1つ目の理由はこのコマンドが検索条件を何も指定していないからです。検索条件を指定しないとすべてのレコードがマッチします。2つ目の理由は全レコード数が5だからです。 <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはデフォルトでは最大10レコードを出力します。この例では5レコードしかありません。これは10よりも少ないのですべてのレコードを出力します。</p>
|
217
218
|
</div>
|
218
219
|
<div class="section" id="search-conditions">
|
219
|
-
<h3>8.3.
|
220
|
+
<h3>8.3.22.3.2. 検索条件<a class="headerlink" href="#search-conditions" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
220
221
|
<p>検索条件は <tt class="docutils literal"><span class="pre">query</span></tt> または <tt class="docutils literal"><span class="pre">filter</span></tt> で指定します。 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> を両方指定することもできます。この場合は <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> の両方の条件にマッチしたレコードが出力されます。</p>
|
221
222
|
<div class="section" id="search-condition-query">
|
222
|
-
<h4>8.3.
|
223
|
+
<h4>8.3.22.3.2.1. 検索条件: <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#search-condition-query" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
223
224
|
<p><tt class="docutils literal"><span class="pre">query</span></tt> はWebページの検索ボックス用に用意されています。例えば、google.co.jpにあるような検索ボックスです。 <tt class="docutils literal"><span class="pre">query</span></tt> の検索条件はスペース区切りでキーワードを指定します。例えば、 <tt class="docutils literal"><span class="pre">検索</span> <span class="pre">エンジン</span></tt> は <tt class="docutils literal"><span class="pre">検索</span></tt> と <tt class="docutils literal"><span class="pre">エンジン</span></tt> という2つのキーワードを含むレコードを検索します。</p>
|
224
225
|
<p>通常は <tt class="docutils literal"><span class="pre">query</span></tt> 引数は全文検索条件を指定するために使います。全文検索条件以外も指定できますが、その用途には <tt class="docutils literal"><span class="pre">filter</span></tt> 引数の方が向いています。</p>
|
225
226
|
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数で全文検索条件を指定する場合は、 <tt class="docutils literal"><span class="pre">match_columns</span></tt> 引数と一緒に使います。 <tt class="docutils literal"><span class="pre">match_columns</span></tt> はどのカラムまたはインデックスを使って <tt class="docutils literal"><span class="pre">query</span></tt> を検索するかを指定します。</p>
|
@@ -276,7 +277,7 @@ load --table Entries
|
|
276
277
|
<p><tt class="docutils literal"><span class="pre">query</span></tt> はクエリー構文という構文を使いますが、詳細はここでは説明しません。詳細は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
|
277
278
|
</div>
|
278
279
|
<div class="section" id="search-condition-filter">
|
279
|
-
<h4>8.3.
|
280
|
+
<h4>8.3.22.3.2.2. 検索条件: <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#search-condition-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
280
281
|
<p><tt class="docutils literal"><span class="pre">filter</span></tt> は複雑な検索条件を指定するために用意されています。ECMAScriptのような構文で <tt class="docutils literal"><span class="pre">filter</span></tt> に検索条件を指定します。</p>
|
281
282
|
<p>以下は簡単な <tt class="docutils literal"><span class="pre">filter</span></tt> の使用例です。</p>
|
282
283
|
<p>実行例:</p>
|
@@ -326,7 +327,7 @@ load --table Entries
|
|
326
327
|
</div>
|
327
328
|
</div>
|
328
329
|
<div class="section" id="paging">
|
329
|
-
<h3>8.3.
|
330
|
+
<h3>8.3.22.3.3. ページング<a class="headerlink" href="#paging" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
330
331
|
<p><tt class="docutils literal"><span class="pre">offset</span></tt> と <tt class="docutils literal"><span class="pre">limit</span></tt> を指定することで出力されるレコードの範囲を指定できます。以下は2番目のレコードだけを出力する例です。</p>
|
331
332
|
<p>実行例:</p>
|
332
333
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --offset 1 --limit 1
|
@@ -374,7 +375,7 @@ load --table Entries
|
|
374
375
|
<p><tt class="docutils literal"><span class="pre">limit</span></tt> は出力レコード数の最大値を指定します。 <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">1</span></tt> は多くても1レコードを出力するという意味になります。もし、1つもレコードがマッチしていなければ <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはどのレコードも出力しません。</p>
|
375
376
|
</div>
|
376
377
|
<div class="section" id="the-total-number-of-records">
|
377
|
-
<h3>8.3.
|
378
|
+
<h3>8.3.22.3.4. 全レコード数<a class="headerlink" href="#the-total-number-of-records" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
378
379
|
<p><tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> を使うとレコードの内容は取得せずに全レコード数だけを取得できます。</p>
|
379
380
|
<p>実行例:</p>
|
380
381
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit 0
|
@@ -416,13 +417,13 @@ load --table Entries
|
|
416
417
|
</div>
|
417
418
|
</div>
|
418
419
|
<div class="section" id="parameters">
|
419
|
-
<h2>8.3.
|
420
|
+
<h2>8.3.22.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
420
421
|
<p>このセクションではすべての引数について説明します。引数はカテゴリわけしています。</p>
|
421
422
|
<div class="section" id="required-parameter">
|
422
|
-
<h3>8.3.
|
423
|
+
<h3>8.3.22.4.1. 必須引数<a class="headerlink" href="#required-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
423
424
|
<p><tt class="docutils literal"><span class="pre">table</span></tt> だけが必須の引数です。</p>
|
424
425
|
<div class="section" id="table">
|
425
|
-
<h4>8.3.
|
426
|
+
<h4>8.3.22.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt><a class="headerlink" href="#table" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
426
427
|
<p>検索対象のテーブルを指定します。 <tt class="docutils literal"><span class="pre">table</span></tt> は必ず指定しなければいけません。</p>
|
427
428
|
<p>存在しないテーブルを指定するとエラーが返ります。</p>
|
428
429
|
<p>実行例:</p>
|
@@ -447,11 +448,11 @@ load --table Entries
|
|
447
448
|
</div>
|
448
449
|
</div>
|
449
450
|
<div class="section" id="search-related-parameters">
|
450
|
-
<h3>8.3.
|
451
|
+
<h3>8.3.22.4.2. 検索関係の引数<a class="headerlink" href="#search-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
451
452
|
<p>検索関係の引数がいくつかあります。一般的には、検索ボックスを実装するために <tt class="docutils literal"><span class="pre">match_columns</span></tt> と <tt class="docutils literal"><span class="pre">query</span></tt> 引数を使い、複雑な検索機能を実装するために <tt class="docutils literal"><span class="pre">filter</span></tt> 引数を使います。</p>
|
452
453
|
<p><tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> を指定した場合は、 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> にマッチしたレコードが選択されます。 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> のどちらも指定しなかった場合はすべてのレコードが選択されます。</p>
|
453
454
|
<div class="section" id="match-columns">
|
454
|
-
<span id="select-match-columns"></span><h4>8.3.
|
455
|
+
<span id="select-match-columns"></span><h4>8.3.22.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt><a class="headerlink" href="#match-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
455
456
|
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値で全文検索をするときに使うデフォルトの検索対象カラムを指定します。全文検索対象のカラムは <tt class="docutils literal"><span class="pre">query</span></tt> 引数でも指定できます。検索対象カラムを <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定する場合と <tt class="docutils literal"><span class="pre">query</span></tt> で指定する場合の違いは重みを指定できるかどうかです。 <tt class="docutils literal"><span class="pre">match_columns</span></tt> では重みを指定できますが、 <tt class="docutils literal"><span class="pre">query</span></tt> では指定できません。</p>
|
456
457
|
<p>重みは検索対象カラムの相対的な重要度です。重みの大きい検索対象カラムでマッチした場合は小さい検索対象カラムでマッチした場合よりも多くのヒットスコアがつきます。デフォルトの重みは1です。</p>
|
457
458
|
<p>以下は簡単な <tt class="docutils literal"><span class="pre">match_columns</span></tt> の使用例です。</p>
|
@@ -569,7 +570,7 @@ load --table Entries
|
|
569
570
|
<p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'_key</span> <span class="pre">*</span> <span class="pre">10</span> <span class="pre">||</span> <span class="pre">content'</span></tt> はデフォルト検索対象カラムが <tt class="docutils literal"><span class="pre">_key</span></tt> カラムと <tt class="docutils literal"><span class="pre">content</span></tt> カラムで、 <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの重みは10、 <tt class="docutils literal"><span class="pre">content</span></tt> カラムの重みは1という意味です。この重み付けは <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値よりも重要だという意味になります。この例では、ブログエントリのタイトルはブログエントリの内容よりも重要だということです。</p>
|
570
571
|
</div>
|
571
572
|
<div class="section" id="query">
|
572
|
-
<span id="select-query"></span><h4>8.3.
|
573
|
+
<span id="select-query"></span><h4>8.3.22.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#query" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
573
574
|
<p>クエリーテキストを指定します。通常、全文検索をするために <tt class="docutils literal"><span class="pre">match_columns</span></tt> 引数と一緒に使います。 <tt class="docutils literal"><span class="pre">query</span></tt> 引数はWebページにある全文検索フォームで使いやすいように設計されています。クエリーテキストは <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> という書式を使います。この書式はGoogleの検索フォームのように一般的な検索フォームと似ています。例えば、 <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span></tt> は <tt class="docutils literal"><span class="pre">word1</span></tt> と <tt class="docutils literal"><span class="pre">word2</span></tt> を含んでいるレコードを検索するという意味になります。 <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">OR</span> <span class="pre">word2</span></tt> は <tt class="docutils literal"><span class="pre">word1</span></tt> または <tt class="docutils literal"><span class="pre">word2</span></tt> を含んでいるレコードを検索するという意味になります。</p>
|
574
575
|
<p>以下は論理積を使った検索の簡単な例です。</p>
|
575
576
|
<p>実行例:</p>
|
@@ -776,7 +777,7 @@ load --table Entries
|
|
776
777
|
<p>他の演算子は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
|
777
778
|
</div>
|
778
779
|
<div class="section" id="filter">
|
779
|
-
<h4>8.3.
|
780
|
+
<h4>8.3.22.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
780
781
|
<p>フィルターテキストを指定します。通常、 <tt class="docutils literal"><span class="pre">filter</span></tt> は複雑な条件を指定するために使います。 <tt class="docutils literal"><span class="pre">filter</span></tt> は <tt class="docutils literal"><span class="pre">query</span></tt> 引数と一緒に使うこともできます。 <tt class="docutils literal"><span class="pre">filter</span></tt> と <tt class="docutils literal"><span class="pre">query</span></tt> を両方指定した場合はそれらを論理積で組み合わせます。つまり、マッチするレコードは <tt class="docutils literal"><span class="pre">filter</span></tt> にも <tt class="docutils literal"><span class="pre">query</span></tt> にもマッチしなければいけないということです。</p>
|
781
782
|
<p><tt class="docutils literal"><span class="pre">filter</span></tt> 引数は複雑な条件用に設計されています。フィルターテキストは <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> 書式で指定します。この書式はECMAScriptに似ています。例えば、 <tt class="docutils literal"><span class="pre">column</span> <span class="pre">==</span> <span class="pre">"value"</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">"value"</span></tt> と等しいという意味です。 <tt class="docutils literal"><span class="pre">column</span> <span class="pre"><</span> <span class="pre">value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">value</span></tt> よりも小さいという意味です。</p>
|
782
783
|
<p>以下は等価演算子を使った検索の簡単な例です。</p>
|
@@ -889,9 +890,9 @@ load --table Entries
|
|
889
890
|
</div>
|
890
891
|
</div>
|
891
892
|
<div class="section" id="advanced-search-parameters">
|
892
|
-
<h3>8.3.
|
893
|
+
<h3>8.3.22.4.3. 高度な検索のための引数<a class="headerlink" href="#advanced-search-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
893
894
|
<div class="section" id="match-escalation-threshold">
|
894
|
-
<span id="id1"></span><h4>8.3.
|
895
|
+
<span id="id1"></span><h4>8.3.22.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt><a class="headerlink" href="#match-escalation-threshold" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
895
896
|
<p>検索方法をエスカレーションするかどうかを決定するための閾値を指定します。この閾値はマッチしたレコード数との比較に使われます。マッチしたレコード数がこの閾値以下の場合は検索方法をエスカレーションします。検索方法のエスカレーションについては <a class="reference internal" href="../../spec/search.html"><em>検索</em></a> を参照してください。</p>
|
896
897
|
<p>デフォルトの閾値は0です。これは1つもレコードがマッチしなかったときだけ検索方法をエスカレーションするということです。</p>
|
897
898
|
<p>デフォルトの閾値は以下の方法でカスタマイズできます。</p>
|
@@ -982,31 +983,30 @@ select Entries --match_columns content --query groo --match_escalation_threshold
|
|
982
983
|
<p>2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドも <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルから <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groo</span></tt> という単語を含むレコードを検索します。そして、この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドもマッチしません。この場合、マッチしたレコード数(0)が <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (-1)より大きいので、検索方法をエスカレーションしません。そして、1つもレコードがマッチしません。</p>
|
983
984
|
</div>
|
984
985
|
<div class="section" id="query-expansion">
|
985
|
-
<span id="id2"></span><h4>8.3.
|
986
|
-
<p
|
987
|
-
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値を置換するために使うカラムを指定します。この引数の値の書式は「 <tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt> 」です。例えば、 「 <tt class="docutils literal"><span class="pre">Terms.synonym</span></tt> 」は <tt class="docutils literal"><span class="pre">Terms</span></tt> テーブルの <tt class="docutils literal"><span class="pre">synonym</span></tt> カラムを指定しています。</p>
|
988
|
-
<p>クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。そのため、配列テーブル( <tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt> )は置換テーブルに使うことはできません。なぜなら、配列テーブルにはキーがないからです。</p>
|
989
|
-
<p>クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。カラムの種類はベクター( <tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt> )にしてください。</p>
|
990
|
-
<p>クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 <tt class="docutils literal"><span class="pre">query</span></tt> の中にある単語が置換テーブルのキーだったら、キーに対応する置換カラムの値でその単語を置換します。置換は再帰的に実行しません。これは、置換されたクエリー内に置換対象の単語があっても置換されないということです。</p>
|
991
|
-
<p>以下は <tt class="docutils literal"><span class="pre">query_expansion</span></tt> の簡単な使用例を示すためのサンプル置換テーブルです。</p>
|
992
|
-
<p>実行例:</p>
|
993
|
-
<div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
994
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
995
|
-
column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
996
|
-
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
997
|
-
load --table Thesaurus
|
998
|
-
[
|
999
|
-
{"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
1000
|
-
{"_key": "groonga", "synonym": ["groonga", "senna"]}
|
1001
|
-
]
|
1002
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1003
|
-
</pre></div>
|
986
|
+
<span id="id2"></span><h4>8.3.22.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt><a class="headerlink" href="#query-expansion" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
987
|
+
<p>Deprecated. Use <a class="reference internal" href="#query-expander"><em>クエリー展開オブジェクト一覧</em></a> instead.</p>
|
1004
988
|
</div>
|
1005
|
-
<
|
1006
|
-
<
|
1007
|
-
<p
|
989
|
+
<div class="section" id="query-flags">
|
990
|
+
<span id="id3"></span><h4>8.3.22.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt><a class="headerlink" href="#query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
991
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> パラメーターの構文をカスタマイズします。デフォルトでは <tt class="docutils literal"><span class="pre">query</span></tt> パラメーターでカラムの値を更新することはできません。しかし、 <tt class="docutils literal"><span class="pre">query_flags</span></tt> に <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> を指定することで <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新することができます。</p>
|
992
|
+
<p>指定可能な値は以下の通りです。</p>
|
993
|
+
<ul class="simple">
|
994
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
|
995
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
|
996
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
|
997
|
+
<li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
|
998
|
+
<li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
|
999
|
+
</ul>
|
1000
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> を指定すると <tt class="docutils literal"><span class="pre">query</span></tt> の先頭でプラグマを指定することができます。この機能はまだ実装されていません。</p>
|
1001
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> を指定すると <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定していないカラムでも検索できるように成ります。カラムを指定するには <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt> というような構文を使います。</p>
|
1002
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> を指定すると <tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> という構文を使って <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> も一緒に指定する必要があります。</p>
|
1003
|
+
<p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> を指定すると <tt class="docutils literal"><span class="pre">-WORD</span></tt> という構文を使って最初の条件として否定条件を指定できます。このクエリーは <tt class="docutils literal"><span class="pre">WORD</span></tt> にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリーは多くの場合重いクエリーになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリーとなるということを十分気をつけてください。</p>
|
1004
|
+
<p><tt class="docutils literal"><span class="pre">NONE</span></tt> は単に無視されます。フラグを指定しないときに <tt class="docutils literal"><span class="pre">NONE</span></tt> を使えます。</p>
|
1005
|
+
<p>これらのフラグは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> のように <tt class="docutils literal"><span class="pre">|</span></tt> で区切って同時に指定することができます。</p>
|
1006
|
+
<p>デフォルト値は <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt> です。</p>
|
1007
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> の使用例です。</p>
|
1008
1008
|
<p>実行例:</p>
|
1009
|
-
<div class="highlight-none"><div class="highlight"><pre>select Entries --
|
1009
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
|
1010
1010
|
# [
|
1011
1011
|
# [
|
1012
1012
|
# 0,
|
@@ -1045,7 +1045,22 @@ load --table Thesaurus
|
|
1045
1045
|
# ]
|
1046
1046
|
# ]
|
1047
1047
|
# ]
|
1048
|
-
|
1048
|
+
</pre></div>
|
1049
|
+
</div>
|
1050
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> を含んでいるレコードを検索します。</p>
|
1051
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> の使用例です。</p>
|
1052
|
+
<p>実行例:</p>
|
1053
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
|
1054
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1055
|
+
column_create Users age COLUMN_SCALAR UInt32
|
1056
|
+
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1057
|
+
load --table Users
|
1058
|
+
[
|
1059
|
+
{"_key": "alice", "age": 18},
|
1060
|
+
{"_key": "bob", "age": 20}
|
1061
|
+
]
|
1062
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1063
|
+
select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
1049
1064
|
# [
|
1050
1065
|
# [
|
1051
1066
|
# 0,
|
@@ -1067,30 +1082,24 @@ select Entries --match_columns content --query "mroonga" --query_expan
|
|
1067
1082
|
# "ShortText"
|
1068
1083
|
# ],
|
1069
1084
|
# [
|
1070
|
-
# "
|
1071
|
-
# "Text"
|
1072
|
-
# ],
|
1073
|
-
# [
|
1074
|
-
# "n_likes",
|
1085
|
+
# "age",
|
1075
1086
|
# "UInt32"
|
1076
1087
|
# ]
|
1077
1088
|
# ],
|
1078
1089
|
# [
|
1079
|
-
#
|
1080
|
-
# "
|
1081
|
-
#
|
1082
|
-
# 15
|
1090
|
+
# 1,
|
1091
|
+
# "alice",
|
1092
|
+
# 19
|
1083
1093
|
# ],
|
1084
1094
|
# [
|
1085
|
-
#
|
1086
|
-
# "
|
1087
|
-
#
|
1088
|
-
# 3
|
1095
|
+
# 2,
|
1096
|
+
# "bob",
|
1097
|
+
# 19
|
1089
1098
|
# ]
|
1090
1099
|
# ]
|
1091
1100
|
# ]
|
1092
1101
|
# ]
|
1093
|
-
select
|
1102
|
+
select Users
|
1094
1103
|
# [
|
1095
1104
|
# [
|
1096
1105
|
# 0,
|
@@ -1112,41 +1121,29 @@ select Entries --match_columns content --query "((mroonga) OR (tritonn) OR
|
|
1112
1121
|
# "ShortText"
|
1113
1122
|
# ],
|
1114
1123
|
# [
|
1115
|
-
# "
|
1116
|
-
# "Text"
|
1117
|
-
# ],
|
1118
|
-
# [
|
1119
|
-
# "n_likes",
|
1124
|
+
# "age",
|
1120
1125
|
# "UInt32"
|
1121
1126
|
# ]
|
1122
1127
|
# ],
|
1123
1128
|
# [
|
1124
|
-
#
|
1125
|
-
# "
|
1126
|
-
#
|
1127
|
-
# 15
|
1129
|
+
# 1,
|
1130
|
+
# "alice",
|
1131
|
+
# 19
|
1128
1132
|
# ],
|
1129
1133
|
# [
|
1130
|
-
#
|
1131
|
-
# "
|
1132
|
-
#
|
1133
|
-
# 3
|
1134
|
+
# 2,
|
1135
|
+
# "bob",
|
1136
|
+
# 19
|
1134
1137
|
# ]
|
1135
1138
|
# ]
|
1136
1139
|
# ]
|
1137
1140
|
# ]
|
1138
1141
|
</pre></div>
|
1139
1142
|
</div>
|
1140
|
-
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt>
|
1141
|
-
<p
|
1142
|
-
<p>以下はクエリー構文を使った複雑な置換の使用例です。</p>
|
1143
|
+
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは全てのレコードの <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を <tt class="docutils literal"><span class="pre">19</span></tt> にします。二番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を出力します。</p>
|
1144
|
+
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> の使用例です。</p>
|
1143
1145
|
<p>実行例:</p>
|
1144
|
-
<div class="highlight-none"><div class="highlight"><pre>
|
1145
|
-
[
|
1146
|
-
{"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
1147
|
-
]
|
1148
|
-
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
1149
|
-
select Entries --match_columns content --query "popular" --query_expansion Thesaurus.synonym
|
1146
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
|
1150
1147
|
# [
|
1151
1148
|
# [
|
1152
1149
|
# 0,
|
@@ -1156,7 +1153,7 @@ select Entries --match_columns content --query "popular" --query_expan
|
|
1156
1153
|
# [
|
1157
1154
|
# [
|
1158
1155
|
# [
|
1159
|
-
#
|
1156
|
+
# 4
|
1160
1157
|
# ],
|
1161
1158
|
# [
|
1162
1159
|
# [
|
@@ -1177,46 +1174,38 @@ select Entries --match_columns content --query "popular" --query_expan
|
|
1177
1174
|
# ]
|
1178
1175
|
# ],
|
1179
1176
|
# [
|
1177
|
+
# 1,
|
1178
|
+
# "The first post!",
|
1179
|
+
# "Welcome! This is my first post!",
|
1180
|
+
# 5
|
1181
|
+
# ],
|
1182
|
+
# [
|
1180
1183
|
# 2,
|
1181
1184
|
# "Groonga",
|
1182
1185
|
# "I started to use groonga. It's very fast!",
|
1183
1186
|
# 10
|
1184
1187
|
# ],
|
1185
1188
|
# [
|
1186
|
-
#
|
1187
|
-
# "
|
1188
|
-
# "I
|
1189
|
-
#
|
1189
|
+
# 4,
|
1190
|
+
# "Good-bye Senna",
|
1191
|
+
# "I migrated all Senna system!",
|
1192
|
+
# 3
|
1193
|
+
# ],
|
1194
|
+
# [
|
1195
|
+
# 5,
|
1196
|
+
# "Good-bye Tritonn",
|
1197
|
+
# "I also migrated all Tritonn system!",
|
1198
|
+
# 3
|
1190
1199
|
# ]
|
1191
1200
|
# ]
|
1192
1201
|
# ]
|
1193
1202
|
# ]
|
1194
1203
|
</pre></div>
|
1195
1204
|
</div>
|
1196
|
-
<p>この <tt class="docutils literal"><span class="pre">
|
1197
|
-
<p
|
1198
|
-
</div>
|
1199
|
-
<div class="section" id="query-flags">
|
1200
|
-
<span id="id3"></span><h4>8.3.20.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt><a class="headerlink" href="#query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1201
|
-
<p><tt class="docutils literal"><span class="pre">query</span></tt> パラメーターの構文をカスタマイズします。デフォルトでは <tt class="docutils literal"><span class="pre">query</span></tt> パラメーターでカラムの値を更新することはできません。しかし、 <tt class="docutils literal"><span class="pre">query_flags</span></tt> に <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> を指定することで <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新することができます。</p>
|
1202
|
-
<p>指定可能な値は以下の通りです。</p>
|
1203
|
-
<ul class="simple">
|
1204
|
-
<li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
|
1205
|
-
<li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
|
1206
|
-
<li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
|
1207
|
-
<li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
|
1208
|
-
<li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
|
1209
|
-
</ul>
|
1210
|
-
<p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> を指定すると <tt class="docutils literal"><span class="pre">query</span></tt> の先頭でプラグマを指定することができます。この機能はまだ実装されていません。</p>
|
1211
|
-
<p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> を指定すると <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定していないカラムでも検索できるように成ります。カラムを指定するには <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt> というような構文を使います。</p>
|
1212
|
-
<p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> を指定すると <tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> という構文を使って <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> も一緒に指定する必要があります。</p>
|
1213
|
-
<p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> を指定すると <tt class="docutils literal"><span class="pre">-WORD</span></tt> という構文を使って最初の条件として否定条件を指定できます。このクエリーは <tt class="docutils literal"><span class="pre">WORD</span></tt> にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリーは多くの場合重いクエリーになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリーとなるということを十分気をつけてください。</p>
|
1214
|
-
<p><tt class="docutils literal"><span class="pre">NONE</span></tt> は単に無視されます。フラグを指定しないときに <tt class="docutils literal"><span class="pre">NONE</span></tt> を使えます。</p>
|
1215
|
-
<p>これらのフラグは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> のように <tt class="docutils literal"><span class="pre">|</span></tt> で区切って同時に指定することができます。</p>
|
1216
|
-
<p>デフォルト値は <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt> です。</p>
|
1217
|
-
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> の使用例です。</p>
|
1205
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> を含んでいないレコードを検索します。</p>
|
1206
|
+
<p>以下は <tt class="docutils literal"><span class="pre">NONE</span></tt> の使用例です。</p>
|
1218
1207
|
<p>実行例:</p>
|
1219
|
-
<div class="highlight-none"><div class="highlight"><pre>select Entries --query
|
1208
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE
|
1220
1209
|
# [
|
1221
1210
|
# [
|
1222
1211
|
# 0,
|
@@ -1257,20 +1246,35 @@ select Entries --match_columns content --query "popular" --query_expan
|
|
1257
1246
|
# ]
|
1258
1247
|
</pre></div>
|
1259
1248
|
</div>
|
1260
|
-
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt>
|
1261
|
-
<p
|
1249
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> または <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> のどちらかの単語を含んでいるレコードを検索します。 <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> が <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> という条件にはならないことに注意してください。これは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> フラグが指定されていないからです。</p>
|
1250
|
+
<p><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> も見てください。</p>
|
1251
|
+
</div>
|
1252
|
+
<div class="section" id="query-expander">
|
1253
|
+
<span id="id4"></span><h4>8.3.22.4.3.4. クエリー展開オブジェクト一覧<a class="headerlink" href="#query-expander" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1254
|
+
<p>クエリー展開用の引数です。クエリー展開はクエリー中の特定の単語を別の単語に置換します。通常は類義語検索に使います。</p>
|
1255
|
+
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値を置換するために使うカラムを指定します。この引数の値の書式は「 <tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt> 」です。例えば、 「 <tt class="docutils literal"><span class="pre">Terms.synonym</span></tt> 」は <tt class="docutils literal"><span class="pre">Terms</span></tt> テーブルの <tt class="docutils literal"><span class="pre">synonym</span></tt> カラムを指定しています。</p>
|
1256
|
+
<p>クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。そのため、配列テーブル( <tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt> )は置換テーブルに使うことはできません。なぜなら、配列テーブルにはキーがないからです。</p>
|
1257
|
+
<p>クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。カラムの種類はベクター( <tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt> )にしてください。</p>
|
1258
|
+
<p>クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 <tt class="docutils literal"><span class="pre">query</span></tt> の中にある単語が置換テーブルのキーだったら、キーに対応する置換カラムの値でその単語を置換します。置換は再帰的に実行しません。これは、置換されたクエリー内に置換対象の単語があっても置換されないということです。</p>
|
1259
|
+
<p>以下は <tt class="docutils literal"><span class="pre">query_expander</span></tt> の簡単な使用例を示すためのサンプル置換テーブルです。</p>
|
1262
1260
|
<p>実行例:</p>
|
1263
|
-
<div class="highlight-none"><div class="highlight"><pre>table_create
|
1261
|
+
<div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
1264
1262
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1265
|
-
column_create
|
1263
|
+
column_create Thesaurus synonym COLUMN_VECTOR ShortText
|
1266
1264
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
1267
|
-
load --table
|
1265
|
+
load --table Thesaurus
|
1268
1266
|
[
|
1269
|
-
{"_key": "
|
1270
|
-
{"_key": "
|
1267
|
+
{"_key": "mroonga", "synonym": ["mroonga", "tritonn", "groonga mysql"]},
|
1268
|
+
{"_key": "groonga", "synonym": ["groonga", "senna"]}
|
1271
1269
|
]
|
1272
1270
|
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1273
|
-
|
1271
|
+
</pre></div>
|
1272
|
+
</div>
|
1273
|
+
<p><tt class="docutils literal"><span class="pre">Thesaurus</span></tt> 置換テーブルは2つの類義語があります。 <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> と <tt class="docutils literal"><span class="pre">"groonga"</span></tt> です。ユーザが <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> で検索すると、groongaは <tt class="docutils literal"><span class="pre">"((mroonga)</span> <span class="pre">OR</span> <span class="pre">(tritonn)</span> <span class="pre">OR</span> <span class="pre">(groonga</span> <span class="pre">mysql))"</span></tt> で検索します。ユーザーが <tt class="docutils literal"><span class="pre">"groonga"</span></tt> で検索すると、groongaは <tt class="docutils literal"><span class="pre">"((groonga)</span> <span class="pre">OR</span> <span class="pre">(senna))"</span></tt> で検索します。通常、置換テーブルには <tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt> フラグをつけた方がよいです。このフラグを使うと、置換対象の単語が大文字小文字区別せずにマッチするようになります。</p>
|
1274
|
+
<p>これらの類義語の値の中に <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> や <tt class="docutils literal"><span class="pre">"groonga"</span></tt> といったキーの値も含まれていることに注意してください。このように類義語にキーの値も含めることを推奨します。もしキーの値を含めないと、置換した値には元の置換対象の値が含まれません。通常、元の値が含まれていた方がよい検索結果になります。もし、検索してほしくない単語がある場合は、元の単語を含めないでください。例えば、空のベクター値を指定することで「ストップワード」機能を実現することもできます。</p>
|
1275
|
+
<p>以下は簡単な <tt class="docutils literal"><span class="pre">query_expander</span></tt> の使用例です。</p>
|
1276
|
+
<p>実行例:</p>
|
1277
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "mroonga"
|
1274
1278
|
# [
|
1275
1279
|
# [
|
1276
1280
|
# 0,
|
@@ -1280,7 +1284,7 @@ select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
|
1280
1284
|
# [
|
1281
1285
|
# [
|
1282
1286
|
# [
|
1283
|
-
#
|
1287
|
+
# 1
|
1284
1288
|
# ],
|
1285
1289
|
# [
|
1286
1290
|
# [
|
@@ -1292,24 +1296,24 @@ select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE
|
|
1292
1296
|
# "ShortText"
|
1293
1297
|
# ],
|
1294
1298
|
# [
|
1295
|
-
# "
|
1299
|
+
# "content",
|
1300
|
+
# "Text"
|
1301
|
+
# ],
|
1302
|
+
# [
|
1303
|
+
# "n_likes",
|
1296
1304
|
# "UInt32"
|
1297
1305
|
# ]
|
1298
1306
|
# ],
|
1299
1307
|
# [
|
1300
|
-
#
|
1301
|
-
# "
|
1302
|
-
#
|
1303
|
-
#
|
1304
|
-
# [
|
1305
|
-
# 2,
|
1306
|
-
# "bob",
|
1307
|
-
# 19
|
1308
|
+
# 3,
|
1309
|
+
# "Mroonga",
|
1310
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1311
|
+
# 15
|
1308
1312
|
# ]
|
1309
1313
|
# ]
|
1310
1314
|
# ]
|
1311
1315
|
# ]
|
1312
|
-
select
|
1316
|
+
select Entries --match_columns content --query "mroonga" --query_expander Thesaurus.synonym
|
1313
1317
|
# [
|
1314
1318
|
# [
|
1315
1319
|
# 0,
|
@@ -1331,29 +1335,30 @@ select Users
|
|
1331
1335
|
# "ShortText"
|
1332
1336
|
# ],
|
1333
1337
|
# [
|
1334
|
-
# "
|
1338
|
+
# "content",
|
1339
|
+
# "Text"
|
1340
|
+
# ],
|
1341
|
+
# [
|
1342
|
+
# "n_likes",
|
1335
1343
|
# "UInt32"
|
1336
1344
|
# ]
|
1337
1345
|
# ],
|
1338
1346
|
# [
|
1339
|
-
#
|
1340
|
-
# "
|
1341
|
-
#
|
1347
|
+
# 3,
|
1348
|
+
# "Mroonga",
|
1349
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1350
|
+
# 15
|
1342
1351
|
# ],
|
1343
1352
|
# [
|
1344
|
-
#
|
1345
|
-
# "
|
1346
|
-
#
|
1353
|
+
# 5,
|
1354
|
+
# "Good-bye Tritonn",
|
1355
|
+
# "I also migrated all Tritonn system!",
|
1356
|
+
# 3
|
1347
1357
|
# ]
|
1348
1358
|
# ]
|
1349
1359
|
# ]
|
1350
1360
|
# ]
|
1351
|
-
|
1352
|
-
</div>
|
1353
|
-
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは全てのレコードの <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を <tt class="docutils literal"><span class="pre">19</span></tt> にします。二番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を出力します。</p>
|
1354
|
-
<p>以下は <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> の使用例です。</p>
|
1355
|
-
<p>実行例:</p>
|
1356
|
-
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
|
1361
|
+
select Entries --match_columns content --query "((mroonga) OR (tritonn) OR (groonga mysql))"
|
1357
1362
|
# [
|
1358
1363
|
# [
|
1359
1364
|
# 0,
|
@@ -1363,7 +1368,7 @@ select Users
|
|
1363
1368
|
# [
|
1364
1369
|
# [
|
1365
1370
|
# [
|
1366
|
-
#
|
1371
|
+
# 2
|
1367
1372
|
# ],
|
1368
1373
|
# [
|
1369
1374
|
# [
|
@@ -1384,22 +1389,10 @@ select Users
|
|
1384
1389
|
# ]
|
1385
1390
|
# ],
|
1386
1391
|
# [
|
1387
|
-
#
|
1388
|
-
# "
|
1389
|
-
# "
|
1390
|
-
#
|
1391
|
-
# ],
|
1392
|
-
# [
|
1393
|
-
# 2,
|
1394
|
-
# "Groonga",
|
1395
|
-
# "I started to use groonga. It's very fast!",
|
1396
|
-
# 10
|
1397
|
-
# ],
|
1398
|
-
# [
|
1399
|
-
# 4,
|
1400
|
-
# "Good-bye Senna",
|
1401
|
-
# "I migrated all Senna system!",
|
1402
|
-
# 3
|
1392
|
+
# 3,
|
1393
|
+
# "Mroonga",
|
1394
|
+
# "I also started to use mroonga. It's also very fast! Really fast!",
|
1395
|
+
# 15
|
1403
1396
|
# ],
|
1404
1397
|
# [
|
1405
1398
|
# 5,
|
@@ -1412,10 +1405,16 @@ select Users
|
|
1412
1405
|
# ]
|
1413
1406
|
</pre></div>
|
1414
1407
|
</div>
|
1415
|
-
<p
|
1416
|
-
<p
|
1408
|
+
<p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリー展開を使いません。そのため、 <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> という単語を含んでいるレコードは見つかりません。2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリー展開を使っています。そのため、 <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> という単語を含んでいるレコードが見つかります。3番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリー展開を使っていませんが、2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドと同じ結果になります。これは、3番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは展開後のクエリーを使っているからです。</p>
|
1409
|
+
<p>それぞれの置換する値は <tt class="docutils literal"><span class="pre">(...)</span></tt> や <tt class="docutils literal"><span class="pre">OR</span></tt> といった <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を使えます。これらの構文を使うことにより複雑な置換をすることができます。</p>
|
1410
|
+
<p>以下はクエリー構文を使った複雑な置換の使用例です。</p>
|
1417
1411
|
<p>実行例:</p>
|
1418
|
-
<div class="highlight-none"><div class="highlight"><pre>
|
1412
|
+
<div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
|
1413
|
+
[
|
1414
|
+
{"_key": "popular", "synonym": ["popular", "n_likes:>=10"]}
|
1415
|
+
]
|
1416
|
+
# [[0, 1337566253.89858, 0.000355720520019531], 1]
|
1417
|
+
select Entries --match_columns content --query "popular" --query_expander Thesaurus.synonym
|
1419
1418
|
# [
|
1420
1419
|
# [
|
1421
1420
|
# 0,
|
@@ -1425,7 +1424,7 @@ select Users
|
|
1425
1424
|
# [
|
1426
1425
|
# [
|
1427
1426
|
# [
|
1428
|
-
#
|
1427
|
+
# 2
|
1429
1428
|
# ],
|
1430
1429
|
# [
|
1431
1430
|
# [
|
@@ -1446,6 +1445,12 @@ select Users
|
|
1446
1445
|
# ]
|
1447
1446
|
# ],
|
1448
1447
|
# [
|
1448
|
+
# 2,
|
1449
|
+
# "Groonga",
|
1450
|
+
# "I started to use groonga. It's very fast!",
|
1451
|
+
# 10
|
1452
|
+
# ],
|
1453
|
+
# [
|
1449
1454
|
# 3,
|
1450
1455
|
# "Mroonga",
|
1451
1456
|
# "I also started to use mroonga. It's also very fast! Really fast!",
|
@@ -1456,14 +1461,14 @@ select Users
|
|
1456
1461
|
# ]
|
1457
1462
|
</pre></div>
|
1458
1463
|
</div>
|
1459
|
-
<p>この <tt class="docutils literal"><span class="pre">
|
1460
|
-
<p><
|
1464
|
+
<p>この <tt class="docutils literal"><span class="pre">load</span></tt> コマンドは新しく <tt class="docutils literal"><span class="pre">"popular"</span></tt> という類義語を登録しています。これは <tt class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:>=10))</span></tt> に置換されます。置換されたクエリーは、「popular」というのは「popular」という単語を含んでいるか10以上の「いいね!」数を持つエントリという意味になります。</p>
|
1465
|
+
<p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以上のレコードを出力します。</p>
|
1461
1466
|
</div>
|
1462
1467
|
</div>
|
1463
1468
|
<div class="section" id="output-related-parameters">
|
1464
|
-
<h3>8.3.
|
1469
|
+
<h3>8.3.22.4.4. 出力関連の引数<a class="headerlink" href="#output-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1465
1470
|
<div class="section" id="output-columns">
|
1466
|
-
<h4>8.3.
|
1471
|
+
<h4>8.3.22.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt><a class="headerlink" href="#output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1467
1472
|
<p>出力するカラムを <tt class="docutils literal"><span class="pre">,</span></tt> 区切りで指定します。</p>
|
1468
1473
|
<p>以下は簡単な <tt class="docutils literal"><span class="pre">output_columns</span></tt> の使用例です。</p>
|
1469
1474
|
<p>実行例:</p>
|
@@ -1543,7 +1548,7 @@ select Users
|
|
1543
1548
|
<p>デフォルト値は <tt class="docutils literal"><span class="pre">_id,</span> <span class="pre">_key,</span> <span class="pre">*</span></tt> です。これは <tt class="docutils literal"><span class="pre">_score</span></tt> 以外の全てのカラムを出力するという意味です。</p>
|
1544
1549
|
</div>
|
1545
1550
|
<div class="section" id="sortby">
|
1546
|
-
<h4>8.3.
|
1551
|
+
<h4>8.3.22.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt><a class="headerlink" href="#sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1547
1552
|
<p>ソートキーを <tt class="docutils literal"><span class="pre">,</span></tt> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
|
1548
1553
|
<p>以下は簡単な <tt class="docutils literal"><span class="pre">sortby</span></tt> の使用例です。</p>
|
1549
1554
|
<p>実行例:</p>
|
@@ -1723,7 +1728,7 @@ select Users
|
|
1723
1728
|
<p><tt class="docutils literal"><span class="pre">query</span></tt> 引数も <tt class="docutils literal"><span class="pre">filter</span></tt> 引数も指定しないで <tt class="docutils literal"><span class="pre">_score</span></tt> を使った場合は、 <tt class="docutils literal"><span class="pre">_score</span></tt> を無視して、ログファイルに警告を出力します。</p>
|
1724
1729
|
</div>
|
1725
1730
|
<div class="section" id="offset">
|
1726
|
-
<h4>8.3.
|
1731
|
+
<h4>8.3.22.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt><a class="headerlink" href="#offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1727
1732
|
<p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0基点です。 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> は2番目以降のレコードを出力するという意味になります。</p>
|
1728
1733
|
<p>実行例:</p>
|
1729
1734
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 3 --output_columns _key
|
@@ -1791,7 +1796,7 @@ select Users
|
|
1791
1796
|
<p>デフォルト値は <tt class="docutils literal"><span class="pre">0</span></tt> です。</p>
|
1792
1797
|
</div>
|
1793
1798
|
<div class="section" id="limit">
|
1794
|
-
<h4>8.3.
|
1799
|
+
<h4>8.3.22.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt><a class="headerlink" href="#limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1795
1800
|
<p><tt class="docutils literal"><span class="pre">limit</span></tt> は出力レコード数の最大値を指定します。 もし、マッチしたレコード数が <tt class="docutils literal"><span class="pre">limit</span></tt> よりも小さい場合はすべてのレコードが出力されます。</p>
|
1796
1801
|
<p>以下は簡単な <tt class="docutils literal"><span class="pre">limit</span></tt> の使用例です。</p>
|
1797
1802
|
<p>実行例:</p>
|
@@ -1900,44 +1905,44 @@ select Users
|
|
1900
1905
|
<p>デフォルト値は <tt class="docutils literal"><span class="pre">10</span></tt> です。</p>
|
1901
1906
|
</div>
|
1902
1907
|
<div class="section" id="scorer">
|
1903
|
-
<h4>8.3.
|
1908
|
+
<h4>8.3.22.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt><a class="headerlink" href="#scorer" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1904
1909
|
<p>TODO: write in English and add example.</p>
|
1905
1910
|
<p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
|
1906
1911
|
<p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
|
1907
1912
|
</div>
|
1908
1913
|
</div>
|
1909
1914
|
<div class="section" id="facet-related-parameters">
|
1910
|
-
<h3>8.3.
|
1915
|
+
<h3>8.3.22.4.5. ファセット関連の引数<a class="headerlink" href="#facet-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1911
1916
|
<div class="section" id="drilldown">
|
1912
|
-
<h4>8.3.
|
1917
|
+
<h4>8.3.22.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt><a class="headerlink" href="#drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1913
1918
|
<p>TODO: write in English and add example.</p>
|
1914
1919
|
<p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
|
1915
1920
|
</div>
|
1916
1921
|
<div class="section" id="drilldown-sortby">
|
1917
|
-
<h4>8.3.
|
1922
|
+
<h4>8.3.22.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1918
1923
|
<p>TODO: write in English and add example.</p>
|
1919
1924
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
|
1920
1925
|
</div>
|
1921
1926
|
<div class="section" id="drilldown-output-columns">
|
1922
|
-
<h4>8.3.
|
1927
|
+
<h4>8.3.22.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1923
1928
|
<p>TODO: write in English and add example.</p>
|
1924
1929
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
|
1925
1930
|
</div>
|
1926
1931
|
<div class="section" id="drilldown-offset">
|
1927
|
-
<h4>8.3.
|
1932
|
+
<h4>8.3.22.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1928
1933
|
<p>TODO: write in English and add example.</p>
|
1929
1934
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
|
1930
1935
|
</div>
|
1931
1936
|
<div class="section" id="drilldown-limit">
|
1932
|
-
<h4>8.3.
|
1937
|
+
<h4>8.3.22.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1933
1938
|
<p>TODO: write in English and add example.</p>
|
1934
1939
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
|
1935
1940
|
</div>
|
1936
1941
|
</div>
|
1937
1942
|
<div class="section" id="cache-related-parameter">
|
1938
|
-
<h3>8.3.
|
1943
|
+
<h3>8.3.22.4.6. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
|
1939
1944
|
<div class="section" id="cache">
|
1940
|
-
<h4>8.3.
|
1945
|
+
<h4>8.3.22.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
|
1941
1946
|
<p>TODO: write in English and add example.</p>
|
1942
1947
|
<p>クエリキャッシュに関する動作を設定します。</p>
|
1943
1948
|
<p><tt class="docutils literal"><span class="pre">no</span></tt></p>
|
@@ -1946,8 +1951,8 @@ select Users
|
|
1946
1951
|
</div>
|
1947
1952
|
</div>
|
1948
1953
|
</div>
|
1949
|
-
<div class="section" id="
|
1950
|
-
<h2>8.3.
|
1954
|
+
<div class="section" id="id5">
|
1955
|
+
<h2>8.3.22.5. 返値<a class="headerlink" href="#id5" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
1951
1956
|
<p>TODO: write in English and add example.</p>
|
1952
1957
|
<p>以下のようなjson形式で値が返却されます。</p>
|
1953
1958
|
<div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
|
@@ -2003,7 +2008,7 @@ select Users
|
|
2003
2008
|
</div></blockquote>
|
2004
2009
|
</div>
|
2005
2010
|
<div class="section" id="see-also">
|
2006
|
-
<h2>8.3.
|
2011
|
+
<h2>8.3.22.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
|
2007
2012
|
<blockquote>
|
2008
2013
|
<div><ul class="simple">
|
2009
2014
|
<li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a></li>
|
@@ -2021,71 +2026,72 @@ select Users
|
|
2021
2026
|
<div class="sphinxsidebarwrapper">
|
2022
2027
|
<h3><a href="../../index.html">目次</a></h3>
|
2023
2028
|
<ul>
|
2024
|
-
<li><a class="reference internal" href="#">8.3.
|
2025
|
-
<li><a class="reference internal" href="#summary">8.3.
|
2026
|
-
<li><a class="reference internal" href="#syntax">8.3.
|
2027
|
-
<li><a class="reference internal" href="#usage">8.3.
|
2028
|
-
<li><a class="reference internal" href="#simple-usage">8.3.
|
2029
|
-
<li><a class="reference internal" href="#search-conditions">8.3.
|
2030
|
-
<li><a class="reference internal" href="#search-condition-query">8.3.
|
2031
|
-
<li><a class="reference internal" href="#search-condition-filter">8.3.
|
2029
|
+
<li><a class="reference internal" href="#">8.3.22. <tt class="docutils literal"><span class="pre">select</span></tt></a><ul>
|
2030
|
+
<li><a class="reference internal" href="#summary">8.3.22.1. 概要</a></li>
|
2031
|
+
<li><a class="reference internal" href="#syntax">8.3.22.2. 構文</a></li>
|
2032
|
+
<li><a class="reference internal" href="#usage">8.3.22.3. 使い方</a><ul>
|
2033
|
+
<li><a class="reference internal" href="#simple-usage">8.3.22.3.1. 簡単な使い方</a></li>
|
2034
|
+
<li><a class="reference internal" href="#search-conditions">8.3.22.3.2. 検索条件</a><ul>
|
2035
|
+
<li><a class="reference internal" href="#search-condition-query">8.3.22.3.2.1. 検索条件: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
2036
|
+
<li><a class="reference internal" href="#search-condition-filter">8.3.22.3.2.2. 検索条件: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
2032
2037
|
</ul>
|
2033
2038
|
</li>
|
2034
|
-
<li><a class="reference internal" href="#paging">8.3.
|
2035
|
-
<li><a class="reference internal" href="#the-total-number-of-records">8.3.
|
2039
|
+
<li><a class="reference internal" href="#paging">8.3.22.3.3. ページング</a></li>
|
2040
|
+
<li><a class="reference internal" href="#the-total-number-of-records">8.3.22.3.4. 全レコード数</a></li>
|
2036
2041
|
</ul>
|
2037
2042
|
</li>
|
2038
|
-
<li><a class="reference internal" href="#parameters">8.3.
|
2039
|
-
<li><a class="reference internal" href="#required-parameter">8.3.
|
2040
|
-
<li><a class="reference internal" href="#table">8.3.
|
2043
|
+
<li><a class="reference internal" href="#parameters">8.3.22.4. 引数</a><ul>
|
2044
|
+
<li><a class="reference internal" href="#required-parameter">8.3.22.4.1. 必須引数</a><ul>
|
2045
|
+
<li><a class="reference internal" href="#table">8.3.22.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt></a></li>
|
2041
2046
|
</ul>
|
2042
2047
|
</li>
|
2043
|
-
<li><a class="reference internal" href="#search-related-parameters">8.3.
|
2044
|
-
<li><a class="reference internal" href="#match-columns">8.3.
|
2045
|
-
<li><a class="reference internal" href="#query">8.3.
|
2046
|
-
<li><a class="reference internal" href="#filter">8.3.
|
2048
|
+
<li><a class="reference internal" href="#search-related-parameters">8.3.22.4.2. 検索関係の引数</a><ul>
|
2049
|
+
<li><a class="reference internal" href="#match-columns">8.3.22.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt></a></li>
|
2050
|
+
<li><a class="reference internal" href="#query">8.3.22.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
|
2051
|
+
<li><a class="reference internal" href="#filter">8.3.22.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
|
2047
2052
|
</ul>
|
2048
2053
|
</li>
|
2049
|
-
<li><a class="reference internal" href="#advanced-search-parameters">8.3.
|
2050
|
-
<li><a class="reference internal" href="#match-escalation-threshold">8.3.
|
2051
|
-
<li><a class="reference internal" href="#query-expansion">8.3.
|
2052
|
-
<li><a class="reference internal" href="#query-flags">8.3.
|
2054
|
+
<li><a class="reference internal" href="#advanced-search-parameters">8.3.22.4.3. 高度な検索のための引数</a><ul>
|
2055
|
+
<li><a class="reference internal" href="#match-escalation-threshold">8.3.22.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></a></li>
|
2056
|
+
<li><a class="reference internal" href="#query-expansion">8.3.22.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt></a></li>
|
2057
|
+
<li><a class="reference internal" href="#query-flags">8.3.22.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt></a></li>
|
2058
|
+
<li><a class="reference internal" href="#query-expander">8.3.22.4.3.4. クエリー展開オブジェクト一覧</a></li>
|
2053
2059
|
</ul>
|
2054
2060
|
</li>
|
2055
|
-
<li><a class="reference internal" href="#output-related-parameters">8.3.
|
2056
|
-
<li><a class="reference internal" href="#output-columns">8.3.
|
2057
|
-
<li><a class="reference internal" href="#sortby">8.3.
|
2058
|
-
<li><a class="reference internal" href="#offset">8.3.
|
2059
|
-
<li><a class="reference internal" href="#limit">8.3.
|
2060
|
-
<li><a class="reference internal" href="#scorer">8.3.
|
2061
|
+
<li><a class="reference internal" href="#output-related-parameters">8.3.22.4.4. 出力関連の引数</a><ul>
|
2062
|
+
<li><a class="reference internal" href="#output-columns">8.3.22.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt></a></li>
|
2063
|
+
<li><a class="reference internal" href="#sortby">8.3.22.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt></a></li>
|
2064
|
+
<li><a class="reference internal" href="#offset">8.3.22.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt></a></li>
|
2065
|
+
<li><a class="reference internal" href="#limit">8.3.22.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt></a></li>
|
2066
|
+
<li><a class="reference internal" href="#scorer">8.3.22.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt></a></li>
|
2061
2067
|
</ul>
|
2062
2068
|
</li>
|
2063
|
-
<li><a class="reference internal" href="#facet-related-parameters">8.3.
|
2064
|
-
<li><a class="reference internal" href="#drilldown">8.3.
|
2065
|
-
<li><a class="reference internal" href="#drilldown-sortby">8.3.
|
2066
|
-
<li><a class="reference internal" href="#drilldown-output-columns">8.3.
|
2067
|
-
<li><a class="reference internal" href="#drilldown-offset">8.3.
|
2068
|
-
<li><a class="reference internal" href="#drilldown-limit">8.3.
|
2069
|
+
<li><a class="reference internal" href="#facet-related-parameters">8.3.22.4.5. ファセット関連の引数</a><ul>
|
2070
|
+
<li><a class="reference internal" href="#drilldown">8.3.22.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt></a></li>
|
2071
|
+
<li><a class="reference internal" href="#drilldown-sortby">8.3.22.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt></a></li>
|
2072
|
+
<li><a class="reference internal" href="#drilldown-output-columns">8.3.22.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt></a></li>
|
2073
|
+
<li><a class="reference internal" href="#drilldown-offset">8.3.22.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt></a></li>
|
2074
|
+
<li><a class="reference internal" href="#drilldown-limit">8.3.22.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt></a></li>
|
2069
2075
|
</ul>
|
2070
2076
|
</li>
|
2071
|
-
<li><a class="reference internal" href="#cache-related-parameter">8.3.
|
2072
|
-
<li><a class="reference internal" href="#cache">8.3.
|
2077
|
+
<li><a class="reference internal" href="#cache-related-parameter">8.3.22.4.6. キャッシュ関連の引数</a><ul>
|
2078
|
+
<li><a class="reference internal" href="#cache">8.3.22.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt></a></li>
|
2073
2079
|
</ul>
|
2074
2080
|
</li>
|
2075
2081
|
</ul>
|
2076
2082
|
</li>
|
2077
|
-
<li><a class="reference internal" href="#
|
2078
|
-
<li><a class="reference internal" href="#see-also">8.3.
|
2083
|
+
<li><a class="reference internal" href="#id5">8.3.22.5. 返値</a></li>
|
2084
|
+
<li><a class="reference internal" href="#see-also">8.3.22.6. 参考</a></li>
|
2079
2085
|
</ul>
|
2080
2086
|
</li>
|
2081
2087
|
</ul>
|
2082
2088
|
|
2083
2089
|
<h4>前のトピックへ</h4>
|
2084
2090
|
<p class="topless"><a href="register.html"
|
2085
|
-
title="前の章へ">8.3.
|
2091
|
+
title="前の章へ">8.3.21. register</a></p>
|
2086
2092
|
<h4>次のトピックへ</h4>
|
2087
2093
|
<p class="topless"><a href="shutdown.html"
|
2088
|
-
title="次の章へ">8.3.
|
2094
|
+
title="次の章へ">8.3.23. shutdown</a></p>
|
2089
2095
|
<h3>このページ</h3>
|
2090
2096
|
<ul class="this-page-menu">
|
2091
2097
|
<li><a href="../../_sources/reference/commands/select.txt"
|
@@ -2115,12 +2121,12 @@ select Users
|
|
2115
2121
|
<a href="../../genindex.html" title="総合索引"
|
2116
2122
|
>索引</a></li>
|
2117
2123
|
<li class="right" >
|
2118
|
-
<a href="shutdown.html" title="8.3.
|
2124
|
+
<a href="shutdown.html" title="8.3.23. shutdown"
|
2119
2125
|
>次へ</a> |</li>
|
2120
2126
|
<li class="right" >
|
2121
|
-
<a href="register.html" title="8.3.
|
2127
|
+
<a href="register.html" title="8.3.21. register"
|
2122
2128
|
>前へ</a> |</li>
|
2123
|
-
<li><a href="../../index.html">groonga
|
2129
|
+
<li><a href="../../index.html">groonga v3.0.2ドキュメント</a> »</li>
|
2124
2130
|
<li><a href="../../reference.html" >8. リファレンスマニュアル</a> »</li>
|
2125
2131
|
<li><a href="../command.html" >8.3. コマンド</a> »</li>
|
2126
2132
|
</ul>
|