rroonga 5.0.4-x86-mingw32 → 5.0.5-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
 - data/README.md +2 -2
 - data/example/measure-data-column-disk-usage.rb +124 -0
 - data/example/measure-index-column-disk-usage.rb +81 -0
 - data/example/measure-table-disk-usage.rb +100 -0
 - data/ext/groonga/rb-grn-database.c +31 -0
 - data/ext/groonga/rb-grn-double-array-trie.c +1 -8
 - data/ext/groonga/rb-grn-logger.c +45 -0
 - data/ext/groonga/rb-grn-object.c +29 -1
 - data/ext/groonga/rb-grn-patricia-trie.c +1 -8
 - data/ext/groonga/rb-grn-table-cursor.c +8 -3
 - data/ext/groonga/rb-grn-table.c +10 -5
 - data/ext/groonga/rb-grn-thread.c +160 -0
 - data/ext/groonga/rb-grn-windows-event-logger.c +79 -0
 - data/ext/groonga/rb-grn.h +3 -1
 - data/ext/groonga/rb-groonga.c +3 -1
 - data/lib/1.9/groonga.so +0 -0
 - data/lib/2.0/groonga.so +0 -0
 - data/lib/2.1/groonga.so +0 -0
 - data/lib/2.2/groonga.so +0 -0
 - data/lib/groonga/dumper.rb +6 -1
 - data/rroonga-build.rb +4 -4
 - data/test/groonga-test-utils.rb +5 -1
 - data/test/test-database.rb +11 -0
 - data/test/test-logger.rb +6 -0
 - data/test/test-operator.rb +6 -6
 - data/test/test-procedure.rb +15 -0
 - data/test/test-table-dumper.rb +170 -1
 - data/test/test-thread.rb +42 -0
 - data/test/test-windows-event-logger.rb +28 -0
 - data/vendor/local/bin/grndb.exe +0 -0
 - data/vendor/local/bin/groonga-benchmark.exe +0 -0
 - data/vendor/local/bin/groonga.exe +0 -0
 - data/vendor/local/bin/libgcc_s_sjlj-1.dll +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-4.dll +0 -0
 - data/vendor/local/bin/libmsgpackc-2.dll +0 -0
 - data/vendor/local/bin/libonig-5.dll +0 -0
 - data/vendor/local/bin/libstdc++-6.dll +0 -0
 - data/vendor/local/bin/libwinpthread-1.dll +0 -0
 - data/vendor/local/bin/lz4.exe +0 -0
 - data/vendor/local/bin/lz4c.exe +0 -0
 - data/vendor/local/bin/lz4cat +0 -0
 - data/vendor/local/bin/mecab-config +2 -2
 - data/vendor/local/bin/mecab.exe +0 -0
 - data/vendor/local/bin/onig-config +1 -1
 - data/vendor/local/bin/zlib1.dll +0 -0
 - data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
 - data/vendor/local/etc/groonga/windows_event_log/provider.man +38 -0
 - data/vendor/local/include/groonga/groonga.h +2 -0
 - data/vendor/local/include/groonga/groonga/command.h +2 -0
 - data/vendor/local/include/groonga/groonga/groonga.h +5 -0
 - data/vendor/local/include/groonga/groonga/obj.h +1 -0
 - data/vendor/local/include/groonga/groonga/portability.h +16 -0
 - data/vendor/local/include/groonga/groonga/thread.h +42 -0
 - data/vendor/local/include/groonga/groonga/windows_event_logger.h +33 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/functions/vector.la +2 -2
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
 - data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
 - data/vendor/local/lib/groonga/plugins/sharding.rb +5 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +43 -6
 - data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +32 -25
 - data/vendor/local/lib/groonga/plugins/sharding/logical_parameters.rb +44 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +217 -49
 - data/vendor/local/lib/groonga/plugins/sharding/logical_select.rb +507 -45
 - data/vendor/local/lib/groonga/plugins/sharding/logical_shard_list.rb +28 -0
 - data/vendor/local/lib/groonga/plugins/sharding/logical_table_remove.rb +11 -6
 - data/vendor/local/lib/groonga/plugins/sharding/parameters.rb +10 -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/suggest/suggest.la +2 -2
 - data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
 - data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
 - data/vendor/local/lib/groonga/scripts/ruby/command.rb +31 -1
 - data/vendor/local/lib/groonga/scripts/ruby/context.rb +18 -2
 - data/vendor/local/lib/groonga/scripts/ruby/database.rb +12 -4
 - data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +31 -28
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +1 -0
 - data/vendor/local/lib/groonga/scripts/ruby/logger/level.rb +4 -2
 - data/vendor/local/lib/groonga/scripts/ruby/query_logger.rb +9 -0
 - data/vendor/local/lib/groonga/scripts/ruby/query_logger/flag.rb +39 -0
 - data/vendor/local/lib/groonga/scripts/ruby/record.rb +12 -0
 - data/vendor/local/lib/groonga/scripts/ruby/table.rb +35 -1
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +2 -2
 - data/vendor/local/lib/liblz4.dll +0 -0
 - data/vendor/local/lib/liblz4.dll.1 +0 -0
 - data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
 - data/vendor/local/lib/libmecab.a +0 -0
 - data/vendor/local/lib/libmecab.dll.a +0 -0
 - data/vendor/local/lib/libmecab.la +2 -2
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.la +2 -2
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.la +2 -2
 - data/vendor/local/lib/libonig.a +0 -0
 - data/vendor/local/lib/libonig.dll.a +0 -0
 - data/vendor/local/lib/libonig.la +2 -2
 - data/vendor/local/lib/libz.a +0 -0
 - data/vendor/local/lib/libz.dll.a +0 -0
 - data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
 - data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
 - data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
 - data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
 - data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
 - data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
 - data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
 - data/vendor/local/sbin/groonga-httpd-restart +1 -1
 - data/vendor/local/sbin/groonga-httpd.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 +3 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build.txt +19 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/unix_autotools.txt +101 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/unix_cmake.txt +94 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/build/windows_cmake.txt +93 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +16 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/repository.txt +7 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/test.txt +4 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +319 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_db.txt +23 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_thread.txt +122 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_copy.txt +381 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_list.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/database_unmap.txt +85 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/io_flush.txt +218 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/log_level.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_parameters.txt +138 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +97 -10
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_select.txt +745 -23
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_shard_list.txt +107 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_table_remove.txt +3 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +2 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalizer_list.txt +1 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/object_exist.txt +90 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_register.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_unregister.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +240 -56
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +33 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_rename.txt +90 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/thread_limit.txt +110 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenizer_list.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga-httpd.txt +3 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +0 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +0 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/snippet_html.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +34 -14
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/query_expanders/tsv.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +3 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +2 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/sharding.txt +108 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +0 -21
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/tuning.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/spec/search.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +4 -4
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/introduction.txt +24 -18
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/match_columns.txt +19 -19
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/micro_blog.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/query_expansion.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/basic.css +68 -6
 - data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +27 -2
 - data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +10308 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -9404
 - data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/searchtools.js +2 -2
 - data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +999 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +31 -1415
 - data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +15 -15
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/client.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/community.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +78 -70
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +30 -27
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build.html +146 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_autotools.html +237 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/unix_cmake.html +227 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/build/windows_cmake.html +231 -0
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +37 -35
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +54 -52
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +80 -78
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +135 -122
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +38 -34
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +58 -54
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +27 -25
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +30 -28
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/development.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +30 -28
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +48 -20
 - data/vendor/local/share/doc/groonga/en/html/index.html +123 -105
 - data/vendor/local/share/doc/groonga/en/html/install.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +32 -30
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +31 -29
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +26 -24
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +92 -90
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +26 -24
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +29 -28
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +34 -32
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/news.html +509 -142
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +34 -32
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +110 -108
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +73 -71
 - data/vendor/local/share/doc/groonga/en/html/news/4.x.html +111 -109
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +111 -94
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +55 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +51 -49
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +63 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +84 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +41 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +89 -87
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +88 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +83 -81
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +44 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +93 -91
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +79 -77
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +69 -67
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_thread.html +296 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +38 -36
 - data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +51 -49
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +60 -58
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +28 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +72 -70
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +70 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +28 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +100 -98
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +44 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +49 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_copy.html +796 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +62 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +96 -94
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +67 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/database_unmap.html +236 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +62 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +63 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/io_flush.html +281 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +66 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +53 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +78 -75
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_parameters.html +283 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +160 -85
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_select.html +2071 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_shard_list.html +287 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_table_remove.html +71 -68
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +86 -84
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +52 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/object_exist.html +227 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +57 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +53 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +56 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +75 -74
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +59 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +898 -647
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +50 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +87 -85
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +175 -152
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +55 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_rename.html +327 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +77 -75
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/thread_limit.html +241 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +108 -106
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +56 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +56 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +24 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +41 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +28 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +83 -81
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +48 -46
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +40 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +84 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +47 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +85 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +36 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +26 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +66 -64
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +54 -52
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +35 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +34 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +55 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +24 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +49 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +45 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/vector_size.html +33 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +29 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +244 -242
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +327 -325
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +35 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +49 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +36 -34
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +62 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +107 -103
 - data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +50 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +27 -25
 - data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +41 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/reference/sharding.html +241 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +30 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +56 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +41 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +341 -289
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +68 -66
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +43 -41
 - data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
 - data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/en/html/server.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +37 -35
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/server/memcached.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +39 -37
 - data/vendor/local/share/doc/groonga/en/html/spec.html +23 -21
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +129 -127
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -17
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +29 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +35 -33
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +46 -39
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +21 -19
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +65 -63
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +55 -53
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +22 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +25 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +37 -35
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development.txt +3 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build.txt +19 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/unix_autotools.txt +101 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/unix_cmake.txt +94 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/build/windows_cmake.txt +93 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +16 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/repository.txt +7 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/test.txt +4 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +319 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +1 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_db.txt +23 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_thread.txt +122 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_copy.txt +381 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_list.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/database_unmap.txt +85 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/io_flush.txt +218 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/log_level.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_parameters.txt +138 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +97 -10
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_select.txt +745 -23
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_shard_list.txt +107 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_table_remove.txt +3 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +2 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalizer_list.txt +1 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/object_exist.txt +90 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_register.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_unregister.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +240 -56
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +33 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_rename.txt +90 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/thread_limit.txt +110 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +2 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenizer_list.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga-httpd.txt +3 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +0 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +0 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/snippet_html.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +34 -14
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/query_expanders/tsv.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +3 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +2 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/sharding.txt +108 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +0 -21
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tuning.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/spec/search.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +4 -4
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/introduction.txt +24 -18
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/match_columns.txt +19 -19
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/micro_blog.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/query_expansion.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +68 -6
 - data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +27 -2
 - data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +10308 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -9404
 - data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/searchtools.js +2 -2
 - data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +999 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +31 -1415
 - data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +15 -15
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/client.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/community.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +77 -69
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +30 -27
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build.html +144 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_autotools.html +226 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/unix_cmake.html +215 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/build/windows_cmake.html +229 -0
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +36 -34
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +53 -51
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +79 -77
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +134 -121
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +29 -27
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +57 -53
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +30 -28
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/development.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +48 -20
 - data/vendor/local/share/doc/groonga/ja/html/index.html +122 -104
 - data/vendor/local/share/doc/groonga/ja/html/install.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +35 -33
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +30 -28
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +26 -24
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +83 -81
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +30 -29
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/news.html +460 -126
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +34 -32
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +29 -27
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +102 -100
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +66 -64
 - data/vendor/local/share/doc/groonga/ja/html/news/4.x.html +91 -89
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +111 -94
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +55 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +51 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +58 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +41 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +85 -83
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +88 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +78 -76
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +44 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +93 -91
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +79 -77
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +69 -67
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_thread.html +286 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +38 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +60 -58
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +28 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +61 -59
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +70 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +49 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +28 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +99 -97
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +41 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +49 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_copy.html +781 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +62 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +88 -86
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +66 -63
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/database_unmap.html +229 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +62 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +58 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +63 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/io_flush.html +266 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +59 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +53 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +78 -75
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_parameters.html +276 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +158 -85
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_select.html +2008 -80
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_shard_list.html +285 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_table_remove.html +71 -68
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +82 -79
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/object_exist.html +220 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +53 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +51 -49
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +68 -67
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +59 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +59 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +680 -448
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +146 -126
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +55 -53
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_rename.html +322 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +73 -70
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/thread_limit.html +229 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +94 -91
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +56 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +56 -55
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +24 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +39 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +28 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +73 -72
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +29 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +40 -38
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +69 -67
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +36 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +26 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +56 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +45 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +34 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +35 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +48 -46
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +24 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +35 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +37 -35
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/vector_size.html +33 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +26 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +143 -141
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +236 -234
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +34 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +43 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +39 -37
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +32 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +42 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +91 -88
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +50 -40
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +27 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +41 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/reference/sharding.html +223 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +27 -25
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +46 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +38 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +303 -243
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +62 -60
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +42 -40
 - data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
 - data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/server.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +31 -29
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +38 -36
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +23 -21
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +128 -126
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -17
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +29 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +34 -32
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +46 -39
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +21 -19
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +66 -64
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +52 -50
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +22 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +25 -23
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +35 -33
 - data/vendor/local/share/license/groonga/README.md +6 -0
 - data/vendor/local/share/license/mruby/AUTHORS +1 -0
 - data/vendor/local/share/license/mruby/MITL +1 -1
 - data/vendor/local/share/license/mruby/README.md +6 -5
 - data/vendor/local/share/license/msgpack/README +219 -0
 - data/vendor/local/share/man/ja/man1/groonga.1 +23512 -15126
 - data/vendor/local/share/man/man1/groonga.1 +26542 -17745
 - metadata +77 -3
 - data/vendor/local/share/license/msgpack/AUTHORS +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>7.3. 
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.3.40. ruby_load — Groonga v5.0.6-226-gd7da7e7ドキュメント</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:     '5.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '5.0.6-226-gd7da7e7',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -26,12 +26,12 @@ 
     | 
|
| 
       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 v5.0. 
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v5.0.6-226-gd7da7e7ドキュメント" href="../../index.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="up" title="7.3. コマンド" href="../command.html" />
         
     | 
| 
       31 
     | 
    
         
            -
                <link rel="next" title="7.3. 
     | 
| 
       32 
     | 
    
         
            -
                <link rel="prev" title="7.3. 
     | 
| 
      
 31 
     | 
    
         
            +
                <link rel="next" title="7.3.41. select" href="select.html" />
         
     | 
| 
      
 32 
     | 
    
         
            +
                <link rel="prev" title="7.3.39. ruby_eval" href="ruby_eval.html" /> 
         
     | 
| 
       33 
33 
     | 
    
         
             
              </head>
         
     | 
| 
       34 
     | 
    
         
            -
              <body>
         
     | 
| 
      
 34 
     | 
    
         
            +
              <body role="document">
         
     | 
| 
       35 
35 
     | 
    
         
             
            <div class="header">
         
     | 
| 
       36 
36 
     | 
    
         
             
              <h1 class="title">
         
     | 
| 
       37 
37 
     | 
    
         
             
                <a id="top-link" href="../../index.html">
         
     | 
| 
         @@ -49,46 +49,46 @@ 
     | 
|
| 
       49 
49 
     | 
    
         
             
            </div>
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
                <div class="related">
         
     | 
| 
      
 52 
     | 
    
         
            +
                <div class="related" role="navigation" aria-label="related navigation">
         
     | 
| 
       53 
53 
     | 
    
         
             
                  <h3>ナビゲーション</h3>
         
     | 
| 
       54 
54 
     | 
    
         
             
                  <ul>
         
     | 
| 
       55 
55 
     | 
    
         
             
                    <li class="right" style="margin-right: 10px">
         
     | 
| 
       56 
56 
     | 
    
         
             
                      <a href="../../genindex.html" title="総合索引"
         
     | 
| 
       57 
57 
     | 
    
         
             
                         accesskey="I">索引</a></li>
         
     | 
| 
       58 
58 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       59 
     | 
    
         
            -
                      <a href="select.html" title="7.3. 
     | 
| 
      
 59 
     | 
    
         
            +
                      <a href="select.html" title="7.3.41. select"
         
     | 
| 
       60 
60 
     | 
    
         
             
                         accesskey="N">次へ</a> |</li>
         
     | 
| 
       61 
61 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       62 
     | 
    
         
            -
                      <a href="ruby_eval.html" title="7.3. 
     | 
| 
      
 62 
     | 
    
         
            +
                      <a href="ruby_eval.html" title="7.3.39. ruby_eval"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v5.0. 
     | 
| 
       65 
     | 
    
         
            -
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       66 
     | 
    
         
            -
                      <li><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
      
 64 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7ドキュメント</a> »</li>
         
     | 
| 
      
 65 
     | 
    
         
            +
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
      
 66 
     | 
    
         
            +
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       67 
67 
     | 
    
         
             
                  </ul>
         
     | 
| 
       68 
68 
     | 
    
         
             
                </div>  
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         
             
                <div class="document">
         
     | 
| 
       71 
71 
     | 
    
         
             
                  <div class="documentwrapper">
         
     | 
| 
       72 
72 
     | 
    
         
             
                    <div class="bodywrapper">
         
     | 
| 
       73 
     | 
    
         
            -
                      <div class="body">
         
     | 
| 
      
 73 
     | 
    
         
            +
                      <div class="body" role="main">
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         
             
              <div class="section" id="ruby-load">
         
     | 
| 
       76 
     | 
    
         
            -
            <h1>7.3. 
     | 
| 
      
 76 
     | 
    
         
            +
            <h1>7.3.40. <code class="docutils literal"><span class="pre">ruby_load</span></code><a class="headerlink" href="#ruby-load" title="このヘッドラインへのパーマリンク">¶</a></h1>
         
     | 
| 
       77 
77 
     | 
    
         
             
            <div class="section" id="summary">
         
     | 
| 
       78 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       79 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 78 
     | 
    
         
            +
            <h2>7.3.40.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 79 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ruby_load</span></code> コマンドは指定したRubyスクリプトを読み込みます。</p>
         
     | 
| 
       80 
80 
     | 
    
         
             
            </div>
         
     | 
| 
       81 
81 
     | 
    
         
             
            <div class="section" id="syntax">
         
     | 
| 
       82 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       83 
     | 
    
         
            -
            <p 
     | 
| 
      
 82 
     | 
    
         
            +
            <h2>7.3.40.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 83 
     | 
    
         
            +
            <p>このコマンドの引数は1つで必須です:</p>
         
     | 
| 
       84 
84 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>ruby_load path
         
     | 
| 
       85 
85 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       86 
86 
     | 
    
         
             
            </div>
         
     | 
| 
       87 
87 
     | 
    
         
             
            </div>
         
     | 
| 
       88 
88 
     | 
    
         
             
            <div class="section" id="usage">
         
     | 
| 
       89 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       90 
     | 
    
         
            -
            <p>< 
     | 
| 
       91 
     | 
    
         
            -
            <p>Rubyスクリプトとして < 
     | 
| 
      
 89 
     | 
    
         
            +
            <h2>7.3.40.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 90 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ruby_load</span></code> を使ってmrubyがサポートしているスクリプトを読み込むことができます。</p>
         
     | 
| 
      
 91 
     | 
    
         
            +
            <p>Rubyスクリプトとして <code class="docutils literal"><span class="pre">expression.rb</span></code> を単に読むこむ例です。</p>
         
     | 
| 
       92 
92 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       93 
93 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>register ruby/load
         
     | 
| 
       94 
94 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -96,35 +96,35 @@ ruby_load "expression.rb" 
     | 
|
| 
       96 
96 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], {"value": null}]
         
     | 
| 
       97 
97 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       98 
98 
     | 
    
         
             
            </div>
         
     | 
| 
       99 
     | 
    
         
            -
            <p>< 
     | 
| 
       100 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 99 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ruby_load</span></code> コマンドを使うには事前に <code class="docutils literal"><span class="pre">ruby/load</span></code> プラグインを登録します。</p>
         
     | 
| 
      
 100 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ruby_load</span></code> コマンドは実験的なプラグインです。このコマンドは将来的に変更されるかも知れません。</p>
         
     | 
| 
       101 
101 
     | 
    
         
             
            </div>
         
     | 
| 
       102 
102 
     | 
    
         
             
            <div class="section" id="parameters">
         
     | 
| 
       103 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 103 
     | 
    
         
            +
            <h2>7.3.40.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       104 
104 
     | 
    
         
             
            <p>このセクションではすべての引数について説明します。</p>
         
     | 
| 
       105 
105 
     | 
    
         
             
            <div class="section" id="path">
         
     | 
| 
       106 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 106 
     | 
    
         
            +
            <h3>7.3.40.4.1. <code class="docutils literal"><span class="pre">path</span></code><a class="headerlink" href="#path" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       107 
107 
     | 
    
         
             
            <p>読み込みたいrubyスクリプトを指定します。</p>
         
     | 
| 
       108 
108 
     | 
    
         
             
            </div>
         
     | 
| 
       109 
109 
     | 
    
         
             
            </div>
         
     | 
| 
       110 
110 
     | 
    
         
             
            <div class="section" id="return-value">
         
     | 
| 
       111 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       112 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 111 
     | 
    
         
            +
            <h2>7.3.40.5. 戻り値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 112 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ruby_load</span></code> は例外情報などのメタデータつきで読み込んだ結果を返します(メタデータはまだ実装されていないので今のところ含まれません):</p>
         
     | 
| 
       113 
113 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>[HEADER, {"value": LOADED_VALUE}]
         
     | 
| 
       114 
114 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       115 
115 
     | 
    
         
             
            </div>
         
     | 
| 
       116 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 116 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">HEADER</span></code></p>
         
     | 
| 
       117 
117 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       118 
     | 
    
         
            -
            <div><p>< 
     | 
| 
      
 118 
     | 
    
         
            +
            <div><p><code class="docutils literal"><span class="pre">HEADER</span></code> については <a class="reference internal" href="../command/output_format.html"><em>出力形式</em></a> を参照してください。</p>
         
     | 
| 
       119 
119 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       120 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 120 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">LOADED_VALUE</span></code></p>
         
     | 
| 
       121 
121 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       122 
     | 
    
         
            -
            <div><p>< 
     | 
| 
       123 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 122 
     | 
    
         
            +
            <div><p><code class="docutils literal"><span class="pre">LOADED_VALUE</span></code> はrubyスクリプトを読み込んだ結果です。</p>
         
     | 
| 
      
 123 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ruby_load</span></code> は <code class="docutils literal"><span class="pre">LOADED_VALUE</span></code> としていまのところは単に <code class="docutils literal"><span class="pre">null</span></code> を返します。将来的には <code class="docutils literal"><span class="pre">LOADED_VALUE</span></code> がサポートされる予定です。</p>
         
     | 
| 
       124 
124 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       125 
125 
     | 
    
         
             
            </div>
         
     | 
| 
       126 
126 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
       127 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 127 
     | 
    
         
            +
            <h2>7.3.40.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       128 
128 
     | 
    
         
             
            <p><a class="reference internal" href="ruby_eval.html"><em>ruby_eval</em></a></p>
         
     | 
| 
       129 
129 
     | 
    
         
             
            </div>
         
     | 
| 
       130 
130 
     | 
    
         
             
            </div>
         
     | 
| 
         @@ -133,36 +133,38 @@ ruby_load "expression.rb" 
     | 
|
| 
       133 
133 
     | 
    
         
             
                      </div>
         
     | 
| 
       134 
134 
     | 
    
         
             
                    </div>
         
     | 
| 
       135 
135 
     | 
    
         
             
                  </div>
         
     | 
| 
       136 
     | 
    
         
            -
                  <div class="sphinxsidebar">
         
     | 
| 
      
 136 
     | 
    
         
            +
                  <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
         
     | 
| 
       137 
137 
     | 
    
         
             
                    <div class="sphinxsidebarwrapper">
         
     | 
| 
       138 
138 
     | 
    
         
             
              <h3><a href="../../index.html">目次</a></h3>
         
     | 
| 
       139 
139 
     | 
    
         
             
              <ul>
         
     | 
| 
       140 
     | 
    
         
            -
            <li><a class="reference internal" href="#">7.3. 
     | 
| 
       141 
     | 
    
         
            -
            <li><a class="reference internal" href="#summary">7.3. 
     | 
| 
       142 
     | 
    
         
            -
            <li><a class="reference internal" href="#syntax">7.3. 
     | 
| 
       143 
     | 
    
         
            -
            <li><a class="reference internal" href="#usage">7.3. 
     | 
| 
       144 
     | 
    
         
            -
            <li><a class="reference internal" href="#parameters">7.3. 
     | 
| 
       145 
     | 
    
         
            -
            <li><a class="reference internal" href="#path">7.3. 
     | 
| 
      
 140 
     | 
    
         
            +
            <li><a class="reference internal" href="#">7.3.40. <code class="docutils literal"><span class="pre">ruby_load</span></code></a><ul>
         
     | 
| 
      
 141 
     | 
    
         
            +
            <li><a class="reference internal" href="#summary">7.3.40.1. 概要</a></li>
         
     | 
| 
      
 142 
     | 
    
         
            +
            <li><a class="reference internal" href="#syntax">7.3.40.2. 構文</a></li>
         
     | 
| 
      
 143 
     | 
    
         
            +
            <li><a class="reference internal" href="#usage">7.3.40.3. 使い方</a></li>
         
     | 
| 
      
 144 
     | 
    
         
            +
            <li><a class="reference internal" href="#parameters">7.3.40.4. 引数</a><ul>
         
     | 
| 
      
 145 
     | 
    
         
            +
            <li><a class="reference internal" href="#path">7.3.40.4.1. <code class="docutils literal"><span class="pre">path</span></code></a></li>
         
     | 
| 
       146 
146 
     | 
    
         
             
            </ul>
         
     | 
| 
       147 
147 
     | 
    
         
             
            </li>
         
     | 
| 
       148 
     | 
    
         
            -
            <li><a class="reference internal" href="#return-value">7.3. 
     | 
| 
       149 
     | 
    
         
            -
            <li><a class="reference internal" href="#see-also">7.3. 
     | 
| 
      
 148 
     | 
    
         
            +
            <li><a class="reference internal" href="#return-value">7.3.40.5. 戻り値</a></li>
         
     | 
| 
      
 149 
     | 
    
         
            +
            <li><a class="reference internal" href="#see-also">7.3.40.6. 参考</a></li>
         
     | 
| 
       150 
150 
     | 
    
         
             
            </ul>
         
     | 
| 
       151 
151 
     | 
    
         
             
            </li>
         
     | 
| 
       152 
152 
     | 
    
         
             
            </ul>
         
     | 
| 
       153 
153 
     | 
    
         | 
| 
       154 
154 
     | 
    
         
             
              <h4>前のトピックへ</h4>
         
     | 
| 
       155 
155 
     | 
    
         
             
              <p class="topless"><a href="ruby_eval.html"
         
     | 
| 
       156 
     | 
    
         
            -
                                    title="前の章へ">7.3. 
     | 
| 
      
 156 
     | 
    
         
            +
                                    title="前の章へ">7.3.39. <code class="docutils literal"><span class="pre">ruby_eval</span></code></a></p>
         
     | 
| 
       157 
157 
     | 
    
         
             
              <h4>次のトピックへ</h4>
         
     | 
| 
       158 
158 
     | 
    
         
             
              <p class="topless"><a href="select.html"
         
     | 
| 
       159 
     | 
    
         
            -
                                    title="次の章へ">7.3. 
     | 
| 
       160 
     | 
    
         
            -
              < 
     | 
| 
       161 
     | 
    
         
            -
             
     | 
| 
       162 
     | 
    
         
            -
                < 
     | 
| 
       163 
     | 
    
         
            -
             
     | 
| 
       164 
     | 
    
         
            -
             
     | 
| 
       165 
     | 
    
         
            -
             
     | 
| 
      
 159 
     | 
    
         
            +
                                    title="次の章へ">7.3.41. <code class="docutils literal"><span class="pre">select</span></code></a></p>
         
     | 
| 
      
 160 
     | 
    
         
            +
              <div role="note" aria-label="source link">
         
     | 
| 
      
 161 
     | 
    
         
            +
                <h3>このページ</h3>
         
     | 
| 
      
 162 
     | 
    
         
            +
                <ul class="this-page-menu">
         
     | 
| 
      
 163 
     | 
    
         
            +
                  <li><a href="../../_sources/reference/commands/ruby_load.txt"
         
     | 
| 
      
 164 
     | 
    
         
            +
                        rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
      
 165 
     | 
    
         
            +
                </ul>
         
     | 
| 
      
 166 
     | 
    
         
            +
               </div>
         
     | 
| 
      
 167 
     | 
    
         
            +
            <div id="searchbox" style="display: none" role="search">
         
     | 
| 
       166 
168 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
       167 
169 
     | 
    
         
             
                <form class="search" action="../../search.html" method="get">
         
     | 
| 
       168 
170 
     | 
    
         
             
                  <input type="text" name="q" />
         
     | 
| 
         @@ -179,24 +181,24 @@ ruby_load "expression.rb" 
     | 
|
| 
       179 
181 
     | 
    
         
             
                  </div>
         
     | 
| 
       180 
182 
     | 
    
         
             
                  <div class="clearer"></div>
         
     | 
| 
       181 
183 
     | 
    
         
             
                </div>
         
     | 
| 
       182 
     | 
    
         
            -
                <div class="related">
         
     | 
| 
      
 184 
     | 
    
         
            +
                <div class="related" role="navigation" aria-label="related navigation">
         
     | 
| 
       183 
185 
     | 
    
         
             
                  <h3>ナビゲーション</h3>
         
     | 
| 
       184 
186 
     | 
    
         
             
                  <ul>
         
     | 
| 
       185 
187 
     | 
    
         
             
                    <li class="right" style="margin-right: 10px">
         
     | 
| 
       186 
188 
     | 
    
         
             
                      <a href="../../genindex.html" title="総合索引"
         
     | 
| 
       187 
189 
     | 
    
         
             
                         >索引</a></li>
         
     | 
| 
       188 
190 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       189 
     | 
    
         
            -
                      <a href="select.html" title="7.3. 
     | 
| 
      
 191 
     | 
    
         
            +
                      <a href="select.html" title="7.3.41. select"
         
     | 
| 
       190 
192 
     | 
    
         
             
                         >次へ</a> |</li>
         
     | 
| 
       191 
193 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       192 
     | 
    
         
            -
                      <a href="ruby_eval.html" title="7.3. 
     | 
| 
      
 194 
     | 
    
         
            +
                      <a href="ruby_eval.html" title="7.3.39. ruby_eval"
         
     | 
| 
       193 
195 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       194 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v5.0. 
     | 
| 
       195 
     | 
    
         
            -
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       196 
     | 
    
         
            -
                      <li><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
      
 196 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7ドキュメント</a> »</li>
         
     | 
| 
      
 197 
     | 
    
         
            +
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
      
 198 
     | 
    
         
            +
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       197 
199 
     | 
    
         
             
                  </ul>
         
     | 
| 
       198 
200 
     | 
    
         
             
                </div>
         
     | 
| 
       199 
     | 
    
         
            -
                <div class="footer">
         
     | 
| 
      
 201 
     | 
    
         
            +
                <div class="footer" role="contentinfo">
         
     | 
| 
       200 
202 
     | 
    
         
             
                    © Copyright 2009-2015, Brazil, Inc.
         
     | 
| 
       201 
203 
     | 
    
         
             
                </div>
         
     | 
| 
       202 
204 
     | 
    
         
             
              </body>
         
     | 
| 
         @@ -7,7 +7,7 @@ 
     | 
|
| 
       7 
7 
     | 
    
         
             
              <head>
         
     | 
| 
       8 
8 
     | 
    
         
             
                <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                <title>7.3. 
     | 
| 
      
 10 
     | 
    
         
            +
                <title>7.3.41. select — Groonga v5.0.6-226-gd7da7e7ドキュメント</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:     '5.0. 
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '5.0.6-226-gd7da7e7',
         
     | 
| 
       19 
19 
     | 
    
         
             
                    COLLAPSE_INDEX: false,
         
     | 
| 
       20 
20 
     | 
    
         
             
                    FILE_SUFFIX: '.html',
         
     | 
| 
       21 
21 
     | 
    
         
             
                    HAS_SOURCE:  true
         
     | 
| 
         @@ -26,12 +26,12 @@ 
     | 
|
| 
       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 v5.0. 
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v5.0.6-226-gd7da7e7ドキュメント" href="../../index.html" />
         
     | 
| 
       30 
30 
     | 
    
         
             
                <link rel="up" title="7.3. コマンド" href="../command.html" />
         
     | 
| 
       31 
     | 
    
         
            -
                <link rel="next" title="7.3. 
     | 
| 
       32 
     | 
    
         
            -
                <link rel="prev" title="7.3. 
     | 
| 
      
 31 
     | 
    
         
            +
                <link rel="next" title="7.3.42. shutdown" href="shutdown.html" />
         
     | 
| 
      
 32 
     | 
    
         
            +
                <link rel="prev" title="7.3.40. ruby_load" href="ruby_load.html" /> 
         
     | 
| 
       33 
33 
     | 
    
         
             
              </head>
         
     | 
| 
       34 
     | 
    
         
            -
              <body>
         
     | 
| 
      
 34 
     | 
    
         
            +
              <body role="document">
         
     | 
| 
       35 
35 
     | 
    
         
             
            <div class="header">
         
     | 
| 
       36 
36 
     | 
    
         
             
              <h1 class="title">
         
     | 
| 
       37 
37 
     | 
    
         
             
                <a id="top-link" href="../../index.html">
         
     | 
| 
         @@ -49,39 +49,40 @@ 
     | 
|
| 
       49 
49 
     | 
    
         
             
            </div>
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
                <div class="related">
         
     | 
| 
      
 52 
     | 
    
         
            +
                <div class="related" role="navigation" aria-label="related navigation">
         
     | 
| 
       53 
53 
     | 
    
         
             
                  <h3>ナビゲーション</h3>
         
     | 
| 
       54 
54 
     | 
    
         
             
                  <ul>
         
     | 
| 
       55 
55 
     | 
    
         
             
                    <li class="right" style="margin-right: 10px">
         
     | 
| 
       56 
56 
     | 
    
         
             
                      <a href="../../genindex.html" title="総合索引"
         
     | 
| 
       57 
57 
     | 
    
         
             
                         accesskey="I">索引</a></li>
         
     | 
| 
       58 
58 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       59 
     | 
    
         
            -
                      <a href="shutdown.html" title="7.3. 
     | 
| 
      
 59 
     | 
    
         
            +
                      <a href="shutdown.html" title="7.3.42. shutdown"
         
     | 
| 
       60 
60 
     | 
    
         
             
                         accesskey="N">次へ</a> |</li>
         
     | 
| 
       61 
61 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       62 
     | 
    
         
            -
                      <a href="ruby_load.html" title="7.3. 
     | 
| 
      
 62 
     | 
    
         
            +
                      <a href="ruby_load.html" title="7.3.40. ruby_load"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v5.0. 
     | 
| 
       65 
     | 
    
         
            -
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       66 
     | 
    
         
            -
                      <li><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
      
 64 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7ドキュメント</a> »</li>
         
     | 
| 
      
 65 
     | 
    
         
            +
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
      
 66 
     | 
    
         
            +
                      <li class="nav-item nav-item-2"><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       67 
67 
     | 
    
         
             
                  </ul>
         
     | 
| 
       68 
68 
     | 
    
         
             
                </div>  
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         
             
                <div class="document">
         
     | 
| 
       71 
71 
     | 
    
         
             
                  <div class="documentwrapper">
         
     | 
| 
       72 
72 
     | 
    
         
             
                    <div class="bodywrapper">
         
     | 
| 
       73 
     | 
    
         
            -
                      <div class="body">
         
     | 
| 
      
 73 
     | 
    
         
            +
                      <div class="body" role="main">
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         
             
              <div class="section" id="select">
         
     | 
| 
       76 
     | 
    
         
            -
            <h1>7.3. 
     | 
| 
      
 76 
     | 
    
         
            +
            <h1>7.3.41. <code class="docutils literal"><span class="pre">select</span></code><a class="headerlink" href="#select" title="このヘッドラインへのパーマリンク">¶</a></h1>
         
     | 
| 
       77 
77 
     | 
    
         
             
            <div class="section" id="summary">
         
     | 
| 
       78 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       79 
     | 
    
         
            -
            <p>< 
     | 
| 
       80 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 78 
     | 
    
         
            +
            <h2>7.3.41.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 79 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">select</span></code> はテーブルから指定された条件にマッチするレコードを検索し、見つかったレコードを出力します。</p>
         
     | 
| 
      
 80 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">select</span></code> は最も重要なgroongaのコマンドです。Groongaの力を最大限に活かすためには <code class="docutils literal"><span class="pre">select</span></code> を理解する必要があります。</p>
         
     | 
| 
       81 
81 
     | 
    
         
             
            </div>
         
     | 
| 
       82 
82 
     | 
    
         
             
            <div class="section" id="syntax">
         
     | 
| 
       83 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       84 
     | 
    
         
            -
            <p 
     | 
| 
      
 83 
     | 
    
         
            +
            <h2>7.3.41.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 84 
     | 
    
         
            +
            <p>このコマンドにはたくさんの引数があります。</p>
         
     | 
| 
      
 85 
     | 
    
         
            +
            <p>必須の引数は <code class="docutils literal"><span class="pre">table</span></code> だけです。残りは省略できます:</p>
         
     | 
| 
       85 
86 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select table
         
     | 
| 
       86 
87 
     | 
    
         
             
                   [match_columns=null]
         
     | 
| 
       87 
88 
     | 
    
         
             
                   [query=null]
         
     | 
| 
         @@ -106,40 +107,40 @@ 
     | 
|
| 
       106 
107 
     | 
    
         
             
                   [drilldown_calc_target=null]
         
     | 
| 
       107 
108 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       108 
109 
     | 
    
         
             
            </div>
         
     | 
| 
       109 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 110 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">select</span></code> には高度なドリルダウン機能のために以下の名前付き引数があります。</p>
         
     | 
| 
       110 
111 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       111 
112 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       112 
     | 
    
         
            -
            <li>< 
     | 
| 
       113 
     | 
    
         
            -
            <li>< 
     | 
| 
       114 
     | 
    
         
            -
            <li>< 
     | 
| 
       115 
     | 
    
         
            -
            <li>< 
     | 
| 
       116 
     | 
    
         
            -
            <li>< 
     | 
| 
       117 
     | 
    
         
            -
            <li>< 
     | 
| 
       118 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 113 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys=null</span></code></li>
         
     | 
| 
      
 114 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].sortby=null</span></code></li>
         
     | 
| 
      
 115 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns="_key,</span> <span class="pre">_nsubrecs"</span></code></li>
         
     | 
| 
      
 116 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].offset=0</span></code></li>
         
     | 
| 
      
 117 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].limit=10</span></code></li>
         
     | 
| 
      
 118 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].calc_types=NONE</span></code></li>
         
     | 
| 
      
 119 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].calc_target=null</span></code></li>
         
     | 
| 
       119 
120 
     | 
    
         
             
            </ul>
         
     | 
| 
       120 
121 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       121 
     | 
    
         
            -
            <p>< 
     | 
| 
       122 
     | 
    
         
            -
            <p>同じ < 
     | 
| 
      
 122 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">${LABEL}</span></code> には1つ以上のアルファベット、数字、 <code class="docutils literal"><span class="pre">_</span></code> 、 <code class="docutils literal"><span class="pre">.</span></code> を使うことができます。たとえば、 <code class="docutils literal"><span class="pre">parent.sub1</span></code> は有効な <code class="docutils literal"><span class="pre">${LABEL}</span></code> です。</p>
         
     | 
| 
      
 123 
     | 
    
         
            +
            <p>同じ <code class="docutils literal"><span class="pre">${LABEL}</span></code> も持つ引数は同じグループになります。</p>
         
     | 
| 
       123 
124 
     | 
    
         
             
            <p>たとえば、以下の引数は1つのドリルダウンを指定しています。</p>
         
     | 
| 
       124 
125 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       125 
126 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       126 
     | 
    
         
            -
            <li>< 
     | 
| 
       127 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 127 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label].keys</span> <span class="pre">column</span></code></li>
         
     | 
| 
      
 128 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label].sortby</span> <span class="pre">-_nsubrecs</span></code></li>
         
     | 
| 
       128 
129 
     | 
    
         
             
            </ul>
         
     | 
| 
       129 
130 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       130 
131 
     | 
    
         
             
            <p>以下の引数は2つのドリルダウンを指定しています。</p>
         
     | 
| 
       131 
132 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       132 
133 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       133 
     | 
    
         
            -
            <li>< 
     | 
| 
       134 
     | 
    
         
            -
            <li>< 
     | 
| 
       135 
     | 
    
         
            -
            <li>< 
     | 
| 
       136 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 134 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label1].keys</span> <span class="pre">column1</span></code></li>
         
     | 
| 
      
 135 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label1].sortby</span> <span class="pre">-_nsubrecs</span></code></li>
         
     | 
| 
      
 136 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label2].keys</span> <span class="pre">column2</span></code></li>
         
     | 
| 
      
 137 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label2].sortby</span> <span class="pre">_key</span></code></li>
         
     | 
| 
       137 
138 
     | 
    
         
             
            </ul>
         
     | 
| 
       138 
139 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       139 
140 
     | 
    
         
             
            </div>
         
     | 
| 
       140 
141 
     | 
    
         
             
            <div class="section" id="usage">
         
     | 
| 
       141 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       142 
     | 
    
         
            -
            <p>例を使いながら < 
     | 
| 
      
 142 
     | 
    
         
            +
            <h2>7.3.41.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 143 
     | 
    
         
            +
            <p>例を使いながら <code class="docutils literal"><span class="pre">select</span></code> の使い方を学びましょう。このセクションではよく使われる使い方を紹介します。</p>
         
     | 
| 
       143 
144 
     | 
    
         
             
            <p>使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
         
     | 
| 
       144 
145 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       145 
146 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>table_create Entries TABLE_HASH_KEY ShortText
         
     | 
| 
         @@ -150,7 +151,7 @@ column_create Entries n_likes COLUMN_SCALAR UInt32 
     | 
|
| 
       150 
151 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       151 
152 
     | 
    
         
             
            column_create Entries tag COLUMN_SCALAR ShortText
         
     | 
| 
       152 
153 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       153 
     | 
    
         
            -
            table_create Terms TABLE_PAT_KEY 
     | 
| 
      
 154 
     | 
    
         
            +
            table_create Terms TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram --normalizer NormalizerAuto
         
     | 
| 
       154 
155 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       155 
156 
     | 
    
         
             
            column_create Terms entries_key_index COLUMN_INDEX|WITH_POSITION Entries _key
         
     | 
| 
       156 
157 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -182,12 +183,12 @@ load --table Entries 
     | 
|
| 
       182 
183 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], 5]
         
     | 
| 
       183 
184 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       184 
185 
     | 
    
         
             
            </div>
         
     | 
| 
       185 
     | 
    
         
            -
            <p>ブログエントリ用の < 
     | 
| 
       186 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 186 
     | 
    
         
            +
            <p>ブログエントリ用の <code class="docutils literal"><span class="pre">Entries</span></code> テーブルがあります。各エントリはタイトルと内容と「いいね!」数、タグを持っています。タイトルは <code class="docutils literal"><span class="pre">Entries</span></code> のキーとします。内容は <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムの値とします。「いいね!」数は <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> カラムの値とします。タグは <code class="docutils literal"><span class="pre">Entries.tag</span></code> カラムの値とします。</p>
         
     | 
| 
      
 187 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">Entries._key</span></code> カラムと <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムには <code class="docutils literal"><span class="pre">TokenBigram</span></code> トークナイザーを使ったインデックスを作成します。そのため、 <code class="docutils literal"><span class="pre">Entries._key</span></code> と <code class="docutils literal"><span class="pre">Entries.content</span></code> は両方とも全文検索できます。</p>
         
     | 
| 
       187 
188 
     | 
    
         
             
            <p>これで例を示すためのスキーマとデータの準備ができました。</p>
         
     | 
| 
       188 
189 
     | 
    
         
             
            <div class="section" id="simple-usage">
         
     | 
| 
       189 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       190 
     | 
    
         
            -
            <p>上記のスキーマとデータを使った一番簡単な使い方は以下の通りです。これは < 
     | 
| 
      
 190 
     | 
    
         
            +
            <span id="select-simple-usage"></span><h3>7.3.41.3.1. 簡単な使い方<a class="headerlink" href="#simple-usage" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 191 
     | 
    
         
            +
            <p>上記のスキーマとデータを使った一番簡単な使い方は以下の通りです。これは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルのすべてのレコードを出力します。</p>
         
     | 
| 
       191 
192 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       192 
193 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries
         
     | 
| 
       193 
194 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -263,17 +264,17 @@ load --table Entries 
     | 
|
| 
       263 
264 
     | 
    
         
             
            # ]
         
     | 
| 
       264 
265 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       265 
266 
     | 
    
         
             
            </div>
         
     | 
| 
       266 
     | 
    
         
            -
            <p>どうしてこのコマンドがすべてのレコードを出力するのでしょうか?理由は2つです。1つ目の理由はこのコマンドが検索条件を何も指定していないからです。検索条件を指定しないとすべてのレコードがマッチします。2つ目の理由は全レコード数が5だからです。 < 
     | 
| 
      
 267 
     | 
    
         
            +
            <p>どうしてこのコマンドがすべてのレコードを出力するのでしょうか?理由は2つです。1つ目の理由はこのコマンドが検索条件を何も指定していないからです。検索条件を指定しないとすべてのレコードがマッチします。2つ目の理由は全レコード数が5だからです。 <code class="docutils literal"><span class="pre">select</span></code> コマンドはデフォルトでは最大10レコードを出力します。この例では5レコードしかありません。これは10よりも少ないのですべてのレコードを出力します。</p>
         
     | 
| 
       267 
268 
     | 
    
         
             
            </div>
         
     | 
| 
       268 
269 
     | 
    
         
             
            <div class="section" id="search-conditions">
         
     | 
| 
       269 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       270 
     | 
    
         
            -
            <p>検索条件は < 
     | 
| 
      
 270 
     | 
    
         
            +
            <h3>7.3.41.3.2. 検索条件<a class="headerlink" href="#search-conditions" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 271 
     | 
    
         
            +
            <p>検索条件は <code class="docutils literal"><span class="pre">query</span></code> または <code class="docutils literal"><span class="pre">filter</span></code> で指定します。 <code class="docutils literal"><span class="pre">query</span></code> と <code class="docutils literal"><span class="pre">filter</span></code> を両方指定することもできます。この場合は <code class="docutils literal"><span class="pre">query</span></code> と <code class="docutils literal"><span class="pre">filter</span></code> の両方の条件にマッチしたレコードが出力されます。</p>
         
     | 
| 
       271 
272 
     | 
    
         
             
            <div class="section" id="search-condition-query">
         
     | 
| 
       272 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       273 
     | 
    
         
            -
            <p>< 
     | 
| 
       274 
     | 
    
         
            -
            <p>通常は < 
     | 
| 
       275 
     | 
    
         
            -
            <p>< 
     | 
| 
       276 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 273 
     | 
    
         
            +
            <h4>7.3.41.3.2.1. 検索条件: <code class="docutils literal"><span class="pre">query</span></code><a class="headerlink" href="#search-condition-query" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 274 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> はWebページの検索ボックス用に用意されています。例えば、google.co.jpにあるような検索ボックスです。 <code class="docutils literal"><span class="pre">query</span></code> の検索条件はスペース区切りでキーワードを指定します。例えば、 <code class="docutils literal"><span class="pre">検索</span> <span class="pre">エンジン</span></code> は <code class="docutils literal"><span class="pre">検索</span></code> と <code class="docutils literal"><span class="pre">エンジン</span></code> という2つのキーワードを含むレコードを検索します。</p>
         
     | 
| 
      
 275 
     | 
    
         
            +
            <p>通常は <code class="docutils literal"><span class="pre">query</span></code> 引数は全文検索条件を指定するために使います。全文検索条件以外も指定できますが、その用途には <code class="docutils literal"><span class="pre">filter</span></code> 引数の方が向いています。</p>
         
     | 
| 
      
 276 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> 引数で全文検索条件を指定する場合は、 <code class="docutils literal"><span class="pre">match_columns</span></code> 引数と一緒に使います。 <code class="docutils literal"><span class="pre">match_columns</span></code> はどのカラムまたはインデックスを使って <code class="docutils literal"><span class="pre">query</span></code> を検索するかを指定します。</p>
         
     | 
| 
      
 277 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">query</span></code> の使用例です。</p>
         
     | 
| 
       277 
278 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       278 
279 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast
         
     | 
| 
       279 
280 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -328,13 +329,13 @@ load --table Entries 
     | 
|
| 
       328 
329 
     | 
    
         
             
            # ]
         
     | 
| 
       329 
330 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       330 
331 
     | 
    
         
             
            </div>
         
     | 
| 
       331 
     | 
    
         
            -
            <p>この < 
     | 
| 
       332 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 332 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">fast</span></code> を含んでいるレコードを検索します。</p>
         
     | 
| 
      
 333 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> はクエリー構文という構文を使いますが、詳細はここでは説明しません。詳細は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
         
     | 
| 
       333 
334 
     | 
    
         
             
            </div>
         
     | 
| 
       334 
335 
     | 
    
         
             
            <div class="section" id="search-condition-filter">
         
     | 
| 
       335 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       336 
     | 
    
         
            -
            <p>< 
     | 
| 
       337 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 336 
     | 
    
         
            +
            <h4>7.3.41.3.2.2. 検索条件: <code class="docutils literal"><span class="pre">filter</span></code><a class="headerlink" href="#search-condition-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 337 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">filter</span></code> は複雑な検索条件を指定するために用意されています。ECMAScriptのような構文で  <code class="docutils literal"><span class="pre">filter</span></code> に検索条件を指定します。</p>
         
     | 
| 
      
 338 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">filter</span></code> の使用例です。</p>
         
     | 
| 
       338 
339 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       339 
340 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && _key == "Groonga"'
         
     | 
| 
       340 
341 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -382,13 +383,13 @@ load --table Entries 
     | 
|
| 
       382 
383 
     | 
    
         
             
            # ]
         
     | 
| 
       383 
384 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       384 
385 
     | 
    
         
             
            </div>
         
     | 
| 
       385 
     | 
    
         
            -
            <p>この < 
     | 
| 
       386 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 386 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中の <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">fast</span></code> という単語を含んでいて、かつ、 <code class="docutils literal"><span class="pre">_key</span></code> が <code class="docutils literal"><span class="pre">Groonga</span></code> のレコードを検索します。このコマンドの中には <code class="docutils literal"><span class="pre">@</span></code> と <code class="docutils literal"><span class="pre">&&</span></code> と <code class="docutils literal"><span class="pre">==</span></code> という3つの演算子があります。 <code class="docutils literal"><span class="pre">@</span></code> は全文検索用の演算子です。 <code class="docutils literal"><span class="pre">&&</span></code> と <code class="docutils literal"><span class="pre">==</span></code> はECMAScriptと同じ意味です。 <code class="docutils literal"><span class="pre">&&</span></code> が論理積用の演算子で <code class="docutils literal"><span class="pre">==</span></code> が等価演算子です。</p>
         
     | 
| 
      
 387 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">filter</span></code> にはもっと演算子や構文があります。例えば、 <code class="docutils literal"><span class="pre">(...)</span></code> を使った検索条件のグループ化などです。しかし、ここでは詳細は説明しません。詳細は <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> を参照してください。</p>
         
     | 
| 
       387 
388 
     | 
    
         
             
            </div>
         
     | 
| 
       388 
389 
     | 
    
         
             
            </div>
         
     | 
| 
       389 
390 
     | 
    
         
             
            <div class="section" id="paging">
         
     | 
| 
       390 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       391 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 391 
     | 
    
         
            +
            <h3>7.3.41.3.3. ページング<a class="headerlink" href="#paging" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 392 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">offset</span></code> と <code class="docutils literal"><span class="pre">limit</span></code> を指定することで出力されるレコードの範囲を指定できます。以下は2番目のレコードだけを出力する例です。</p>
         
     | 
| 
       392 
393 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       393 
394 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --offset 1 --limit 1
         
     | 
| 
       394 
395 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -436,12 +437,12 @@ load --table Entries 
     | 
|
| 
       436 
437 
     | 
    
         
             
            # ]
         
     | 
| 
       437 
438 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       438 
439 
     | 
    
         
             
            </div>
         
     | 
| 
       439 
     | 
    
         
            -
            <p>< 
     | 
| 
       440 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 440 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">offset</span></code> は0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
      
 441 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">limit</span></code> は出力レコード数の最大値を指定します。 <code class="docutils literal"><span class="pre">--limit</span> <span class="pre">1</span></code> は多くても1レコードを出力するという意味になります。もし、1つもレコードがマッチしていなければ <code class="docutils literal"><span class="pre">select</span></code> コマンドはどのレコードも出力しません。</p>
         
     | 
| 
       441 
442 
     | 
    
         
             
            </div>
         
     | 
| 
       442 
443 
     | 
    
         
             
            <div class="section" id="the-total-number-of-records">
         
     | 
| 
       443 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       444 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 444 
     | 
    
         
            +
            <h3>7.3.41.3.4. 全レコード数<a class="headerlink" href="#the-total-number-of-records" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 445 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></code> を使うとレコードの内容は取得せずに全レコード数だけを取得できます。</p>
         
     | 
| 
       445 
446 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       446 
447 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --limit 0
         
     | 
| 
       447 
448 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -482,14 +483,14 @@ load --table Entries 
     | 
|
| 
       482 
483 
     | 
    
         
             
            # ]
         
     | 
| 
       483 
484 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       484 
485 
     | 
    
         
             
            </div>
         
     | 
| 
       485 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 486 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></code> はマッチしたレコード数だけを取得したいときにも便利です。</p>
         
     | 
| 
       486 
487 
     | 
    
         
             
            </div>
         
     | 
| 
       487 
488 
     | 
    
         
             
            <div class="section" id="drilldown">
         
     | 
| 
       488 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       489 
     | 
    
         
            -
            <p>1回の < 
     | 
| 
      
 489 
     | 
    
         
            +
            <h3>7.3.41.3.5. ドリルダウン<a class="headerlink" href="#drilldown" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 490 
     | 
    
         
            +
            <p>1回の <code class="docutils literal"><span class="pre">select</span></code> で検索結果だけでなく、検索結果をグループ化した結果も一緒に取得できます。SQLでは2回以上 <code class="docutils literal"><span class="pre">SELECT</span></code> を使わなければいけない場合でも、Groongaの場合は1回の <code class="docutils literal"><span class="pre">select</span></code> で実現できます。</p>
         
     | 
| 
       490 
491 
     | 
    
         
             
            <p>Groongaではこの機能を <a class="reference external" href="http://en.wikipedia.org/wiki/Drill_down">ドリルダウン</a> と呼んでいます。他の検索エンジンでは <a class="reference external" href="http://en.wikipedia.org/wiki/Faceted_search">ファセット検索</a> とも呼ばれています。</p>
         
     | 
| 
       491 
492 
     | 
    
         
             
            <p>例えば、以下の状況を考えてみましょう。</p>
         
     | 
| 
       492 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 493 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">fast</span></code> という単語を含むエントリーを探します。</p>
         
     | 
| 
       493 
494 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       494 
495 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast"'
         
     | 
| 
       495 
496 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -544,7 +545,7 @@ load --table Entries 
     | 
|
| 
       544 
545 
     | 
    
         
             
            # ]
         
     | 
| 
       545 
546 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       546 
547 
     | 
    
         
             
            </div>
         
     | 
| 
       547 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 548 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--filter</span> <span class="pre">'content</span> <span class="pre">@</span> <span class="pre">"fast"</span> <span class="pre">&&</span> <span class="pre">tag</span> <span class="pre">==</span> <span class="pre">"???"</span></code> というように、追加の検索条件として <code class="docutils literal"><span class="pre">tag</span></code> を使いたいとします。しかし、 <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></code> の結果を見るまでは適切なタグはわかりません。</p>
         
     | 
| 
       548 
549 
     | 
    
         
             
            <p>もし、有効なタグそれぞれについてマッチするレコード数がわかれば、その中から適切なタグを選ぶことができます。このような用途のためにドリルダウンを使えます。</p>
         
     | 
| 
       549 
550 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       550 
551 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast"' --drilldown tag
         
     | 
| 
         @@ -619,7 +620,7 @@ load --table Entries 
     | 
|
| 
       619 
620 
     | 
    
         
             
            # ]
         
     | 
| 
       620 
621 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       621 
622 
     | 
    
         
             
            </div>
         
     | 
| 
       622 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 623 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--drilldown</span> <span class="pre">tag</span></code> は「有効なタグ」と「そのタグを持っているレコード数」のペアをリストにして返します。このリストからタグを選ぶと「検索したけどヒット数0」という状況を避けることができます。また、リストの中からレコード数が少ないタグを選べば「検索結果が多すぎる」という状況も避けることができます。</p>
         
     | 
| 
       623 
624 
     | 
    
         
             
            <p>ドリルダウン結果を使うと次のようなUIを作ることができます。</p>
         
     | 
| 
       624 
625 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       625 
626 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
         @@ -628,18 +629,18 @@ load --table Entries 
     | 
|
| 
       628 
629 
     | 
    
         
             
            </ul>
         
     | 
| 
       629 
630 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       630 
631 
     | 
    
         
             
            <p>多くのECサイトではこのUIを使っています。Amazonのサイドメニューを見てください。</p>
         
     | 
| 
       631 
     | 
    
         
            -
            <p>Groongaはグループ化したレコードの数を数えるだけでなく、グループ化したレコードのカラムの値の中から最大値・最小値を見つけたり、合計値を計算したりすることができます。詳細は <a class="reference internal" href="#select-drilldown-related-parameters">< 
     | 
| 
      
 632 
     | 
    
         
            +
            <p>Groongaはグループ化したレコードの数を数えるだけでなく、グループ化したレコードのカラムの値の中から最大値・最小値を見つけたり、合計値を計算したりすることができます。詳細は <a class="reference internal" href="#select-drilldown-related-parameters"><span>ドリルダウン関連の引数</span></a> を参照してください。</p>
         
     | 
| 
       632 
633 
     | 
    
         
             
            </div>
         
     | 
| 
       633 
634 
     | 
    
         
             
            </div>
         
     | 
| 
       634 
635 
     | 
    
         
             
            <div class="section" id="parameters">
         
     | 
| 
       635 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 636 
     | 
    
         
            +
            <h2>7.3.41.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       636 
637 
     | 
    
         
             
            <p>このセクションではすべての引数について説明します。引数はカテゴリわけしています。</p>
         
     | 
| 
       637 
638 
     | 
    
         
             
            <div class="section" id="required-parameter">
         
     | 
| 
       638 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       639 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 639 
     | 
    
         
            +
            <h3>7.3.41.4.1. 必須引数<a class="headerlink" href="#required-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 640 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">table</span></code> だけが必須の引数です。</p>
         
     | 
| 
       640 
641 
     | 
    
         
             
            <div class="section" id="table">
         
     | 
| 
       641 
     | 
    
         
            -
            <span id="select-table"></span><h4>7.3. 
     | 
| 
       642 
     | 
    
         
            -
            <p>検索対象のテーブルを指定します。 < 
     | 
| 
      
 642 
     | 
    
         
            +
            <span id="select-table"></span><h4>7.3.41.4.1.1. <code class="docutils literal"><span class="pre">table</span></code><a class="headerlink" href="#table" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 643 
     | 
    
         
            +
            <p>検索対象のテーブルを指定します。 <code class="docutils literal"><span class="pre">table</span></code> は必ず指定しなければいけません。</p>
         
     | 
| 
       643 
644 
     | 
    
         
             
            <p>存在しないテーブルを指定するとエラーが返ります。</p>
         
     | 
| 
       644 
645 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       645 
646 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Nonexistent
         
     | 
| 
         @@ -653,7 +654,7 @@ load --table Entries 
     | 
|
| 
       653 
654 
     | 
    
         
             
            #       [
         
     | 
| 
       654 
655 
     | 
    
         
             
            #         "grn_select",
         
     | 
| 
       655 
656 
     | 
    
         
             
            #         "proc.c",
         
     | 
| 
       656 
     | 
    
         
            -
            #          
     | 
| 
      
 657 
     | 
    
         
            +
            #         1217
         
     | 
| 
       657 
658 
     | 
    
         
             
            #       ]
         
     | 
| 
       658 
659 
     | 
    
         
             
            #     ]
         
     | 
| 
       659 
660 
     | 
    
         
             
            #   ]
         
     | 
| 
         @@ -663,14 +664,14 @@ load --table Entries 
     | 
|
| 
       663 
664 
     | 
    
         
             
            </div>
         
     | 
| 
       664 
665 
     | 
    
         
             
            </div>
         
     | 
| 
       665 
666 
     | 
    
         
             
            <div class="section" id="search-related-parameters">
         
     | 
| 
       666 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       667 
     | 
    
         
            -
            <p>検索関係の引数がいくつかあります。一般的には、検索ボックスを実装するために < 
     | 
| 
       668 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 667 
     | 
    
         
            +
            <span id="select-search-related-parameters"></span><h3>7.3.41.4.2. 検索関係の引数<a class="headerlink" href="#search-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 668 
     | 
    
         
            +
            <p>検索関係の引数がいくつかあります。一般的には、検索ボックスを実装するために <code class="docutils literal"><span class="pre">match_columns</span></code> と <code class="docutils literal"><span class="pre">query</span></code> 引数を使い、複雑な検索機能を実装するために <code class="docutils literal"><span class="pre">filter</span></code> 引数を使います。</p>
         
     | 
| 
      
 669 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> と <code class="docutils literal"><span class="pre">filter</span></code> を指定した場合は、 <code class="docutils literal"><span class="pre">query</span></code> と <code class="docutils literal"><span class="pre">filter</span></code> にマッチしたレコードが選択されます。 <code class="docutils literal"><span class="pre">query</span></code> と <code class="docutils literal"><span class="pre">filter</span></code> のどちらも指定しなかった場合はすべてのレコードが選択されます。</p>
         
     | 
| 
       669 
670 
     | 
    
         
             
            <div class="section" id="match-columns">
         
     | 
| 
       670 
     | 
    
         
            -
            <span id="select-match-columns"></span><h4>7.3. 
     | 
| 
       671 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 671 
     | 
    
         
            +
            <span id="select-match-columns"></span><h4>7.3.41.4.2.1. <code class="docutils literal"><span class="pre">match_columns</span></code><a class="headerlink" href="#match-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 672 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> 引数の値で全文検索をするときに使うデフォルトの検索対象カラムを指定します。全文検索対象のカラムは <code class="docutils literal"><span class="pre">query</span></code> 引数でも指定できます。検索対象カラムを <code class="docutils literal"><span class="pre">match_columns</span></code> で指定する場合と <code class="docutils literal"><span class="pre">query</span></code> で指定する場合の違いは重みを指定できるかどうかです。 <code class="docutils literal"><span class="pre">match_columns</span></code> では重みを指定できますが、 <code class="docutils literal"><span class="pre">query</span></code> では指定できません。</p>
         
     | 
| 
       672 
673 
     | 
    
         
             
            <p>重みは検索対象カラムの相対的な重要度です。重みの大きい検索対象カラムでマッチした場合は小さい検索対象カラムでマッチした場合よりも多くのヒットスコアがつきます。デフォルトの重みは1です。</p>
         
     | 
| 
       673 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 674 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">match_columns</span></code> の使用例です。</p>
         
     | 
| 
       674 
675 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       675 
676 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --output_columns '_key, _score'
         
     | 
| 
       676 
677 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -707,9 +708,9 @@ load --table Entries 
     | 
|
| 
       707 
708 
     | 
    
         
             
            # ]
         
     | 
| 
       708 
709 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       709 
710 
     | 
    
         
             
            </div>
         
     | 
| 
       710 
     | 
    
         
            -
            <p>< 
     | 
| 
       711 
     | 
    
         
            -
            <p>< 
     | 
| 
       712 
     | 
    
         
            -
            <p>重みを指定するためには < 
     | 
| 
      
 711 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">content</span></code> はデフォルトの全文検索対象カラムに <code class="docutils literal"><span class="pre">content</span></code> カラムを使用し、その重みは1、という意味になります。 <code class="docutils literal"><span class="pre">--output_columns</span> <span class="pre">'_key,</span> <span class="pre">_score'</span></code> はこの <code class="docutils literal"><span class="pre">select</span></code> コマンドがマッチしたレコードの <code class="docutils literal"><span class="pre">_key</span></code> の値と <code class="docutils literal"><span class="pre">_score</span></code> の値を出力する、ということを指定しています。</p>
         
     | 
| 
      
 712 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">_score</span></code> の値に注目してください。 <code class="docutils literal"><span class="pre">_score</span></code> の値は <code class="docutils literal"><span class="pre">query</span></code> 引数の値に何個マッチしたかになっています。この例では、 <code class="docutils literal"><span class="pre">query</span></code> 引数の値は <code class="docutils literal"><span class="pre">fast</span></code> です。 <code class="docutils literal"><span class="pre">_score</span></code> の値が1ということは <code class="docutils literal"><span class="pre">content</span></code> カラムの中に <code class="docutils literal"><span class="pre">fast</span></code> が1つだけあるということです。 <code class="docutils literal"><span class="pre">_score</span></code> の値が2ということは <code class="docutils literal"><span class="pre">content</span></code> カラムの中に <code class="docutils literal"><span class="pre">fast</span></code> が2つあるということです。</p>
         
     | 
| 
      
 713 
     | 
    
         
            +
            <p>重みを指定するためには <code class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">weight</span></code> という構文を使います。以下は重みの使用例です。</p>
         
     | 
| 
       713 
714 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       714 
715 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
         
     | 
| 
       715 
716 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -746,10 +747,10 @@ load --table Entries 
     | 
|
| 
       746 
747 
     | 
    
         
             
            # ]
         
     | 
| 
       747 
748 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       748 
749 
     | 
    
         
             
            </div>
         
     | 
| 
       749 
     | 
    
         
            -
            <p>< 
     | 
| 
       750 
     | 
    
         
            -
            <p>< 
     | 
| 
       751 
     | 
    
         
            -
            <p>デフォルトの全文検索対象カラムとして複数のカラムを指定することができます。複数のカラムを指定した場合はすべてのカラムに対して全文検索が行われ、ヒットスコアが積算されます。つまり、 < 
     | 
| 
       752 
     | 
    
         
            -
            <p>複数のカラムを指定するには < 
     | 
| 
      
 750 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'content</span> <span class="pre">*</span> <span class="pre">2'</span></code> はデフォルトの全文検索用カラムとして <code class="docutils literal"><span class="pre">content</span></code> カラムを使い、その重みは2という意味です。</p>
         
     | 
| 
      
 751 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">_score</span></code> の値に注目してください。 <code class="docutils literal"><span class="pre">_score</span></code> の値が2倍になっています。これは重みを2にしたからです。</p>
         
     | 
| 
      
 752 
     | 
    
         
            +
            <p>デフォルトの全文検索対象カラムとして複数のカラムを指定することができます。複数のカラムを指定した場合はすべてのカラムに対して全文検索が行われ、ヒットスコアが積算されます。つまり、 <code class="docutils literal"><span class="pre">query</span></code> 引数の値がどれか1つでも全文検索対象カラムにマッチしたら、そのレコードはマッチしたものとして扱われます。</p>
         
     | 
| 
      
 753 
     | 
    
         
            +
            <p>複数のカラムを指定するには <code class="docutils literal"><span class="pre">column1</span> <span class="pre">*</span> <span class="pre">weight1</span> <span class="pre">||</span> <span class="pre">column2</span> <span class="pre">*</span> <span class="pre">weight2</span> <span class="pre">||</span> <span class="pre">...</span></code> という構文を使います。 <code class="docutils literal"><span class="pre">*</span> <span class="pre">weight</span></code> は省略することができます。省略した場合は重みが1になります。以下は複数カラムの使用例です。</p>
         
     | 
| 
       753 
754 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       754 
755 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns '_key * 10 || content' --query groonga --output_columns '_key, _score'
         
     | 
| 
       755 
756 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -782,11 +783,11 @@ load --table Entries 
     | 
|
| 
       782 
783 
     | 
    
         
             
            # ]
         
     | 
| 
       783 
784 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       784 
785 
     | 
    
         
             
            </div>
         
     | 
| 
       785 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 786 
     | 
    
         
            +
            <p><code 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></code> はデフォルト検索対象カラムが <code class="docutils literal"><span class="pre">_key</span></code> カラムと <code class="docutils literal"><span class="pre">content</span></code> カラムで、 <code class="docutils literal"><span class="pre">_key</span></code> カラムの重みは10、 <code class="docutils literal"><span class="pre">content</span></code> カラムの重みは1という意味です。この重み付けは <code class="docutils literal"><span class="pre">_key</span></code> カラムの値は <code class="docutils literal"><span class="pre">content</span></code> カラムの値よりも重要だという意味になります。この例では、ブログエントリのタイトルはブログエントリの内容よりも重要だということです。</p>
         
     | 
| 
       786 
787 
     | 
    
         
             
            </div>
         
     | 
| 
       787 
788 
     | 
    
         
             
            <div class="section" id="query">
         
     | 
| 
       788 
     | 
    
         
            -
            <span id="select-query"></span><h4>7.3. 
     | 
| 
       789 
     | 
    
         
            -
            <p>クエリーテキストを指定します。通常、全文検索をするために < 
     | 
| 
      
 789 
     | 
    
         
            +
            <span id="select-query"></span><h4>7.3.41.4.2.2. <code class="docutils literal"><span class="pre">query</span></code><a class="headerlink" href="#query" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 790 
     | 
    
         
            +
            <p>クエリーテキストを指定します。通常、全文検索をするために <code class="docutils literal"><span class="pre">match_columns</span></code> 引数と一緒に使います。 <code class="docutils literal"><span class="pre">query</span></code> 引数はWebページにある全文検索フォームで使いやすいように設計されています。クエリーテキストは <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> という書式を使います。この書式はGoogleの検索フォームのように一般的な検索フォームと似ています。例えば、 <code class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span></code> は <code class="docutils literal"><span class="pre">word1</span></code> と <code class="docutils literal"><span class="pre">word2</span></code> を含んでいるレコードを検索するという意味になります。 <code class="docutils literal"><span class="pre">word1</span> <span class="pre">OR</span> <span class="pre">word2</span></code> は <code class="docutils literal"><span class="pre">word1</span></code> または <code class="docutils literal"><span class="pre">word2</span></code> を含んでいるレコードを検索するという意味になります。</p>
         
     | 
| 
       790 
791 
     | 
    
         
             
            <p>以下は論理積を使った検索の簡単な例です。</p>
         
     | 
| 
       791 
792 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       792 
793 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "fast groonga"
         
     | 
| 
         @@ -835,7 +836,7 @@ load --table Entries 
     | 
|
| 
       835 
836 
     | 
    
         
             
            # ]
         
     | 
| 
       836 
837 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       837 
838 
     | 
    
         
             
            </div>
         
     | 
| 
       838 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 839 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">fast</span></code> と <code class="docutils literal"><span class="pre">groonga</span></code> の2つの単語を含んでいるレコードを検索します。</p>
         
     | 
| 
       839 
840 
     | 
    
         
             
            <p>以下は論理和を使った検索の簡単な例です。</p>
         
     | 
| 
       840 
841 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       841 
842 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "groonga OR mroonga"
         
     | 
| 
         @@ -891,9 +892,9 @@ load --table Entries 
     | 
|
| 
       891 
892 
     | 
    
         
             
            # ]
         
     | 
| 
       892 
893 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       893 
894 
     | 
    
         
             
            </div>
         
     | 
| 
       894 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 895 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">fast</span></code> または <code class="docutils literal"><span class="pre">groonga</span></code> のどちらかの単語を含んでいるレコードを検索します。</p>
         
     | 
| 
       895 
896 
     | 
    
         
             
            <p>他の構文は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
         
     | 
| 
       896 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 897 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> では全文検索だけではなく他の条件も使えます。例えば、 <code class="docutils literal"><span class="pre">column:value</span></code> は <code class="docutils literal"><span class="pre">column</span></code> の値が <code class="docutils literal"><span class="pre">value</span></code> と等しいという意味です。 <code class="docutils literal"><span class="pre">column:<value</span></code> は <code class="docutils literal"><span class="pre">column</span></code> の値が <code class="docutils literal"><span class="pre">value</span></code> より小さいという意味です。</p>
         
     | 
| 
       897 
898 
     | 
    
         
             
            <p>以下は等価演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       898 
899 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       899 
900 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:Groonga
         
     | 
| 
         @@ -942,7 +943,7 @@ load --table Entries 
     | 
|
| 
       942 
943 
     | 
    
         
             
            # ]
         
     | 
| 
       943 
944 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       944 
945 
     | 
    
         
             
            </div>
         
     | 
| 
       945 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 946 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">_key</span></code> カラムの値が <code class="docutils literal"><span class="pre">Groonga</span></code> であるレコードを検索します。</p>
         
     | 
| 
       946 
947 
     | 
    
         
             
            <p>以下は比較演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       947 
948 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       948 
949 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<11
         
     | 
| 
         @@ -1012,13 +1013,13 @@ load --table Entries 
     | 
|
| 
       1012 
1013 
     | 
    
         
             
            # ]
         
     | 
| 
       1013 
1014 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1014 
1015 
     | 
    
         
             
            </div>
         
     | 
| 
       1015 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1016 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">11</span></code> より小さいレコードを検索します。</p>
         
     | 
| 
       1016 
1017 
     | 
    
         
             
            <p>他の演算子は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
         
     | 
| 
       1017 
1018 
     | 
    
         
             
            </div>
         
     | 
| 
       1018 
1019 
     | 
    
         
             
            <div class="section" id="filter">
         
     | 
| 
       1019 
     | 
    
         
            -
            <span id="select-filter"></span><h4>7.3. 
     | 
| 
       1020 
     | 
    
         
            -
            <p>フィルターテキストを指定します。通常、 < 
     | 
| 
       1021 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 1020 
     | 
    
         
            +
            <span id="select-filter"></span><h4>7.3.41.4.2.3. <code class="docutils literal"><span class="pre">filter</span></code><a class="headerlink" href="#filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1021 
     | 
    
         
            +
            <p>フィルターテキストを指定します。通常、 <code class="docutils literal"><span class="pre">filter</span></code> は複雑な条件を指定するために使います。 <code class="docutils literal"><span class="pre">filter</span></code> は <code class="docutils literal"><span class="pre">query</span></code> 引数と一緒に使うこともできます。 <code class="docutils literal"><span class="pre">filter</span></code> と <code class="docutils literal"><span class="pre">query</span></code> を両方指定した場合はそれらを論理積で組み合わせます。つまり、マッチするレコードは <code class="docutils literal"><span class="pre">filter</span></code> にも <code class="docutils literal"><span class="pre">query</span></code> にもマッチしなければいけないということです。</p>
         
     | 
| 
      
 1022 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">filter</span></code> 引数は複雑な条件用に設計されています。フィルターテキストは <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> 書式で指定します。この書式はECMAScriptに似ています。例えば、 <code class="docutils literal"><span class="pre">column</span> <span class="pre">==</span> <span class="pre">"value"</span></code> は <code class="docutils literal"><span class="pre">column</span></code> カラムの値が <code class="docutils literal"><span class="pre">"value"</span></code> と等しいという意味です。 <code class="docutils literal"><span class="pre">column</span> <span class="pre"><</span> <span class="pre">value</span></code> は <code class="docutils literal"><span class="pre">column</span></code> カラムの値が <code class="docutils literal"><span class="pre">value</span></code> よりも小さいという意味です。</p>
         
     | 
| 
       1022 
1023 
     | 
    
         
             
            <p>以下は等価演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       1023 
1024 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1024 
1025 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter '_key == "Groonga"'
         
     | 
| 
         @@ -1067,7 +1068,7 @@ load --table Entries 
     | 
|
| 
       1067 
1068 
     | 
    
         
             
            # ]
         
     | 
| 
       1068 
1069 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1069 
1070 
     | 
    
         
             
            </div>
         
     | 
| 
       1070 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1071 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">_key</span></code> カラムの値が <code class="docutils literal"><span class="pre">Groonga</span></code> であるレコードを検索します。</p>
         
     | 
| 
       1071 
1072 
     | 
    
         
             
            <p>以下は比較演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       1072 
1073 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1073 
1074 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 11'
         
     | 
| 
         @@ -1137,28 +1138,28 @@ load --table Entries 
     | 
|
| 
       1137 
1138 
     | 
    
         
             
            # ]
         
     | 
| 
       1138 
1139 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1139 
1140 
     | 
    
         
             
            </div>
         
     | 
| 
       1140 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1141 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">11</span></code> より小さいレコードを検索します。</p>
         
     | 
| 
       1141 
1142 
     | 
    
         
             
            <p>他の演算子は <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> を参照してください。</p>
         
     | 
| 
       1142 
1143 
     | 
    
         
             
            </div>
         
     | 
| 
       1143 
1144 
     | 
    
         
             
            </div>
         
     | 
| 
       1144 
1145 
     | 
    
         
             
            <div class="section" id="advanced-search-parameters">
         
     | 
| 
       1145 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 1146 
     | 
    
         
            +
            <span id="select-advanced-search-parameters"></span><h3>7.3.41.4.3. 高度な検索のための引数<a class="headerlink" href="#advanced-search-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       1146 
1147 
     | 
    
         
             
            <div class="section" id="match-escalation-threshold">
         
     | 
| 
       1147 
     | 
    
         
            -
            <span id=" 
     | 
| 
      
 1148 
     | 
    
         
            +
            <span id="select-match-escalation-threshold"></span><h4>7.3.41.4.3.1. <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code><a class="headerlink" href="#match-escalation-threshold" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1148 
1149 
     | 
    
         
             
            <p>検索方法をエスカレーションするかどうかを決定するための閾値を指定します。この閾値はマッチしたレコード数との比較に使われます。マッチしたレコード数がこの閾値以下の場合は検索方法をエスカレーションします。検索方法のエスカレーションについては <a class="reference internal" href="../../spec/search.html"><em>検索</em></a> を参照してください。</p>
         
     | 
| 
       1149 
1150 
     | 
    
         
             
            <p>デフォルトの閾値は0です。これは1つもレコードがマッチしなかったときだけ検索方法をエスカレーションするということです。</p>
         
     | 
| 
       1150 
1151 
     | 
    
         
             
            <p>デフォルトの閾値は以下の方法でカスタマイズできます。</p>
         
     | 
| 
       1151 
1152 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       1152 
1153 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       1153 
     | 
    
         
            -
            <li><p class="first">configureの < 
     | 
| 
      
 1154 
     | 
    
         
            +
            <li><p class="first">configureの <code class="docutils literal"><span class="pre">--with-match-escalation-threshold</span></code> オプション</p>
         
     | 
| 
       1154 
1155 
     | 
    
         
             
            </li>
         
     | 
| 
       1155 
     | 
    
         
            -
            <li><p class="first">groongaコマンドの < 
     | 
| 
      
 1156 
     | 
    
         
            +
            <li><p class="first">groongaコマンドの <code class="docutils literal"><span class="pre">--match-escalation-threshold</span></code> オプション</p>
         
     | 
| 
       1156 
1157 
     | 
    
         
             
            </li>
         
     | 
| 
       1157 
     | 
    
         
            -
            <li><p class="first">設定ファイルの < 
     | 
| 
      
 1158 
     | 
    
         
            +
            <li><p class="first">設定ファイルの <code class="docutils literal"><span class="pre">match-escalation-threshold</span></code> 設定項目</p>
         
     | 
| 
       1158 
1159 
     | 
    
         
             
            </li>
         
     | 
| 
       1159 
1160 
     | 
    
         
             
            </ul>
         
     | 
| 
       1160 
1161 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       1161 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1162 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> の使用例です。最初の <code class="docutils literal"><span class="pre">select</span></code> は <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> 引数がありません。2番目の <code class="docutils literal"><span class="pre">select</span></code> は <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> 引数があります。</p>
         
     | 
| 
       1162 
1163 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1163 
1164 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query groo
         
     | 
| 
       1164 
1165 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1243,32 +1244,32 @@ select Entries --match_columns content --query groo --match_escalation_threshold 
     | 
|
| 
       1243 
1244 
     | 
    
         
             
            # ]
         
     | 
| 
       1244 
1245 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1245 
1246 
     | 
    
         
             
            </div>
         
     | 
| 
       1246 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       1247 
     | 
    
         
            -
            <p>2番目の < 
     | 
| 
      
 1247 
     | 
    
         
            +
            <p>最初の <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルから <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">groo</span></code> という単語を含むレコードを検索します。しかし、この検索ではどのレコードにもマッチしません。これは、 <code class="docutils literal"><span class="pre">TokenBigram</span></code> トークナイザーは <code class="docutils literal"><span class="pre">groonga</span></code> を <code class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></code> ではなく <code class="docutils literal"><span class="pre">groonga</span></code> にトークナイズするからです。( <code class="docutils literal"><span class="pre">TokenBigramSplitSymbolAlpha</span></code> は <code class="docutils literal"><span class="pre">groonga</span></code> を <code class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></code> にトークナイズします。詳細は <a class="reference internal" href="../tokenizers.html"><em>トークナイザー</em></a> を見てください。)つまり、 <code class="docutils literal"><span class="pre">groonga</span></code> はインデックスに登録されていますが、 <code class="docutils literal"><span class="pre">groo</span></code> はインデックスに登録されていないということです。インデックスに登録されていないので完全一致検索では <code class="docutils literal"><span class="pre">groo</span></code> はどのレコードにもマッチしません。このケースでは検索方法のエスカレーションが行われています。なぜならばマッチしたレコード数(0)が <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> (0)の値と等しいからです。非分かち書き検索では <code class="docutils literal"><span class="pre">groo</span></code> で1つのレコードがマッチします。</p>
         
     | 
| 
      
 1248 
     | 
    
         
            +
            <p>2番目の <code class="docutils literal"><span class="pre">select</span></code> コマンドも <code class="docutils literal"><span class="pre">Entries</span></code> テーブルから <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">groo</span></code> という単語を含むレコードを検索します。そして、この <code class="docutils literal"><span class="pre">select</span></code> コマンドもマッチしません。この場合、マッチしたレコード数(0)が <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> (-1)より大きいので、検索方法をエスカレーションしません。そして、1つもレコードがマッチしません。</p>
         
     | 
| 
       1248 
1249 
     | 
    
         
             
            </div>
         
     | 
| 
       1249 
1250 
     | 
    
         
             
            <div class="section" id="query-expansion">
         
     | 
| 
       1250 
     | 
    
         
            -
            <span id=" 
     | 
| 
       1251 
     | 
    
         
            -
            <p 
     | 
| 
      
 1251 
     | 
    
         
            +
            <span id="select-query-expansion"></span><h4>7.3.41.4.3.2. <code class="docutils literal"><span class="pre">query_expansion</span></code><a class="headerlink" href="#query-expansion" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1252 
     | 
    
         
            +
            <p>非推奨です。代わりに <a class="reference internal" href="#select-query-expander"><span>query_expander</span></a> を使ってください。</p>
         
     | 
| 
       1252 
1253 
     | 
    
         
             
            </div>
         
     | 
| 
       1253 
1254 
     | 
    
         
             
            <div class="section" id="query-flags">
         
     | 
| 
       1254 
     | 
    
         
            -
            <span id=" 
     | 
| 
       1255 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 1255 
     | 
    
         
            +
            <span id="select-query-flags"></span><h4>7.3.41.4.3.3. <code class="docutils literal"><span class="pre">query_flags</span></code><a class="headerlink" href="#query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1256 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> パラメーターの構文をカスタマイズします。デフォルトでは <code class="docutils literal"><span class="pre">query</span></code> パラメーターでカラムの値を更新することはできません。しかし、 <code class="docutils literal"><span class="pre">query_flags</span></code> に <code class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></code> を指定することで <code class="docutils literal"><span class="pre">query</span></code> でカラムの値を更新することができます。</p>
         
     | 
| 
       1256 
1257 
     | 
    
         
             
            <p>指定可能な値は以下の通りです。</p>
         
     | 
| 
       1257 
1258 
     | 
    
         
             
            <ul class="simple">
         
     | 
| 
       1258 
     | 
    
         
            -
            <li>< 
     | 
| 
       1259 
     | 
    
         
            -
            <li>< 
     | 
| 
       1260 
     | 
    
         
            -
            <li>< 
     | 
| 
       1261 
     | 
    
         
            -
            <li>< 
     | 
| 
       1262 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 1259 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></code></li>
         
     | 
| 
      
 1260 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code></li>
         
     | 
| 
      
 1261 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">ALLOW_UPDATE</span></code></li>
         
     | 
| 
      
 1262 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></code></li>
         
     | 
| 
      
 1263 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">NONE</span></code></li>
         
     | 
| 
       1263 
1264 
     | 
    
         
             
            </ul>
         
     | 
| 
       1264 
     | 
    
         
            -
            <p>< 
     | 
| 
       1265 
     | 
    
         
            -
            <p>< 
     | 
| 
       1266 
     | 
    
         
            -
            <p>< 
     | 
| 
       1267 
     | 
    
         
            -
            <p>< 
     | 
| 
       1268 
     | 
    
         
            -
            <p>< 
     | 
| 
       1269 
     | 
    
         
            -
            <p>これらのフラグは < 
     | 
| 
       1270 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
       1271 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1265 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></code> を指定すると <code class="docutils literal"><span class="pre">query</span></code> の先頭でプラグマを指定することができます。この機能はまだ実装されていません。</p>
         
     | 
| 
      
 1266 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> を指定すると <code class="docutils literal"><span class="pre">match_columns</span></code> で指定していないカラムでも検索できるように成ります。カラムを指定するには <code class="docutils literal"><span class="pre">COLUMN:...</span></code> というような構文を使います。</p>
         
     | 
| 
      
 1267 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ALLOW_UPDATE</span></code> を指定すると <code class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></code> という構文を使って <code class="docutils literal"><span class="pre">query</span></code> でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 <code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> も一緒に指定する必要があります。</p>
         
     | 
| 
      
 1268 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></code> を指定すると <code class="docutils literal"><span class="pre">-WORD</span></code> という構文を使って最初の条件として否定条件を指定できます。このクエリーは <code class="docutils literal"><span class="pre">WORD</span></code> にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリーは多くの場合重いクエリーになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリーとなるということを十分気をつけてください。</p>
         
     | 
| 
      
 1269 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">NONE</span></code> は単に無視されます。フラグを指定しないときに <code class="docutils literal"><span class="pre">NONE</span></code> を使えます。</p>
         
     | 
| 
      
 1270 
     | 
    
         
            +
            <p>これらのフラグは <code class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></code> のように <code class="docutils literal"><span class="pre">|</span></code> で区切って同時に指定することができます。</p>
         
     | 
| 
      
 1271 
     | 
    
         
            +
            <p>デフォルト値は <code class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></code> です。</p>
         
     | 
| 
      
 1272 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> の使用例です。</p>
         
     | 
| 
       1272 
1273 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1273 
1274 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
         
     | 
| 
       1274 
1275 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1316,8 +1317,8 @@ select Entries --match_columns content --query groo --match_escalation_threshold 
     | 
|
| 
       1316 
1317 
     | 
    
         
             
            # ]
         
     | 
| 
       1317 
1318 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1318 
1319 
     | 
    
         
             
            </div>
         
     | 
| 
       1319 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1320 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1320 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">mroonga</span></code> を含んでいるレコードを検索します。</p>
         
     | 
| 
      
 1321 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">ALLOW_UPDATE</span></code> の使用例です。</p>
         
     | 
| 
       1321 
1322 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1322 
1323 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
         
     | 
| 
       1323 
1324 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -1409,8 +1410,8 @@ select Users 
     | 
|
| 
       1409 
1410 
     | 
    
         
             
            # ]
         
     | 
| 
       1410 
1411 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1411 
1412 
     | 
    
         
             
            </div>
         
     | 
| 
       1412 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       1413 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1413 
     | 
    
         
            +
            <p>最初の <code class="docutils literal"><span class="pre">select</span></code> コマンドは全てのレコードの <code class="docutils literal"><span class="pre">age</span></code> カラムの値を <code class="docutils literal"><span class="pre">19</span></code> にします。二番目の <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">age</span></code> カラムの値を出力します。</p>
         
     | 
| 
      
 1414 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></code> の使用例です。</p>
         
     | 
| 
       1414 
1415 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1415 
1416 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
         
     | 
| 
       1416 
1417 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1479,8 +1480,8 @@ select Users 
     | 
|
| 
       1479 
1480 
     | 
    
         
             
            # ]
         
     | 
| 
       1480 
1481 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1481 
1482 
     | 
    
         
             
            </div>
         
     | 
| 
       1482 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1483 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1483 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">mroonga</span></code> を含んでいないレコードを検索します。</p>
         
     | 
| 
      
 1484 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">NONE</span></code> の使用例です。</p>
         
     | 
| 
       1484 
1485 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1485 
1486 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE
         
     | 
| 
       1486 
1487 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1528,19 +1529,19 @@ select Users 
     | 
|
| 
       1528 
1529 
     | 
    
         
             
            # ]
         
     | 
| 
       1529 
1530 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1530 
1531 
     | 
    
         
             
            </div>
         
     | 
| 
       1531 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1532 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">content</span></code> カラムの値に <code class="docutils literal"><span class="pre">mroonga</span></code> または <code class="docutils literal"><span class="pre">_key:Groonga</span></code> のどちらかの単語を含んでいるレコードを検索します。 <code class="docutils literal"><span class="pre">_key:Groonga</span></code> が <code class="docutils literal"><span class="pre">_key</span></code> カラムの値が <code class="docutils literal"><span class="pre">Groonga</span></code> という条件にはならないことに注意してください。これは <code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> フラグが指定されていないからです。</p>
         
     | 
| 
       1532 
1533 
     | 
    
         
             
            <p><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> も見てください。</p>
         
     | 
| 
       1533 
1534 
     | 
    
         
             
            </div>
         
     | 
| 
       1534 
1535 
     | 
    
         
             
            <div class="section" id="query-expander">
         
     | 
| 
       1535 
     | 
    
         
            -
            <span id=" 
     | 
| 
      
 1536 
     | 
    
         
            +
            <span id="select-query-expander"></span><h4>7.3.41.4.3.4. <code class="docutils literal"><span class="pre">query_expander</span></code><a class="headerlink" href="#query-expander" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1536 
1537 
     | 
    
         
             
            <p>クエリー展開用の引数です。クエリー展開はクエリー中の特定の単語を別の単語に置換します。通常は類義語検索に使います。</p>
         
     | 
| 
       1537 
     | 
    
         
            -
            <p>< 
     | 
| 
       1538 
     | 
    
         
            -
            <p>クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは < 
     | 
| 
       1539 
     | 
    
         
            -
            <p>クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は < 
     | 
| 
       1540 
     | 
    
         
            -
            <p>クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 < 
     | 
| 
       1541 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1538 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> 引数の値を置換するために使うカラムを指定します。この引数の値の書式は「 <code class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></code> 」です。例えば、 「 <code class="docutils literal"><span class="pre">Terms.synonym</span></code> 」は <code class="docutils literal"><span class="pre">Terms</span></code> テーブルの <code class="docutils literal"><span class="pre">synonym</span></code> カラムを指定しています。</p>
         
     | 
| 
      
 1539 
     | 
    
         
            +
            <p>クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは <code class="docutils literal"><span class="pre">ShortText</span></code> にしてください。そのため、配列テーブル( <code class="docutils literal"><span class="pre">TABLE_NO_KEY</span></code> )は置換テーブルに使うことはできません。なぜなら、配列テーブルにはキーがないからです。</p>
         
     | 
| 
      
 1540 
     | 
    
         
            +
            <p>クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は <code class="docutils literal"><span class="pre">ShortText</span></code> にしてください。カラムの種類はベクター( <code class="docutils literal"><span class="pre">COLUMN_VECTOR</span></code> )にしてください。</p>
         
     | 
| 
      
 1541 
     | 
    
         
            +
            <p>クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 <code class="docutils literal"><span class="pre">query</span></code> の中にある単語が置換テーブルのキーだったら、キーに対応する置換カラムの値でその単語を置換します。置換は再帰的に実行しません。これは、置換されたクエリー内に置換対象の単語があっても置換されないということです。</p>
         
     | 
| 
      
 1542 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">query_expander</span></code> の簡単な使用例を示すためのサンプル置換テーブルです。</p>
         
     | 
| 
       1542 
1543 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1543 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY 
     | 
| 
      
 1544 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY ShortText --normalizer NormalizerAuto
         
     | 
| 
       1544 
1545 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
       1545 
1546 
     | 
    
         
             
            column_create Thesaurus synonym COLUMN_VECTOR ShortText
         
     | 
| 
       1546 
1547 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -1552,9 +1553,10 @@ load --table Thesaurus 
     | 
|
| 
       1552 
1553 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], 2]
         
     | 
| 
       1553 
1554 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1554 
1555 
     | 
    
         
             
            </div>
         
     | 
| 
       1555 
     | 
    
         
            -
            <p>< 
     | 
| 
       1556 
     | 
    
         
            -
            <p 
     | 
| 
       1557 
     | 
    
         
            -
            <p 
     | 
| 
      
 1556 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">Thesaurus</span></code> 置換テーブルは2つの類義語があります。 <code class="docutils literal"><span class="pre">"mroonga"</span></code> と <code class="docutils literal"><span class="pre">"groonga"</span></code> です。ユーザが <code class="docutils literal"><span class="pre">"mroonga"</span></code> で検索すると、Groongaは <code 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></code> で検索します。ユーザーが <code class="docutils literal"><span class="pre">"groonga"</span></code> で検索すると、Groongaは <code class="docutils literal"><span class="pre">"((groonga)</span> <span class="pre">OR</span> <span class="pre">(senna))"</span></code> で検索します。</p>
         
     | 
| 
      
 1557 
     | 
    
         
            +
            <p>通常、置換テーブルにはノーマライザーを指定したほうがよいです。たとえば、ノーマライザーを指定すると、置換対象の単語に対して大文字小文字区別せずにマッチするようになります。利用可能なノーマライザーは <a class="reference internal" href="../normalizers.html"><em>ノーマライザー</em></a> を参照してください。</p>
         
     | 
| 
      
 1558 
     | 
    
         
            +
            <p>これらの類義語の値の中に <code class="docutils literal"><span class="pre">"mroonga"</span></code> や <code class="docutils literal"><span class="pre">"groonga"</span></code> といったキーの値も含まれていることに注意してください。このように類義語にキーの値も含めることを推奨します。もしキーの値を含めないと、置換した値には元の置換対象の値が含まれません。通常、元の値が含まれていた方がよい検索結果になります。もし、検索してほしくない単語がある場合は、元の単語を含めないでください。例えば、空のベクター値を指定することで「ストップワード」機能を実現することもできます。</p>
         
     | 
| 
      
 1559 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">query_expander</span></code> の使用例です。</p>
         
     | 
| 
       1558 
1560 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1559 
1561 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "mroonga"
         
     | 
| 
       1560 
1562 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1704,8 +1706,8 @@ select Entries --match_columns content --query "((mroonga) OR (tritonn) OR 
     | 
|
| 
       1704 
1706 
     | 
    
         
             
            # ]
         
     | 
| 
       1705 
1707 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1706 
1708 
     | 
    
         
             
            </div>
         
     | 
| 
       1707 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       1708 
     | 
    
         
            -
            <p>それぞれの置換する値は < 
     | 
| 
      
 1709 
     | 
    
         
            +
            <p>最初の <code class="docutils literal"><span class="pre">select</span></code> コマンドはクエリー展開を使いません。そのため、 <code class="docutils literal"><span class="pre">"tritonn"</span></code> という単語を含んでいるレコードは見つかりません。2番目の <code class="docutils literal"><span class="pre">select</span></code> コマンドはクエリー展開を使っています。そのため、 <code class="docutils literal"><span class="pre">"tritonn"</span></code> という単語を含んでいるレコードが見つかります。3番目の <code class="docutils literal"><span class="pre">select</span></code> コマンドはクエリー展開を使っていませんが、2番目の <code class="docutils literal"><span class="pre">select</span></code> コマンドと同じ結果になります。これは、3番目の <code class="docutils literal"><span class="pre">select</span></code> コマンドは展開後のクエリーを使っているからです。</p>
         
     | 
| 
      
 1710 
     | 
    
         
            +
            <p>それぞれの置換する値は <code class="docutils literal"><span class="pre">(...)</span></code> や <code class="docutils literal"><span class="pre">OR</span></code> といった <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を使えます。これらの構文を使うことにより複雑な置換をすることができます。</p>
         
     | 
| 
       1709 
1711 
     | 
    
         
             
            <p>以下はクエリー構文を使った複雑な置換の使用例です。</p>
         
     | 
| 
       1710 
1712 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1711 
1713 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
         
     | 
| 
         @@ -1766,16 +1768,16 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1766 
1768 
     | 
    
         
             
            # ]
         
     | 
| 
       1767 
1769 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1768 
1770 
     | 
    
         
             
            </div>
         
     | 
| 
       1769 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1770 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1771 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">load</span></code> コマンドは新しく <code class="docutils literal"><span class="pre">"popular"</span></code> という類義語を登録しています。これは <code class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:>=10))</span></code> に置換されます。置換されたクエリーは、「popular」というのは「popular」という単語を含んでいるか10以上の「いいね!」数を持つエントリという意味になります。</p>
         
     | 
| 
      
 1772 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">Entries</span></code> テーブルの中から <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値が <code class="docutils literal"><span class="pre">10</span></code> 以上のレコードを出力します。</p>
         
     | 
| 
       1771 
1773 
     | 
    
         
             
            </div>
         
     | 
| 
       1772 
1774 
     | 
    
         
             
            </div>
         
     | 
| 
       1773 
1775 
     | 
    
         
             
            <div class="section" id="output-related-parameters">
         
     | 
| 
       1774 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 1776 
     | 
    
         
            +
            <h3>7.3.41.4.4. 出力関連の引数<a class="headerlink" href="#output-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       1775 
1777 
     | 
    
         
             
            <div class="section" id="output-columns">
         
     | 
| 
       1776 
     | 
    
         
            -
            <span id="select-output-columns"></span><h4>7.3. 
     | 
| 
       1777 
     | 
    
         
            -
            <p>出力するカラムを < 
     | 
| 
       1778 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1778 
     | 
    
         
            +
            <span id="select-output-columns"></span><h4>7.3.41.4.4.1. <code class="docutils literal"><span class="pre">output_columns</span></code><a class="headerlink" href="#output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1779 
     | 
    
         
            +
            <p>出力するカラムを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
         
     | 
| 
      
 1780 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">output_columns</span></code> の使用例です。</p>
         
     | 
| 
       1779 
1781 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1780 
1782 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_id, _key' --limit 1
         
     | 
| 
       1781 
1783 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1808,10 +1810,10 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1808 
1810 
     | 
    
         
             
            # ]
         
     | 
| 
       1809 
1811 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1810 
1812 
     | 
    
         
             
            </div>
         
     | 
| 
       1811 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1812 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 1813 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">_id</span></code> と <code class="docutils literal"><span class="pre">_key</span></code> カラムの値だけを出力します。</p>
         
     | 
| 
      
 1814 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">*</span></code> is a special value. It means that all columns that are not
         
     | 
| 
       1813 
1815 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a>.</p>
         
     | 
| 
       1814 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1816 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">*</span></code> の使用例です。</p>
         
     | 
| 
       1815 
1817 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1816 
1818 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_key, *' --limit 1
         
     | 
| 
       1817 
1819 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1854,13 +1856,13 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1854 
1856 
     | 
    
         
             
            # ]
         
     | 
| 
       1855 
1857 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1856 
1858 
     | 
    
         
             
            </div>
         
     | 
| 
       1857 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1858 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
      
 1859 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">_key</span></code> 擬似カラム、 <code class="docutils literal"><span class="pre">content</span></code> カラム、 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値を出力しますが、 <code class="docutils literal"><span class="pre">_id</span></code> 擬似カラムの値は出力しません。</p>
         
     | 
| 
      
 1860 
     | 
    
         
            +
            <p>デフォルト値は <code class="docutils literal"><span class="pre">_id,</span> <span class="pre">_key,</span> <span class="pre">*</span></code> です。これは <code class="docutils literal"><span class="pre">_score</span></code> 以外の全てのカラムを出力するという意味です。</p>
         
     | 
| 
       1859 
1861 
     | 
    
         
             
            </div>
         
     | 
| 
       1860 
1862 
     | 
    
         
             
            <div class="section" id="sortby">
         
     | 
| 
       1861 
     | 
    
         
            -
            <span id="select-sortby"></span><h4>7.3. 
     | 
| 
       1862 
     | 
    
         
            -
            <p>ソートキーを < 
     | 
| 
       1863 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1863 
     | 
    
         
            +
            <span id="select-sortby"></span><h4>7.3.41.4.4.2. <code class="docutils literal"><span class="pre">sortby</span></code><a class="headerlink" href="#sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1864 
     | 
    
         
            +
            <p>ソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
         
     | 
| 
      
 1865 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">sortby</span></code> の使用例です。</p>
         
     | 
| 
       1864 
1866 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1865 
1867 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby 'n_likes, _id'
         
     | 
| 
       1866 
1868 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1936,9 +1938,9 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1936 
1938 
     | 
    
         
             
            # ]
         
     | 
| 
       1937 
1939 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1938 
1940 
     | 
    
         
             
            </div>
         
     | 
| 
       1939 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1940 
     | 
    
         
            -
            <p>降順でソートしたい場合はカラム名の前に < 
     | 
| 
       1941 
     | 
    
         
            -
            <p>以下は降順の < 
     | 
| 
      
 1941 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値で昇順にソートします。 <code class="docutils literal"><span class="pre">n_likes</span></code> の値が同じレコードについては <code class="docutils literal"><span class="pre">_id</span></code> カラムの値で昇順にソートします。 <code class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Senna"</span></code> と <code class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Tritonn"</span></code> が <code class="docutils literal"><span class="pre">_id</span></code> カラムの値でソートしているケースです。</p>
         
     | 
| 
      
 1942 
     | 
    
         
            +
            <p>降順でソートしたい場合はカラム名の前に <code class="docutils literal"><span class="pre">-</span></code> をつけてください。</p>
         
     | 
| 
      
 1943 
     | 
    
         
            +
            <p>以下は降順の <code class="docutils literal"><span class="pre">sortby</span></code> の使用例です。</p>
         
     | 
| 
       1942 
1944 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1943 
1945 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby '-n_likes, _id'
         
     | 
| 
       1944 
1946 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2014,8 +2016,8 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2014 
2016 
     | 
    
         
             
            # ]
         
     | 
| 
       2015 
2017 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2016 
2018 
     | 
    
         
             
            </div>
         
     | 
| 
       2017 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2018 
     | 
    
         
            -
            <p>もし、 < 
     | 
| 
      
 2019 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値で降順にソートします。しかし、 <code class="docutils literal"><span class="pre">_id</span></code> でソートするときは昇順でソートします。</p>
         
     | 
| 
      
 2020 
     | 
    
         
            +
            <p>もし、 <code class="docutils literal"><span class="pre">query</span></code> または <code class="docutils literal"><span class="pre">filter</span></code> 引数を使っているときは、 <code class="docutils literal"><span class="pre">sortby</span></code> の中で <code class="docutils literal"><span class="pre">_score</span></code> 擬似カラムを使うことができます。</p>
         
     | 
| 
       2019 
2021 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2020 
2022 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --sortby -_score --output_columns '_key, _score'
         
     | 
| 
       2021 
2023 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2052,12 +2054,12 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2052 
2054 
     | 
    
         
             
            # ]
         
     | 
| 
       2053 
2055 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2054 
2056 
     | 
    
         
             
            </div>
         
     | 
| 
       2055 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2056 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2057 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドはマッチしたレコードをヒットスコアで降順にソートし、レコードのキーとヒットスコアを出力します。</p>
         
     | 
| 
      
 2058 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">query</span></code> 引数も <code class="docutils literal"><span class="pre">filter</span></code> 引数も指定しないで <code class="docutils literal"><span class="pre">_score</span></code> を使った場合は、 <code class="docutils literal"><span class="pre">_score</span></code> を無視して、ログファイルに警告を出力します。</p>
         
     | 
| 
       2057 
2059 
     | 
    
         
             
            </div>
         
     | 
| 
       2058 
2060 
     | 
    
         
             
            <div class="section" id="offset">
         
     | 
| 
       2059 
     | 
    
         
            -
            <span id="select-offset"></span><h4>7.3. 
     | 
| 
       2060 
     | 
    
         
            -
            <p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 < 
     | 
| 
      
 2061 
     | 
    
         
            +
            <span id="select-offset"></span><h4>7.3.41.4.4.3. <code class="docutils literal"><span class="pre">offset</span></code><a class="headerlink" href="#offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2062 
     | 
    
         
            +
            <p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
       2061 
2063 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2062 
2064 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 3 --output_columns _key
         
     | 
| 
       2063 
2065 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2088,8 +2090,8 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2088 
2090 
     | 
    
         
             
            # ]
         
     | 
| 
       2089 
2091 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2090 
2092 
     | 
    
         
             
            </div>
         
     | 
| 
       2091 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2092 
     | 
    
         
            -
            <p>負の値を指定することもできます。負の値の場合は < 
     | 
| 
      
 2093 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは4番目以降のレコードを出力します。</p>
         
     | 
| 
      
 2094 
     | 
    
         
            +
            <p>負の値を指定することもできます。負の値の場合は <code class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">offset</span></code> 番目のレコードから始まる範囲という意味になります。もし、マッチしたレコードが3つあり、 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></code> を指定した場合は2番目( <code class="docutils literal"><span class="pre">3</span> <span class="pre">+</span> <span class="pre">-2</span> <span class="pre">=</span> <span class="pre">1</span></code> 。 <code class="docutils literal"><span class="pre">1</span></code> は2番目という意味です。オフセットは0始まりということを思い出してください。) のレコードから3番目のレコードを取得します。</p>
         
     | 
| 
       2093 
2095 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2094 
2096 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset -2 --output_columns _key
         
     | 
| 
       2095 
2097 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2120,13 +2122,13 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2120 
2122 
     | 
    
         
             
            # ]
         
     | 
| 
       2121 
2123 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2122 
2124 
     | 
    
         
             
            </div>
         
     | 
| 
       2123 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2124 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
      
 2125 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは4番目以降のレコードを出力します。なぜなら、全レコード数が <code class="docutils literal"><span class="pre">5</span></code> だからです。</p>
         
     | 
| 
      
 2126 
     | 
    
         
            +
            <p>デフォルト値は <code class="docutils literal"><span class="pre">0</span></code> です。</p>
         
     | 
| 
       2125 
2127 
     | 
    
         
             
            </div>
         
     | 
| 
       2126 
2128 
     | 
    
         
             
            <div class="section" id="limit">
         
     | 
| 
       2127 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       2128 
     | 
    
         
            -
            <p>< 
     | 
| 
       2129 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 2129 
     | 
    
         
            +
            <span id="select-limit"></span><h4>7.3.41.4.4.4. <code class="docutils literal"><span class="pre">limit</span></code><a class="headerlink" href="#limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2130 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">limit</span></code> は出力レコード数の最大値を指定します。 もし、マッチしたレコード数が <code class="docutils literal"><span class="pre">limit</span></code> よりも小さい場合はすべてのレコードが出力されます。</p>
         
     | 
| 
      
 2131 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">limit</span></code> の使用例です。</p>
         
     | 
| 
       2130 
2132 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2131 
2133 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 2 --limit 3 --output_columns _key
         
     | 
| 
       2132 
2134 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2160,9 +2162,9 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2160 
2162 
     | 
    
         
             
            # ]
         
     | 
| 
       2161 
2163 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2162 
2164 
     | 
    
         
             
            </div>
         
     | 
| 
       2163 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2164 
     | 
    
         
            -
            <p>負の値を指定することもできます。負の値の場合は、最大で < 
     | 
| 
       2165 
     | 
    
         
            -
            <p>以下は負の値を使った < 
     | 
| 
      
 2165 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは3番目、4番目、5番目のレコードを出力します。</p>
         
     | 
| 
      
 2166 
     | 
    
         
            +
            <p>負の値を指定することもできます。負の値の場合は、最大で <code class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">limit</span> <span class="pre">+</span> <span class="pre">1</span></code> 件のレコードを出力するという意味になります。 例えば、 <code class="docutils literal"><span class="pre">--limit</span> <span class="pre">-1</span></code> はすべてのレコードを出力します。これはすべてのレコードを表示する場合にとても便利です。</p>
         
     | 
| 
      
 2167 
     | 
    
         
            +
            <p>以下は負の値を使った <code class="docutils literal"><span class="pre">limit</span></code> の簡単な使用例です。</p>
         
     | 
| 
       2166 
2168 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2167 
2169 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --limit -1
         
     | 
| 
       2168 
2170 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -2238,24 +2240,24 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2238 
2240 
     | 
    
         
             
            # ]
         
     | 
| 
       2239 
2241 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2240 
2242 
     | 
    
         
             
            </div>
         
     | 
| 
       2241 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2242 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
      
 2243 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドはすべてのレコードを出力します。</p>
         
     | 
| 
      
 2244 
     | 
    
         
            +
            <p>デフォルト値は <code class="docutils literal"><span class="pre">10</span></code> です。</p>
         
     | 
| 
       2243 
2245 
     | 
    
         
             
            </div>
         
     | 
| 
       2244 
2246 
     | 
    
         
             
            <div class="section" id="scorer">
         
     | 
| 
       2245 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 2247 
     | 
    
         
            +
            <span id="select-scorer"></span><h4>7.3.41.4.4.5. <code class="docutils literal"><span class="pre">scorer</span></code><a class="headerlink" href="#scorer" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       2246 
2248 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       2247 
2249 
     | 
    
         
             
            <p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
         
     | 
| 
       2248 
2250 
     | 
    
         
             
            <p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
         
     | 
| 
       2249 
2251 
     | 
    
         
             
            </div>
         
     | 
| 
       2250 
2252 
     | 
    
         
             
            </div>
         
     | 
| 
       2251 
2253 
     | 
    
         
             
            <div class="section" id="drilldown-related-parameters">
         
     | 
| 
       2252 
     | 
    
         
            -
            <span id="select-drilldown-related-parameters"></span><h3>7.3. 
     | 
| 
      
 2254 
     | 
    
         
            +
            <span id="select-drilldown-related-parameters"></span><h3>7.3.41.4.5. ドリルダウン関連の引数<a class="headerlink" href="#drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       2253 
2255 
     | 
    
         
             
            <p>このセクションでは基本的なドリルダウン関連の引数について説明します。高度なドリルダウン関連の引数は他のセクションで説明します。</p>
         
     | 
| 
       2254 
2256 
     | 
    
         
             
            <div class="section" id="select-drilldown">
         
     | 
| 
       2255 
     | 
    
         
            -
            <span id=" 
     | 
| 
       2256 
     | 
    
         
            -
            <p>グループ化するときに使うキーを < 
     | 
| 
      
 2257 
     | 
    
         
            +
            <span id="id2"></span><h4>7.3.41.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code><a class="headerlink" href="#select-drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2258 
     | 
    
         
            +
            <p>グループ化するときに使うキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
         
     | 
| 
       2257 
2259 
     | 
    
         
             
            <p>指定した検索条件にマッチしたレコードを指定したキーのそれぞれでグループ化します。検索条件を指定していない場合はすべてのレコードを指定したキーのそれぞれでグループ化します。</p>
         
     | 
| 
       2258 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 2260 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown</span></code> の使用例です。</p>
         
     | 
| 
       2259 
2261 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2260 
2262 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2261 
2263 
     | 
    
         
             
              --output_columns _key,tag \
         
     | 
| 
         @@ -2333,7 +2335,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2333 
2335 
     | 
    
         
             
            # ]
         
     | 
| 
       2334 
2336 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2335 
2337 
     | 
    
         
             
            </div>
         
     | 
| 
       2336 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 2338 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは次の情報を出力します。</p>
         
     | 
| 
       2337 
2339 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2338 
2340 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       2339 
2341 
     | 
    
         
             
            <li><p class="first">「Hello」タグを持つレコードが1つある。</p>
         
     | 
| 
         @@ -2344,7 +2346,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2344 
2346 
     | 
    
         
             
            </li>
         
     | 
| 
       2345 
2347 
     | 
    
         
             
            </ul>
         
     | 
| 
       2346 
2348 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2347 
     | 
    
         
            -
            <p>以下は検索条件付きで < 
     | 
| 
      
 2349 
     | 
    
         
            +
            <p>以下は検索条件付きで <code class="docutils literal"><span class="pre">drilldown</span></code> を使う例です。</p>
         
     | 
| 
       2348 
2350 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2349 
2351 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2350 
2352 
     | 
    
         
             
              --output_columns _key,tag \
         
     | 
| 
         @@ -2411,10 +2413,10 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2411 
2413 
     | 
    
         
             
            # ]
         
     | 
| 
       2412 
2414 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2413 
2415 
     | 
    
         
             
            </div>
         
     | 
| 
       2414 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 2416 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは次の情報を出力します。</p>
         
     | 
| 
       2415 
2417 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2416 
2418 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       2417 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 2419 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">n_likes</span></code> の値が5以上のレコードの中には…</p>
         
     | 
| 
       2418 
2420 
     | 
    
         
             
            <ul>
         
     | 
| 
       2419 
2421 
     | 
    
         
             
            <li><p class="first">「Hello」タグを持つレコードが1つある。</p>
         
     | 
| 
       2420 
2422 
     | 
    
         
             
            </li>
         
     | 
| 
         @@ -2424,7 +2426,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2424 
2426 
     | 
    
         
             
            </li>
         
     | 
| 
       2425 
2427 
     | 
    
         
             
            </ul>
         
     | 
| 
       2426 
2428 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2427 
     | 
    
         
            -
            <p>以下は複数のグループ化キーを指定する < 
     | 
| 
      
 2429 
     | 
    
         
            +
            <p>以下は複数のグループ化キーを指定する <code class="docutils literal"><span class="pre">drilldown</span></code> の例です。</p>
         
     | 
| 
       2428 
2430 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2429 
2431 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2430 
2432 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -2526,10 +2528,10 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2526 
2528 
     | 
    
         
             
            # ]
         
     | 
| 
       2527 
2529 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2528 
2530 
     | 
    
         
             
            </div>
         
     | 
| 
       2529 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 2531 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは次の情報を出力します。</p>
         
     | 
| 
       2530 
2532 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2531 
2533 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       2532 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 2534 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">tag</span></code> について:</p>
         
     | 
| 
       2533 
2535 
     | 
    
         
             
            <ul>
         
     | 
| 
       2534 
2536 
     | 
    
         
             
            <li><p class="first">「Hello」タグを持つレコードが1つある。</p>
         
     | 
| 
       2535 
2537 
     | 
    
         
             
            </li>
         
     | 
| 
         @@ -2539,7 +2541,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2539 
2541 
     | 
    
         
             
            </li>
         
     | 
| 
       2540 
2542 
     | 
    
         
             
            </ul>
         
     | 
| 
       2541 
2543 
     | 
    
         
             
            </li>
         
     | 
| 
       2542 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 2544 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">n_likes</span></code> について:</p>
         
     | 
| 
       2543 
2545 
     | 
    
         
             
            <ul>
         
     | 
| 
       2544 
2546 
     | 
    
         
             
            <li><p class="first">「Hello」タグを持つレコードが1つある。</p>
         
     | 
| 
       2545 
2547 
     | 
    
         
             
            </li>
         
     | 
| 
         @@ -2553,10 +2555,10 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2553 
2555 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2554 
2556 
     | 
    
         
             
            </div>
         
     | 
| 
       2555 
2557 
     | 
    
         
             
            <div class="section" id="drilldown-sortby">
         
     | 
| 
       2556 
     | 
    
         
            -
            <span id="select-drilldown-sortby"></span><h4>7.3. 
     | 
| 
       2557 
     | 
    
         
            -
            <p>ドリルダウン結果のソートキーを < 
     | 
| 
       2558 
     | 
    
         
            -
            <p>グループ化されたレコード数は < 
     | 
| 
       2559 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 2558 
     | 
    
         
            +
            <span id="select-drilldown-sortby"></span><h4>7.3.41.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2559 
     | 
    
         
            +
            <p>ドリルダウン結果のソートキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
         
     | 
| 
      
 2560 
     | 
    
         
            +
            <p>グループ化されたレコード数は <code class="docutils literal"><span class="pre">_nsubrecs</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> 擬似カラムで参照できます。</p>
         
     | 
| 
      
 2561 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_sortby</span></code> の使用例です。</p>
         
     | 
| 
       2560 
2562 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2561 
2563 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2562 
2564 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -2659,8 +2661,8 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2659 
2661 
     | 
    
         
             
            # ]
         
     | 
| 
       2660 
2662 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2661 
2663 
     | 
    
         
             
            </div>
         
     | 
| 
       2662 
     | 
    
         
            -
            <p>ドリルダウン結果は「グループに含まれるレコード数」(= < 
     | 
| 
       2663 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2664 
     | 
    
         
            +
            <p>ドリルダウン結果は「グループに含まれるレコード数」(= <code class="docutils literal"><span class="pre">_nsubrecs</span></code> )で降順にソートします。「グループに含まれるレコード数」が同じグループが複数あった場合は、グループ化に使ったキー(= <code class="docutils literal"><span class="pre">_key</span></code> )で昇順にソートします。</p>
         
     | 
| 
      
 2665 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown</span></code> で指定したすべてのグループキーで同じソートキーを使います。</p>
         
     | 
| 
       2664 
2666 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2665 
2667 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2666 
2668 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -2763,13 +2765,13 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2763 
2765 
     | 
    
         
             
            # ]
         
     | 
| 
       2764 
2766 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2765 
2767 
     | 
    
         
             
            </div>
         
     | 
| 
       2766 
     | 
    
         
            -
            <p>< 
     | 
| 
       2767 
     | 
    
         
            -
            <p>それぞれのドリルダウンで異なるソートキーを使いたい場合は <a class="reference internal" href="#select-advanced-drilldown-related-parameters">< 
     | 
| 
      
 2768 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">tag</span></code> のドリルダウンでも <code class="docutils literal"><span class="pre">n_likes</span></code> のドリルダウンでも同じソートキーを使っています。</p>
         
     | 
| 
      
 2769 
     | 
    
         
            +
            <p>それぞれのドリルダウンで異なるソートキーを使いたい場合は <a class="reference internal" href="#select-advanced-drilldown-related-parameters"><span>高度なドリルダウン関連のパラメーター</span></a> を参照してください。</p>
         
     | 
| 
       2768 
2770 
     | 
    
         
             
            </div>
         
     | 
| 
       2769 
2771 
     | 
    
         
             
            <div class="section" id="drilldown-output-columns">
         
     | 
| 
       2770 
     | 
    
         
            -
            <span id="select-drilldown-output-columns"></span><h4>7.3. 
     | 
| 
       2771 
     | 
    
         
            -
            <p>ドリルダウン結果から出力するカラムを < 
     | 
| 
       2772 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 2772 
     | 
    
         
            +
            <span id="select-drilldown-output-columns"></span><h4>7.3.41.4.5.3. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 2773 
     | 
    
         
            +
            <p>ドリルダウン結果から出力するカラムを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
         
     | 
| 
      
 2774 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の使用例です。</p>
         
     | 
| 
       2773 
2775 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2774 
2776 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2775 
2777 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -2834,7 +2836,7 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2834 
2836 
     | 
    
         
             
            # ]
         
     | 
| 
       2835 
2837 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2836 
2838 
     | 
    
         
             
            </div>
         
     | 
| 
       2837 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 2839 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドはグループ化したキーを出力していくだけです。</p>
         
     | 
| 
       2838 
2840 
     | 
    
         
             
            <p>グループ化したキーが参照型のカラム(型がテーブルのカラム)だった場合、参照型のカラムが参照しているテーブルのカラムにもアクセスできます。</p>
         
     | 
| 
       2839 
2841 
     | 
    
         
             
            <p>参照型に対してドリルダウンする方法を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
         
     | 
| 
       2840 
2842 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
         @@ -2863,8 +2865,8 @@ load --table Items 
     | 
|
| 
       2863 
2865 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], 3]
         
     | 
| 
       2864 
2866 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2865 
2867 
     | 
    
         
             
            </div>
         
     | 
| 
       2866 
     | 
    
         
            -
            <p>< 
     | 
| 
       2867 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2868 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">Tags</span></code> テーブルは参照されているテーブルです。 <code class="docutils literal"><span class="pre">Items.tag</span></code> は参照型のカラムです。</p>
         
     | 
| 
      
 2869 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">Tags.label</span></code> は <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の中では <code class="docutils literal"><span class="pre">label</span></code> で参照できます。</p>
         
     | 
| 
       2868 
2870 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2869 
2871 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Items \
         
     | 
| 
       2870 
2872 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -2924,7 +2926,7 @@ load --table Items 
     | 
|
| 
       2924 
2926 
     | 
    
         
             
            # ]
         
     | 
| 
       2925 
2927 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2926 
2928 
     | 
    
         
             
            </div>
         
     | 
| 
       2927 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2929 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">*</span></code> を使うと、参照されているテーブル(= <code class="docutils literal"><span class="pre">Tags</span></code> )のすべてのカラムを参照できます。</p>
         
     | 
| 
       2928 
2930 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2929 
2931 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Items \
         
     | 
| 
       2930 
2932 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -2990,14 +2992,14 @@ load --table Items 
     | 
|
| 
       2990 
2992 
     | 
    
         
             
            # ]
         
     | 
| 
       2991 
2993 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2992 
2994 
     | 
    
         
             
            </div>
         
     | 
| 
       2993 
     | 
    
         
            -
            <p>< 
     | 
| 
       2994 
     | 
    
         
            -
            <p>< 
     | 
| 
       2995 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-calc-types">< 
     | 
| 
      
 2995 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">*</span></code> は <code class="docutils literal"><span class="pre">label,</span> <span class="pre">priority</span></code> に展開されます。</p>
         
     | 
| 
      
 2996 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">_key,</span> <span class="pre">_nsubrecs</span></code> です。グループ化に使ったキーとグループのレコード数を出力する、ということです。</p>
         
     | 
| 
      
 2997 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-calc-types"><span>drilldown_calc_types</span></a> を使うと、 <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code> の中で <code class="docutils literal"><span class="pre">_max</span></code> 、 <code class="docutils literal"><span class="pre">_min</span></code> 、 <code class="docutils literal"><span class="pre">_sum</span></code> 、 <code class="docutils literal"><span class="pre">_avg</span></code> といった <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> も使えるようになります。詳細は <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> のドキュメントを参照してください。</p>
         
     | 
| 
       2996 
2998 
     | 
    
         
             
            </div>
         
     | 
| 
       2997 
2999 
     | 
    
         
             
            <div class="section" id="drilldown-offset">
         
     | 
| 
       2998 
     | 
    
         
            -
            <span id="select-drilldown-offset"></span><h4>7.3. 
     | 
| 
       2999 
     | 
    
         
            -
            <p>ドリルダウン結果を出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 < 
     | 
| 
       3000 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 3000 
     | 
    
         
            +
            <span id="select-drilldown-offset"></span><h4>7.3.41.4.5.4. <code class="docutils literal"><span class="pre">drilldown_offset</span></code><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3001 
     | 
    
         
            +
            <p>ドリルダウン結果を出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0始まりです。 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
      
 3002 
     | 
    
         
            +
            <p>以下は簡単な <code class="docutils literal"><span class="pre">drilldown_offset</span></code> の使用例です。</p>
         
     | 
| 
       3001 
3003 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3002 
3004 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3003 
3005 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -3066,8 +3068,8 @@ load --table Items 
     | 
|
| 
       3066 
3068 
     | 
    
         
             
            # ]
         
     | 
| 
       3067 
3069 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3068 
3070 
     | 
    
         
             
            </div>
         
     | 
| 
       3069 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3070 
     | 
    
         
            -
            <p>負の値を指定することもできます。負の値の場合は < 
     | 
| 
      
 3071 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは2番目以降のレコードを出力します。</p>
         
     | 
| 
      
 3072 
     | 
    
         
            +
            <p>負の値を指定することもできます。負の値の場合は <code class="docutils literal"><span class="pre">グループの数</span> <span class="pre">+</span> <span class="pre">offset</span></code> 番目のレコードから始まる範囲という意味になります。もし、グループの数が3つあり、 <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></code> を指定した場合は1番目( <code class="docutils literal"><span class="pre">3</span> <span class="pre">+</span> <span class="pre">-2</span> <span class="pre">=</span> <span class="pre">1</span></code> 。 <code class="docutils literal"><span class="pre">1</span></code> は2番目です。オフセットは0始まりということを思い出してください。) のグループから3番目のグループが出力されます。</p>
         
     | 
| 
       3071 
3073 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3072 
3074 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3073 
3075 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -3136,13 +3138,13 @@ load --table Items 
     | 
|
| 
       3136 
3138 
     | 
    
         
             
            # ]
         
     | 
| 
       3137 
3139 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3138 
3140 
     | 
    
         
             
            </div>
         
     | 
| 
       3139 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3140 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 3141 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは2番目以降のグループを出力します。なぜなら、全グループ数が <code class="docutils literal"><span class="pre">3</span></code> だからです。</p>
         
     | 
| 
      
 3142 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_offset</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">0</span></code> です。</p>
         
     | 
| 
       3141 
3143 
     | 
    
         
             
            </div>
         
     | 
| 
       3142 
3144 
     | 
    
         
             
            <div class="section" id="drilldown-limit">
         
     | 
| 
       3143 
     | 
    
         
            -
            <span id="select-drilldown-limit"></span><h4>7.3. 
     | 
| 
       3144 
     | 
    
         
            -
            <p>< 
     | 
| 
       3145 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 3145 
     | 
    
         
            +
            <span id="select-drilldown-limit"></span><h4>7.3.41.4.5.5. <code class="docutils literal"><span class="pre">drilldown_limit</span></code><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3146 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_limit</span></code> は出力グループ数の最大値を指定します。もし、グループ数 <code class="docutils literal"><span class="pre">limit</span></code> よりも小さい場合はすべてのグループが出力されます。</p>
         
     | 
| 
      
 3147 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">drilldown_limit</span></code> の使用例です。</p>
         
     | 
| 
       3146 
3148 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3147 
3149 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3148 
3150 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -3212,9 +3214,9 @@ load --table Items 
     | 
|
| 
       3212 
3214 
     | 
    
         
             
            # ]
         
     | 
| 
       3213 
3215 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3214 
3216 
     | 
    
         
             
            </div>
         
     | 
| 
       3215 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3216 
     | 
    
         
            -
            <p>負の値を指定することもできます。負の値の場合は、最大で < 
     | 
| 
       3217 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 3217 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは2番目、3番目のレコードを出力します。</p>
         
     | 
| 
      
 3218 
     | 
    
         
            +
            <p>負の値を指定することもできます。負の値の場合は、最大で <code class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">drilldown_limit</span> <span class="pre">+</span> <span class="pre">1</span></code> 件のレコードを出力するという意味になります。 例えば、 <code class="docutils literal"><span class="pre">--drilldown_limit</span> <span class="pre">-1</span></code> はすべてのレコードを出力します。これはすべてのレコードを表示する場合にとても便利です。</p>
         
     | 
| 
      
 3219 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">drilldown_limit</span></code> に負の値を指定する例です。</p>
         
     | 
| 
       3218 
3220 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3219 
3221 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3220 
3222 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -3287,14 +3289,14 @@ load --table Items 
     | 
|
| 
       3287 
3289 
     | 
    
         
             
            # ]
         
     | 
| 
       3288 
3290 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3289 
3291 
     | 
    
         
             
            </div>
         
     | 
| 
       3290 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3291 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 3292 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドはすべてのグループを出力します。</p>
         
     | 
| 
      
 3293 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_limit</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">10</span></code> です。</p>
         
     | 
| 
       3292 
3294 
     | 
    
         
             
            </div>
         
     | 
| 
       3293 
3295 
     | 
    
         
             
            <div class="section" id="drilldown-calc-types">
         
     | 
| 
       3294 
     | 
    
         
            -
            <span id="select-drilldown-calc-types"></span><h4>7.3. 
     | 
| 
       3295 
     | 
    
         
            -
            <p>ドリルダウンでグループ内のレコードの値を計算(集計)する方法を指定します。「 < 
     | 
| 
       3296 
     | 
    
         
            -
            <p>計算対象の値はグループ内のレコードのカラムから取得します。このカラムは <a class="reference internal" href="#select-drilldown-calc-target">< 
     | 
| 
       3297 
     | 
    
         
            -
            <p>計算した値は <a class="reference internal" href="#select-drilldown-output-columns">< 
     | 
| 
      
 3296 
     | 
    
         
            +
            <span id="select-drilldown-calc-types"></span><h4>7.3.41.4.5.6. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code><a class="headerlink" href="#drilldown-calc-types" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3297 
     | 
    
         
            +
            <p>ドリルダウンでグループ内のレコードの値を計算(集計)する方法を指定します。「 <code class="docutils literal"><span class="pre">,</span></code> 」で区切ることで複数の計算タイプを指定することもできます。たとえば、 <code class="docutils literal"><span class="pre">MAX,MIN</span></code> といった具合です。</p>
         
     | 
| 
      
 3298 
     | 
    
         
            +
            <p>計算対象の値はグループ内のレコードのカラムから取得します。このカラムは <a class="reference internal" href="#select-drilldown-calc-target"><span>drilldown_calc_target</span></a> で指定します。</p>
         
     | 
| 
      
 3299 
     | 
    
         
            +
            <p>計算した値は <a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> の中で <code class="docutils literal"><span class="pre">_max</span></code> や <code class="docutils literal"><span class="pre">_min</span></code> のような <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を指定すると取得できます。</p>
         
     | 
| 
       3298 
3300 
     | 
    
         
             
            <p>以下の計算タイプを使えます。</p>
         
     | 
| 
       3299 
3301 
     | 
    
         
             
            <table border="1" class="docutils">
         
     | 
| 
       3300 
3302 
     | 
    
         
             
            <colgroup>
         
     | 
| 
         @@ -3308,14 +3310,14 @@ load --table Items 
     | 
|
| 
       3308 
3310 
     | 
    
         
             
            </th>
         
     | 
| 
       3309 
3311 
     | 
    
         
             
            <th class="head"><p class="first last"><a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> 名</p>
         
     | 
| 
       3310 
3312 
     | 
    
         
             
            </th>
         
     | 
| 
       3311 
     | 
    
         
            -
            <th class="head"><p class="first last"><a class="reference internal" href="#select-drilldown-calc-target">< 
     | 
| 
      
 3313 
     | 
    
         
            +
            <th class="head"><p class="first last"><a class="reference internal" href="#select-drilldown-calc-target"><span>drilldown_calc_target</span></a> が必要か</p>
         
     | 
| 
       3312 
3314 
     | 
    
         
             
            </th>
         
     | 
| 
       3313 
3315 
     | 
    
         
             
            <th class="head"><p class="first last">説明</p>
         
     | 
| 
       3314 
3316 
     | 
    
         
             
            </th>
         
     | 
| 
       3315 
3317 
     | 
    
         
             
            </tr>
         
     | 
| 
       3316 
3318 
     | 
    
         
             
            </thead>
         
     | 
| 
       3317 
3319 
     | 
    
         
             
            <tbody valign="top">
         
     | 
| 
       3318 
     | 
    
         
            -
            <tr class="row-even"><td>< 
     | 
| 
      
 3320 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">NONE</span></code></td>
         
     | 
| 
       3319 
3321 
     | 
    
         
             
            <td><p class="first last">なし。</p>
         
     | 
| 
       3320 
3322 
     | 
    
         
             
            </td>
         
     | 
| 
       3321 
3323 
     | 
    
         
             
            <td><p class="first last">必要ない。</p>
         
     | 
| 
         @@ -3323,36 +3325,36 @@ load --table Items 
     | 
|
| 
       3323 
3325 
     | 
    
         
             
            <td><p class="first last">無視されます。</p>
         
     | 
| 
       3324 
3326 
     | 
    
         
             
            </td>
         
     | 
| 
       3325 
3327 
     | 
    
         
             
            </tr>
         
     | 
| 
       3326 
     | 
    
         
            -
            <tr class="row-odd"><td>< 
     | 
| 
       3327 
     | 
    
         
            -
            <td>< 
     | 
| 
      
 3328 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">COUNT</span></code></td>
         
     | 
| 
      
 3329 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">_nsubrecs</span></code></td>
         
     | 
| 
       3328 
3330 
     | 
    
         
             
            <td><p class="first last">必要ない。</p>
         
     | 
| 
       3329 
3331 
     | 
    
         
             
            </td>
         
     | 
| 
       3330 
3332 
     | 
    
         
             
            <td><p class="first last">グループ内のレコードの数を数える。常に有効なので指定する必要はない。</p>
         
     | 
| 
       3331 
3333 
     | 
    
         
             
            </td>
         
     | 
| 
       3332 
3334 
     | 
    
         
             
            </tr>
         
     | 
| 
       3333 
     | 
    
         
            -
            <tr class="row-even"><td>< 
     | 
| 
       3334 
     | 
    
         
            -
            <td>< 
     | 
| 
      
 3335 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">MAX</span></code></td>
         
     | 
| 
      
 3336 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">_max</span></code></td>
         
     | 
| 
       3335 
3337 
     | 
    
         
             
            <td><p class="first last">必要。</p>
         
     | 
| 
       3336 
3338 
     | 
    
         
             
            </td>
         
     | 
| 
       3337 
3339 
     | 
    
         
             
            <td><p class="first last">グループ内のレコードの整数値の中で最大の値を見つける。</p>
         
     | 
| 
       3338 
3340 
     | 
    
         
             
            </td>
         
     | 
| 
       3339 
3341 
     | 
    
         
             
            </tr>
         
     | 
| 
       3340 
     | 
    
         
            -
            <tr class="row-odd"><td>< 
     | 
| 
       3341 
     | 
    
         
            -
            <td>< 
     | 
| 
      
 3342 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">MIN</span></code></td>
         
     | 
| 
      
 3343 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">_min</span></code></td>
         
     | 
| 
       3342 
3344 
     | 
    
         
             
            <td><p class="first last">必要。</p>
         
     | 
| 
       3343 
3345 
     | 
    
         
             
            </td>
         
     | 
| 
       3344 
3346 
     | 
    
         
             
            <td><p class="first last">グループ内のレコードの整数値の中で最小の値を見つける。</p>
         
     | 
| 
       3345 
3347 
     | 
    
         
             
            </td>
         
     | 
| 
       3346 
3348 
     | 
    
         
             
            </tr>
         
     | 
| 
       3347 
     | 
    
         
            -
            <tr class="row-even"><td>< 
     | 
| 
       3348 
     | 
    
         
            -
            <td>< 
     | 
| 
      
 3349 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">SUM</span></code></td>
         
     | 
| 
      
 3350 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">_sum</span></code></td>
         
     | 
| 
       3349 
3351 
     | 
    
         
             
            <td><p class="first last">必要。</p>
         
     | 
| 
       3350 
3352 
     | 
    
         
             
            </td>
         
     | 
| 
       3351 
3353 
     | 
    
         
             
            <td><p class="first last">グループ内のレコードの整数値の合計を計算する。</p>
         
     | 
| 
       3352 
3354 
     | 
    
         
             
            </td>
         
     | 
| 
       3353 
3355 
     | 
    
         
             
            </tr>
         
     | 
| 
       3354 
     | 
    
         
            -
            <tr class="row-odd"><td>< 
     | 
| 
       3355 
     | 
    
         
            -
            <td>< 
     | 
| 
      
 3356 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">AVG</span></code></td>
         
     | 
| 
      
 3357 
     | 
    
         
            +
            <td><code class="docutils literal"><span class="pre">_avg</span></code></td>
         
     | 
| 
       3356 
3358 
     | 
    
         
             
            <td><p class="first last">必要。</p>
         
     | 
| 
       3357 
3359 
     | 
    
         
             
            </td>
         
     | 
| 
       3358 
3360 
     | 
    
         
             
            <td><p class="first last">グループ内のレコードの整数値・浮動小数点数値の平均を計算する。</p>
         
     | 
| 
         @@ -3360,7 +3362,7 @@ load --table Items 
     | 
|
| 
       3360 
3362 
     | 
    
         
             
            </tr>
         
     | 
| 
       3361 
3363 
     | 
    
         
             
            </tbody>
         
     | 
| 
       3362 
3364 
     | 
    
         
             
            </table>
         
     | 
| 
       3363 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 3365 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">MAX</span></code> の使用例です。</p>
         
     | 
| 
       3364 
3366 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3365 
3367 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3366 
3368 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
         @@ -3469,8 +3471,8 @@ load --table Items 
     | 
|
| 
       3469 
3471 
     | 
    
         
             
            # ]
         
     | 
| 
       3470 
3472 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3471 
3473 
     | 
    
         
             
            </div>
         
     | 
| 
       3472 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3473 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 3474 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">tag</span></code> カラムの値ですべてのレコードをグループ化します。その後、各グループについて最大の <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値を探し、「グループ化に使ったキー」と「 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の最大値」のペアのリストを出力します。 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の最大値を参照するために <code class="docutils literal"><span class="pre">_max</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使っています。</p>
         
     | 
| 
      
 3475 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">MIN</span></code> の使用例です。</p>
         
     | 
| 
       3474 
3476 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3475 
3477 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3476 
3478 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
         @@ -3579,8 +3581,8 @@ load --table Items 
     | 
|
| 
       3579 
3581 
     | 
    
         
             
            # ]
         
     | 
| 
       3580 
3582 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3581 
3583 
     | 
    
         
             
            </div>
         
     | 
| 
       3582 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3583 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 3584 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">tag</span></code> カラムの値ですべてのレコードをグループ化します。その後、各グループについて最小の <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値を探し、「グループ化に使ったキー」と「 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の最小値」のペアのリストを出力します。 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の最小値を参照するために <code class="docutils literal"><span class="pre">_min</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使っています。</p>
         
     | 
| 
      
 3585 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">SUM</span></code> の使用例です。</p>
         
     | 
| 
       3584 
3586 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3585 
3587 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3586 
3588 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
         @@ -3689,8 +3691,8 @@ load --table Items 
     | 
|
| 
       3689 
3691 
     | 
    
         
             
            # ]
         
     | 
| 
       3690 
3692 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3691 
3693 
     | 
    
         
             
            </div>
         
     | 
| 
       3692 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3693 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 3694 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">tag</span></code> カラムの値ですべてのレコードをグループ化します。その後、各グループについて <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの合計を計算し、「グループ化に使ったキー」と「 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の合計」のペアのリストを出力します。 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の合計を参照するために <code class="docutils literal"><span class="pre">_sum</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使っています。</p>
         
     | 
| 
      
 3695 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">AVG</span></code> の使用例です。</p>
         
     | 
| 
       3694 
3696 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3695 
3697 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       3696 
3698 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
         @@ -3799,7 +3801,7 @@ load --table Items 
     | 
|
| 
       3799 
3801 
     | 
    
         
             
            # ]
         
     | 
| 
       3800 
3802 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3801 
3803 
     | 
    
         
             
            </div>
         
     | 
| 
       3802 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 3804 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは <code class="docutils literal"><span class="pre">tag</span></code> カラムの値ですべてのレコードをグループ化します。その後、各グループについて <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの平均を計算し、「グループ化に使ったキー」と「 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の平均」のペアのリストを出力します。 <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値の合計を参照するために <code class="docutils literal"><span class="pre">_avg</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使っています。</p>
         
     | 
| 
       3803 
3805 
     | 
    
         
             
            <p>以下はすべての計算タイプを使う例です。</p>
         
     | 
| 
       3804 
3806 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       3805 
3807 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
         @@ -3937,82 +3939,86 @@ load --table Items 
     | 
|
| 
       3937 
3939 
     | 
    
         
             
            # ]
         
     | 
| 
       3938 
3940 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       3939 
3941 
     | 
    
         
             
            </div>
         
     | 
| 
       3940 
     | 
    
         
            -
            <p>この < 
     | 
| 
       3941 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 3942 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドは複数の計算タイプを <code class="docutils literal"><span class="pre">MAX,MIN,SUM,AVG</span></code> というように「 <code class="docutils literal"><span class="pre">,</span></code> 」で区切って指定しています。 <a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> で <code class="docutils literal"><span class="pre">COUNT</span></code> を指定していなくても <code class="docutils literal"><span class="pre">_nsubrecs</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使えます。これは、 <code class="docutils literal"><span class="pre">COUNT</span></code> は常に有効だからです。</p>
         
     | 
| 
      
 3943 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_calc_types</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">NONE</span></code> です。これは、 <code class="docutils literal"><span class="pre">COUNT</span></code> だけが有効になっているという意味です。なぜなら、 <code class="docutils literal"><span class="pre">NONE</span></code> は単に無視されて、 <code class="docutils literal"><span class="pre">COUNT</span></code> は常に有効だからです。</p>
         
     | 
| 
       3942 
3944 
     | 
    
         
             
            </div>
         
     | 
| 
       3943 
3945 
     | 
    
         
             
            <div class="section" id="drilldown-calc-target">
         
     | 
| 
       3944 
     | 
    
         
            -
            <span id="select-drilldown-calc-target"></span><h4>7.3. 
     | 
| 
       3945 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-calc-types">< 
     | 
| 
       3946 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-calc-types">< 
     | 
| 
       3947 
     | 
    
         
            -
            <p>< 
     | 
| 
       3948 
     | 
    
         
            -
            <p>< 
     | 
| 
       3949 
     | 
    
         
            -
            <p>< 
     | 
| 
       3950 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 3946 
     | 
    
         
            +
            <span id="select-drilldown-calc-target"></span><h4>7.3.41.4.5.7. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code><a class="headerlink" href="#drilldown-calc-target" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 3947 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-calc-types"><span>drilldown_calc_types</span></a> の計算対象のカラムを指定します。</p>
         
     | 
| 
      
 3948 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-calc-types"><span>drilldown_calc_types</span></a> で <code class="docutils literal"><span class="pre">MAX</span></code> のように計算対象のカラムが必要な計算タイプを指定したにも関わらず <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> を省略すると、計算結果は常に <code class="docutils literal"><span class="pre">0</span></code> になります。</p>
         
     | 
| 
      
 3949 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">n_likes</span></code> というように1つのカラム名だけしか指定できません。 <code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">_key,n_likes</span></code> というように複数のカラムを指定することはできません。</p>
         
     | 
| 
      
 3950 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--drilldown_calc_target</span> <span class="pre">reference_column.nested_reference_column.value</span></code> というように「 <code class="docutils literal"><span class="pre">.</span></code> 」でつなげることで対象レコードから参照している値を使うことができます。</p>
         
     | 
| 
      
 3951 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> の使い方は <a class="reference internal" href="#select-drilldown-calc-types"><span>drilldown_calc_types</span></a> を参照してください。</p>
         
     | 
| 
      
 3952 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown_calc_target</span></code> のデフォルト値は <code class="docutils literal"><span class="pre">null</span></code> です。これは計算対象カラムは何も指定されていないということです。</p>
         
     | 
| 
       3951 
3953 
     | 
    
         
             
            </div>
         
     | 
| 
       3952 
3954 
     | 
    
         
             
            </div>
         
     | 
| 
       3953 
3955 
     | 
    
         
             
            <div class="section" id="advanced-drilldown-related-parameters">
         
     | 
| 
       3954 
     | 
    
         
            -
            <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3. 
     | 
| 
       3955 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown">< 
     | 
| 
      
 3956 
     | 
    
         
            +
            <span id="select-advanced-drilldown-related-parameters"></span><h3>7.3.41.4.6. 高度なドリルダウン関連のパラメーター<a class="headerlink" href="#advanced-drilldown-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 3957 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown"><span>drilldown</span></a> に複数のグループキーを指定することで複数のドリルダウン結果を取得できます。しかし、すべてのドリルダウンで同じ設定を使う必要があります。例えば、すべてのドリルダウンで同じ <a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> の値が使われます。</p>
         
     | 
| 
       3956 
3958 
     | 
    
         
             
            <p>以下の引数を使うことで、各ドリルダウンで別々の設定を使うことができます。</p>
         
     | 
| 
       3957 
3959 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       3958 
3960 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       3959 
     | 
    
         
            -
            <li>< 
     | 
| 
       3960 
     | 
    
         
            -
            <li>< 
     | 
| 
       3961 
     | 
    
         
            -
            <li>< 
     | 
| 
       3962 
     | 
    
         
            -
            <li>< 
     | 
| 
       3963 
     | 
    
         
            -
            <li>< 
     | 
| 
       3964 
     | 
    
         
            -
            <li>< 
     | 
| 
       3965 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 3961 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code></li>
         
     | 
| 
      
 3962 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].sortby</span></code></li>
         
     | 
| 
      
 3963 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code></li>
         
     | 
| 
      
 3964 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].offset</span></code></li>
         
     | 
| 
      
 3965 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].limit</span></code></li>
         
     | 
| 
      
 3966 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].calc_types</span></code></li>
         
     | 
| 
      
 3967 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].calc_target</span></code></li>
         
     | 
| 
       3966 
3968 
     | 
    
         
             
            </ul>
         
     | 
| 
       3967 
3969 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       3968 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 3970 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">${LABEL}</span></code> は変数です。 <code class="docutils literal"><span class="pre">${LABEL}</span></code> には次の文字を使うことができます。</p>
         
     | 
| 
       3969 
3971 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       3970 
3972 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       3971 
3973 
     | 
    
         
             
            <li><p class="first">アルファベット</p>
         
     | 
| 
       3972 
3974 
     | 
    
         
             
            </li>
         
     | 
| 
       3973 
3975 
     | 
    
         
             
            <li><p class="first">数字</p>
         
     | 
| 
       3974 
3976 
     | 
    
         
             
            </li>
         
     | 
| 
       3975 
     | 
    
         
            -
            <li>< 
     | 
| 
       3976 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 3977 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">.</span></code></li>
         
     | 
| 
      
 3978 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">_</span></code></li>
         
     | 
| 
       3977 
3979 
     | 
    
         
             
            </ul>
         
     | 
| 
       3978 
3980 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       3979 
     | 
    
         
            -
            < 
     | 
| 
      
 3981 
     | 
    
         
            +
            <div class="admonition note">
         
     | 
| 
      
 3982 
     | 
    
         
            +
            <p class="first admonition-title">注釈</p>
         
     | 
| 
      
 3983 
     | 
    
         
            +
            <p class="last">他の文字も使えますが、これらの文字だけを使ってください。</p>
         
     | 
| 
      
 3984 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 3985 
     | 
    
         
            +
            <p>同じ <code class="docutils literal"><span class="pre">${LABEL}</span></code> の値を持つ引数は同じグループになります。1つのドリルダウンで同じグループの引数を一緒に使います。</p>
         
     | 
| 
       3980 
3986 
     | 
    
         
             
            <p>例えば、以下の引数は2つのグループにわかれます。</p>
         
     | 
| 
       3981 
3987 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       3982 
3988 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       3983 
     | 
    
         
            -
            <li>< 
     | 
| 
       3984 
     | 
    
         
            -
            <li>< 
     | 
| 
       3985 
     | 
    
         
            -
            <li>< 
     | 
| 
       3986 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 3989 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label1].keys</span> <span class="pre">_key</span></code></li>
         
     | 
| 
      
 3990 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label1].output_columns</span> <span class="pre">_nsubrecs</span></code></li>
         
     | 
| 
      
 3991 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label2].keys</span> <span class="pre">tag</span></code></li>
         
     | 
| 
      
 3992 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">--drilldown[label2].output_columns</span> <span class="pre">_key,_nsubrecs</span></code></li>
         
     | 
| 
       3987 
3993 
     | 
    
         
             
            </ul>
         
     | 
| 
       3988 
3994 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       3989 
     | 
    
         
            -
            <p>< 
     | 
| 
       3990 
     | 
    
         
            -
            <p>< 
     | 
| 
       3991 
     | 
    
         
            -
            <p>< 
     | 
| 
       3992 
     | 
    
         
            -
            <p>以下の引数の使い方は対応する < 
     | 
| 
      
 3995 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown[label1].keys</span></code> と <code class="docutils literal"><span class="pre">drilldown[label1].output_columns</span></code> が同じグループです。 <code class="docutils literal"><span class="pre">drilldown[label2].keys</span></code> と <code class="docutils literal"><span class="pre">drilldown[label2].output_columns</span></code> は別のグループです。</p>
         
     | 
| 
      
 3996 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">label1</span></code> グループでは、グループキーとして <code class="docutils literal"><span class="pre">_key</span></code> を使って、出力カラムとして <code class="docutils literal"><span class="pre">_nsubrecs</span></code> を使います。</p>
         
     | 
| 
      
 3997 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">label2</span></code> グループでは、グループキーとして <code class="docutils literal"><span class="pre">tag</span></code> を使って、出力カラムとして <code class="docutils literal"><span class="pre">_key,_nsubrecs</span></code> を使います。</p>
         
     | 
| 
      
 3998 
     | 
    
         
            +
            <p>以下の引数の使い方は対応する <code class="docutils literal"><span class="pre">drilldown_XXX</span></code> 引数のドキュメントを参照してください。</p>
         
     | 
| 
       3993 
3999 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       3994 
4000 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       3995 
     | 
    
         
            -
            <li>< 
     | 
| 
       3996 
     | 
    
         
            -
            <li>< 
     | 
| 
       3997 
     | 
    
         
            -
            <li>< 
     | 
| 
       3998 
     | 
    
         
            -
            <li>< 
     | 
| 
       3999 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 4001 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].sortby</span></code>: <a class="reference internal" href="#select-drilldown-sortby"><span>drilldown_sortby</span></a></li>
         
     | 
| 
      
 4002 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].offset</span></code>: <a class="reference internal" href="#select-drilldown-offset"><span>drilldown_offset</span></a></li>
         
     | 
| 
      
 4003 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].limit</span></code>: <a class="reference internal" href="#select-drilldown-limit"><span>drilldown_limit</span></a></li>
         
     | 
| 
      
 4004 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].calc_types</span></code>: <a class="reference internal" href="#select-drilldown-calc-types"><span>drilldown_calc_types</span></a></li>
         
     | 
| 
      
 4005 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].calc_target</span></code>: <a class="reference internal" href="#select-drilldown-calc-target"><span>drilldown_calc_target</span></a></li>
         
     | 
| 
       4000 
4006 
     | 
    
         
             
            </ul>
         
     | 
| 
       4001 
4007 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4002 
4008 
     | 
    
         
             
            <p>以下の引数は追加の説明が必要です。</p>
         
     | 
| 
       4003 
4009 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4004 
4010 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4005 
     | 
    
         
            -
            <li>< 
     | 
| 
       4006 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 4011 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code></li>
         
     | 
| 
      
 4012 
     | 
    
         
            +
            <li><code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code></li>
         
     | 
| 
       4007 
4013 
     | 
    
         
             
            </ul>
         
     | 
| 
       4008 
4014 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4009 
4015 
     | 
    
         
             
            <p>出力フォーマットは少し違います。これも追加の説明が必要です。</p>
         
     | 
| 
       4010 
4016 
     | 
    
         
             
            <div class="section" id="drilldown-label-keys">
         
     | 
| 
       4011 
     | 
    
         
            -
            <span id="select-drilldown-label-keys"></span><h4>7.3. 
     | 
| 
       4012 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown">< 
     | 
| 
       4013 
     | 
    
         
            -
            <p>< 
     | 
| 
       4014 
     | 
    
         
            -
            <p>複数のキーを < 
     | 
| 
       4015 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 4017 
     | 
    
         
            +
            <span id="select-drilldown-label-keys"></span><h4>7.3.41.4.6.1. <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code><a class="headerlink" href="#drilldown-label-keys" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4018 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown"><span>drilldown</span></a> は複数のキーを指定して複数のドリルダウンを指定できます。しかし、1つのドリルダウンに複数のキーを指定することはできません。</p>
         
     | 
| 
      
 4019 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> は複数のキーを指定して複数のドリルダウンを指定することはできません。しかし、1つのドリルダウンに複数のキーを指定することができます。</p>
         
     | 
| 
      
 4020 
     | 
    
         
            +
            <p>複数のキーを <code class="docutils literal"><span class="pre">,</span></code> 区切りで指定します。</p>
         
     | 
| 
      
 4021 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">tag</span></code> カラムと <code class="docutils literal"><span class="pre">n_likes</span></code> カラムの値を使った複数キーでのグループ化の例です。</p>
         
     | 
| 
       4016 
4022 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4017 
4023 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       4018 
4024 
     | 
    
         
             
              --limit -1 \
         
     | 
| 
         @@ -4133,14 +4139,14 @@ load --table Items 
     | 
|
| 
       4133 
4139 
     | 
    
         
             
            # ]
         
     | 
| 
       4134 
4140 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4135 
4141 
     | 
    
         
             
            </div>
         
     | 
| 
       4136 
     | 
    
         
            -
            <p>< 
     | 
| 
       4137 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 4142 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">tag.n_likes</span></code> はドリルダウン引数グループのラベルです。グループ化に使ったそれぞれのキーを参照するときは <a class="reference internal" href="#select-drilldown-label-output-columns"><span>drilldown[${LABEL}].output_columns</span></a> で <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> という構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> にはグループキーを指定したときに使ったカラム名を使います。この場合は <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> に <code class="docutils literal"><span class="pre">tag</span></code> と <code class="docutils literal"><span class="pre">n_keys</span></code> を使います。</p>
         
     | 
| 
      
 4143 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--drilldown[tag].keys</span> <span class="pre">tag</span></code> のように <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> にキーを1つだけしか指定していない場合は <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使うことはできません。この場合は <code class="docutils literal"><span class="pre">_key</span></code> を使ってください。これは、 <a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> と同じルールです。</p>
         
     | 
| 
       4138 
4144 
     | 
    
         
             
            </div>
         
     | 
| 
       4139 
4145 
     | 
    
         
             
            <div class="section" id="drilldown-label-output-columns">
         
     | 
| 
       4140 
     | 
    
         
            -
            <span id="select-drilldown-label-output-columns"></span><h4>7.3. 
     | 
| 
       4141 
     | 
    
         
            -
            <p>< 
     | 
| 
       4142 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-output-columns">< 
     | 
| 
       4143 
     | 
    
         
            -
            <p>以下は1つだけ指定したグループキーを参照するために < 
     | 
| 
      
 4146 
     | 
    
         
            +
            <span id="select-drilldown-label-output-columns"></span><h4>7.3.41.4.6.2. <code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code><a class="headerlink" href="#drilldown-label-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4147 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code> はほとんど <a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> と同じです。 <a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> と <code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code> の違いはグループキーの参照方法です。</p>
         
     | 
| 
      
 4148 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-output-columns"><span>drilldown_output_columns</span></a> はグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使います。 <code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code> も <a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> で1つだけしかグループキーを指定していない場合は、グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使います。</p>
         
     | 
| 
      
 4149 
     | 
    
         
            +
            <p>以下は1つだけ指定したグループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使う例です。</p>
         
     | 
| 
       4144 
4150 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4145 
4151 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       4146 
4152 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -4218,8 +4224,8 @@ load --table Items 
     | 
|
| 
       4218 
4224 
     | 
    
         
             
            # ]
         
     | 
| 
       4219 
4225 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4220 
4226 
     | 
    
         
             
            </div>
         
     | 
| 
       4221 
     | 
    
         
            -
            <p>< 
     | 
| 
       4222 
     | 
    
         
            -
            <p>以下は複数のグループキーを使ったときに < 
     | 
| 
      
 4227 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code> で各グループキーを参照するために <code class="docutils literal"><span class="pre">_key</span></code> <a class="reference internal" href="../columns/pseudo.html"><em>擬似カラム</em></a> を使うことはできません。 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使います。 <code class="docutils literal"><span class="pre">${KEY_NAME}</span></code> には <a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> でグループキーを指定するために使ったカラム名を使います。</p>
         
     | 
| 
      
 4228 
     | 
    
         
            +
            <p>以下は複数のグループキーを使ったときに <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でそれぞれのグループキーを参照する例です。</p>
         
     | 
| 
       4223 
4229 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4224 
4230 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       4225 
4231 
     | 
    
         
             
              --limit 0 \
         
     | 
| 
         @@ -4299,17 +4305,17 @@ load --table Items 
     | 
|
| 
       4299 
4305 
     | 
    
         
             
            </div>
         
     | 
| 
       4300 
4306 
     | 
    
         
             
            <div class="admonition tip">
         
     | 
| 
       4301 
4307 
     | 
    
         
             
            <p class="first admonition-title">ちなみに</p>
         
     | 
| 
       4302 
     | 
    
         
            -
            <p>どうして < 
     | 
| 
      
 4308 
     | 
    
         
            +
            <p>どうして <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文なの?</p>
         
     | 
| 
       4303 
4309 
     | 
    
         
             
            <p>これは実装よりの情報です。</p>
         
     | 
| 
       4304 
     | 
    
         
            -
            <p>< 
     | 
| 
       4305 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-label-keys">< 
     | 
| 
       4306 
     | 
    
         
            -
            <p class="last">一方、 <a class="reference internal" href="#select-drilldown-label-keys">< 
     | 
| 
      
 4310 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">_key</span></code> はベクターの値です。このベクターの値はすべてのグループキーから成ります。 <code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code> で <code class="docutils literal"><span class="pre">_key</span></code> を参照するとこのベクターの値のバイト列を確認することができます。</p>
         
     | 
| 
      
 4311 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> に複数のグループキーを指定したとき、各グループの値を参照するために <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードが1つだけ保存されています。そのため、各グループキーを参照するために <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文を使えます。</p>
         
     | 
| 
      
 4312 
     | 
    
         
            +
            <p class="last">一方、 <a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> に1つのグループキーしか指定していない場合は、 <code class="docutils literal"><span class="pre">_value</span></code> にグループのレコードを保存しません。そのため、 <code class="docutils literal"><span class="pre">_value.${KEY_NAME}</span></code> 構文でグループキーを参照できません。</p>
         
     | 
| 
       4307 
4313 
     | 
    
         
             
            </div>
         
     | 
| 
       4308 
4314 
     | 
    
         
             
            </div>
         
     | 
| 
       4309 
4315 
     | 
    
         
             
            <div class="section" id="output-format-for-drilldown-label-style">
         
     | 
| 
       4310 
     | 
    
         
            -
            <span id="select-drilldown-label-output-format"></span><h4>7.3. 
     | 
| 
       4311 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown">< 
     | 
| 
       4312 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown">< 
     | 
| 
      
 4316 
     | 
    
         
            +
            <span id="select-drilldown-label-output-format"></span><h4>7.3.41.4.6.3. <code class="docutils literal"><span class="pre">drilldown[${LABEL}]</span></code> スタイルの出力フォーマット<a class="headerlink" href="#output-format-for-drilldown-label-style" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4317 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown"><span>drilldown</span></a> と <a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> には出力フォーマットに違いがあります。 <a class="reference internal" href="#select-drilldown"><span>drilldown</span></a> は複数のドリルダウン結果を出力するために配列を使います。 <a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> は「ラベル」と「ドリルダウン結果」のペアの集まりを使います。</p>
         
     | 
| 
      
 4318 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown"><span>drilldown</span></a> の出力フォーマットは以下の通りです:</p>
         
     | 
| 
       4313 
4319 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
       4314 
4320 
     | 
    
         
             
              HEADER,
         
     | 
| 
       4315 
4321 
     | 
    
         
             
              [
         
     | 
| 
         @@ -4321,7 +4327,7 @@ load --table Items 
     | 
|
| 
       4321 
4327 
     | 
    
         
             
            ]
         
     | 
| 
       4322 
4328 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4323 
4329 
     | 
    
         
             
            </div>
         
     | 
| 
       4324 
     | 
    
         
            -
            <p><a class="reference internal" href="#select-drilldown-label-keys">< 
     | 
| 
      
 4330 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown-label-keys"><span>drilldown[${LABEL}].keys</span></a> の出力フォーマットは以下の通りです:</p>
         
     | 
| 
       4325 
4331 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
       4326 
4332 
     | 
    
         
             
              HEADER,
         
     | 
| 
       4327 
4333 
     | 
    
         
             
              [
         
     | 
| 
         @@ -4338,44 +4344,142 @@ load --table Items 
     | 
|
| 
       4338 
4344 
     | 
    
         
             
            </div>
         
     | 
| 
       4339 
4345 
     | 
    
         
             
            </div>
         
     | 
| 
       4340 
4346 
     | 
    
         
             
            <div class="section" id="cache-related-parameter">
         
     | 
| 
       4341 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 4347 
     | 
    
         
            +
            <h3>7.3.41.4.7. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       4342 
4348 
     | 
    
         
             
            <div class="section" id="cache">
         
     | 
| 
       4343 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       4344 
     | 
    
         
            -
            <p 
     | 
| 
       4345 
     | 
    
         
            -
            <p 
     | 
| 
       4346 
     | 
    
         
            -
            <p 
     | 
| 
       4347 
     | 
    
         
            -
            < 
     | 
| 
       4348 
     | 
    
         
            -
            < 
     | 
| 
      
 4349 
     | 
    
         
            +
            <span id="select-cache"></span><h4>7.3.41.4.7.1. <code class="docutils literal"><span class="pre">cache</span></code><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4350 
     | 
    
         
            +
            <p>このクエリーの結果をキャッシュするかどうかを指定します。</p>
         
     | 
| 
      
 4351 
     | 
    
         
            +
            <p>このクエリーの結果がキャッシュしてあると、次に同じクエリーを実行するときはキャッシュを使って高速にレスポンスを返すことができます。</p>
         
     | 
| 
      
 4352 
     | 
    
         
            +
            <p>これは既存のキャッシュされた結果を使うかどうかを指定するものではありません。</p>
         
     | 
| 
      
 4353 
     | 
    
         
            +
            <p>指定可能な値は以下の通りです。</p>
         
     | 
| 
      
 4354 
     | 
    
         
            +
            <table border="1" class="docutils">
         
     | 
| 
      
 4355 
     | 
    
         
            +
            <colgroup>
         
     | 
| 
      
 4356 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 4357 
     | 
    
         
            +
            <col width="50%" />
         
     | 
| 
      
 4358 
     | 
    
         
            +
            </colgroup>
         
     | 
| 
      
 4359 
     | 
    
         
            +
            <thead valign="bottom">
         
     | 
| 
      
 4360 
     | 
    
         
            +
            <tr class="row-odd"><th class="head">Value</th>
         
     | 
| 
      
 4361 
     | 
    
         
            +
            <th class="head"><p class="first last">説明</p>
         
     | 
| 
      
 4362 
     | 
    
         
            +
            </th>
         
     | 
| 
      
 4363 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 4364 
     | 
    
         
            +
            </thead>
         
     | 
| 
      
 4365 
     | 
    
         
            +
            <tbody valign="top">
         
     | 
| 
      
 4366 
     | 
    
         
            +
            <tr class="row-even"><td><code class="docutils literal"><span class="pre">no</span></code></td>
         
     | 
| 
      
 4367 
     | 
    
         
            +
            <td><p class="first last">このクエリーの出力をキャッシュしない。</p>
         
     | 
| 
      
 4368 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 4369 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 4370 
     | 
    
         
            +
            <tr class="row-odd"><td><code class="docutils literal"><span class="pre">yes</span></code></td>
         
     | 
| 
      
 4371 
     | 
    
         
            +
            <td><p class="first last">このクエリーの出力をキャッシュする。デフォルト値。</p>
         
     | 
| 
      
 4372 
     | 
    
         
            +
            </td>
         
     | 
| 
      
 4373 
     | 
    
         
            +
            </tr>
         
     | 
| 
      
 4374 
     | 
    
         
            +
            </tbody>
         
     | 
| 
      
 4375 
     | 
    
         
            +
            </table>
         
     | 
| 
      
 4376 
     | 
    
         
            +
            <p>このクエリーの結果をキャッシュしないようにする例です。</p>
         
     | 
| 
      
 4377 
     | 
    
         
            +
            <p>実行例:</p>
         
     | 
| 
      
 4378 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>select Entries --cache no
         
     | 
| 
      
 4379 
     | 
    
         
            +
            # [
         
     | 
| 
      
 4380 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 4381 
     | 
    
         
            +
            #     0,
         
     | 
| 
      
 4382 
     | 
    
         
            +
            #     1337566253.89858,
         
     | 
| 
      
 4383 
     | 
    
         
            +
            #     0.000355720520019531
         
     | 
| 
      
 4384 
     | 
    
         
            +
            #   ],
         
     | 
| 
      
 4385 
     | 
    
         
            +
            #   [
         
     | 
| 
      
 4386 
     | 
    
         
            +
            #     [
         
     | 
| 
      
 4387 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4388 
     | 
    
         
            +
            #         5
         
     | 
| 
      
 4389 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4390 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4391 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4392 
     | 
    
         
            +
            #           "_id",
         
     | 
| 
      
 4393 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 4394 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 4395 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4396 
     | 
    
         
            +
            #           "_key",
         
     | 
| 
      
 4397 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 4398 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 4399 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4400 
     | 
    
         
            +
            #           "content",
         
     | 
| 
      
 4401 
     | 
    
         
            +
            #           "Text"
         
     | 
| 
      
 4402 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 4403 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4404 
     | 
    
         
            +
            #           "n_likes",
         
     | 
| 
      
 4405 
     | 
    
         
            +
            #           "UInt32"
         
     | 
| 
      
 4406 
     | 
    
         
            +
            #         ],
         
     | 
| 
      
 4407 
     | 
    
         
            +
            #         [
         
     | 
| 
      
 4408 
     | 
    
         
            +
            #           "tag",
         
     | 
| 
      
 4409 
     | 
    
         
            +
            #           "ShortText"
         
     | 
| 
      
 4410 
     | 
    
         
            +
            #         ]
         
     | 
| 
      
 4411 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4412 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4413 
     | 
    
         
            +
            #         1,
         
     | 
| 
      
 4414 
     | 
    
         
            +
            #         "The first post!",
         
     | 
| 
      
 4415 
     | 
    
         
            +
            #         "Welcome! This is my first post!",
         
     | 
| 
      
 4416 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 4417 
     | 
    
         
            +
            #         "Hello"
         
     | 
| 
      
 4418 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4419 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4420 
     | 
    
         
            +
            #         2,
         
     | 
| 
      
 4421 
     | 
    
         
            +
            #         "Groonga",
         
     | 
| 
      
 4422 
     | 
    
         
            +
            #         "I started to use Groonga. It's very fast!",
         
     | 
| 
      
 4423 
     | 
    
         
            +
            #         10,
         
     | 
| 
      
 4424 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 4425 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4426 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4427 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 4428 
     | 
    
         
            +
            #         "Mroonga",
         
     | 
| 
      
 4429 
     | 
    
         
            +
            #         "I also started to use Mroonga. It's also very fast! Really fast!",
         
     | 
| 
      
 4430 
     | 
    
         
            +
            #         15,
         
     | 
| 
      
 4431 
     | 
    
         
            +
            #         "Groonga"
         
     | 
| 
      
 4432 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4433 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4434 
     | 
    
         
            +
            #         4,
         
     | 
| 
      
 4435 
     | 
    
         
            +
            #         "Good-bye Senna",
         
     | 
| 
      
 4436 
     | 
    
         
            +
            #         "I migrated all Senna system!",
         
     | 
| 
      
 4437 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 4438 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 4439 
     | 
    
         
            +
            #       ],
         
     | 
| 
      
 4440 
     | 
    
         
            +
            #       [
         
     | 
| 
      
 4441 
     | 
    
         
            +
            #         5,
         
     | 
| 
      
 4442 
     | 
    
         
            +
            #         "Good-bye Tritonn",
         
     | 
| 
      
 4443 
     | 
    
         
            +
            #         "I also migrated all Tritonn system!",
         
     | 
| 
      
 4444 
     | 
    
         
            +
            #         3,
         
     | 
| 
      
 4445 
     | 
    
         
            +
            #         "Senna"
         
     | 
| 
      
 4446 
     | 
    
         
            +
            #       ]
         
     | 
| 
      
 4447 
     | 
    
         
            +
            #     ]
         
     | 
| 
      
 4448 
     | 
    
         
            +
            #   ]
         
     | 
| 
      
 4449 
     | 
    
         
            +
            # ]
         
     | 
| 
      
 4450 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4451 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4452 
     | 
    
         
            +
            <p>デフォルト値は <code class="docutils literal"><span class="pre">yes</span></code> です。</p>
         
     | 
| 
       4349 
4453 
     | 
    
         
             
            </div>
         
     | 
| 
       4350 
4454 
     | 
    
         
             
            </div>
         
     | 
| 
       4351 
4455 
     | 
    
         
             
            <div class="section" id="score-related-parameters">
         
     | 
| 
       4352 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       4353 
     | 
    
         
            -
            <p>スコアー関連のパラメーターは < 
     | 
| 
      
 4456 
     | 
    
         
            +
            <h3>7.3.41.4.8. スコアー関連の引数<a class="headerlink" href="#score-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 4457 
     | 
    
         
            +
            <p>スコアー関連のパラメーターは <code class="docutils literal"><span class="pre">adjuster</span></code> だけです。</p>
         
     | 
| 
       4354 
4458 
     | 
    
         
             
            <div class="section" id="adjuster">
         
     | 
| 
       4355 
     | 
    
         
            -
            <span id="select-adjuster"></span><h4>7.3. 
     | 
| 
       4356 
     | 
    
         
            -
            <p>1つ以上のスコアー調整式(score adjust expression)を指定します。 < 
     | 
| 
       4357 
     | 
    
         
            -
            <p>< 
     | 
| 
       4358 
     | 
    
         
            -
            <p>例えば、 < 
     | 
| 
      
 4459 
     | 
    
         
            +
            <span id="select-adjuster"></span><h4>7.3.41.4.8.1. <code class="docutils literal"><span class="pre">adjuster</span></code><a class="headerlink" href="#adjuster" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 4460 
     | 
    
         
            +
            <p>1つ以上のスコアー調整式(score adjust expression)を指定します。 <code class="docutils literal"><span class="pre">adjuster</span></code> は <code class="docutils literal"><span class="pre">query</span></code> または <code class="docutils literal"><span class="pre">filter</span></code> と一緒に使います。検索しないリクエストでは <code class="docutils literal"><span class="pre">adjuster</span></code> は動きません。</p>
         
     | 
| 
      
 4461 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">adjuster</span></code> を使うと特定のレコードのスコアーを増やすことができます。重要なレコードに高いスコアーをつけるために <code class="docutils literal"><span class="pre">adjuster</span></code> を使えます。</p>
         
     | 
| 
      
 4462 
     | 
    
         
            +
            <p>例えば、 <code class="docutils literal"><span class="pre">groonga</span></code> タグがついたレコードのスコアーを増やすために <code class="docutils literal"><span class="pre">adjuster</span></code> を使えます。</p>
         
     | 
| 
       4359 
4463 
     | 
    
         
             
            <p>以下が構文です:</p>
         
     | 
| 
       4360 
4464 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>--adjuster "SCORE_ADJUST_EXPRESSION1 + SCORE_ADJUST_EXPRESSION2 + ..."
         
     | 
| 
       4361 
4465 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4362 
4466 
     | 
    
         
             
            </div>
         
     | 
| 
       4363 
     | 
    
         
            -
            <p>以下が < 
     | 
| 
      
 4467 
     | 
    
         
            +
            <p>以下が <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> の構文です:</p>
         
     | 
| 
       4364 
4468 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>COLUMN @ "KEYWORD" * FACTOR
         
     | 
| 
       4365 
4469 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4366 
4470 
     | 
    
         
             
            </div>
         
     | 
| 
       4367 
4471 
     | 
    
         
             
            <p>以下のことに注意してください:</p>
         
     | 
| 
       4368 
4472 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4369 
4473 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4370 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 4474 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">COLUMN</span></code> にはインデックスが張っていないといけません。</p>
         
     | 
| 
       4371 
4475 
     | 
    
         
             
            </li>
         
     | 
| 
       4372 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 4476 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">"KEYWORD"</span></code> は文字列でないといけません。</p>
         
     | 
| 
       4373 
4477 
     | 
    
         
             
            </li>
         
     | 
| 
       4374 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 4478 
     | 
    
         
            +
            <li><p class="first"><code class="docutils literal"><span class="pre">FACTOR</span></code> は正の整数でないといけません。</p>
         
     | 
| 
       4375 
4479 
     | 
    
         
             
            </li>
         
     | 
| 
       4376 
4480 
     | 
    
         
             
            </ul>
         
     | 
| 
       4377 
4481 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       4378 
     | 
    
         
            -
            <p>以下は1つだけ < 
     | 
| 
      
 4482 
     | 
    
         
            +
            <p>以下は1つだけ <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> を使った <code class="docutils literal"><span class="pre">adjuster</span></code> の使用例です。</p>
         
     | 
| 
       4379 
4483 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4380 
4484 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       4381 
4485 
     | 
    
         
             
              --filter true \
         
     | 
| 
         @@ -4436,9 +4540,9 @@ load --table Items 
     | 
|
| 
       4436 
4540 
     | 
    
         
             
            # ]
         
     | 
| 
       4437 
4541 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4438 
4542 
     | 
    
         
             
            </div>
         
     | 
| 
       4439 
     | 
    
         
            -
            <p>この < 
     | 
| 
       4440 
     | 
    
         
            -
            <p>< 
     | 
| 
       4441 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 4543 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドはすべてのレコードにマッチします。それから、 <code class="docutils literal"><span class="pre">adjuster</span></code> を適用します。このアジャスターは <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムの中に <code class="docutils literal"><span class="pre">"groonga"</span></code> を含むレコードのスコアーを5増やします。 <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムに <code class="docutils literal"><span class="pre">"groonga"</span></code> が含まれているレコードは1つだけです。 <code class="docutils literal"><span class="pre">"Groonga"</span></code> というキーのレコードです。このレコードのスコアーは6( <code class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">5</span></code> )になります。</p>
         
     | 
| 
      
 4544 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">FACTOR</span></code> は省略できます。 <code class="docutils literal"><span class="pre">FACTOR</span></code> を省略すると、1を指定したとみなします。</p>
         
     | 
| 
      
 4545 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">FACTOR</span></code> を省略した <code class="docutils literal"><span class="pre">adjuster</span></code> の使用例です。</p>
         
     | 
| 
       4442 
4546 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4443 
4547 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       4444 
4548 
     | 
    
         
             
              --filter true \
         
     | 
| 
         @@ -4499,8 +4603,8 @@ load --table Items 
     | 
|
| 
       4499 
4603 
     | 
    
         
             
            # ]
         
     | 
| 
       4500 
4604 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4501 
4605 
     | 
    
         
             
            </div>
         
     | 
| 
       4502 
     | 
    
         
            -
            <p>この < 
     | 
| 
       4503 
     | 
    
         
            -
            <p>複数の < 
     | 
| 
      
 4606 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドの <code class="docutils literal"><span class="pre">adjuster</span></code> は <code class="docutils literal"><span class="pre">FACTOR</span></code> がありません。そのため、係数は1になります。 <code class="docutils literal"><span class="pre">Entries.content</span></code> カラムに <code class="docutils literal"><span class="pre">"groonga"</span></code> を含むレコードは1つだけです。キーが <code class="docutils literal"><span class="pre">"Groonga"</span></code> のレコードです。このレコードのスコアーは2( <code class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">1</span></code> )になります。</p>
         
     | 
| 
      
 4607 
     | 
    
         
            +
            <p>複数の <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> を使った <code class="docutils literal"><span class="pre">adjuster</span></code> の使用例です。</p>
         
     | 
| 
       4504 
4608 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       4505 
4609 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       4506 
4610 
     | 
    
         
             
              --filter true \
         
     | 
| 
         @@ -4561,72 +4665,198 @@ load --table Items 
     | 
|
| 
       4561 
4665 
     | 
    
         
             
            # ]
         
     | 
| 
       4562 
4666 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4563 
4667 
     | 
    
         
             
            </div>
         
     | 
| 
       4564 
     | 
    
         
            -
            <p>この < 
     | 
| 
       4565 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       4566 
     | 
    
         
            -
            <p>2番目の < 
     | 
| 
       4567 
     | 
    
         
            -
            <p>最終的なスコアーの増分は9( < 
     | 
| 
       4568 
     | 
    
         
            -
            <p>1つの < 
     | 
| 
      
 4668 
     | 
    
         
            +
            <p>この <code class="docutils literal"><span class="pre">select</span></code> コマンドの <code class="docutils literal"><span class="pre">adjuster</span></code> には2つの <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> があります。最終的なスコアーの増分はすこれらの <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> のスコアーの合計になります。この <code class="docutils literal"><span class="pre">select</span></code> コマンドのすべての <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> はキーが <code class="docutils literal"><span class="pre">"Groonga"</span></code> のレコードに適用されます。そのため、このレコードの最終的なスコアーの増分はすべての <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> の合計になります。</p>
         
     | 
| 
      
 4669 
     | 
    
         
            +
            <p>最初の <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> は <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"groonga"</span> <span class="pre">*</span> <span class="pre">5</span></code> です。これは、スコアーを5増やします。</p>
         
     | 
| 
      
 4670 
     | 
    
         
            +
            <p>2番目の <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> は <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"started"</span> <span class="pre">*</span> <span class="pre">3</span></code> です。これはスコアーを3増やします。</p>
         
     | 
| 
      
 4671 
     | 
    
         
            +
            <p>最終的なスコアーの増分は9( <code class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">5</span> <span class="pre">+</span> <span class="pre">3</span></code> )です。</p>
         
     | 
| 
      
 4672 
     | 
    
         
            +
            <p>1つの <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> は <code class="docutils literal"><span class="pre">"KEYWORD"</span></code> に対して1つの係数を持ちます。これは、 <code class="docutils literal"><span class="pre">"KEYWORD"</span></code> を持つすべてのレコードでスコアーの増加分は同じということです。 <code class="docutils literal"><span class="pre">"KEYWORD"</span></code> を持つそれぞれのレコード毎にスコアーの増加分を変えることができます。これは検索スコアーをチューニングするときに便利です。詳細は <a class="reference internal" href="../columns/vector.html#weight-vector-column"><span>重み付きベクターカラム</span></a> を参照してください。</p>
         
     | 
| 
       4569 
4673 
     | 
    
         
             
            </div>
         
     | 
| 
       4570 
4674 
     | 
    
         
             
            </div>
         
     | 
| 
       4571 
4675 
     | 
    
         
             
            </div>
         
     | 
| 
       4572 
     | 
    
         
            -
            <div class="section" id=" 
     | 
| 
       4573 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       4574 
     | 
    
         
            -
            <p 
     | 
| 
       4575 
     | 
    
         
            -
            < 
     | 
| 
       4576 
     | 
    
         
            -
             
     | 
| 
      
 4676 
     | 
    
         
            +
            <div class="section" id="return-value">
         
     | 
| 
      
 4677 
     | 
    
         
            +
            <span id="select-return-value"></span><h2>7.3.41.5. 戻り値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 4678 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">select</span></code> は以下のフォーマットのレスポンスを返します:</p>
         
     | 
| 
      
 4679 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4680 
     | 
    
         
            +
              HEADER,
         
     | 
| 
      
 4681 
     | 
    
         
            +
              [
         
     | 
| 
      
 4682 
     | 
    
         
            +
                SEARCH_RESULT,
         
     | 
| 
      
 4683 
     | 
    
         
            +
                DRILLDOWN_RESULT_1,
         
     | 
| 
      
 4684 
     | 
    
         
            +
                DRILLDOWN_RESULT_2,
         
     | 
| 
      
 4685 
     | 
    
         
            +
                ...,
         
     | 
| 
      
 4686 
     | 
    
         
            +
                DRILLDOWN_RESULT_N
         
     | 
| 
      
 4687 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4688 
     | 
    
         
            +
            ]
         
     | 
| 
       4577 
4689 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4578 
4690 
     | 
    
         
             
            </div>
         
     | 
| 
       4579 
     | 
    
         
            -
            <p>< 
     | 
| 
       4580 
     | 
    
         
            -
            < 
     | 
| 
       4581 
     | 
    
         
            -
            < 
     | 
| 
       4582 
     | 
    
         
            -
             
     | 
| 
       4583 
     | 
    
         
            -
             
     | 
| 
       4584 
     | 
    
         
            -
             
     | 
| 
       4585 
     | 
    
         
            -
             
     | 
| 
       4586 
     | 
    
         
            -
             
     | 
| 
       4587 
     | 
    
         
            -
             
     | 
| 
       4588 
     | 
    
         
            -
            <div>処理にかかった秒数を返します。</div></blockquote>
         
     | 
| 
       4589 
     | 
    
         
            -
            <p><tt class="docutils literal"><span class="pre">検索結果</span></tt></p>
         
     | 
| 
       4590 
     | 
    
         
            -
            <blockquote>
         
     | 
| 
       4591 
     | 
    
         
            -
            <div><p>drilldown条件が実行される前の検索結果が以下のように出力されます。:</p>
         
     | 
| 
       4592 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre>[[ヒット数], [[カラム名1,カラム型1],..], 検索結果1,..]
         
     | 
| 
      
 4691 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">select</span></code> が失敗すると、 <code class="docutils literal"><span class="pre">HEADER</span></code> にエラーの詳細が含まれます。</p>
         
     | 
| 
      
 4692 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">HEADER</span></code> については <a class="reference internal" href="../command/output_format.html"><em>出力形式</em></a> を参照してください。</p>
         
     | 
| 
      
 4693 
     | 
    
         
            +
            <p>0個以上の <code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> があります。もし、 <code class="docutils literal"><span class="pre">drilldown</span></code> も <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> も指定していない場合、次のように <code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> は出力されません:</p>
         
     | 
| 
      
 4694 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4695 
     | 
    
         
            +
              HEADER,
         
     | 
| 
      
 4696 
     | 
    
         
            +
              [
         
     | 
| 
      
 4697 
     | 
    
         
            +
                SEARCH_RESULT
         
     | 
| 
      
 4698 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4699 
     | 
    
         
            +
            ]
         
     | 
| 
       4593 
4700 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4594 
4701 
     | 
    
         
             
            </div>
         
     | 
| 
       4595 
     | 
    
         
            -
            <p>< 
     | 
| 
       4596 
     | 
    
         
            -
            < 
     | 
| 
       4597 
     | 
    
         
            -
             
     | 
| 
       4598 
     | 
    
         
            -
             
     | 
| 
       4599 
     | 
    
         
            -
             
     | 
| 
       4600 
     | 
    
         
            -
             
     | 
| 
       4601 
     | 
    
         
            -
             
     | 
| 
       4602 
     | 
    
         
            -
             
     | 
| 
       4603 
     | 
    
         
            -
             
     | 
| 
       4604 
     | 
    
         
            -
             
     | 
| 
       4605 
     | 
    
         
            -
            <blockquote>
         
     | 
| 
       4606 
     | 
    
         
            -
            <div>output_columns, offset, limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
         
     | 
| 
       4607 
     | 
    
         
            -
            </div></blockquote>
         
     | 
| 
       4608 
     | 
    
         
            -
            <p><tt class="docutils literal"><span class="pre">drilldown結果</span></tt></p>
         
     | 
| 
       4609 
     | 
    
         
            -
            <blockquote>
         
     | 
| 
       4610 
     | 
    
         
            -
            <div><p>drilldown処理の結果が以下のように出力されます。:</p>
         
     | 
| 
       4611 
     | 
    
         
            -
            <div class="highlight-none"><div class="highlight"><pre>[[[件数], [[カラム名1,カラム型1],..], 検索結果1,..],..]
         
     | 
| 
      
 4702 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">--drilldown</span> <span class="pre">"_key,</span> <span class="pre">column1,</span> <span class="pre">column2"</span></code> というように <code class="docutils literal"><span class="pre">drilldown</span></code> に2つ以上のキーがある場合、複数の <code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> が存在します:</p>
         
     | 
| 
      
 4703 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4704 
     | 
    
         
            +
              HEADER,
         
     | 
| 
      
 4705 
     | 
    
         
            +
              [
         
     | 
| 
      
 4706 
     | 
    
         
            +
                SEARCH_RESULT,
         
     | 
| 
      
 4707 
     | 
    
         
            +
                DRILLDOWN_RESULT_FOR_KEY,
         
     | 
| 
      
 4708 
     | 
    
         
            +
                DRILLDOWN_RESULT_FOR_COLUMN1,
         
     | 
| 
      
 4709 
     | 
    
         
            +
                DRILLDOWN_RESULT_FOR_COLUMN2
         
     | 
| 
      
 4710 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4711 
     | 
    
         
            +
            ]
         
     | 
| 
       4612 
4712 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       4613 
4713 
     | 
    
         
             
            </div>
         
     | 
| 
       4614 
     | 
    
         
            -
            <p>< 
     | 
| 
       4615 
     | 
    
         
            -
            < 
     | 
| 
       4616 
     | 
    
         
            -
             
     | 
| 
       4617 
     | 
    
         
            -
             
     | 
| 
       4618 
     | 
    
         
            -
             
     | 
| 
       4619 
     | 
    
         
            -
             
     | 
| 
       4620 
     | 
    
         
            -
             
     | 
| 
       4621 
     | 
    
         
            -
             
     | 
| 
       4622 
     | 
    
         
            -
             
     | 
| 
       4623 
     | 
    
         
            -
             
     | 
| 
      
 4714 
     | 
    
         
            +
            <p>もし <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> を使っているなら、 <code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> が1つだけ存在します:</p>
         
     | 
| 
      
 4715 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4716 
     | 
    
         
            +
              HEADER,
         
     | 
| 
      
 4717 
     | 
    
         
            +
              [
         
     | 
| 
      
 4718 
     | 
    
         
            +
                SEARCH_RESULT,
         
     | 
| 
      
 4719 
     | 
    
         
            +
                DRILLDOWN_RESULT_FOR_LABELED_DRILLDOWN
         
     | 
| 
      
 4720 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4721 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4722 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4723 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4724 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> のフォーマットは <code class="docutils literal"><span class="pre">drilldown</span></code> と <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> で違います。これについては後述します。</p>
         
     | 
| 
      
 4725 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">SEARCH_RESULT</span></code> は以下のフォーマットです:</p>
         
     | 
| 
      
 4726 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4727 
     | 
    
         
            +
              [N_HITS],
         
     | 
| 
      
 4728 
     | 
    
         
            +
              COLUMNS,
         
     | 
| 
      
 4729 
     | 
    
         
            +
              RECORDS
         
     | 
| 
      
 4730 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4731 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4732 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4733 
     | 
    
         
            +
            <p>このフォーマットの具体例は <a class="reference internal" href="#select-simple-usage"><span>簡単な使い方</span></a> を見てください。</p>
         
     | 
| 
      
 4734 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">N_HITS</span></code> は <a class="reference internal" href="#select-limit"><span>limit</span></a> を適用する前のマッチしたレコード数です。</p>
         
     | 
| 
      
 4735 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">COLUMNS</span></code> は <a class="reference internal" href="#select-output-columns"><span>output_columns</span></a> で指定した出力カラムの情報を表しています。これは次のフォーマットになっています:</p>
         
     | 
| 
      
 4736 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4737 
     | 
    
         
            +
              [COLUMN_NAME_1, COLUMN_TYPE_1],
         
     | 
| 
      
 4738 
     | 
    
         
            +
              [COLUMN_NAME_2, COLUMN_TYPE_2],
         
     | 
| 
      
 4739 
     | 
    
         
            +
              ...,
         
     | 
| 
      
 4740 
     | 
    
         
            +
              [COLUMN_NAME_N, COLUMN_TYPE_N]
         
     | 
| 
      
 4741 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4742 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4743 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4744 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">COLUMNS</span></code> は1つ以上の出力カラムの情報を含んでいます。各出力カラムの情報は次の情報を含んでいます。</p>
         
     | 
| 
       4624 
4745 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4625 
     | 
    
         
            -
            <div 
     | 
| 
      
 4746 
     | 
    
         
            +
            <div><ul class="simple">
         
     | 
| 
      
 4747 
     | 
    
         
            +
            <li><p class="first">カラム名(文字列)</p>
         
     | 
| 
      
 4748 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 4749 
     | 
    
         
            +
            <li><p class="first">カラムの型(文字列または <code class="docutils literal"><span class="pre">null</span></code> )</p>
         
     | 
| 
      
 4750 
     | 
    
         
            +
            </li>
         
     | 
| 
      
 4751 
     | 
    
         
            +
            </ul>
         
     | 
| 
       4626 
4752 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
      
 4753 
     | 
    
         
            +
            <p>カラム名は <a class="reference internal" href="#select-output-columns"><span>output_columns</span></a> で指定された値から抽出しています。</p>
         
     | 
| 
      
 4754 
     | 
    
         
            +
            <p>カラムの方はGroongaでの型名または <code class="docutils literal"><span class="pre">null</span></code> です。カラムがベクターかスカラーかの情報は持っていません。実際のカラムの値が配列かどうかで判断する必要があります。</p>
         
     | 
| 
      
 4755 
     | 
    
         
            +
            <p>型の詳細は <a class="reference internal" href="../types.html"><em>データ型</em></a> を見てください。</p>
         
     | 
| 
      
 4756 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">null</span></code> になるときはカラムの値の型を決められないときです。たとえば、 <code class="docutils literal"><span class="pre">--output_columns</span> <span class="pre">"snippet_html(content)"</span></code> というように <a class="reference internal" href="#select-output-columns"><span>output_columns</span></a> の中で関数呼び出しを使ったときは <code class="docutils literal"><span class="pre">null</span></code> になります。</p>
         
     | 
| 
      
 4757 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">COLUMNS</span></code> の使用例です:</p>
         
     | 
| 
      
 4758 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4759 
     | 
    
         
            +
              ["_id",     "UInt32"],
         
     | 
| 
      
 4760 
     | 
    
         
            +
              ["_key",    "ShortText"],
         
     | 
| 
      
 4761 
     | 
    
         
            +
              ["n_likes", "UInt32"],
         
     | 
| 
      
 4762 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4763 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4764 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4765 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">RECORDS</span></code> はマッチした各レコードのカラムの値を含んでいます。 <code class="docutils literal"><span class="pre">RECORDS</span></code> に含まれるレコードは <a class="reference internal" href="#select-offset"><span>offset</span></a> と <a class="reference internal" href="#select-limit"><span>limit</span></a> で選択されたレコードです。 <code class="docutils literal"><span class="pre">RECORDS</span></code> は次のフォーマットです:</p>
         
     | 
| 
      
 4766 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4767 
     | 
    
         
            +
              [
         
     | 
| 
      
 4768 
     | 
    
         
            +
                RECORD_1_COLUMN_1,
         
     | 
| 
      
 4769 
     | 
    
         
            +
                RECORD_1_COLUMN_2,
         
     | 
| 
      
 4770 
     | 
    
         
            +
                ...,
         
     | 
| 
      
 4771 
     | 
    
         
            +
                RECORD_1_COLUMN_N
         
     | 
| 
      
 4772 
     | 
    
         
            +
              ],
         
     | 
| 
      
 4773 
     | 
    
         
            +
              [
         
     | 
| 
      
 4774 
     | 
    
         
            +
                RECORD_2_COLUMN_1,
         
     | 
| 
      
 4775 
     | 
    
         
            +
                RECORD_2_COLUMN_2,
         
     | 
| 
      
 4776 
     | 
    
         
            +
                ...,
         
     | 
| 
      
 4777 
     | 
    
         
            +
                RECORD_2_COLUMN_N
         
     | 
| 
      
 4778 
     | 
    
         
            +
              ],
         
     | 
| 
      
 4779 
     | 
    
         
            +
              ...
         
     | 
| 
      
 4780 
     | 
    
         
            +
              [
         
     | 
| 
      
 4781 
     | 
    
         
            +
                RECORD_N_COLUMN_1,
         
     | 
| 
      
 4782 
     | 
    
         
            +
                RECORD_N_COLUMN_2,
         
     | 
| 
      
 4783 
     | 
    
         
            +
                ...,
         
     | 
| 
      
 4784 
     | 
    
         
            +
                RECORD_N_COLUMN_N
         
     | 
| 
      
 4785 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4786 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4787 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4788 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4789 
     | 
    
         
            +
            <p>以下は <code class="docutils literal"><span class="pre">RECORDS</span></code> の例です:</p>
         
     | 
| 
      
 4790 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4791 
     | 
    
         
            +
              [
         
     | 
| 
      
 4792 
     | 
    
         
            +
                1,
         
     | 
| 
      
 4793 
     | 
    
         
            +
                "The first post!",
         
     | 
| 
      
 4794 
     | 
    
         
            +
                5
         
     | 
| 
      
 4795 
     | 
    
         
            +
              ],
         
     | 
| 
      
 4796 
     | 
    
         
            +
              [
         
     | 
| 
      
 4797 
     | 
    
         
            +
                2,
         
     | 
| 
      
 4798 
     | 
    
         
            +
                "Groonga",
         
     | 
| 
      
 4799 
     | 
    
         
            +
                10
         
     | 
| 
      
 4800 
     | 
    
         
            +
              ],
         
     | 
| 
      
 4801 
     | 
    
         
            +
              [
         
     | 
| 
      
 4802 
     | 
    
         
            +
                3,
         
     | 
| 
      
 4803 
     | 
    
         
            +
                "Mroonga",
         
     | 
| 
      
 4804 
     | 
    
         
            +
                15
         
     | 
| 
      
 4805 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4806 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4807 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4808 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4809 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> のフォーマットは <code class="docutils literal"><span class="pre">drilldown</span></code> と <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> で違います。</p>
         
     | 
| 
      
 4810 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown</span></code> は <code class="docutils literal"><span class="pre">SEARCH_RESULT</span></code> と同じフォーマットです:</p>
         
     | 
| 
      
 4811 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4812 
     | 
    
         
            +
              [N_HITS],
         
     | 
| 
      
 4813 
     | 
    
         
            +
              COLUMNS,
         
     | 
| 
      
 4814 
     | 
    
         
            +
              RECORDS
         
     | 
| 
      
 4815 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4816 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4817 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4818 
     | 
    
         
            +
            <p><a class="reference internal" href="#select-drilldown"><span>drilldown</span></a> で1つ以上のキーを指定すると、 <code class="docutils literal"><span class="pre">drilldown</span></code> は1つ以上の <code class="docutils literal"><span class="pre">DRILLDOWN_RESULT</span></code> を出力します。</p>
         
     | 
| 
      
 4819 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> は次のフォーマットを使います。複数の <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> は1つのオブジェクト(キーと値のペアの集合)になります:</p>
         
     | 
| 
      
 4820 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>{
         
     | 
| 
      
 4821 
     | 
    
         
            +
              "LABEL_1": [
         
     | 
| 
      
 4822 
     | 
    
         
            +
                [N_HITS],
         
     | 
| 
      
 4823 
     | 
    
         
            +
                COLUMNS,
         
     | 
| 
      
 4824 
     | 
    
         
            +
                RECORDS
         
     | 
| 
      
 4825 
     | 
    
         
            +
              ],
         
     | 
| 
      
 4826 
     | 
    
         
            +
              "LABEL_2": [
         
     | 
| 
      
 4827 
     | 
    
         
            +
                [N_HITS],
         
     | 
| 
      
 4828 
     | 
    
         
            +
                COLUMNS,
         
     | 
| 
      
 4829 
     | 
    
         
            +
                RECORDS
         
     | 
| 
      
 4830 
     | 
    
         
            +
              ],
         
     | 
| 
      
 4831 
     | 
    
         
            +
              ...,
         
     | 
| 
      
 4832 
     | 
    
         
            +
              "LABEL_N": [
         
     | 
| 
      
 4833 
     | 
    
         
            +
                [N_HITS],
         
     | 
| 
      
 4834 
     | 
    
         
            +
                COLUMNS,
         
     | 
| 
      
 4835 
     | 
    
         
            +
                RECORDS
         
     | 
| 
      
 4836 
     | 
    
         
            +
              ]
         
     | 
| 
      
 4837 
     | 
    
         
            +
            }
         
     | 
| 
      
 4838 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4839 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4840 
     | 
    
         
            +
            <p>各 <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code> は次の部分に対応します:</p>
         
     | 
| 
      
 4841 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>"LABEL": [
         
     | 
| 
      
 4842 
     | 
    
         
            +
              [N_HITS],
         
     | 
| 
      
 4843 
     | 
    
         
            +
              COLUMNS,
         
     | 
| 
      
 4844 
     | 
    
         
            +
              RECORDS
         
     | 
| 
      
 4845 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4846 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4847 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4848 
     | 
    
         
            +
            <p>以下の値の部分は <code class="docutils literal"><span class="pre">SEARCH_RESULT</span></code> と同じフォーマットです:</p>
         
     | 
| 
      
 4849 
     | 
    
         
            +
            <div class="highlight-none"><div class="highlight"><pre>[
         
     | 
| 
      
 4850 
     | 
    
         
            +
              [N_HITS],
         
     | 
| 
      
 4851 
     | 
    
         
            +
              COLUMNS,
         
     | 
| 
      
 4852 
     | 
    
         
            +
              RECORDS
         
     | 
| 
      
 4853 
     | 
    
         
            +
            ]
         
     | 
| 
      
 4854 
     | 
    
         
            +
            </pre></div>
         
     | 
| 
      
 4855 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 4856 
     | 
    
         
            +
            <p><code class="docutils literal"><span class="pre">drilldown[${LABEL}]</span></code> スタイルのドリルダウンの出力形式については <a class="reference internal" href="#select-drilldown-label-output-format"><span>drilldown[${LABEL}] スタイルの出力フォーマット</span></a> も見てください。</p>
         
     | 
| 
       4627 
4857 
     | 
    
         
             
            </div>
         
     | 
| 
       4628 
4858 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
       4629 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 4859 
     | 
    
         
            +
            <h2>7.3.41.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       4630 
4860 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       4631 
4861 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       4632 
4862 
     | 
    
         
             
            <li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a></li>
         
     | 
| 
         @@ -4640,95 +4870,97 @@ load --table Items 
     | 
|
| 
       4640 
4870 
     | 
    
         
             
                      </div>
         
     | 
| 
       4641 
4871 
     | 
    
         
             
                    </div>
         
     | 
| 
       4642 
4872 
     | 
    
         
             
                  </div>
         
     | 
| 
       4643 
     | 
    
         
            -
                  <div class="sphinxsidebar">
         
     | 
| 
      
 4873 
     | 
    
         
            +
                  <div class="sphinxsidebar" role="navigation" aria-label="main navigation">
         
     | 
| 
       4644 
4874 
     | 
    
         
             
                    <div class="sphinxsidebarwrapper">
         
     | 
| 
       4645 
4875 
     | 
    
         
             
              <h3><a href="../../index.html">目次</a></h3>
         
     | 
| 
       4646 
4876 
     | 
    
         
             
              <ul>
         
     | 
| 
       4647 
     | 
    
         
            -
            <li><a class="reference internal" href="#">7.3. 
     | 
| 
       4648 
     | 
    
         
            -
            <li><a class="reference internal" href="#summary">7.3. 
     | 
| 
       4649 
     | 
    
         
            -
            <li><a class="reference internal" href="#syntax">7.3. 
     | 
| 
       4650 
     | 
    
         
            -
            <li><a class="reference internal" href="#usage">7.3. 
     | 
| 
       4651 
     | 
    
         
            -
            <li><a class="reference internal" href="#simple-usage">7.3. 
     | 
| 
       4652 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-conditions">7.3. 
     | 
| 
       4653 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-condition-query">7.3. 
     | 
| 
       4654 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-condition-filter">7.3. 
     | 
| 
      
 4877 
     | 
    
         
            +
            <li><a class="reference internal" href="#">7.3.41. <code class="docutils literal"><span class="pre">select</span></code></a><ul>
         
     | 
| 
      
 4878 
     | 
    
         
            +
            <li><a class="reference internal" href="#summary">7.3.41.1. 概要</a></li>
         
     | 
| 
      
 4879 
     | 
    
         
            +
            <li><a class="reference internal" href="#syntax">7.3.41.2. 構文</a></li>
         
     | 
| 
      
 4880 
     | 
    
         
            +
            <li><a class="reference internal" href="#usage">7.3.41.3. 使い方</a><ul>
         
     | 
| 
      
 4881 
     | 
    
         
            +
            <li><a class="reference internal" href="#simple-usage">7.3.41.3.1. 簡単な使い方</a></li>
         
     | 
| 
      
 4882 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-conditions">7.3.41.3.2. 検索条件</a><ul>
         
     | 
| 
      
 4883 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-condition-query">7.3.41.3.2.1. 検索条件: <code class="docutils literal"><span class="pre">query</span></code></a></li>
         
     | 
| 
      
 4884 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-condition-filter">7.3.41.3.2.2. 検索条件: <code class="docutils literal"><span class="pre">filter</span></code></a></li>
         
     | 
| 
       4655 
4885 
     | 
    
         
             
            </ul>
         
     | 
| 
       4656 
4886 
     | 
    
         
             
            </li>
         
     | 
| 
       4657 
     | 
    
         
            -
            <li><a class="reference internal" href="#paging">7.3. 
     | 
| 
       4658 
     | 
    
         
            -
            <li><a class="reference internal" href="#the-total-number-of-records">7.3. 
     | 
| 
       4659 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown">7.3. 
     | 
| 
      
 4887 
     | 
    
         
            +
            <li><a class="reference internal" href="#paging">7.3.41.3.3. ページング</a></li>
         
     | 
| 
      
 4888 
     | 
    
         
            +
            <li><a class="reference internal" href="#the-total-number-of-records">7.3.41.3.4. 全レコード数</a></li>
         
     | 
| 
      
 4889 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown">7.3.41.3.5. ドリルダウン</a></li>
         
     | 
| 
       4660 
4890 
     | 
    
         
             
            </ul>
         
     | 
| 
       4661 
4891 
     | 
    
         
             
            </li>
         
     | 
| 
       4662 
     | 
    
         
            -
            <li><a class="reference internal" href="#parameters">7.3. 
     | 
| 
       4663 
     | 
    
         
            -
            <li><a class="reference internal" href="#required-parameter">7.3. 
     | 
| 
       4664 
     | 
    
         
            -
            <li><a class="reference internal" href="#table">7.3. 
     | 
| 
      
 4892 
     | 
    
         
            +
            <li><a class="reference internal" href="#parameters">7.3.41.4. 引数</a><ul>
         
     | 
| 
      
 4893 
     | 
    
         
            +
            <li><a class="reference internal" href="#required-parameter">7.3.41.4.1. 必須引数</a><ul>
         
     | 
| 
      
 4894 
     | 
    
         
            +
            <li><a class="reference internal" href="#table">7.3.41.4.1.1. <code class="docutils literal"><span class="pre">table</span></code></a></li>
         
     | 
| 
       4665 
4895 
     | 
    
         
             
            </ul>
         
     | 
| 
       4666 
4896 
     | 
    
         
             
            </li>
         
     | 
| 
       4667 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-related-parameters">7.3. 
     | 
| 
       4668 
     | 
    
         
            -
            <li><a class="reference internal" href="#match-columns">7.3. 
     | 
| 
       4669 
     | 
    
         
            -
            <li><a class="reference internal" href="#query">7.3. 
     | 
| 
       4670 
     | 
    
         
            -
            <li><a class="reference internal" href="#filter">7.3. 
     | 
| 
      
 4897 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-related-parameters">7.3.41.4.2. 検索関係の引数</a><ul>
         
     | 
| 
      
 4898 
     | 
    
         
            +
            <li><a class="reference internal" href="#match-columns">7.3.41.4.2.1. <code class="docutils literal"><span class="pre">match_columns</span></code></a></li>
         
     | 
| 
      
 4899 
     | 
    
         
            +
            <li><a class="reference internal" href="#query">7.3.41.4.2.2. <code class="docutils literal"><span class="pre">query</span></code></a></li>
         
     | 
| 
      
 4900 
     | 
    
         
            +
            <li><a class="reference internal" href="#filter">7.3.41.4.2.3. <code class="docutils literal"><span class="pre">filter</span></code></a></li>
         
     | 
| 
       4671 
4901 
     | 
    
         
             
            </ul>
         
     | 
| 
       4672 
4902 
     | 
    
         
             
            </li>
         
     | 
| 
       4673 
     | 
    
         
            -
            <li><a class="reference internal" href="#advanced-search-parameters">7.3. 
     | 
| 
       4674 
     | 
    
         
            -
            <li><a class="reference internal" href="#match-escalation-threshold">7.3. 
     | 
| 
       4675 
     | 
    
         
            -
            <li><a class="reference internal" href="#query-expansion">7.3. 
     | 
| 
       4676 
     | 
    
         
            -
            <li><a class="reference internal" href="#query-flags">7.3. 
     | 
| 
       4677 
     | 
    
         
            -
            <li><a class="reference internal" href="#query-expander">7.3. 
     | 
| 
      
 4903 
     | 
    
         
            +
            <li><a class="reference internal" href="#advanced-search-parameters">7.3.41.4.3. 高度な検索のための引数</a><ul>
         
     | 
| 
      
 4904 
     | 
    
         
            +
            <li><a class="reference internal" href="#match-escalation-threshold">7.3.41.4.3.1. <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code></a></li>
         
     | 
| 
      
 4905 
     | 
    
         
            +
            <li><a class="reference internal" href="#query-expansion">7.3.41.4.3.2. <code class="docutils literal"><span class="pre">query_expansion</span></code></a></li>
         
     | 
| 
      
 4906 
     | 
    
         
            +
            <li><a class="reference internal" href="#query-flags">7.3.41.4.3.3. <code class="docutils literal"><span class="pre">query_flags</span></code></a></li>
         
     | 
| 
      
 4907 
     | 
    
         
            +
            <li><a class="reference internal" href="#query-expander">7.3.41.4.3.4. <code class="docutils literal"><span class="pre">query_expander</span></code></a></li>
         
     | 
| 
       4678 
4908 
     | 
    
         
             
            </ul>
         
     | 
| 
       4679 
4909 
     | 
    
         
             
            </li>
         
     | 
| 
       4680 
     | 
    
         
            -
            <li><a class="reference internal" href="#output-related-parameters">7.3. 
     | 
| 
       4681 
     | 
    
         
            -
            <li><a class="reference internal" href="#output-columns">7.3. 
     | 
| 
       4682 
     | 
    
         
            -
            <li><a class="reference internal" href="#sortby">7.3. 
     | 
| 
       4683 
     | 
    
         
            -
            <li><a class="reference internal" href="#offset">7.3. 
     | 
| 
       4684 
     | 
    
         
            -
            <li><a class="reference internal" href="#limit">7.3. 
     | 
| 
       4685 
     | 
    
         
            -
            <li><a class="reference internal" href="#scorer">7.3. 
     | 
| 
      
 4910 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-related-parameters">7.3.41.4.4. 出力関連の引数</a><ul>
         
     | 
| 
      
 4911 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-columns">7.3.41.4.4.1. <code class="docutils literal"><span class="pre">output_columns</span></code></a></li>
         
     | 
| 
      
 4912 
     | 
    
         
            +
            <li><a class="reference internal" href="#sortby">7.3.41.4.4.2. <code class="docutils literal"><span class="pre">sortby</span></code></a></li>
         
     | 
| 
      
 4913 
     | 
    
         
            +
            <li><a class="reference internal" href="#offset">7.3.41.4.4.3. <code class="docutils literal"><span class="pre">offset</span></code></a></li>
         
     | 
| 
      
 4914 
     | 
    
         
            +
            <li><a class="reference internal" href="#limit">7.3.41.4.4.4. <code class="docutils literal"><span class="pre">limit</span></code></a></li>
         
     | 
| 
      
 4915 
     | 
    
         
            +
            <li><a class="reference internal" href="#scorer">7.3.41.4.4.5. <code class="docutils literal"><span class="pre">scorer</span></code></a></li>
         
     | 
| 
       4686 
4916 
     | 
    
         
             
            </ul>
         
     | 
| 
       4687 
4917 
     | 
    
         
             
            </li>
         
     | 
| 
       4688 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-related-parameters">7.3. 
     | 
| 
       4689 
     | 
    
         
            -
            <li><a class="reference internal" href="#select-drilldown">7.3. 
     | 
| 
       4690 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-sortby">7.3. 
     | 
| 
       4691 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-output-columns">7.3. 
     | 
| 
       4692 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-offset">7.3. 
     | 
| 
       4693 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-limit">7.3. 
     | 
| 
       4694 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-calc-types">7.3. 
     | 
| 
       4695 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-calc-target">7.3. 
     | 
| 
      
 4918 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-related-parameters">7.3.41.4.5. ドリルダウン関連の引数</a><ul>
         
     | 
| 
      
 4919 
     | 
    
         
            +
            <li><a class="reference internal" href="#select-drilldown">7.3.41.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code></a></li>
         
     | 
| 
      
 4920 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-sortby">7.3.41.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code></a></li>
         
     | 
| 
      
 4921 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-output-columns">7.3.41.4.5.3. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code></a></li>
         
     | 
| 
      
 4922 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-offset">7.3.41.4.5.4. <code class="docutils literal"><span class="pre">drilldown_offset</span></code></a></li>
         
     | 
| 
      
 4923 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-limit">7.3.41.4.5.5. <code class="docutils literal"><span class="pre">drilldown_limit</span></code></a></li>
         
     | 
| 
      
 4924 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-calc-types">7.3.41.4.5.6. <code class="docutils literal"><span class="pre">drilldown_calc_types</span></code></a></li>
         
     | 
| 
      
 4925 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-calc-target">7.3.41.4.5.7. <code class="docutils literal"><span class="pre">drilldown_calc_target</span></code></a></li>
         
     | 
| 
       4696 
4926 
     | 
    
         
             
            </ul>
         
     | 
| 
       4697 
4927 
     | 
    
         
             
            </li>
         
     | 
| 
       4698 
     | 
    
         
            -
            <li><a class="reference internal" href="#advanced-drilldown-related-parameters">7.3. 
     | 
| 
       4699 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-label-keys">7.3. 
     | 
| 
       4700 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-label-output-columns">7.3. 
     | 
| 
       4701 
     | 
    
         
            -
            <li><a class="reference internal" href="#output-format-for-drilldown-label-style">7.3. 
     | 
| 
      
 4928 
     | 
    
         
            +
            <li><a class="reference internal" href="#advanced-drilldown-related-parameters">7.3.41.4.6. 高度なドリルダウン関連のパラメーター</a><ul>
         
     | 
| 
      
 4929 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-label-keys">7.3.41.4.6.1. <code class="docutils literal"><span class="pre">drilldown[${LABEL}].keys</span></code></a></li>
         
     | 
| 
      
 4930 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-label-output-columns">7.3.41.4.6.2. <code class="docutils literal"><span class="pre">drilldown[${LABEL}].output_columns</span></code></a></li>
         
     | 
| 
      
 4931 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-format-for-drilldown-label-style">7.3.41.4.6.3. <code class="docutils literal"><span class="pre">drilldown[${LABEL}]</span></code> スタイルの出力フォーマット</a></li>
         
     | 
| 
       4702 
4932 
     | 
    
         
             
            </ul>
         
     | 
| 
       4703 
4933 
     | 
    
         
             
            </li>
         
     | 
| 
       4704 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache-related-parameter">7.3. 
     | 
| 
       4705 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache">7.3. 
     | 
| 
      
 4934 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache-related-parameter">7.3.41.4.7. キャッシュ関連の引数</a><ul>
         
     | 
| 
      
 4935 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache">7.3.41.4.7.1. <code class="docutils literal"><span class="pre">cache</span></code></a></li>
         
     | 
| 
       4706 
4936 
     | 
    
         
             
            </ul>
         
     | 
| 
       4707 
4937 
     | 
    
         
             
            </li>
         
     | 
| 
       4708 
     | 
    
         
            -
            <li><a class="reference internal" href="#score-related-parameters">7.3. 
     | 
| 
       4709 
     | 
    
         
            -
            <li><a class="reference internal" href="#adjuster">7.3. 
     | 
| 
      
 4938 
     | 
    
         
            +
            <li><a class="reference internal" href="#score-related-parameters">7.3.41.4.8. スコアー関連の引数</a><ul>
         
     | 
| 
      
 4939 
     | 
    
         
            +
            <li><a class="reference internal" href="#adjuster">7.3.41.4.8.1. <code class="docutils literal"><span class="pre">adjuster</span></code></a></li>
         
     | 
| 
       4710 
4940 
     | 
    
         
             
            </ul>
         
     | 
| 
       4711 
4941 
     | 
    
         
             
            </li>
         
     | 
| 
       4712 
4942 
     | 
    
         
             
            </ul>
         
     | 
| 
       4713 
4943 
     | 
    
         
             
            </li>
         
     | 
| 
       4714 
     | 
    
         
            -
            <li><a class="reference internal" href="# 
     | 
| 
       4715 
     | 
    
         
            -
            <li><a class="reference internal" href="#see-also">7.3. 
     | 
| 
      
 4944 
     | 
    
         
            +
            <li><a class="reference internal" href="#return-value">7.3.41.5. 戻り値</a></li>
         
     | 
| 
      
 4945 
     | 
    
         
            +
            <li><a class="reference internal" href="#see-also">7.3.41.6. 参考</a></li>
         
     | 
| 
       4716 
4946 
     | 
    
         
             
            </ul>
         
     | 
| 
       4717 
4947 
     | 
    
         
             
            </li>
         
     | 
| 
       4718 
4948 
     | 
    
         
             
            </ul>
         
     | 
| 
       4719 
4949 
     | 
    
         | 
| 
       4720 
4950 
     | 
    
         
             
              <h4>前のトピックへ</h4>
         
     | 
| 
       4721 
4951 
     | 
    
         
             
              <p class="topless"><a href="ruby_load.html"
         
     | 
| 
       4722 
     | 
    
         
            -
                                    title="前の章へ">7.3. 
     | 
| 
      
 4952 
     | 
    
         
            +
                                    title="前の章へ">7.3.40. <code class="docutils literal"><span class="pre">ruby_load</span></code></a></p>
         
     | 
| 
       4723 
4953 
     | 
    
         
             
              <h4>次のトピックへ</h4>
         
     | 
| 
       4724 
4954 
     | 
    
         
             
              <p class="topless"><a href="shutdown.html"
         
     | 
| 
       4725 
     | 
    
         
            -
                                    title="次の章へ">7.3. 
     | 
| 
       4726 
     | 
    
         
            -
              < 
     | 
| 
       4727 
     | 
    
         
            -
             
     | 
| 
       4728 
     | 
    
         
            -
                < 
     | 
| 
       4729 
     | 
    
         
            -
             
     | 
| 
       4730 
     | 
    
         
            -
             
     | 
| 
       4731 
     | 
    
         
            -
             
     | 
| 
      
 4955 
     | 
    
         
            +
                                    title="次の章へ">7.3.42. <code class="docutils literal"><span class="pre">shutdown</span></code></a></p>
         
     | 
| 
      
 4956 
     | 
    
         
            +
              <div role="note" aria-label="source link">
         
     | 
| 
      
 4957 
     | 
    
         
            +
                <h3>このページ</h3>
         
     | 
| 
      
 4958 
     | 
    
         
            +
                <ul class="this-page-menu">
         
     | 
| 
      
 4959 
     | 
    
         
            +
                  <li><a href="../../_sources/reference/commands/select.txt"
         
     | 
| 
      
 4960 
     | 
    
         
            +
                        rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
      
 4961 
     | 
    
         
            +
                </ul>
         
     | 
| 
      
 4962 
     | 
    
         
            +
               </div>
         
     | 
| 
      
 4963 
     | 
    
         
            +
            <div id="searchbox" style="display: none" role="search">
         
     | 
| 
       4732 
4964 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
       4733 
4965 
     | 
    
         
             
                <form class="search" action="../../search.html" method="get">
         
     | 
| 
       4734 
4966 
     | 
    
         
             
                  <input type="text" name="q" />
         
     | 
| 
         @@ -4745,24 +4977,24 @@ load --table Items 
     | 
|
| 
       4745 
4977 
     | 
    
         
             
                  </div>
         
     | 
| 
       4746 
4978 
     | 
    
         
             
                  <div class="clearer"></div>
         
     | 
| 
       4747 
4979 
     | 
    
         
             
                </div>
         
     | 
| 
       4748 
     | 
    
         
            -
                <div class="related">
         
     | 
| 
      
 4980 
     | 
    
         
            +
                <div class="related" role="navigation" aria-label="related navigation">
         
     | 
| 
       4749 
4981 
     | 
    
         
             
                  <h3>ナビゲーション</h3>
         
     | 
| 
       4750 
4982 
     | 
    
         
             
                  <ul>
         
     | 
| 
       4751 
4983 
     | 
    
         
             
                    <li class="right" style="margin-right: 10px">
         
     | 
| 
       4752 
4984 
     | 
    
         
             
                      <a href="../../genindex.html" title="総合索引"
         
     | 
| 
       4753 
4985 
     | 
    
         
             
                         >索引</a></li>
         
     | 
| 
       4754 
4986 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       4755 
     | 
    
         
            -
                      <a href="shutdown.html" title="7.3. 
     | 
| 
      
 4987 
     | 
    
         
            +
                      <a href="shutdown.html" title="7.3.42. shutdown"
         
     | 
| 
       4756 
4988 
     | 
    
         
             
                         >次へ</a> |</li>
         
     | 
| 
       4757 
4989 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       4758 
     | 
    
         
            -
                      <a href="ruby_load.html" title="7.3. 
     | 
| 
      
 4990 
     | 
    
         
            +
                      <a href="ruby_load.html" title="7.3.40. ruby_load"
         
     | 
| 
       4759 
4991 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       4760 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v5.0. 
     | 
| 
       4761 
     | 
    
         
            -
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       4762 
     | 
    
         
            -
                      <li><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
      
 4992 
     | 
    
         
            +
                    <li class="nav-item nav-item-0"><a href="../../index.html">Groonga v5.0.6-226-gd7da7e7ドキュメント</a> »</li>
         
     | 
| 
      
 4993 
     | 
    
         
            +
                      <li class="nav-item nav-item-1"><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
      
 4994 
     | 
    
         
            +
                      <li class="nav-item nav-item-2"><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       4763 
4995 
     | 
    
         
             
                  </ul>
         
     | 
| 
       4764 
4996 
     | 
    
         
             
                </div>
         
     | 
| 
       4765 
     | 
    
         
            -
                <div class="footer">
         
     | 
| 
      
 4997 
     | 
    
         
            +
                <div class="footer" role="contentinfo">
         
     | 
| 
       4766 
4998 
     | 
    
         
             
                    © Copyright 2009-2015, Brazil, Inc.
         
     | 
| 
       4767 
4999 
     | 
    
         
             
                </div>
         
     | 
| 
       4768 
5000 
     | 
    
         
             
              </body>
         
     |