rroonga 4.0.7-x86-mingw32 → 4.0.8-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 +13 -5
 - data/README.md +1 -1
 - data/doc/text/news.textile +17 -1
 - data/ext/groonga/extconf.rb +2 -1
 - data/ext/groonga/rb-grn-column.c +31 -0
 - data/ext/groonga/rb-grn-database.c +33 -1
 - data/ext/groonga/rb-grn-table.c +1 -1
 - data/ext/groonga/rb-grn.h +1 -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/groonga/geo-point.rb +2 -1
 - data/rroonga-build.rb +3 -3
 - data/test/test-column.rb +68 -6
 - data/test/test-command-select.rb +0 -3
 - data/test/test-database.rb +28 -1
 - data/test/test-expression-builder.rb +1 -1
 - data/test/test-geo-point.rb +15 -0
 - data/test/test-variable-size-column.rb +2 -2
 - 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-3.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/include/groonga/groonga.h +1 -0
 - data/vendor/local/include/groonga/groonga/groonga.h +4 -1
 - data/vendor/local/include/groonga/groonga/request_canceler.h +39 -0
 - data/vendor/local/include/lz4.h +21 -29
 - data/vendor/local/include/lz4frame.h +252 -0
 - data/vendor/local/include/lz4hc.h +14 -63
 - 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 +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - 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 +3 -3
 - data/vendor/local/lib/groonga/scripts/ruby/command/grndb.rb +169 -0
 - data/vendor/local/lib/groonga/scripts/ruby/database.rb +19 -0
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +4 -0
 - data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +1 -0
 - data/vendor/local/lib/groonga/scripts/ruby/require.rb +68 -0
 - data/vendor/local/lib/groonga/scripts/ruby/table_cursor.rb +11 -0
 - data/vendor/local/lib/libgroonga.a +0 -0
 - data/vendor/local/lib/libgroonga.dll.a +0 -0
 - data/vendor/local/lib/libgroonga.la +3 -3
 - data/vendor/local/lib/liblz4.a +0 -0
 - 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 +3 -3
 - data/vendor/local/lib/libmsgpack.a +0 -0
 - data/vendor/local/lib/libmsgpack.dll.a +0 -0
 - data/vendor/local/lib/libmsgpack.la +3 -3
 - data/vendor/local/lib/libmsgpackc.a +0 -0
 - data/vendor/local/lib/libmsgpackc.dll.a +0 -0
 - data/vendor/local/lib/libmsgpackc.la +3 -3
 - 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 +6 -6
 - 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/documentation/introduction.txt +9 -12
 - 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 +10 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +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 +10 -3
 - data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +75 -1
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_column.txt +16 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_db.txt +40 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_id.txt +41 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +3 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +91 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +139 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +39 -14
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grndb.txt +84 -0
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +2 -21
 - data/vendor/local/share/doc/groonga/en/html/_sources/reference/token_filters.txt +16 -7
 - data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +1 -1
 - data/vendor/local/share/doc/groonga/en/html/_static/basic.css +5 -67
 - data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +0 -25
 - 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.js +2 -4
 - 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/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 +14 -14
 - data/vendor/local/share/doc/groonga/en/html/characteristic.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/client.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +33 -35
 - data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +24 -26
 - data/vendor/local/share/doc/groonga/en/html/genindex.html +22 -14
 - data/vendor/local/share/doc/groonga/en/html/index.html +84 -82
 - data/vendor/local/share/doc/groonga/en/html/install.html +31 -33
 - data/vendor/local/share/doc/groonga/en/html/install/centos.html +28 -30
 - data/vendor/local/share/doc/groonga/en/html/install/debian.html +29 -25
 - data/vendor/local/share/doc/groonga/en/html/install/fedora.html +25 -27
 - data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +22 -24
 - data/vendor/local/share/doc/groonga/en/html/install/others.html +88 -90
 - data/vendor/local/share/doc/groonga/en/html/install/solaris.html +22 -24
 - data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +30 -26
 - data/vendor/local/share/doc/groonga/en/html/install/windows.html +30 -32
 - data/vendor/local/share/doc/groonga/en/html/limitations.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/news.html +226 -147
 - data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +32 -34
 - data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +27 -29
 - data/vendor/local/share/doc/groonga/en/html/news/2.x.html +97 -99
 - data/vendor/local/share/doc/groonga/en/html/news/3.x.html +69 -71
 - data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/en/html/reference.html +83 -81
 - data/vendor/local/share/doc/groonga/en/html/reference/api.html +37 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +31 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +43 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +93 -65
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +27 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +24 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +61 -63
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +86 -33
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +28 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +64 -66
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +29 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +27 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -28
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +25 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +74 -76
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +29 -31
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +60 -62
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +49 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +25 -27
 - data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +22 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +40 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/column.html +19 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +22 -24
 - data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +59 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/command.html +54 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +58 -60
 - data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +173 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +110 -112
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +57 -59
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +59 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +44 -43
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +55 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +90 -92
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +40 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +59 -61
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +55 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +40 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +53 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +38 -40
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +61 -63
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +221 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +42 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +42 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +42 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +81 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +48 -50
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +37 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +37 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +49 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +276 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +54 -56
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +53 -55
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +384 -386
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +37 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +45 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +81 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +146 -148
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +49 -51
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +39 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +65 -67
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +101 -103
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +45 -47
 - data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +178 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/executables.html +31 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +224 -0
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +43 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +64 -66
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +111 -113
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +37 -39
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +43 -45
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +80 -82
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +56 -58
 - data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +81 -83
 - data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -42
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +19 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +79 -81
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +30 -32
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +20 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +51 -53
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +39 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +28 -30
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -48
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +42 -44
 - data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +39 -41
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +24 -26
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +208 -210
 - data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +260 -262
 - data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +19 -21
 - data/vendor/local/share/doc/groonga/en/html/reference/log.html +20 -22
 - data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +46 -65
 - data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/output.html +36 -38
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +55 -57
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/tables.html +52 -54
 - data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +58 -58
 - data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +27 -29
 - data/vendor/local/share/doc/groonga/en/html/reference/types.html +38 -40
 - 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 +17 -19
 - data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/server/http.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +32 -34
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/server/package.html +31 -33
 - data/vendor/local/share/doc/groonga/en/html/spec.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +125 -127
 - data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +31 -33
 - data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -22
 - data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +21 -23
 - data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +50 -52
 - data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +17 -19
 - data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +18 -20
 - data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -22
 - data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +33 -35
 - data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/introduction.txt +9 -12
 - 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 +10 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +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 +10 -3
 - data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
 - data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +75 -1
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_column.txt +16 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_db.txt +40 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_id.txt +41 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +3 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +91 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +139 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +39 -14
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grndb.txt +84 -0
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +2 -21
 - data/vendor/local/share/doc/groonga/ja/html/_sources/reference/token_filters.txt +16 -7
 - data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +1 -1
 - data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +5 -67
 - data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +0 -25
 - 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.js +2 -4
 - 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/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 +14 -14
 - data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/client.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution.html +19 -21
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +20 -22
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +35 -37
 - data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -22
 - data/vendor/local/share/doc/groonga/ja/html/genindex.html +26 -18
 - data/vendor/local/share/doc/groonga/ja/html/index.html +84 -82
 - data/vendor/local/share/doc/groonga/ja/html/install.html +31 -33
 - data/vendor/local/share/doc/groonga/ja/html/install/centos.html +37 -39
 - data/vendor/local/share/doc/groonga/ja/html/install/debian.html +31 -27
 - data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +28 -30
 - data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +22 -24
 - data/vendor/local/share/doc/groonga/ja/html/install/others.html +79 -81
 - data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +21 -23
 - data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +32 -28
 - data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -31
 - data/vendor/local/share/doc/groonga/ja/html/limitations.html +19 -21
 - data/vendor/local/share/doc/groonga/ja/html/news.html +226 -136
 - data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +33 -35
 - data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +27 -29
 - data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +91 -93
 - data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +59 -61
 - data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference.html +83 -81
 - data/vendor/local/share/doc/groonga/ja/html/reference/api.html +37 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +31 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +38 -40
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +87 -59
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +27 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +24 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +55 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +85 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +28 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +50 -52
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +26 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +29 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +27 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +26 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +26 -28
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +25 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +75 -77
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +29 -31
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -26
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +60 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +49 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +25 -27
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +22 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +40 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/column.html +19 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +22 -24
 - data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +49 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/command.html +54 -53
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +48 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +174 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +109 -111
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +54 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +59 -61
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +44 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +55 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +82 -84
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +40 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +56 -58
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +55 -57
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +40 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +52 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +38 -40
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +54 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +224 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +42 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +42 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +42 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +76 -78
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +48 -50
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +37 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +37 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +46 -48
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +278 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +54 -56
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +53 -55
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +255 -257
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +37 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +43 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +79 -81
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +122 -124
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -51
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +39 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +60 -62
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +86 -88
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +45 -47
 - data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +178 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +31 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +222 -0
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +43 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +64 -66
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +99 -101
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +37 -39
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +43 -45
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +80 -82
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +56 -58
 - data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +81 -83
 - data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +40 -42
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +19 -21
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +67 -69
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +30 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +20 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +41 -43
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +30 -32
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +28 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +39 -41
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +28 -30
 - data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -33
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +21 -23
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +115 -117
 - data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +180 -182
 - data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/reference/log.html +20 -22
 - data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +37 -54
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/output.html +32 -34
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +34 -36
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -44
 - data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +55 -55
 - data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +27 -29
 - data/vendor/local/share/doc/groonga/ja/html/reference/types.html +36 -38
 - 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 +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +26 -28
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/server/package.html +32 -34
 - data/vendor/local/share/doc/groonga/ja/html/spec.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +124 -126
 - data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +30 -32
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +24 -26
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +47 -49
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -20
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -22
 - data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +31 -33
 - data/vendor/local/share/groonga/html/admin/index.html +1 -1
 - data/vendor/local/share/groonga/html/admin/index.ja.html +1 -1
 - data/vendor/local/share/license/mruby/AUTHORS +11 -0
 - data/vendor/local/share/license/mruby/README.md +32 -20
 - data/vendor/local/share/man/ja/man1/groonga.1 +952 -259
 - data/vendor/local/share/man/man1/groonga.1 +930 -239
 - metadata +103 -80
 - data/vendor/local/bin/lz4 +0 -0
 - data/vendor/local/bin/lz4c +0 -0
 - data/vendor/local/lib/liblz4.dll.1.4.0 +0 -0
 - data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +0 -10308
 - data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +0 -999
 - data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +0 -10308
 - data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +0 -999
 
| 
         @@ -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.28. ruby_load — Groonga v4.0.8-168-gae696d7ドキュメント</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:     '4.0.8',
         
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '4.0.8-168-gae696d7',
         
     | 
| 
       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 v4.0.8ドキュメント" href="../../index.html" />
         
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v4.0.8-168-gae696d7ドキュメント" 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.29. select" href="select.html" />
         
     | 
| 
      
 32 
     | 
    
         
            +
                <link rel="prev" title="7.3.27. ruby_eval" href="ruby_eval.html" /> 
         
     | 
| 
       33 
33 
     | 
    
         
             
              </head>
         
     | 
| 
       34 
     | 
    
         
            -
              <body 
     | 
| 
      
 34 
     | 
    
         
            +
              <body>
         
     | 
| 
       35 
35 
     | 
    
         
             
            <div class="header">
         
     | 
| 
       36 
36 
     | 
    
         
             
              <h1 class="title">
         
     | 
| 
       37 
37 
     | 
    
         
             
                <a id="top-link" href="../../index.html">
         
     | 
| 
         @@ -49,19 +49,19 @@ 
     | 
|
| 
       49 
49 
     | 
    
         
             
            </div>
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
                <div class="related" 
     | 
| 
      
 52 
     | 
    
         
            +
                <div class="related">
         
     | 
| 
       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.29. 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.27. ruby_eval"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v4.0.8ドキュメント</a> »</li>
         
     | 
| 
      
 64 
     | 
    
         
            +
                    <li><a href="../../index.html">Groonga v4.0.8-168-gae696d7ドキュメント</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       66 
66 
     | 
    
         
             
                      <li><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       67 
67 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -70,25 +70,25 @@ 
     | 
|
| 
       70 
70 
     | 
    
         
             
                <div class="document">
         
     | 
| 
       71 
71 
     | 
    
         
             
                  <div class="documentwrapper">
         
     | 
| 
       72 
72 
     | 
    
         
             
                    <div class="bodywrapper">
         
     | 
| 
       73 
     | 
    
         
            -
                      <div class="body" 
     | 
| 
      
 73 
     | 
    
         
            +
                      <div class="body">
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         
             
              <div class="section" id="ruby-load">
         
     | 
| 
       76 
     | 
    
         
            -
            <h1>7.3. 
     | 
| 
      
 76 
     | 
    
         
            +
            <h1>7.3.28. <tt class="docutils literal"><span class="pre">ruby_load</span></tt><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.28.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 79 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ruby_load</span></tt> コマンドは指定したRubyスクリプトを読み込みます。</p>
         
     | 
| 
       80 
80 
     | 
    
         
             
            </div>
         
     | 
| 
       81 
81 
     | 
    
         
             
            <div class="section" id="syntax">
         
     | 
| 
       82 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       83 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 82 
     | 
    
         
            +
            <h2>7.3.28.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 83 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ruby_load</span></tt> には必須な引数が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.28.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 90 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ruby_load</span></tt> を使ってmrubyがサポートしているスクリプトを読み込むことができます。</p>
         
     | 
| 
      
 91 
     | 
    
         
            +
            <p>Rubyスクリプトとして <tt class="docutils literal"><span class="pre">expression.rb</span></tt> を単に読むこむ例です。</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><tt class="docutils literal"><span class="pre">ruby_load</span></tt> コマンドを使うには事前に <tt class="docutils literal"><span class="pre">ruby/load</span></tt> プラグインを登録します。</p>
         
     | 
| 
      
 100 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ruby_load</span></tt> コマンドは実験的なプラグインです。このコマンドは将来的に変更されるかも知れません。</p>
         
     | 
| 
       101 
101 
     | 
    
         
             
            </div>
         
     | 
| 
       102 
102 
     | 
    
         
             
            <div class="section" id="parameters">
         
     | 
| 
       103 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 103 
     | 
    
         
            +
            <h2>7.3.28.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.28.4.1. <tt class="docutils literal"><span class="pre">path</span></tt><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.28.5. 戻り値<a class="headerlink" href="#return-value" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 112 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ruby_load</span></tt> は例外情報などのメタデータつきで読み込んだ結果を返します(メタデータはまだ実装されていないので今のところ含まれません):</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><tt class="docutils literal"><span class="pre">HEADER</span></tt></p>
         
     | 
| 
       117 
117 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       118 
     | 
    
         
            -
            <div><p>< 
     | 
| 
      
 118 
     | 
    
         
            +
            <div><p><tt class="docutils literal"><span class="pre">HEADER</span></tt> については <a class="reference internal" href="../command/output_format.html"><em>出力形式</em></a> を参照してください。</p>
         
     | 
| 
       119 
119 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       120 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 120 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">LOADED_VALUE</span></tt></p>
         
     | 
| 
       121 
121 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       122 
     | 
    
         
            -
            <div><p>< 
     | 
| 
       123 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 122 
     | 
    
         
            +
            <div><p><tt class="docutils literal"><span class="pre">LOADED_VALUE</span></tt> はrubyスクリプトを読み込んだ結果です。</p>
         
     | 
| 
      
 123 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ruby_load</span></tt> は <tt class="docutils literal"><span class="pre">LOADED_VALUE</span></tt> としていまのところは単に <tt class="docutils literal"><span class="pre">null</span></tt> を返します。将来的には <tt class="docutils literal"><span class="pre">LOADED_VALUE</span></tt> がサポートされる予定です。</p>
         
     | 
| 
       124 
124 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       125 
125 
     | 
    
         
             
            </div>
         
     | 
| 
       126 
126 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
       127 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 127 
     | 
    
         
            +
            <h2>7.3.28.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,38 +133,36 @@ ruby_load "expression.rb" 
     | 
|
| 
       133 
133 
     | 
    
         
             
                      </div>
         
     | 
| 
       134 
134 
     | 
    
         
             
                    </div>
         
     | 
| 
       135 
135 
     | 
    
         
             
                  </div>
         
     | 
| 
       136 
     | 
    
         
            -
                  <div class="sphinxsidebar" 
     | 
| 
      
 136 
     | 
    
         
            +
                  <div class="sphinxsidebar">
         
     | 
| 
       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.28. <tt class="docutils literal"><span class="pre">ruby_load</span></tt></a><ul>
         
     | 
| 
      
 141 
     | 
    
         
            +
            <li><a class="reference internal" href="#summary">7.3.28.1. 概要</a></li>
         
     | 
| 
      
 142 
     | 
    
         
            +
            <li><a class="reference internal" href="#syntax">7.3.28.2. 構文</a></li>
         
     | 
| 
      
 143 
     | 
    
         
            +
            <li><a class="reference internal" href="#usage">7.3.28.3. 使い方</a></li>
         
     | 
| 
      
 144 
     | 
    
         
            +
            <li><a class="reference internal" href="#parameters">7.3.28.4. 引数</a><ul>
         
     | 
| 
      
 145 
     | 
    
         
            +
            <li><a class="reference internal" href="#path">7.3.28.4.1. <tt class="docutils literal"><span class="pre">path</span></tt></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.28.5. 戻り値</a></li>
         
     | 
| 
      
 149 
     | 
    
         
            +
            <li><a class="reference internal" href="#see-also">7.3.28.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.27. <tt class="docutils literal"><span class="pre">ruby_eval</span></tt></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 
     | 
    
         
            -
             
     | 
| 
       166 
     | 
    
         
            -
               </div>
         
     | 
| 
       167 
     | 
    
         
            -
            <div id="searchbox" style="display: none" role="search">
         
     | 
| 
      
 159 
     | 
    
         
            +
                                    title="次の章へ">7.3.29. <tt class="docutils literal"><span class="pre">select</span></tt></a></p>
         
     | 
| 
      
 160 
     | 
    
         
            +
              <h3>このページ</h3>
         
     | 
| 
      
 161 
     | 
    
         
            +
              <ul class="this-page-menu">
         
     | 
| 
      
 162 
     | 
    
         
            +
                <li><a href="../../_sources/reference/commands/ruby_load.txt"
         
     | 
| 
      
 163 
     | 
    
         
            +
                       rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
      
 164 
     | 
    
         
            +
              </ul>
         
     | 
| 
      
 165 
     | 
    
         
            +
            <div id="searchbox" style="display: none">
         
     | 
| 
       168 
166 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
       169 
167 
     | 
    
         
             
                <form class="search" action="../../search.html" method="get">
         
     | 
| 
       170 
168 
     | 
    
         
             
                  <input type="text" name="q" />
         
     | 
| 
         @@ -181,24 +179,24 @@ ruby_load "expression.rb" 
     | 
|
| 
       181 
179 
     | 
    
         
             
                  </div>
         
     | 
| 
       182 
180 
     | 
    
         
             
                  <div class="clearer"></div>
         
     | 
| 
       183 
181 
     | 
    
         
             
                </div>
         
     | 
| 
       184 
     | 
    
         
            -
                <div class="related" 
     | 
| 
      
 182 
     | 
    
         
            +
                <div class="related">
         
     | 
| 
       185 
183 
     | 
    
         
             
                  <h3>ナビゲーション</h3>
         
     | 
| 
       186 
184 
     | 
    
         
             
                  <ul>
         
     | 
| 
       187 
185 
     | 
    
         
             
                    <li class="right" style="margin-right: 10px">
         
     | 
| 
       188 
186 
     | 
    
         
             
                      <a href="../../genindex.html" title="総合索引"
         
     | 
| 
       189 
187 
     | 
    
         
             
                         >索引</a></li>
         
     | 
| 
       190 
188 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       191 
     | 
    
         
            -
                      <a href="select.html" title="7.3. 
     | 
| 
      
 189 
     | 
    
         
            +
                      <a href="select.html" title="7.3.29. select"
         
     | 
| 
       192 
190 
     | 
    
         
             
                         >次へ</a> |</li>
         
     | 
| 
       193 
191 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       194 
     | 
    
         
            -
                      <a href="ruby_eval.html" title="7.3. 
     | 
| 
      
 192 
     | 
    
         
            +
                      <a href="ruby_eval.html" title="7.3.27. ruby_eval"
         
     | 
| 
       195 
193 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       196 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v4.0.8ドキュメント</a> »</li>
         
     | 
| 
      
 194 
     | 
    
         
            +
                    <li><a href="../../index.html">Groonga v4.0.8-168-gae696d7ドキュメント</a> »</li>
         
     | 
| 
       197 
195 
     | 
    
         
             
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       198 
196 
     | 
    
         
             
                      <li><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       199 
197 
     | 
    
         
             
                  </ul>
         
     | 
| 
       200 
198 
     | 
    
         
             
                </div>
         
     | 
| 
       201 
     | 
    
         
            -
                <div class="footer" 
     | 
| 
      
 199 
     | 
    
         
            +
                <div class="footer">
         
     | 
| 
       202 
200 
     | 
    
         
             
                    © Copyright 2009-2014, Brazil, Inc.
         
     | 
| 
       203 
201 
     | 
    
         
             
                </div>
         
     | 
| 
       204 
202 
     | 
    
         
             
              </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.29. select — Groonga v4.0.8-168-gae696d7ドキュメント</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:     '4.0.8',
         
     | 
| 
      
 18 
     | 
    
         
            +
                    VERSION:     '4.0.8-168-gae696d7',
         
     | 
| 
       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 v4.0.8ドキュメント" href="../../index.html" />
         
     | 
| 
      
 29 
     | 
    
         
            +
                <link rel="top" title="Groonga v4.0.8-168-gae696d7ドキュメント" 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.30. shutdown" href="shutdown.html" />
         
     | 
| 
      
 32 
     | 
    
         
            +
                <link rel="prev" title="7.3.28. ruby_load" href="ruby_load.html" /> 
         
     | 
| 
       33 
33 
     | 
    
         
             
              </head>
         
     | 
| 
       34 
     | 
    
         
            -
              <body 
     | 
| 
      
 34 
     | 
    
         
            +
              <body>
         
     | 
| 
       35 
35 
     | 
    
         
             
            <div class="header">
         
     | 
| 
       36 
36 
     | 
    
         
             
              <h1 class="title">
         
     | 
| 
       37 
37 
     | 
    
         
             
                <a id="top-link" href="../../index.html">
         
     | 
| 
         @@ -49,19 +49,19 @@ 
     | 
|
| 
       49 
49 
     | 
    
         
             
            </div>
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         | 
| 
       52 
     | 
    
         
            -
                <div class="related" 
     | 
| 
      
 52 
     | 
    
         
            +
                <div class="related">
         
     | 
| 
       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.30. 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.28. ruby_load"
         
     | 
| 
       63 
63 
     | 
    
         
             
                         accesskey="P">前へ</a> |</li>
         
     | 
| 
       64 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v4.0.8ドキュメント</a> »</li>
         
     | 
| 
      
 64 
     | 
    
         
            +
                    <li><a href="../../index.html">Groonga v4.0.8-168-gae696d7ドキュメント</a> »</li>
         
     | 
| 
       65 
65 
     | 
    
         
             
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       66 
66 
     | 
    
         
             
                      <li><a href="../command.html" accesskey="U">7.3. コマンド</a> »</li> 
         
     | 
| 
       67 
67 
     | 
    
         
             
                  </ul>
         
     | 
| 
         @@ -70,18 +70,18 @@ 
     | 
|
| 
       70 
70 
     | 
    
         
             
                <div class="document">
         
     | 
| 
       71 
71 
     | 
    
         
             
                  <div class="documentwrapper">
         
     | 
| 
       72 
72 
     | 
    
         
             
                    <div class="bodywrapper">
         
     | 
| 
       73 
     | 
    
         
            -
                      <div class="body" 
     | 
| 
      
 73 
     | 
    
         
            +
                      <div class="body">
         
     | 
| 
       74 
74 
     | 
    
         | 
| 
       75 
75 
     | 
    
         
             
              <div class="section" id="select">
         
     | 
| 
       76 
     | 
    
         
            -
            <h1>7.3. 
     | 
| 
      
 76 
     | 
    
         
            +
            <h1>7.3.29. <tt class="docutils literal"><span class="pre">select</span></tt><a class="headerlink" href="#select" title="このヘッドラインへのパーマリンク">¶</a></h1>
         
     | 
| 
       77 
77 
     | 
    
         
             
            <div class="section" id="summary">
         
     | 
| 
       78 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       79 
     | 
    
         
            -
            <p>< 
     | 
| 
       80 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 78 
     | 
    
         
            +
            <h2>7.3.29.1. 概要<a class="headerlink" href="#summary" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 79 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">select</span></tt> はテーブルから指定された条件にマッチするレコードを検索し、見つかったレコードを出力します。</p>
         
     | 
| 
      
 80 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">select</span></tt> は最も重要なgroongaのコマンドです。groongaの力を最大限に活かすためには <tt class="docutils literal"><span class="pre">select</span></tt> を理解する必要があります。</p>
         
     | 
| 
       81 
81 
     | 
    
         
             
            </div>
         
     | 
| 
       82 
82 
     | 
    
         
             
            <div class="section" id="syntax">
         
     | 
| 
       83 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       84 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 83 
     | 
    
         
            +
            <h2>7.3.29.2. 構文<a class="headerlink" href="#syntax" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 84 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">select</span></tt> には多くの引数があります。必須の引数は <tt class="docutils literal"><span class="pre">table</span></tt> だけで、残りは省略できます。:</p>
         
     | 
| 
       85 
85 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select table
         
     | 
| 
       86 
86 
     | 
    
         
             
                   [match_columns=null]
         
     | 
| 
       87 
87 
     | 
    
         
             
                   [query=null]
         
     | 
| 
         @@ -106,8 +106,8 @@ 
     | 
|
| 
       106 
106 
     | 
    
         
             
            </div>
         
     | 
| 
       107 
107 
     | 
    
         
             
            </div>
         
     | 
| 
       108 
108 
     | 
    
         
             
            <div class="section" id="usage">
         
     | 
| 
       109 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
       110 
     | 
    
         
            -
            <p>例を使いながら < 
     | 
| 
      
 109 
     | 
    
         
            +
            <h2>7.3.29.3. 使い方<a class="headerlink" href="#usage" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
      
 110 
     | 
    
         
            +
            <p>例を使いながら <tt class="docutils literal"><span class="pre">select</span></tt> の使い方を学びましょう。このセクションではよく使われる使い方を紹介します。</p>
         
     | 
| 
       111 
111 
     | 
    
         
             
            <p>使い方を示すために使うスキーマ定義とサンプルデータは以下の通りです。</p>
         
     | 
| 
       112 
112 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       113 
113 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>table_create Entries TABLE_HASH_KEY ShortText
         
     | 
| 
         @@ -143,12 +143,12 @@ load --table Entries 
     | 
|
| 
       143 
143 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], 5]
         
     | 
| 
       144 
144 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       145 
145 
     | 
    
         
             
            </div>
         
     | 
| 
       146 
     | 
    
         
            -
            <p>ブログエントリ用の < 
     | 
| 
       147 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 146 
     | 
    
         
            +
            <p>ブログエントリ用の <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルがあります。各エントリはタイトルと内容と「いいね!」数を持っています。タイトルは <tt class="docutils literal"><span class="pre">Entries</span></tt> のキーとします。内容は <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムの値とします。「いいね!」数は <tt class="docutils literal"><span class="pre">Entries.n_likes</span></tt> カラムの値とします。</p>
         
     | 
| 
      
 147 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">Entries._key</span></tt> カラムと <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムには <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーを使ったインデックスを作成します。そのため、 <tt class="docutils literal"><span class="pre">Entries._key</span></tt> と <tt class="docutils literal"><span class="pre">Entries.content</span></tt> は両方とも全文検索できます。</p>
         
     | 
| 
       148 
148 
     | 
    
         
             
            <p>これで例を示すためのスキーマとデータの準備ができました。</p>
         
     | 
| 
       149 
149 
     | 
    
         
             
            <div class="section" id="simple-usage">
         
     | 
| 
       150 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       151 
     | 
    
         
            -
            <p>上記のスキーマとデータを使った一番簡単な使い方は以下の通りです。これは < 
     | 
| 
      
 150 
     | 
    
         
            +
            <h3>7.3.29.3.1. 簡単な使い方<a class="headerlink" href="#simple-usage" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 151 
     | 
    
         
            +
            <p>上記のスキーマとデータを使った一番簡単な使い方は以下の通りです。これは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルのすべてのレコードを出力します。</p>
         
     | 
| 
       152 
152 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       153 
153 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries
         
     | 
| 
       154 
154 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -215,17 +215,17 @@ load --table Entries 
     | 
|
| 
       215 
215 
     | 
    
         
             
            # ]
         
     | 
| 
       216 
216 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       217 
217 
     | 
    
         
             
            </div>
         
     | 
| 
       218 
     | 
    
         
            -
            <p>どうしてこのコマンドがすべてのレコードを出力するのでしょうか?理由は2つです。1つ目の理由はこのコマンドが検索条件を何も指定していないからです。検索条件を指定しないとすべてのレコードがマッチします。2つ目の理由は全レコード数が5だからです。 < 
     | 
| 
      
 218 
     | 
    
         
            +
            <p>どうしてこのコマンドがすべてのレコードを出力するのでしょうか?理由は2つです。1つ目の理由はこのコマンドが検索条件を何も指定していないからです。検索条件を指定しないとすべてのレコードがマッチします。2つ目の理由は全レコード数が5だからです。 <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはデフォルトでは最大10レコードを出力します。この例では5レコードしかありません。これは10よりも少ないのですべてのレコードを出力します。</p>
         
     | 
| 
       219 
219 
     | 
    
         
             
            </div>
         
     | 
| 
       220 
220 
     | 
    
         
             
            <div class="section" id="search-conditions">
         
     | 
| 
       221 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       222 
     | 
    
         
            -
            <p>検索条件は < 
     | 
| 
      
 221 
     | 
    
         
            +
            <h3>7.3.29.3.2. 検索条件<a class="headerlink" href="#search-conditions" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 222 
     | 
    
         
            +
            <p>検索条件は <tt class="docutils literal"><span class="pre">query</span></tt> または <tt class="docutils literal"><span class="pre">filter</span></tt> で指定します。 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> を両方指定することもできます。この場合は <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> の両方の条件にマッチしたレコードが出力されます。</p>
         
     | 
| 
       223 
223 
     | 
    
         
             
            <div class="section" id="search-condition-query">
         
     | 
| 
       224 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       225 
     | 
    
         
            -
            <p>< 
     | 
| 
       226 
     | 
    
         
            -
            <p>通常は < 
     | 
| 
       227 
     | 
    
         
            -
            <p>< 
     | 
| 
       228 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 224 
     | 
    
         
            +
            <h4>7.3.29.3.2.1. 検索条件: <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#search-condition-query" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 225 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> はWebページの検索ボックス用に用意されています。例えば、google.co.jpにあるような検索ボックスです。 <tt class="docutils literal"><span class="pre">query</span></tt> の検索条件はスペース区切りでキーワードを指定します。例えば、 <tt class="docutils literal"><span class="pre">検索</span> <span class="pre">エンジン</span></tt> は <tt class="docutils literal"><span class="pre">検索</span></tt> と <tt class="docutils literal"><span class="pre">エンジン</span></tt> という2つのキーワードを含むレコードを検索します。</p>
         
     | 
| 
      
 226 
     | 
    
         
            +
            <p>通常は <tt class="docutils literal"><span class="pre">query</span></tt> 引数は全文検索条件を指定するために使います。全文検索条件以外も指定できますが、その用途には <tt class="docutils literal"><span class="pre">filter</span></tt> 引数の方が向いています。</p>
         
     | 
| 
      
 227 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> 引数で全文検索条件を指定する場合は、 <tt class="docutils literal"><span class="pre">match_columns</span></tt> 引数と一緒に使います。 <tt class="docutils literal"><span class="pre">match_columns</span></tt> はどのカラムまたはインデックスを使って <tt class="docutils literal"><span class="pre">query</span></tt> を検索するかを指定します。</p>
         
     | 
| 
      
 228 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">query</span></tt> の使用例です。</p>
         
     | 
| 
       229 
229 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       230 
230 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast
         
     | 
| 
       231 
231 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -274,13 +274,13 @@ load --table Entries 
     | 
|
| 
       274 
274 
     | 
    
         
             
            # ]
         
     | 
| 
       275 
275 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       276 
276 
     | 
    
         
             
            </div>
         
     | 
| 
       277 
     | 
    
         
            -
            <p>この < 
     | 
| 
       278 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 277 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> を含んでいるレコードを検索します。</p>
         
     | 
| 
      
 278 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> はクエリー構文という構文を使いますが、詳細はここでは説明しません。詳細は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
         
     | 
| 
       279 
279 
     | 
    
         
             
            </div>
         
     | 
| 
       280 
280 
     | 
    
         
             
            <div class="section" id="search-condition-filter">
         
     | 
| 
       281 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       282 
     | 
    
         
            -
            <p>< 
     | 
| 
       283 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 281 
     | 
    
         
            +
            <h4>7.3.29.3.2.2. 検索条件: <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#search-condition-filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 282 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">filter</span></tt> は複雑な検索条件を指定するために用意されています。ECMAScriptのような構文で  <tt class="docutils literal"><span class="pre">filter</span></tt> に検索条件を指定します。</p>
         
     | 
| 
      
 283 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">filter</span></tt> の使用例です。</p>
         
     | 
| 
       284 
284 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       285 
285 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && _key == "Groonga"'
         
     | 
| 
       286 
286 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -323,13 +323,13 @@ load --table Entries 
     | 
|
| 
       323 
323 
     | 
    
         
             
            # ]
         
     | 
| 
       324 
324 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       325 
325 
     | 
    
         
             
            </div>
         
     | 
| 
       326 
     | 
    
         
            -
            <p>この < 
     | 
| 
       327 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 326 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中の <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> という単語を含んでいて、かつ、 <tt class="docutils literal"><span class="pre">_key</span></tt> が <tt class="docutils literal"><span class="pre">Groonga</span></tt> のレコードを検索します。このコマンドの中には <tt class="docutils literal"><span class="pre">@</span></tt> と <tt class="docutils literal"><span class="pre">&&</span></tt> と <tt class="docutils literal"><span class="pre">==</span></tt> という3つの演算子があります。 <tt class="docutils literal"><span class="pre">@</span></tt> は全文検索用の演算子です。 <tt class="docutils literal"><span class="pre">&&</span></tt> と <tt class="docutils literal"><span class="pre">==</span></tt> はECMAScriptと同じ意味です。 <tt class="docutils literal"><span class="pre">&&</span></tt> が論理積用の演算子で <tt class="docutils literal"><span class="pre">==</span></tt> が等価演算子です。</p>
         
     | 
| 
      
 327 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">filter</span></tt> にはもっと演算子や構文があります。例えば、 <tt class="docutils literal"><span class="pre">(...)</span></tt> を使った検索条件のグループ化などです。しかし、ここでは詳細は説明しません。詳細は <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> を参照してください。</p>
         
     | 
| 
       328 
328 
     | 
    
         
             
            </div>
         
     | 
| 
       329 
329 
     | 
    
         
             
            </div>
         
     | 
| 
       330 
330 
     | 
    
         
             
            <div class="section" id="paging">
         
     | 
| 
       331 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       332 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 331 
     | 
    
         
            +
            <h3>7.3.29.3.3. ページング<a class="headerlink" href="#paging" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 332 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">offset</span></tt> と <tt class="docutils literal"><span class="pre">limit</span></tt> を指定することで出力されるレコードの範囲を指定できます。以下は2番目のレコードだけを出力する例です。</p>
         
     | 
| 
       333 
333 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       334 
334 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --offset 1 --limit 1
         
     | 
| 
       335 
335 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -372,12 +372,12 @@ load --table Entries 
     | 
|
| 
       372 
372 
     | 
    
         
             
            # ]
         
     | 
| 
       373 
373 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       374 
374 
     | 
    
         
             
            </div>
         
     | 
| 
       375 
     | 
    
         
            -
            <p>< 
     | 
| 
       376 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 375 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">offset</span></tt> は0基点です。 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
      
 376 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">limit</span></tt> は出力レコード数の最大値を指定します。 <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">1</span></tt> は多くても1レコードを出力するという意味になります。もし、1つもレコードがマッチしていなければ <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはどのレコードも出力しません。</p>
         
     | 
| 
       377 
377 
     | 
    
         
             
            </div>
         
     | 
| 
       378 
378 
     | 
    
         
             
            <div class="section" id="the-total-number-of-records">
         
     | 
| 
       379 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       380 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 379 
     | 
    
         
            +
            <h3>7.3.29.3.4. 全レコード数<a class="headerlink" href="#the-total-number-of-records" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 380 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> を使うとレコードの内容は取得せずに全レコード数だけを取得できます。</p>
         
     | 
| 
       381 
381 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       382 
382 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --limit 0
         
     | 
| 
       383 
383 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -414,18 +414,18 @@ load --table Entries 
     | 
|
| 
       414 
414 
     | 
    
         
             
            # ]
         
     | 
| 
       415 
415 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       416 
416 
     | 
    
         
             
            </div>
         
     | 
| 
       417 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 417 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></tt> はマッチしたレコード数だけを取得したいときにも便利です。</p>
         
     | 
| 
       418 
418 
     | 
    
         
             
            </div>
         
     | 
| 
       419 
419 
     | 
    
         
             
            </div>
         
     | 
| 
       420 
420 
     | 
    
         
             
            <div class="section" id="parameters">
         
     | 
| 
       421 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 421 
     | 
    
         
            +
            <h2>7.3.29.4. 引数<a class="headerlink" href="#parameters" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       422 
422 
     | 
    
         
             
            <p>このセクションではすべての引数について説明します。引数はカテゴリわけしています。</p>
         
     | 
| 
       423 
423 
     | 
    
         
             
            <div class="section" id="required-parameter">
         
     | 
| 
       424 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       425 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 424 
     | 
    
         
            +
            <h3>7.3.29.4.1. 必須引数<a class="headerlink" href="#required-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 425 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">table</span></tt> だけが必須の引数です。</p>
         
     | 
| 
       426 
426 
     | 
    
         
             
            <div class="section" id="table">
         
     | 
| 
       427 
     | 
    
         
            -
            <span id="select-table"></span><h4>7.3. 
     | 
| 
       428 
     | 
    
         
            -
            <p>検索対象のテーブルを指定します。 < 
     | 
| 
      
 427 
     | 
    
         
            +
            <span id="select-table"></span><h4>7.3.29.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt><a class="headerlink" href="#table" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 428 
     | 
    
         
            +
            <p>検索対象のテーブルを指定します。 <tt class="docutils literal"><span class="pre">table</span></tt> は必ず指定しなければいけません。</p>
         
     | 
| 
       429 
429 
     | 
    
         
             
            <p>存在しないテーブルを指定するとエラーが返ります。</p>
         
     | 
| 
       430 
430 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       431 
431 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Nonexistent
         
     | 
| 
         @@ -439,7 +439,7 @@ load --table Entries 
     | 
|
| 
       439 
439 
     | 
    
         
             
            #       [
         
     | 
| 
       440 
440 
     | 
    
         
             
            #         "grn_select",
         
     | 
| 
       441 
441 
     | 
    
         
             
            #         "proc.c",
         
     | 
| 
       442 
     | 
    
         
            -
            #          
     | 
| 
      
 442 
     | 
    
         
            +
            #         1108
         
     | 
| 
       443 
443 
     | 
    
         
             
            #       ]
         
     | 
| 
       444 
444 
     | 
    
         
             
            #     ]
         
     | 
| 
       445 
445 
     | 
    
         
             
            #   ]
         
     | 
| 
         @@ -449,14 +449,14 @@ load --table Entries 
     | 
|
| 
       449 
449 
     | 
    
         
             
            </div>
         
     | 
| 
       450 
450 
     | 
    
         
             
            </div>
         
     | 
| 
       451 
451 
     | 
    
         
             
            <div class="section" id="search-related-parameters">
         
     | 
| 
       452 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       453 
     | 
    
         
            -
            <p>検索関係の引数がいくつかあります。一般的には、検索ボックスを実装するために < 
     | 
| 
       454 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 452 
     | 
    
         
            +
            <h3>7.3.29.4.2. 検索関係の引数<a class="headerlink" href="#search-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 453 
     | 
    
         
            +
            <p>検索関係の引数がいくつかあります。一般的には、検索ボックスを実装するために <tt class="docutils literal"><span class="pre">match_columns</span></tt> と <tt class="docutils literal"><span class="pre">query</span></tt> 引数を使い、複雑な検索機能を実装するために <tt class="docutils literal"><span class="pre">filter</span></tt> 引数を使います。</p>
         
     | 
| 
      
 454 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> を指定した場合は、 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> にマッチしたレコードが選択されます。 <tt class="docutils literal"><span class="pre">query</span></tt> と <tt class="docutils literal"><span class="pre">filter</span></tt> のどちらも指定しなかった場合はすべてのレコードが選択されます。</p>
         
     | 
| 
       455 
455 
     | 
    
         
             
            <div class="section" id="match-columns">
         
     | 
| 
       456 
     | 
    
         
            -
            <span id="select-match-columns"></span><h4>7.3. 
     | 
| 
       457 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 456 
     | 
    
         
            +
            <span id="select-match-columns"></span><h4>7.3.29.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt><a class="headerlink" href="#match-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 457 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値で全文検索をするときに使うデフォルトの検索対象カラムを指定します。全文検索対象のカラムは <tt class="docutils literal"><span class="pre">query</span></tt> 引数でも指定できます。検索対象カラムを <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定する場合と <tt class="docutils literal"><span class="pre">query</span></tt> で指定する場合の違いは重みを指定できるかどうかです。 <tt class="docutils literal"><span class="pre">match_columns</span></tt> では重みを指定できますが、 <tt class="docutils literal"><span class="pre">query</span></tt> では指定できません。</p>
         
     | 
| 
       458 
458 
     | 
    
         
             
            <p>重みは検索対象カラムの相対的な重要度です。重みの大きい検索対象カラムでマッチした場合は小さい検索対象カラムでマッチした場合よりも多くのヒットスコアがつきます。デフォルトの重みは1です。</p>
         
     | 
| 
       459 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 459 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">match_columns</span></tt> の使用例です。</p>
         
     | 
| 
       460 
460 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       461 
461 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --output_columns '_key, _score'
         
     | 
| 
       462 
462 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -493,9 +493,9 @@ load --table Entries 
     | 
|
| 
       493 
493 
     | 
    
         
             
            # ]
         
     | 
| 
       494 
494 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       495 
495 
     | 
    
         
             
            </div>
         
     | 
| 
       496 
     | 
    
         
            -
            <p>< 
     | 
| 
       497 
     | 
    
         
            -
            <p>< 
     | 
| 
       498 
     | 
    
         
            -
            <p>重みを指定するためには < 
     | 
| 
      
 496 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">content</span></tt> はデフォルトの全文検索対象カラムに <tt class="docutils literal"><span class="pre">content</span></tt> カラムを使用し、その重みは1、という意味になります。 <tt class="docutils literal"><span class="pre">--output_columns</span> <span class="pre">'_key,</span> <span class="pre">_score'</span></tt> はこの <tt class="docutils literal"><span class="pre">select</span></tt> コマンドがマッチしたレコードの <tt class="docutils literal"><span class="pre">_key</span></tt> の値と <tt class="docutils literal"><span class="pre">_score</span></tt> の値を出力する、ということを指定しています。</p>
         
     | 
| 
      
 497 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">_score</span></tt> の値に注目してください。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値は <tt class="docutils literal"><span class="pre">query</span></tt> 引数の値に何個マッチしたかになっています。この例では、 <tt class="docutils literal"><span class="pre">query</span></tt> 引数の値は <tt class="docutils literal"><span class="pre">fast</span></tt> です。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値が1ということは <tt class="docutils literal"><span class="pre">content</span></tt> カラムの中に <tt class="docutils literal"><span class="pre">fast</span></tt> が1つだけあるということです。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値が2ということは <tt class="docutils literal"><span class="pre">content</span></tt> カラムの中に <tt class="docutils literal"><span class="pre">fast</span></tt> が2つあるということです。</p>
         
     | 
| 
      
 498 
     | 
    
         
            +
            <p>重みを指定するためには <tt class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">weight</span></tt> という構文を使います。以下は重みの使用例です。</p>
         
     | 
| 
       499 
499 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       500 
500 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
         
     | 
| 
       501 
501 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -532,10 +532,10 @@ load --table Entries 
     | 
|
| 
       532 
532 
     | 
    
         
             
            # ]
         
     | 
| 
       533 
533 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       534 
534 
     | 
    
         
             
            </div>
         
     | 
| 
       535 
     | 
    
         
            -
            <p>< 
     | 
| 
       536 
     | 
    
         
            -
            <p>< 
     | 
| 
       537 
     | 
    
         
            -
            <p>デフォルトの全文検索対象カラムとして複数のカラムを指定することができます。複数のカラムを指定した場合はすべてのカラムに対して全文検索が行われ、ヒットスコアが積算されます。つまり、 < 
     | 
| 
       538 
     | 
    
         
            -
            <p>複数のカラムを指定するには < 
     | 
| 
      
 535 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'content</span> <span class="pre">*</span> <span class="pre">2'</span></tt> はデフォルトの全文検索用カラムとして <tt class="docutils literal"><span class="pre">content</span></tt> カラムを使い、その重みは2という意味です。</p>
         
     | 
| 
      
 536 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">_score</span></tt> の値に注目してください。 <tt class="docutils literal"><span class="pre">_score</span></tt> の値が2倍になっています。これは重みを2にしたからです。</p>
         
     | 
| 
      
 537 
     | 
    
         
            +
            <p>デフォルトの全文検索対象カラムとして複数のカラムを指定することができます。複数のカラムを指定した場合はすべてのカラムに対して全文検索が行われ、ヒットスコアが積算されます。つまり、 <tt class="docutils literal"><span class="pre">query</span></tt> 引数の値がどれか1つでも全文検索対象カラムにマッチしたら、そのレコードはマッチしたものとして扱われます。</p>
         
     | 
| 
      
 538 
     | 
    
         
            +
            <p>複数のカラムを指定するには <tt 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></tt> という構文を使います。 <tt class="docutils literal"><span class="pre">*</span> <span class="pre">weight</span></tt> は省略することができます。省略した場合は重みが1になります。以下は複数カラムの使用例です。</p>
         
     | 
| 
       539 
539 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       540 
540 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns '_key * 10 || content' --query groonga --output_columns '_key, _score'
         
     | 
| 
       541 
541 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -568,11 +568,11 @@ load --table Entries 
     | 
|
| 
       568 
568 
     | 
    
         
             
            # ]
         
     | 
| 
       569 
569 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       570 
570 
     | 
    
         
             
            </div>
         
     | 
| 
       571 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 571 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'_key</span> <span class="pre">*</span> <span class="pre">10</span> <span class="pre">||</span> <span class="pre">content'</span></tt> はデフォルト検索対象カラムが <tt class="docutils literal"><span class="pre">_key</span></tt> カラムと <tt class="docutils literal"><span class="pre">content</span></tt> カラムで、 <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの重みは10、 <tt class="docutils literal"><span class="pre">content</span></tt> カラムの重みは1という意味です。この重み付けは <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値は <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値よりも重要だという意味になります。この例では、ブログエントリのタイトルはブログエントリの内容よりも重要だということです。</p>
         
     | 
| 
       572 
572 
     | 
    
         
             
            </div>
         
     | 
| 
       573 
573 
     | 
    
         
             
            <div class="section" id="query">
         
     | 
| 
       574 
     | 
    
         
            -
            <span id="select-query"></span><h4>7.3. 
     | 
| 
       575 
     | 
    
         
            -
            <p>クエリーテキストを指定します。通常、全文検索をするために < 
     | 
| 
      
 574 
     | 
    
         
            +
            <span id="select-query"></span><h4>7.3.29.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt><a class="headerlink" href="#query" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 575 
     | 
    
         
            +
            <p>クエリーテキストを指定します。通常、全文検索をするために <tt class="docutils literal"><span class="pre">match_columns</span></tt> 引数と一緒に使います。 <tt class="docutils literal"><span class="pre">query</span></tt> 引数はWebページにある全文検索フォームで使いやすいように設計されています。クエリーテキストは <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> という書式を使います。この書式はGoogleの検索フォームのように一般的な検索フォームと似ています。例えば、 <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span></tt> は <tt class="docutils literal"><span class="pre">word1</span></tt> と <tt class="docutils literal"><span class="pre">word2</span></tt> を含んでいるレコードを検索するという意味になります。 <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">OR</span> <span class="pre">word2</span></tt> は <tt class="docutils literal"><span class="pre">word1</span></tt> または <tt class="docutils literal"><span class="pre">word2</span></tt> を含んでいるレコードを検索するという意味になります。</p>
         
     | 
| 
       576 
576 
     | 
    
         
             
            <p>以下は論理積を使った検索の簡単な例です。</p>
         
     | 
| 
       577 
577 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       578 
578 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "fast groonga"
         
     | 
| 
         @@ -616,7 +616,7 @@ load --table Entries 
     | 
|
| 
       616 
616 
     | 
    
         
             
            # ]
         
     | 
| 
       617 
617 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       618 
618 
     | 
    
         
             
            </div>
         
     | 
| 
       619 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 619 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> と <tt class="docutils literal"><span class="pre">groonga</span></tt> の2つの単語を含んでいるレコードを検索します。</p>
         
     | 
| 
       620 
620 
     | 
    
         
             
            <p>以下は論理和を使った検索の簡単な例です。</p>
         
     | 
| 
       621 
621 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       622 
622 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "groonga OR mroonga"
         
     | 
| 
         @@ -666,9 +666,9 @@ load --table Entries 
     | 
|
| 
       666 
666 
     | 
    
         
             
            # ]
         
     | 
| 
       667 
667 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       668 
668 
     | 
    
         
             
            </div>
         
     | 
| 
       669 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 669 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">fast</span></tt> または <tt class="docutils literal"><span class="pre">groonga</span></tt> のどちらかの単語を含んでいるレコードを検索します。</p>
         
     | 
| 
       670 
670 
     | 
    
         
             
            <p>他の構文は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
         
     | 
| 
       671 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 671 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> では全文検索だけではなく他の条件も使えます。例えば、 <tt class="docutils literal"><span class="pre">column:value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> と等しいという意味です。 <tt class="docutils literal"><span class="pre">column:<value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> の値が <tt class="docutils literal"><span class="pre">value</span></tt> より小さいという意味です。</p>
         
     | 
| 
       672 
672 
     | 
    
         
             
            <p>以下は等価演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       673 
673 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       674 
674 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:Groonga
         
     | 
| 
         @@ -712,7 +712,7 @@ load --table Entries 
     | 
|
| 
       712 
712 
     | 
    
         
             
            # ]
         
     | 
| 
       713 
713 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       714 
714 
     | 
    
         
             
            </div>
         
     | 
| 
       715 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 715 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> であるレコードを検索します。</p>
         
     | 
| 
       716 
716 
     | 
    
         
             
            <p>以下は比較演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       717 
717 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       718 
718 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<11
         
     | 
| 
         @@ -774,13 +774,13 @@ load --table Entries 
     | 
|
| 
       774 
774 
     | 
    
         
             
            # ]
         
     | 
| 
       775 
775 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       776 
776 
     | 
    
         
             
            </div>
         
     | 
| 
       777 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 777 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">11</span></tt> より小さいレコードを検索します。</p>
         
     | 
| 
       778 
778 
     | 
    
         
             
            <p>他の演算子は <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を参照してください。</p>
         
     | 
| 
       779 
779 
     | 
    
         
             
            </div>
         
     | 
| 
       780 
780 
     | 
    
         
             
            <div class="section" id="filter">
         
     | 
| 
       781 
     | 
    
         
            -
            <span id="select-filter"></span><h4>7.3. 
     | 
| 
       782 
     | 
    
         
            -
            <p>フィルターテキストを指定します。通常、 < 
     | 
| 
       783 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 781 
     | 
    
         
            +
            <span id="select-filter"></span><h4>7.3.29.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt><a class="headerlink" href="#filter" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 782 
     | 
    
         
            +
            <p>フィルターテキストを指定します。通常、 <tt class="docutils literal"><span class="pre">filter</span></tt> は複雑な条件を指定するために使います。 <tt class="docutils literal"><span class="pre">filter</span></tt> は <tt class="docutils literal"><span class="pre">query</span></tt> 引数と一緒に使うこともできます。 <tt class="docutils literal"><span class="pre">filter</span></tt> と <tt class="docutils literal"><span class="pre">query</span></tt> を両方指定した場合はそれらを論理積で組み合わせます。つまり、マッチするレコードは <tt class="docutils literal"><span class="pre">filter</span></tt> にも <tt class="docutils literal"><span class="pre">query</span></tt> にもマッチしなければいけないということです。</p>
         
     | 
| 
      
 783 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">filter</span></tt> 引数は複雑な条件用に設計されています。フィルターテキストは <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> 書式で指定します。この書式はECMAScriptに似ています。例えば、 <tt class="docutils literal"><span class="pre">column</span> <span class="pre">==</span> <span class="pre">"value"</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">"value"</span></tt> と等しいという意味です。 <tt class="docutils literal"><span class="pre">column</span> <span class="pre"><</span> <span class="pre">value</span></tt> は <tt class="docutils literal"><span class="pre">column</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">value</span></tt> よりも小さいという意味です。</p>
         
     | 
| 
       784 
784 
     | 
    
         
             
            <p>以下は等価演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       785 
785 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       786 
786 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter '_key == "Groonga"'
         
     | 
| 
         @@ -824,7 +824,7 @@ load --table Entries 
     | 
|
| 
       824 
824 
     | 
    
         
             
            # ]
         
     | 
| 
       825 
825 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       826 
826 
     | 
    
         
             
            </div>
         
     | 
| 
       827 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 827 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> であるレコードを検索します。</p>
         
     | 
| 
       828 
828 
     | 
    
         
             
            <p>以下は比較演算子を使った検索の簡単な例です。</p>
         
     | 
| 
       829 
829 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       830 
830 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 11'
         
     | 
| 
         @@ -886,28 +886,28 @@ load --table Entries 
     | 
|
| 
       886 
886 
     | 
    
         
             
            # ]
         
     | 
| 
       887 
887 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       888 
888 
     | 
    
         
             
            </div>
         
     | 
| 
       889 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 889 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">11</span></tt> より小さいレコードを検索します。</p>
         
     | 
| 
       890 
890 
     | 
    
         
             
            <p>他の演算子は <a class="reference internal" href="../grn_expr/script_syntax.html"><em>スクリプト構文</em></a> を参照してください。</p>
         
     | 
| 
       891 
891 
     | 
    
         
             
            </div>
         
     | 
| 
       892 
892 
     | 
    
         
             
            </div>
         
     | 
| 
       893 
893 
     | 
    
         
             
            <div class="section" id="advanced-search-parameters">
         
     | 
| 
       894 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 894 
     | 
    
         
            +
            <h3>7.3.29.4.3. 高度な検索のための引数<a class="headerlink" href="#advanced-search-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       895 
895 
     | 
    
         
             
            <div class="section" id="match-escalation-threshold">
         
     | 
| 
       896 
     | 
    
         
            -
            <span id="id1"></span><h4>7.3. 
     | 
| 
      
 896 
     | 
    
         
            +
            <span id="id1"></span><h4>7.3.29.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt><a class="headerlink" href="#match-escalation-threshold" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       897 
897 
     | 
    
         
             
            <p>検索方法をエスカレーションするかどうかを決定するための閾値を指定します。この閾値はマッチしたレコード数との比較に使われます。マッチしたレコード数がこの閾値以下の場合は検索方法をエスカレーションします。検索方法のエスカレーションについては <a class="reference internal" href="../../spec/search.html"><em>検索</em></a> を参照してください。</p>
         
     | 
| 
       898 
898 
     | 
    
         
             
            <p>デフォルトの閾値は0です。これは1つもレコードがマッチしなかったときだけ検索方法をエスカレーションするということです。</p>
         
     | 
| 
       899 
899 
     | 
    
         
             
            <p>デフォルトの閾値は以下の方法でカスタマイズできます。</p>
         
     | 
| 
       900 
900 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       901 
901 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       902 
     | 
    
         
            -
            <li><p class="first">configureの < 
     | 
| 
      
 902 
     | 
    
         
            +
            <li><p class="first">configureの <tt class="docutils literal"><span class="pre">--with-match-escalation-threshold</span></tt> オプション</p>
         
     | 
| 
       903 
903 
     | 
    
         
             
            </li>
         
     | 
| 
       904 
     | 
    
         
            -
            <li><p class="first">groongaコマンドの < 
     | 
| 
      
 904 
     | 
    
         
            +
            <li><p class="first">groongaコマンドの <tt class="docutils literal"><span class="pre">--match-escalation-threshold</span></tt> オプション</p>
         
     | 
| 
       905 
905 
     | 
    
         
             
            </li>
         
     | 
| 
       906 
     | 
    
         
            -
            <li><p class="first">設定ファイルの < 
     | 
| 
      
 906 
     | 
    
         
            +
            <li><p class="first">設定ファイルの <tt class="docutils literal"><span class="pre">match-escalation-threshold</span></tt> 設定項目</p>
         
     | 
| 
       907 
907 
     | 
    
         
             
            </li>
         
     | 
| 
       908 
908 
     | 
    
         
             
            </ul>
         
     | 
| 
       909 
909 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       910 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 910 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> の使用例です。最初の <tt class="docutils literal"><span class="pre">select</span></tt> は <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> 引数がありません。2番目の <tt class="docutils literal"><span class="pre">select</span></tt> は <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> 引数があります。</p>
         
     | 
| 
       911 
911 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       912 
912 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query groo
         
     | 
| 
       913 
913 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -983,32 +983,32 @@ select Entries --match_columns content --query groo --match_escalation_threshold 
     | 
|
| 
       983 
983 
     | 
    
         
             
            # ]
         
     | 
| 
       984 
984 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       985 
985 
     | 
    
         
             
            </div>
         
     | 
| 
       986 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       987 
     | 
    
         
            -
            <p>2番目の < 
     | 
| 
      
 986 
     | 
    
         
            +
            <p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルから <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groo</span></tt> という単語を含むレコードを検索します。しかし、この検索ではどのレコードにもマッチしません。これは、 <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> トークナイザーは <tt class="docutils literal"><span class="pre">groonga</span></tt> を <tt class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></tt> ではなく <tt class="docutils literal"><span class="pre">groonga</span></tt> にトークナイズするからです。( <tt class="docutils literal"><span class="pre">TokenBigramSplitSymbolAlpha</span></tt> は <tt class="docutils literal"><span class="pre">groonga</span></tt> を <tt class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></tt> にトークナイズします。詳細は <a class="reference internal" href="../tokenizers.html"><em>Tokenizers</em></a> を見てください。)つまり、 <tt class="docutils literal"><span class="pre">groonga</span></tt> はインデックスに登録されていますが、 <tt class="docutils literal"><span class="pre">groo</span></tt> はインデックスに登録されていないということです。インデックスに登録されていないので完全一致検索では <tt class="docutils literal"><span class="pre">groo</span></tt> はどのレコードにもマッチしません。このケースでは検索方法のエスカレーションが行われています。なぜならばマッチしたレコード数(0)が <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (0)の値と等しいからです。非分かち書き検索では <tt class="docutils literal"><span class="pre">groo</span></tt> で1つのレコードがマッチします。</p>
         
     | 
| 
      
 987 
     | 
    
         
            +
            <p>2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドも <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルから <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">groo</span></tt> という単語を含むレコードを検索します。そして、この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドもマッチしません。この場合、マッチしたレコード数(0)が <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt> (-1)より大きいので、検索方法をエスカレーションしません。そして、1つもレコードがマッチしません。</p>
         
     | 
| 
       988 
988 
     | 
    
         
             
            </div>
         
     | 
| 
       989 
989 
     | 
    
         
             
            <div class="section" id="query-expansion">
         
     | 
| 
       990 
     | 
    
         
            -
            <span id="id2"></span><h4>7.3. 
     | 
| 
      
 990 
     | 
    
         
            +
            <span id="id2"></span><h4>7.3.29.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt><a class="headerlink" href="#query-expansion" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       991 
991 
     | 
    
         
             
            <p>Deprecated. Use <a class="reference internal" href="#query-expander"><em>query_expander</em></a> instead.</p>
         
     | 
| 
       992 
992 
     | 
    
         
             
            </div>
         
     | 
| 
       993 
993 
     | 
    
         
             
            <div class="section" id="query-flags">
         
     | 
| 
       994 
     | 
    
         
            -
            <span id="id3"></span><h4>7.3. 
     | 
| 
       995 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 994 
     | 
    
         
            +
            <span id="id3"></span><h4>7.3.29.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt><a class="headerlink" href="#query-flags" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 995 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> パラメーターの構文をカスタマイズします。デフォルトでは <tt class="docutils literal"><span class="pre">query</span></tt> パラメーターでカラムの値を更新することはできません。しかし、 <tt class="docutils literal"><span class="pre">query_flags</span></tt> に <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> を指定することで <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新することができます。</p>
         
     | 
| 
       996 
996 
     | 
    
         
             
            <p>指定可能な値は以下の通りです。</p>
         
     | 
| 
       997 
997 
     | 
    
         
             
            <ul class="simple">
         
     | 
| 
       998 
     | 
    
         
            -
            <li>< 
     | 
| 
       999 
     | 
    
         
            -
            <li>< 
     | 
| 
       1000 
     | 
    
         
            -
            <li>< 
     | 
| 
       1001 
     | 
    
         
            -
            <li>< 
     | 
| 
       1002 
     | 
    
         
            -
            <li>< 
     | 
| 
      
 998 
     | 
    
         
            +
            <li><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt></li>
         
     | 
| 
      
 999 
     | 
    
         
            +
            <li><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt></li>
         
     | 
| 
      
 1000 
     | 
    
         
            +
            <li><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt></li>
         
     | 
| 
      
 1001 
     | 
    
         
            +
            <li><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt></li>
         
     | 
| 
      
 1002 
     | 
    
         
            +
            <li><tt class="docutils literal"><span class="pre">NONE</span></tt></li>
         
     | 
| 
       1003 
1003 
     | 
    
         
             
            </ul>
         
     | 
| 
       1004 
     | 
    
         
            -
            <p>< 
     | 
| 
       1005 
     | 
    
         
            -
            <p>< 
     | 
| 
       1006 
     | 
    
         
            -
            <p>< 
     | 
| 
       1007 
     | 
    
         
            -
            <p>< 
     | 
| 
       1008 
     | 
    
         
            -
            <p>< 
     | 
| 
       1009 
     | 
    
         
            -
            <p>これらのフラグは < 
     | 
| 
       1010 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
       1011 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1004 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></tt> を指定すると <tt class="docutils literal"><span class="pre">query</span></tt> の先頭でプラグマを指定することができます。この機能はまだ実装されていません。</p>
         
     | 
| 
      
 1005 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> を指定すると <tt class="docutils literal"><span class="pre">match_columns</span></tt> で指定していないカラムでも検索できるように成ります。カラムを指定するには <tt class="docutils literal"><span class="pre">COLUMN:...</span></tt> というような構文を使います。</p>
         
     | 
| 
      
 1006 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> を指定すると <tt class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></tt> という構文を使って <tt class="docutils literal"><span class="pre">query</span></tt> でカラムの値を更新できます。カラム更新用の構文ではカラムを指定する必要があるため、 <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> も一緒に指定する必要があります。</p>
         
     | 
| 
      
 1007 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> を指定すると <tt class="docutils literal"><span class="pre">-WORD</span></tt> という構文を使って最初の条件として否定条件を指定できます。このクエリーは <tt class="docutils literal"><span class="pre">WORD</span></tt> にマッチしないレコードを検索します。最初の条件に否定条件を使ったクエリーは多くの場合重いクエリーになります。これは多くのレコードにマッチするからです。そのため、このフラグはデフォルトでは無効になっています。もし、このフラグを使う場合は重いクエリーとなるということを十分気をつけてください。</p>
         
     | 
| 
      
 1008 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">NONE</span></tt> は単に無視されます。フラグを指定しないときに <tt class="docutils literal"><span class="pre">NONE</span></tt> を使えます。</p>
         
     | 
| 
      
 1009 
     | 
    
         
            +
            <p>これらのフラグは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></tt> のように <tt class="docutils literal"><span class="pre">|</span></tt> で区切って同時に指定することができます。</p>
         
     | 
| 
      
 1010 
     | 
    
         
            +
            <p>デフォルト値は <tt class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></tt> です。</p>
         
     | 
| 
      
 1011 
     | 
    
         
            +
            <p>以下は <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> の使用例です。</p>
         
     | 
| 
       1012 
1012 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1013 
1013 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
         
     | 
| 
       1014 
1014 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1051,8 +1051,8 @@ select Entries --match_columns content --query groo --match_escalation_threshold 
     | 
|
| 
       1051 
1051 
     | 
    
         
             
            # ]
         
     | 
| 
       1052 
1052 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1053 
1053 
     | 
    
         
             
            </div>
         
     | 
| 
       1054 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1055 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1054 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> を含んでいるレコードを検索します。</p>
         
     | 
| 
      
 1055 
     | 
    
         
            +
            <p>以下は <tt class="docutils literal"><span class="pre">ALLOW_UPDATE</span></tt> の使用例です。</p>
         
     | 
| 
       1056 
1056 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1057 
1057 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
         
     | 
| 
       1058 
1058 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -1144,8 +1144,8 @@ select Users 
     | 
|
| 
       1144 
1144 
     | 
    
         
             
            # ]
         
     | 
| 
       1145 
1145 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1146 
1146 
     | 
    
         
             
            </div>
         
     | 
| 
       1147 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       1148 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1147 
     | 
    
         
            +
            <p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは全てのレコードの <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を <tt class="docutils literal"><span class="pre">19</span></tt> にします。二番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">age</span></tt> カラムの値を出力します。</p>
         
     | 
| 
      
 1148 
     | 
    
         
            +
            <p>以下は <tt class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></tt> の使用例です。</p>
         
     | 
| 
       1149 
1149 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1150 
1150 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
         
     | 
| 
       1151 
1151 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1206,8 +1206,8 @@ select Users 
     | 
|
| 
       1206 
1206 
     | 
    
         
             
            # ]
         
     | 
| 
       1207 
1207 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1208 
1208 
     | 
    
         
             
            </div>
         
     | 
| 
       1209 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1210 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1209 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> を含んでいないレコードを検索します。</p>
         
     | 
| 
      
 1210 
     | 
    
         
            +
            <p>以下は <tt class="docutils literal"><span class="pre">NONE</span></tt> の使用例です。</p>
         
     | 
| 
       1211 
1211 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1212 
1212 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE
         
     | 
| 
       1213 
1213 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1250,17 +1250,17 @@ select Users 
     | 
|
| 
       1250 
1250 
     | 
    
         
             
            # ]
         
     | 
| 
       1251 
1251 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1252 
1252 
     | 
    
         
             
            </div>
         
     | 
| 
       1253 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1253 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">content</span></tt> カラムの値に <tt class="docutils literal"><span class="pre">mroonga</span></tt> または <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> のどちらかの単語を含んでいるレコードを検索します。 <tt class="docutils literal"><span class="pre">_key:Groonga</span></tt> が <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">Groonga</span></tt> という条件にはならないことに注意してください。これは <tt class="docutils literal"><span class="pre">ALLOW_COLUMN</span></tt> フラグが指定されていないからです。</p>
         
     | 
| 
       1254 
1254 
     | 
    
         
             
            <p><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> も見てください。</p>
         
     | 
| 
       1255 
1255 
     | 
    
         
             
            </div>
         
     | 
| 
       1256 
1256 
     | 
    
         
             
            <div class="section" id="query-expander">
         
     | 
| 
       1257 
     | 
    
         
            -
            <span id="id4"></span><h4>7.3. 
     | 
| 
      
 1257 
     | 
    
         
            +
            <span id="id4"></span><h4>7.3.29.4.3.4. <tt class="docutils literal"><span class="pre">query_expander</span></tt><a class="headerlink" href="#query-expander" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1258 
1258 
     | 
    
         
             
            <p>クエリー展開用の引数です。クエリー展開はクエリー中の特定の単語を別の単語に置換します。通常は類義語検索に使います。</p>
         
     | 
| 
       1259 
     | 
    
         
            -
            <p>< 
     | 
| 
       1260 
     | 
    
         
            -
            <p>クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは < 
     | 
| 
       1261 
     | 
    
         
            -
            <p>クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は < 
     | 
| 
       1262 
     | 
    
         
            -
            <p>クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 < 
     | 
| 
       1263 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1259 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> 引数の値を置換するために使うカラムを指定します。この引数の値の書式は「 <tt class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></tt> 」です。例えば、 「 <tt class="docutils literal"><span class="pre">Terms.synonym</span></tt> 」は <tt class="docutils literal"><span class="pre">Terms</span></tt> テーブルの <tt class="docutils literal"><span class="pre">synonym</span></tt> カラムを指定しています。</p>
         
     | 
| 
      
 1260 
     | 
    
         
            +
            <p>クエリー展開用のテーブルを「置換テーブル」と呼びます。置換テーブルのキーは <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。そのため、配列テーブル( <tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt> )は置換テーブルに使うことはできません。なぜなら、配列テーブルにはキーがないからです。</p>
         
     | 
| 
      
 1261 
     | 
    
         
            +
            <p>クエリー展開用のカラムを「置換カラム」と呼びます。置換カラムの値の型は <tt class="docutils literal"><span class="pre">ShortText</span></tt> にしてください。カラムの種類はベクター( <tt class="docutils literal"><span class="pre">COLUMN_VECTOR</span></tt> )にしてください。</p>
         
     | 
| 
      
 1262 
     | 
    
         
            +
            <p>クエリー展開はクエリーの中にある置換テーブルのキーを置換カラムの値で置換します。 <tt class="docutils literal"><span class="pre">query</span></tt> の中にある単語が置換テーブルのキーだったら、キーに対応する置換カラムの値でその単語を置換します。置換は再帰的に実行しません。これは、置換されたクエリー内に置換対象の単語があっても置換されないということです。</p>
         
     | 
| 
      
 1263 
     | 
    
         
            +
            <p>以下は <tt class="docutils literal"><span class="pre">query_expander</span></tt> の簡単な使用例を示すためのサンプル置換テーブルです。</p>
         
     | 
| 
       1264 
1264 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1265 
1265 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
         
     | 
| 
       1266 
1266 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], true]
         
     | 
| 
         @@ -1274,9 +1274,9 @@ load --table Thesaurus 
     | 
|
| 
       1274 
1274 
     | 
    
         
             
            # [[0, 1337566253.89858, 0.000355720520019531], 2]
         
     | 
| 
       1275 
1275 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1276 
1276 
     | 
    
         
             
            </div>
         
     | 
| 
       1277 
     | 
    
         
            -
            <p>< 
     | 
| 
       1278 
     | 
    
         
            -
            <p>これらの類義語の値の中に < 
     | 
| 
       1279 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1277 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">Thesaurus</span></tt> 置換テーブルは2つの類義語があります。 <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> と <tt class="docutils literal"><span class="pre">"groonga"</span></tt> です。ユーザが <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> で検索すると、groongaは <tt class="docutils literal"><span class="pre">"((mroonga)</span> <span class="pre">OR</span> <span class="pre">(tritonn)</span> <span class="pre">OR</span> <span class="pre">(groonga</span> <span class="pre">mysql))"</span></tt> で検索します。ユーザーが <tt class="docutils literal"><span class="pre">"groonga"</span></tt> で検索すると、groongaは <tt class="docutils literal"><span class="pre">"((groonga)</span> <span class="pre">OR</span> <span class="pre">(senna))"</span></tt> で検索します。通常、置換テーブルには <tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt> フラグをつけた方がよいです。このフラグを使うと、置換対象の単語が大文字小文字区別せずにマッチするようになります。</p>
         
     | 
| 
      
 1278 
     | 
    
         
            +
            <p>これらの類義語の値の中に <tt class="docutils literal"><span class="pre">"mroonga"</span></tt> や <tt class="docutils literal"><span class="pre">"groonga"</span></tt> といったキーの値も含まれていることに注意してください。このように類義語にキーの値も含めることを推奨します。もしキーの値を含めないと、置換した値には元の置換対象の値が含まれません。通常、元の値が含まれていた方がよい検索結果になります。もし、検索してほしくない単語がある場合は、元の単語を含めないでください。例えば、空のベクター値を指定することで「ストップワード」機能を実現することもできます。</p>
         
     | 
| 
      
 1279 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">query_expander</span></tt> の使用例です。</p>
         
     | 
| 
       1280 
1280 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1281 
1281 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "mroonga"
         
     | 
| 
       1282 
1282 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1409,8 +1409,8 @@ select Entries --match_columns content --query "((mroonga) OR (tritonn) OR 
     | 
|
| 
       1409 
1409 
     | 
    
         
             
            # ]
         
     | 
| 
       1410 
1410 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1411 
1411 
     | 
    
         
             
            </div>
         
     | 
| 
       1412 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       1413 
     | 
    
         
            -
            <p>それぞれの置換する値は < 
     | 
| 
      
 1412 
     | 
    
         
            +
            <p>最初の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリー展開を使いません。そのため、 <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> という単語を含んでいるレコードは見つかりません。2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリー展開を使っています。そのため、 <tt class="docutils literal"><span class="pre">"tritonn"</span></tt> という単語を含んでいるレコードが見つかります。3番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはクエリー展開を使っていませんが、2番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドと同じ結果になります。これは、3番目の <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは展開後のクエリーを使っているからです。</p>
         
     | 
| 
      
 1413 
     | 
    
         
            +
            <p>それぞれの置換する値は <tt class="docutils literal"><span class="pre">(...)</span></tt> や <tt class="docutils literal"><span class="pre">OR</span></tt> といった <a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a> を使えます。これらの構文を使うことにより複雑な置換をすることができます。</p>
         
     | 
| 
       1414 
1414 
     | 
    
         
             
            <p>以下はクエリー構文を使った複雑な置換の使用例です。</p>
         
     | 
| 
       1415 
1415 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1416 
1416 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>load --table Thesaurus
         
     | 
| 
         @@ -1465,16 +1465,16 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1465 
1465 
     | 
    
         
             
            # ]
         
     | 
| 
       1466 
1466 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1467 
1467 
     | 
    
         
             
            </div>
         
     | 
| 
       1468 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1469 
     | 
    
         
            -
            <p>この < 
     | 
| 
      
 1468 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">load</span></tt> コマンドは新しく <tt class="docutils literal"><span class="pre">"popular"</span></tt> という類義語を登録しています。これは <tt class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:>=10))</span></tt> に置換されます。置換されたクエリーは、「popular」というのは「popular」という単語を含んでいるか10以上の「いいね!」数を持つエントリという意味になります。</p>
         
     | 
| 
      
 1469 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">Entries</span></tt> テーブルの中から <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値が <tt class="docutils literal"><span class="pre">10</span></tt> 以上のレコードを出力します。</p>
         
     | 
| 
       1470 
1470 
     | 
    
         
             
            </div>
         
     | 
| 
       1471 
1471 
     | 
    
         
             
            </div>
         
     | 
| 
       1472 
1472 
     | 
    
         
             
            <div class="section" id="output-related-parameters">
         
     | 
| 
       1473 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 1473 
     | 
    
         
            +
            <h3>7.3.29.4.4. 出力関連の引数<a class="headerlink" href="#output-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       1474 
1474 
     | 
    
         
             
            <div class="section" id="output-columns">
         
     | 
| 
       1475 
     | 
    
         
            -
            <span id="id5"></span><h4>7.3. 
     | 
| 
       1476 
     | 
    
         
            -
            <p>出力するカラムを < 
     | 
| 
       1477 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1475 
     | 
    
         
            +
            <span id="id5"></span><h4>7.3.29.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt><a class="headerlink" href="#output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1476 
     | 
    
         
            +
            <p>出力するカラムを <tt class="docutils literal"><span class="pre">,</span></tt> 区切りで指定します。</p>
         
     | 
| 
      
 1477 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">output_columns</span></tt> の使用例です。</p>
         
     | 
| 
       1478 
1478 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1479 
1479 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_id, _key' --limit 1
         
     | 
| 
       1480 
1480 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1507,10 +1507,10 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1507 
1507 
     | 
    
         
             
            # ]
         
     | 
| 
       1508 
1508 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1509 
1509 
     | 
    
         
             
            </div>
         
     | 
| 
       1510 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1511 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 1510 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">_id</span></tt> と <tt class="docutils literal"><span class="pre">_key</span></tt> カラムの値だけを出力します。</p>
         
     | 
| 
      
 1511 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">*</span></tt> is a special value. It means that all columns that are not
         
     | 
| 
       1512 
1512 
     | 
    
         
             
            <a class="reference internal" href="../columns/pseudo.html"><em>疑似カラム (pseudo_column)</em></a>.</p>
         
     | 
| 
       1513 
     | 
    
         
            -
            <p>以下は < 
     | 
| 
      
 1513 
     | 
    
         
            +
            <p>以下は <tt class="docutils literal"><span class="pre">*</span></tt> の使用例です。</p>
         
     | 
| 
       1514 
1514 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1515 
1515 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_key, *' --limit 1
         
     | 
| 
       1516 
1516 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1548,13 +1548,13 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1548 
1548 
     | 
    
         
             
            # ]
         
     | 
| 
       1549 
1549 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1550 
1550 
     | 
    
         
             
            </div>
         
     | 
| 
       1551 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1552 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
      
 1551 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">_key</span></tt> 擬似カラム、 <tt class="docutils literal"><span class="pre">content</span></tt> カラム、 <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値を出力しますが、 <tt class="docutils literal"><span class="pre">_id</span></tt> 擬似カラムの値は出力しません。</p>
         
     | 
| 
      
 1552 
     | 
    
         
            +
            <p>デフォルト値は <tt class="docutils literal"><span class="pre">_id,</span> <span class="pre">_key,</span> <span class="pre">*</span></tt> です。これは <tt class="docutils literal"><span class="pre">_score</span></tt> 以外の全てのカラムを出力するという意味です。</p>
         
     | 
| 
       1553 
1553 
     | 
    
         
             
            </div>
         
     | 
| 
       1554 
1554 
     | 
    
         
             
            <div class="section" id="sortby">
         
     | 
| 
       1555 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       1556 
     | 
    
         
            -
            <p>ソートキーを < 
     | 
| 
       1557 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1555 
     | 
    
         
            +
            <h4>7.3.29.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt><a class="headerlink" href="#sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1556 
     | 
    
         
            +
            <p>ソートキーを <tt class="docutils literal"><span class="pre">,</span></tt> 区切りで指定します。それぞれのソートキーはカラム名を指定します。</p>
         
     | 
| 
      
 1557 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">sortby</span></tt> の使用例です。</p>
         
     | 
| 
       1558 
1558 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1559 
1559 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby 'n_likes, _id'
         
     | 
| 
       1560 
1560 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1621,9 +1621,9 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1621 
1621 
     | 
    
         
             
            # ]
         
     | 
| 
       1622 
1622 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1623 
1623 
     | 
    
         
             
            </div>
         
     | 
| 
       1624 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1625 
     | 
    
         
            -
            <p>降順でソートしたい場合はカラム名の前に < 
     | 
| 
       1626 
     | 
    
         
            -
            <p>以下は降順の < 
     | 
| 
      
 1624 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値で昇順にソートします。 <tt class="docutils literal"><span class="pre">n_likes</span></tt> の値が同じレコードについては <tt class="docutils literal"><span class="pre">_id</span></tt> カラムの値で昇順にソートします。 <tt class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Senna"</span></tt> と <tt class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Tritonn"</span></tt> が <tt class="docutils literal"><span class="pre">_id</span></tt> カラムの値でソートしているケースです。</p>
         
     | 
| 
      
 1625 
     | 
    
         
            +
            <p>降順でソートしたい場合はカラム名の前に <tt class="docutils literal"><span class="pre">-</span></tt> をつけてください。</p>
         
     | 
| 
      
 1626 
     | 
    
         
            +
            <p>以下は降順の <tt class="docutils literal"><span class="pre">sortby</span></tt> の使用例です。</p>
         
     | 
| 
       1627 
1627 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1628 
1628 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby '-n_likes, _id'
         
     | 
| 
       1629 
1629 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1690,8 +1690,8 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1690 
1690 
     | 
    
         
             
            # ]
         
     | 
| 
       1691 
1691 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1692 
1692 
     | 
    
         
             
            </div>
         
     | 
| 
       1693 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1694 
     | 
    
         
            -
            <p>もし、 < 
     | 
| 
      
 1693 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは <tt class="docutils literal"><span class="pre">n_likes</span></tt> カラムの値で降順にソートします。しかし、 <tt class="docutils literal"><span class="pre">_id</span></tt> でソートするときは昇順でソートします。</p>
         
     | 
| 
      
 1694 
     | 
    
         
            +
            <p>もし、 <tt class="docutils literal"><span class="pre">query</span></tt> または <tt class="docutils literal"><span class="pre">filter</span></tt> 引数を使っているときは、 <tt class="docutils literal"><span class="pre">sortby</span></tt> の中で <tt class="docutils literal"><span class="pre">_score</span></tt> 擬似カラムを使うことができます。</p>
         
     | 
| 
       1695 
1695 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1696 
1696 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --sortby -_score --output_columns '_key, _score'
         
     | 
| 
       1697 
1697 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1728,12 +1728,12 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1728 
1728 
     | 
    
         
             
            # ]
         
     | 
| 
       1729 
1729 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1730 
1730 
     | 
    
         
             
            </div>
         
     | 
| 
       1731 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1732 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 1731 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはマッチしたレコードをヒットスコアで降順にソートし、レコードのキーとヒットスコアを出力します。</p>
         
     | 
| 
      
 1732 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">query</span></tt> 引数も <tt class="docutils literal"><span class="pre">filter</span></tt> 引数も指定しないで <tt class="docutils literal"><span class="pre">_score</span></tt> を使った場合は、 <tt class="docutils literal"><span class="pre">_score</span></tt> を無視して、ログファイルに警告を出力します。</p>
         
     | 
| 
       1733 
1733 
     | 
    
         
             
            </div>
         
     | 
| 
       1734 
1734 
     | 
    
         
             
            <div class="section" id="offset">
         
     | 
| 
       1735 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       1736 
     | 
    
         
            -
            <p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0基点です。 < 
     | 
| 
      
 1735 
     | 
    
         
            +
            <h4>7.3.29.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt><a class="headerlink" href="#offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1736 
     | 
    
         
            +
            <p>出力するレコードの範囲を決めるためのオフセットを指定します。オフセットは0基点です。 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></tt> は2番目以降のレコードを出力するという意味になります。</p>
         
     | 
| 
       1737 
1737 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1738 
1738 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 3 --output_columns _key
         
     | 
| 
       1739 
1739 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1764,8 +1764,8 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1764 
1764 
     | 
    
         
             
            # ]
         
     | 
| 
       1765 
1765 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1766 
1766 
     | 
    
         
             
            </div>
         
     | 
| 
       1767 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1768 
     | 
    
         
            -
            <p>負の値を指定することもできます。負の値の場合は < 
     | 
| 
      
 1767 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは4番目以降のレコードを出力します。</p>
         
     | 
| 
      
 1768 
     | 
    
         
            +
            <p>負の値を指定することもできます。負の値の場合は <tt class="docutils literal"><span class="pre">マッチしたレコード数</span> <span class="pre">+</span> <span class="pre">offset</span></tt> 番目のレコードから始まる範囲という意味になります。もし、マッチしたレコードが3つあり、 <tt class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></tt> を指定した場合は1番目( <tt 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></tt> ) のレコードから3番目のレコードが出力されます。</p>
         
     | 
| 
       1769 
1769 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1770 
1770 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset -2 --output_columns _key
         
     | 
| 
       1771 
1771 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1796,13 +1796,13 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1796 
1796 
     | 
    
         
             
            # ]
         
     | 
| 
       1797 
1797 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1798 
1798 
     | 
    
         
             
            </div>
         
     | 
| 
       1799 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1800 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
      
 1799 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは4番目以降のレコードを出力します。なぜなら、全レコード数が <tt class="docutils literal"><span class="pre">5</span></tt> だからです。</p>
         
     | 
| 
      
 1800 
     | 
    
         
            +
            <p>デフォルト値は <tt class="docutils literal"><span class="pre">0</span></tt> です。</p>
         
     | 
| 
       1801 
1801 
     | 
    
         
             
            </div>
         
     | 
| 
       1802 
1802 
     | 
    
         
             
            <div class="section" id="limit">
         
     | 
| 
       1803 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
       1804 
     | 
    
         
            -
            <p>< 
     | 
| 
       1805 
     | 
    
         
            -
            <p>以下は簡単な < 
     | 
| 
      
 1803 
     | 
    
         
            +
            <h4>7.3.29.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt><a class="headerlink" href="#limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1804 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">limit</span></tt> は出力レコード数の最大値を指定します。 もし、マッチしたレコード数が <tt class="docutils literal"><span class="pre">limit</span></tt> よりも小さい場合はすべてのレコードが出力されます。</p>
         
     | 
| 
      
 1805 
     | 
    
         
            +
            <p>以下は簡単な <tt class="docutils literal"><span class="pre">limit</span></tt> の使用例です。</p>
         
     | 
| 
       1806 
1806 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1807 
1807 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 2 --limit 3 --output_columns _key
         
     | 
| 
       1808 
1808 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1836,9 +1836,9 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1836 
1836 
     | 
    
         
             
            # ]
         
     | 
| 
       1837 
1837 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1838 
1838 
     | 
    
         
             
            </div>
         
     | 
| 
       1839 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1840 
     | 
    
         
            -
            <p>負の値を指定することもできます。負の値の場合は、最大で < 
     | 
| 
       1841 
     | 
    
         
            -
            <p>以下は負の値を使った < 
     | 
| 
      
 1839 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドは3番目、4番目、5番目のレコードを出力します。</p>
         
     | 
| 
      
 1840 
     | 
    
         
            +
            <p>負の値を指定することもできます。負の値の場合は、最大で <tt 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></tt> 件のレコードを出力するという意味になります。 例えば、 <tt class="docutils literal"><span class="pre">--limit</span> <span class="pre">-1</span></tt> はすべてのレコードを出力します。これはすべてのレコードを表示する場合にとても便利です。</p>
         
     | 
| 
      
 1841 
     | 
    
         
            +
            <p>以下は負の値を使った <tt class="docutils literal"><span class="pre">limit</span></tt> の簡単な使用例です。</p>
         
     | 
| 
       1842 
1842 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1843 
1843 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries --limit -1
         
     | 
| 
       1844 
1844 
     | 
    
         
             
            # [
         
     | 
| 
         @@ -1905,83 +1905,83 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       1905 
1905 
     | 
    
         
             
            # ]
         
     | 
| 
       1906 
1906 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1907 
1907 
     | 
    
         
             
            </div>
         
     | 
| 
       1908 
     | 
    
         
            -
            <p>この < 
     | 
| 
       1909 
     | 
    
         
            -
            <p>デフォルト値は < 
     | 
| 
      
 1908 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはすべてのレコードを出力します。</p>
         
     | 
| 
      
 1909 
     | 
    
         
            +
            <p>デフォルト値は <tt class="docutils literal"><span class="pre">10</span></tt> です。</p>
         
     | 
| 
       1910 
1910 
     | 
    
         
             
            </div>
         
     | 
| 
       1911 
1911 
     | 
    
         
             
            <div class="section" id="scorer">
         
     | 
| 
       1912 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1912 
     | 
    
         
            +
            <h4>7.3.29.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt><a class="headerlink" href="#scorer" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1913 
1913 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1914 
1914 
     | 
    
         
             
            <p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
         
     | 
| 
       1915 
1915 
     | 
    
         
             
            <p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
         
     | 
| 
       1916 
1916 
     | 
    
         
             
            </div>
         
     | 
| 
       1917 
1917 
     | 
    
         
             
            </div>
         
     | 
| 
       1918 
1918 
     | 
    
         
             
            <div class="section" id="facet-related-parameters">
         
     | 
| 
       1919 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 1919 
     | 
    
         
            +
            <h3>7.3.29.4.5. ファセット関連の引数<a class="headerlink" href="#facet-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       1920 
1920 
     | 
    
         
             
            <div class="section" id="drilldown">
         
     | 
| 
       1921 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1921 
     | 
    
         
            +
            <h4>7.3.29.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt><a class="headerlink" href="#drilldown" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1922 
1922 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1923 
1923 
     | 
    
         
             
            <p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
         
     | 
| 
       1924 
1924 
     | 
    
         
             
            </div>
         
     | 
| 
       1925 
1925 
     | 
    
         
             
            <div class="section" id="drilldown-sortby">
         
     | 
| 
       1926 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1926 
     | 
    
         
            +
            <h4>7.3.29.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt><a class="headerlink" href="#drilldown-sortby" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1927 
1927 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1928 
1928 
     | 
    
         
             
            <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
         
     | 
| 
       1929 
1929 
     | 
    
         
             
            </div>
         
     | 
| 
       1930 
1930 
     | 
    
         
             
            <div class="section" id="drilldown-output-columns">
         
     | 
| 
       1931 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1931 
     | 
    
         
            +
            <h4>7.3.29.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt><a class="headerlink" href="#drilldown-output-columns" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1932 
1932 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1933 
1933 
     | 
    
         
             
            <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
         
     | 
| 
       1934 
1934 
     | 
    
         
             
            </div>
         
     | 
| 
       1935 
1935 
     | 
    
         
             
            <div class="section" id="drilldown-offset">
         
     | 
| 
       1936 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1936 
     | 
    
         
            +
            <h4>7.3.29.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt><a class="headerlink" href="#drilldown-offset" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1937 
1937 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1938 
1938 
     | 
    
         
             
            <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
         
     | 
| 
       1939 
1939 
     | 
    
         
             
            </div>
         
     | 
| 
       1940 
1940 
     | 
    
         
             
            <div class="section" id="drilldown-limit">
         
     | 
| 
       1941 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1941 
     | 
    
         
            +
            <h4>7.3.29.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt><a class="headerlink" href="#drilldown-limit" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1942 
1942 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1943 
1943 
     | 
    
         
             
            <p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
         
     | 
| 
       1944 
1944 
     | 
    
         
             
            </div>
         
     | 
| 
       1945 
1945 
     | 
    
         
             
            </div>
         
     | 
| 
       1946 
1946 
     | 
    
         
             
            <div class="section" id="cache-related-parameter">
         
     | 
| 
       1947 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
      
 1947 
     | 
    
         
            +
            <h3>7.3.29.4.6. キャッシュ関連の引数<a class="headerlink" href="#cache-related-parameter" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
       1948 
1948 
     | 
    
         
             
            <div class="section" id="cache">
         
     | 
| 
       1949 
     | 
    
         
            -
            <h4>7.3. 
     | 
| 
      
 1949 
     | 
    
         
            +
            <h4>7.3.29.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt><a class="headerlink" href="#cache" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
       1950 
1950 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       1951 
1951 
     | 
    
         
             
            <p>クエリキャッシュに関する動作を設定します。</p>
         
     | 
| 
       1952 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 1952 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">no</span></tt></p>
         
     | 
| 
       1953 
1953 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       1954 
1954 
     | 
    
         
             
            <div>検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。</div></blockquote>
         
     | 
| 
       1955 
1955 
     | 
    
         
             
            </div>
         
     | 
| 
       1956 
1956 
     | 
    
         
             
            </div>
         
     | 
| 
       1957 
1957 
     | 
    
         
             
            <div class="section" id="score-related-parameters">
         
     | 
| 
       1958 
     | 
    
         
            -
            <h3>7.3. 
     | 
| 
       1959 
     | 
    
         
            -
            <p>スコアー関連のパラメーターは < 
     | 
| 
      
 1958 
     | 
    
         
            +
            <h3>7.3.29.4.7. スコアー関連の引数<a class="headerlink" href="#score-related-parameters" title="このヘッドラインへのパーマリンク">¶</a></h3>
         
     | 
| 
      
 1959 
     | 
    
         
            +
            <p>スコアー関連のパラメーターは <tt class="docutils literal"><span class="pre">adjuster</span></tt> だけです。</p>
         
     | 
| 
       1960 
1960 
     | 
    
         
             
            <div class="section" id="adjuster">
         
     | 
| 
       1961 
     | 
    
         
            -
            <span id="select-adjuster"></span><h4>7.3. 
     | 
| 
       1962 
     | 
    
         
            -
            <p>1つ以上のスコアー調整式(score adjust expression)を指定します。 < 
     | 
| 
       1963 
     | 
    
         
            -
            <p>< 
     | 
| 
       1964 
     | 
    
         
            -
            <p>例えば、 < 
     | 
| 
      
 1961 
     | 
    
         
            +
            <span id="select-adjuster"></span><h4>7.3.29.4.7.1. <tt class="docutils literal"><span class="pre">adjuster</span></tt><a class="headerlink" href="#adjuster" title="このヘッドラインへのパーマリンク">¶</a></h4>
         
     | 
| 
      
 1962 
     | 
    
         
            +
            <p>1つ以上のスコアー調整式(score adjust expression)を指定します。 <tt class="docutils literal"><span class="pre">adjuster</span></tt> は <tt class="docutils literal"><span class="pre">query</span></tt> または <tt class="docutils literal"><span class="pre">filter</span></tt> と一緒に使います。検索しないリクエストでは <tt class="docutils literal"><span class="pre">adjuster</span></tt> は動きません。</p>
         
     | 
| 
      
 1963 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">adjuster</span></tt> を使うと特定のレコードのスコアーを増やすことができます。重要なレコードに高いスコアーをつけるために <tt class="docutils literal"><span class="pre">adjuster</span></tt> を使えます。</p>
         
     | 
| 
      
 1964 
     | 
    
         
            +
            <p>例えば、 <tt class="docutils literal"><span class="pre">groonga</span></tt> タグがついたレコードのスコアーを増やすために <tt class="docutils literal"><span class="pre">adjuster</span></tt> を使えます。</p>
         
     | 
| 
       1965 
1965 
     | 
    
         
             
            <p>以下が構文です:</p>
         
     | 
| 
       1966 
1966 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>--adjuster "SCORE_ADJUST_EXPRESSION1 + SCORE_ADJUST_EXPRESSION2 + ..."
         
     | 
| 
       1967 
1967 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1968 
1968 
     | 
    
         
             
            </div>
         
     | 
| 
       1969 
     | 
    
         
            -
            <p>以下が < 
     | 
| 
      
 1969 
     | 
    
         
            +
            <p>以下が <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> の構文です:</p>
         
     | 
| 
       1970 
1970 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>COLUMN @ "KEYWORD" * FACTOR
         
     | 
| 
       1971 
1971 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       1972 
1972 
     | 
    
         
             
            </div>
         
     | 
| 
       1973 
1973 
     | 
    
         
             
            <p>以下のことに注意してください:</p>
         
     | 
| 
       1974 
1974 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       1975 
1975 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       1976 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 1976 
     | 
    
         
            +
            <li><p class="first"><tt class="docutils literal"><span class="pre">COLUMN</span></tt> にはインデックスが張っていないといけません。</p>
         
     | 
| 
       1977 
1977 
     | 
    
         
             
            </li>
         
     | 
| 
       1978 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 1978 
     | 
    
         
            +
            <li><p class="first"><tt class="docutils literal"><span class="pre">"KEYWORD"</span></tt> は文字列でないといけません。</p>
         
     | 
| 
       1979 
1979 
     | 
    
         
             
            </li>
         
     | 
| 
       1980 
     | 
    
         
            -
            <li><p class="first">< 
     | 
| 
      
 1980 
     | 
    
         
            +
            <li><p class="first"><tt class="docutils literal"><span class="pre">FACTOR</span></tt> は正の整数でないといけません。</p>
         
     | 
| 
       1981 
1981 
     | 
    
         
             
            </li>
         
     | 
| 
       1982 
1982 
     | 
    
         
             
            </ul>
         
     | 
| 
       1983 
1983 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       1984 
     | 
    
         
            -
            <p>以下は1つだけ < 
     | 
| 
      
 1984 
     | 
    
         
            +
            <p>以下は1つだけ <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> を使った <tt class="docutils literal"><span class="pre">adjuster</span></tt> の使用例です。</p>
         
     | 
| 
       1985 
1985 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       1986 
1986 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       1987 
1987 
     | 
    
         
             
              --filter true \
         
     | 
| 
         @@ -2042,9 +2042,9 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2042 
2042 
     | 
    
         
             
            # ]
         
     | 
| 
       2043 
2043 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2044 
2044 
     | 
    
         
             
            </div>
         
     | 
| 
       2045 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2046 
     | 
    
         
            -
            <p>< 
     | 
| 
       2047 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2045 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドはすべてのレコードにマッチします。それから、 <tt class="docutils literal"><span class="pre">adjuster</span></tt> を適用します。このアジャスターは <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムの中に <tt class="docutils literal"><span class="pre">"groonga"</span></tt> を含むレコードのスコアーを5増やします。 <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムに <tt class="docutils literal"><span class="pre">"groonga"</span></tt> が含まれているレコードは1つだけです。 <tt class="docutils literal"><span class="pre">"Groonga"</span></tt> というキーのレコードです。このレコードのスコアーは6( <tt class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">5</span></tt> )になります。</p>
         
     | 
| 
      
 2046 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">FACTOR</span></tt> は省略できます。 <tt class="docutils literal"><span class="pre">FACTOR</span></tt> を省略すると、1を指定したとみなします。</p>
         
     | 
| 
      
 2047 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">FACTOR</span></tt> を省略した <tt class="docutils literal"><span class="pre">adjuster</span></tt> の使用例です。</p>
         
     | 
| 
       2048 
2048 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2049 
2049 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2050 
2050 
     | 
    
         
             
              --filter true \
         
     | 
| 
         @@ -2105,8 +2105,8 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2105 
2105 
     | 
    
         
             
            # ]
         
     | 
| 
       2106 
2106 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2107 
2107 
     | 
    
         
             
            </div>
         
     | 
| 
       2108 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2109 
     | 
    
         
            -
            <p>複数の < 
     | 
| 
      
 2108 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドの <tt class="docutils literal"><span class="pre">adjuster</span></tt> は <tt class="docutils literal"><span class="pre">FACTOR</span></tt> がありません。そのため、係数は1になります。 <tt class="docutils literal"><span class="pre">Entries.content</span></tt> カラムに <tt class="docutils literal"><span class="pre">"groonga"</span></tt> を含むレコードは1つだけです。キーが <tt class="docutils literal"><span class="pre">"Groonga"</span></tt> のレコードです。このレコードのスコアーは2( <tt class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">1</span></tt> )になります。</p>
         
     | 
| 
      
 2109 
     | 
    
         
            +
            <p>複数の <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> を使った <tt class="docutils literal"><span class="pre">adjuster</span></tt> の使用例です。</p>
         
     | 
| 
       2110 
2110 
     | 
    
         
             
            <p>実行例:</p>
         
     | 
| 
       2111 
2111 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>select Entries \
         
     | 
| 
       2112 
2112 
     | 
    
         
             
              --filter true \
         
     | 
| 
         @@ -2167,72 +2167,72 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2167 
2167 
     | 
    
         
             
            # ]
         
     | 
| 
       2168 
2168 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2169 
2169 
     | 
    
         
             
            </div>
         
     | 
| 
       2170 
     | 
    
         
            -
            <p>この < 
     | 
| 
       2171 
     | 
    
         
            -
            <p>最初の < 
     | 
| 
       2172 
     | 
    
         
            -
            <p>2番目の < 
     | 
| 
       2173 
     | 
    
         
            -
            <p>最終的なスコアーの増分は9( < 
     | 
| 
       2174 
     | 
    
         
            -
            <p>1つの < 
     | 
| 
      
 2170 
     | 
    
         
            +
            <p>この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドの <tt class="docutils literal"><span class="pre">adjuster</span></tt> には2つの <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> があります。最終的なスコアーの増分はすこれらの <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> のスコアーの合計になります。この <tt class="docutils literal"><span class="pre">select</span></tt> コマンドのすべての <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> はキーが <tt class="docutils literal"><span class="pre">"Groonga"</span></tt> のレコードに適用されます。そのため、このレコードの最終的なスコアーの増分はすべての <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> の合計になります。</p>
         
     | 
| 
      
 2171 
     | 
    
         
            +
            <p>最初の <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> は <tt 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></tt> です。これは、スコアーを5増やします。</p>
         
     | 
| 
      
 2172 
     | 
    
         
            +
            <p>2番目の <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> は <tt 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></tt> です。これはスコアーを3増やします。</p>
         
     | 
| 
      
 2173 
     | 
    
         
            +
            <p>最終的なスコアーの増分は9( <tt 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></tt> )です。</p>
         
     | 
| 
      
 2174 
     | 
    
         
            +
            <p>1つの <tt class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></tt> は <tt class="docutils literal"><span class="pre">"KEYWORD"</span></tt> に対して1つの係数を持ちます。これは、 <tt class="docutils literal"><span class="pre">"KEYWORD"</span></tt> を持つすべてのレコードでスコアーの増加分は同じということです。 <tt class="docutils literal"><span class="pre">"KEYWORD"</span></tt> を持つそれぞれのレコード毎にスコアーの増加分を変えることができます。これは検索スコアーをチューニングするときに便利です。詳細は <a class="reference internal" href="../columns/vector.html#weight-vector-column"><em>重み付きベクターカラム</em></a> を参照してください。</p>
         
     | 
| 
       2175 
2175 
     | 
    
         
             
            </div>
         
     | 
| 
       2176 
2176 
     | 
    
         
             
            </div>
         
     | 
| 
       2177 
2177 
     | 
    
         
             
            </div>
         
     | 
| 
       2178 
2178 
     | 
    
         
             
            <div class="section" id="id6">
         
     | 
| 
       2179 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 2179 
     | 
    
         
            +
            <h2>7.3.29.5. 返値<a class="headerlink" href="#id6" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       2180 
2180 
     | 
    
         
             
            <p>TODO: write in English and add example.</p>
         
     | 
| 
       2181 
2181 
     | 
    
         
             
            <p>以下のようなjson形式で値が返却されます。</p>
         
     | 
| 
       2182 
2182 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
         
     | 
| 
       2183 
2183 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2184 
2184 
     | 
    
         
             
            </div>
         
     | 
| 
       2185 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2185 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">リターンコード</span></tt></p>
         
     | 
| 
       2186 
2186 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2187 
2187 
     | 
    
         
             
            <div>grn_rcに対応する数値が返されます。0(GRN_SUCCESS)以外の場合は、続いてエラー内容を示す
         
     | 
| 
       2188 
2188 
     | 
    
         
             
            文字列が返されます。</div></blockquote>
         
     | 
| 
       2189 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2189 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">処理開始時間</span></tt></p>
         
     | 
| 
       2190 
2190 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2191 
2191 
     | 
    
         
             
            <div>処理を開始した時間について、1970年1月1日0時0分0秒を起点とした秒数を小数で返します。</div></blockquote>
         
     | 
| 
       2192 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2192 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">処理時間</span></tt></p>
         
     | 
| 
       2193 
2193 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2194 
2194 
     | 
    
         
             
            <div>処理にかかった秒数を返します。</div></blockquote>
         
     | 
| 
       2195 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2195 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">検索結果</span></tt></p>
         
     | 
| 
       2196 
2196 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2197 
2197 
     | 
    
         
             
            <div><p>drilldown条件が実行される前の検索結果が以下のように出力されます。:</p>
         
     | 
| 
       2198 
2198 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>[[ヒット数], [[カラム名1,カラム型1],..], 検索結果1,..]
         
     | 
| 
       2199 
2199 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2200 
2200 
     | 
    
         
             
            </div>
         
     | 
| 
       2201 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2201 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ヒット数</span></tt></p>
         
     | 
| 
       2202 
2202 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2203 
     | 
    
         
            -
            <div>検索条件にヒットしたレコードの数が出力されます。 < 
     | 
| 
       2204 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2203 
     | 
    
         
            +
            <div>検索条件にヒットしたレコードの数が出力されます。 <tt class="docutils literal"><span class="pre">--limit</span></tt> オプションで出力件数を制限した場合は出力するレコード数と一致しません。 <tt class="docutils literal"><span class="pre">ヒット数</span></tt> は <tt class="docutils literal"><span class="pre">--limit</span></tt> オプションに関係なく常にヒットしたレコードの数になります。</div></blockquote>
         
     | 
| 
      
 2204 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">カラム名n</span></tt></p>
         
     | 
| 
       2205 
2205 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2206 
2206 
     | 
    
         
             
            <div>output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
         
     | 
| 
       2207 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2207 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">カラム型n</span></tt></p>
         
     | 
| 
       2208 
2208 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2209 
2209 
     | 
    
         
             
            <div>output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
         
     | 
| 
       2210 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2210 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">検索結果n</span></tt></p>
         
     | 
| 
       2211 
2211 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2212 
2212 
     | 
    
         
             
            <div>output_columns, offset, limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
         
     | 
| 
       2213 
2213 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2214 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2214 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">drilldown結果</span></tt></p>
         
     | 
| 
       2215 
2215 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2216 
2216 
     | 
    
         
             
            <div><p>drilldown処理の結果が以下のように出力されます。:</p>
         
     | 
| 
       2217 
2217 
     | 
    
         
             
            <div class="highlight-none"><div class="highlight"><pre>[[[件数], [[カラム名1,カラム型1],..], 検索結果1,..],..]
         
     | 
| 
       2218 
2218 
     | 
    
         
             
            </pre></div>
         
     | 
| 
       2219 
2219 
     | 
    
         
             
            </div>
         
     | 
| 
       2220 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2220 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">件数</span></tt></p>
         
     | 
| 
       2221 
2221 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2222 
2222 
     | 
    
         
             
            <div>drilldownに指定されたカラムの値の異なり数が出力されます。</div></blockquote>
         
     | 
| 
       2223 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2223 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">カラム名n</span></tt></p>
         
     | 
| 
       2224 
2224 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2225 
2225 
     | 
    
         
             
            <div>drilldown_output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
         
     | 
| 
       2226 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2226 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">カラム型n</span></tt></p>
         
     | 
| 
       2227 
2227 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2228 
2228 
     | 
    
         
             
            <div>drilldown_output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
         
     | 
| 
       2229 
     | 
    
         
            -
            <p>< 
     | 
| 
      
 2229 
     | 
    
         
            +
            <p><tt class="docutils literal"><span class="pre">ドリルダウン結果n</span></tt></p>
         
     | 
| 
       2230 
2230 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2231 
2231 
     | 
    
         
             
            <div>drilldown_output_columns, drilldown_offset, drilldown_limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
         
     | 
| 
       2232 
2232 
     | 
    
         
             
            </div></blockquote>
         
     | 
| 
       2233 
2233 
     | 
    
         
             
            </div>
         
     | 
| 
       2234 
2234 
     | 
    
         
             
            <div class="section" id="see-also">
         
     | 
| 
       2235 
     | 
    
         
            -
            <h2>7.3. 
     | 
| 
      
 2235 
     | 
    
         
            +
            <h2>7.3.29.6. 参考<a class="headerlink" href="#see-also" title="このヘッドラインへのパーマリンク">¶</a></h2>
         
     | 
| 
       2236 
2236 
     | 
    
         
             
            <blockquote>
         
     | 
| 
       2237 
2237 
     | 
    
         
             
            <div><ul class="simple">
         
     | 
| 
       2238 
2238 
     | 
    
         
             
            <li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>クエリー構文</em></a></li>
         
     | 
| 
         @@ -2246,88 +2246,86 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2246 
2246 
     | 
    
         
             
                      </div>
         
     | 
| 
       2247 
2247 
     | 
    
         
             
                    </div>
         
     | 
| 
       2248 
2248 
     | 
    
         
             
                  </div>
         
     | 
| 
       2249 
     | 
    
         
            -
                  <div class="sphinxsidebar" 
     | 
| 
      
 2249 
     | 
    
         
            +
                  <div class="sphinxsidebar">
         
     | 
| 
       2250 
2250 
     | 
    
         
             
                    <div class="sphinxsidebarwrapper">
         
     | 
| 
       2251 
2251 
     | 
    
         
             
              <h3><a href="../../index.html">目次</a></h3>
         
     | 
| 
       2252 
2252 
     | 
    
         
             
              <ul>
         
     | 
| 
       2253 
     | 
    
         
            -
            <li><a class="reference internal" href="#">7.3. 
     | 
| 
       2254 
     | 
    
         
            -
            <li><a class="reference internal" href="#summary">7.3. 
     | 
| 
       2255 
     | 
    
         
            -
            <li><a class="reference internal" href="#syntax">7.3. 
     | 
| 
       2256 
     | 
    
         
            -
            <li><a class="reference internal" href="#usage">7.3. 
     | 
| 
       2257 
     | 
    
         
            -
            <li><a class="reference internal" href="#simple-usage">7.3. 
     | 
| 
       2258 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-conditions">7.3. 
     | 
| 
       2259 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-condition-query">7.3. 
     | 
| 
       2260 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-condition-filter">7.3. 
     | 
| 
      
 2253 
     | 
    
         
            +
            <li><a class="reference internal" href="#">7.3.29. <tt class="docutils literal"><span class="pre">select</span></tt></a><ul>
         
     | 
| 
      
 2254 
     | 
    
         
            +
            <li><a class="reference internal" href="#summary">7.3.29.1. 概要</a></li>
         
     | 
| 
      
 2255 
     | 
    
         
            +
            <li><a class="reference internal" href="#syntax">7.3.29.2. 構文</a></li>
         
     | 
| 
      
 2256 
     | 
    
         
            +
            <li><a class="reference internal" href="#usage">7.3.29.3. 使い方</a><ul>
         
     | 
| 
      
 2257 
     | 
    
         
            +
            <li><a class="reference internal" href="#simple-usage">7.3.29.3.1. 簡単な使い方</a></li>
         
     | 
| 
      
 2258 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-conditions">7.3.29.3.2. 検索条件</a><ul>
         
     | 
| 
      
 2259 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-condition-query">7.3.29.3.2.1. 検索条件: <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
         
     | 
| 
      
 2260 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-condition-filter">7.3.29.3.2.2. 検索条件: <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
         
     | 
| 
       2261 
2261 
     | 
    
         
             
            </ul>
         
     | 
| 
       2262 
2262 
     | 
    
         
             
            </li>
         
     | 
| 
       2263 
     | 
    
         
            -
            <li><a class="reference internal" href="#paging">7.3. 
     | 
| 
       2264 
     | 
    
         
            -
            <li><a class="reference internal" href="#the-total-number-of-records">7.3. 
     | 
| 
      
 2263 
     | 
    
         
            +
            <li><a class="reference internal" href="#paging">7.3.29.3.3. ページング</a></li>
         
     | 
| 
      
 2264 
     | 
    
         
            +
            <li><a class="reference internal" href="#the-total-number-of-records">7.3.29.3.4. 全レコード数</a></li>
         
     | 
| 
       2265 
2265 
     | 
    
         
             
            </ul>
         
     | 
| 
       2266 
2266 
     | 
    
         
             
            </li>
         
     | 
| 
       2267 
     | 
    
         
            -
            <li><a class="reference internal" href="#parameters">7.3. 
     | 
| 
       2268 
     | 
    
         
            -
            <li><a class="reference internal" href="#required-parameter">7.3. 
     | 
| 
       2269 
     | 
    
         
            -
            <li><a class="reference internal" href="#table">7.3. 
     | 
| 
      
 2267 
     | 
    
         
            +
            <li><a class="reference internal" href="#parameters">7.3.29.4. 引数</a><ul>
         
     | 
| 
      
 2268 
     | 
    
         
            +
            <li><a class="reference internal" href="#required-parameter">7.3.29.4.1. 必須引数</a><ul>
         
     | 
| 
      
 2269 
     | 
    
         
            +
            <li><a class="reference internal" href="#table">7.3.29.4.1.1. <tt class="docutils literal"><span class="pre">table</span></tt></a></li>
         
     | 
| 
       2270 
2270 
     | 
    
         
             
            </ul>
         
     | 
| 
       2271 
2271 
     | 
    
         
             
            </li>
         
     | 
| 
       2272 
     | 
    
         
            -
            <li><a class="reference internal" href="#search-related-parameters">7.3. 
     | 
| 
       2273 
     | 
    
         
            -
            <li><a class="reference internal" href="#match-columns">7.3. 
     | 
| 
       2274 
     | 
    
         
            -
            <li><a class="reference internal" href="#query">7.3. 
     | 
| 
       2275 
     | 
    
         
            -
            <li><a class="reference internal" href="#filter">7.3. 
     | 
| 
      
 2272 
     | 
    
         
            +
            <li><a class="reference internal" href="#search-related-parameters">7.3.29.4.2. 検索関係の引数</a><ul>
         
     | 
| 
      
 2273 
     | 
    
         
            +
            <li><a class="reference internal" href="#match-columns">7.3.29.4.2.1. <tt class="docutils literal"><span class="pre">match_columns</span></tt></a></li>
         
     | 
| 
      
 2274 
     | 
    
         
            +
            <li><a class="reference internal" href="#query">7.3.29.4.2.2. <tt class="docutils literal"><span class="pre">query</span></tt></a></li>
         
     | 
| 
      
 2275 
     | 
    
         
            +
            <li><a class="reference internal" href="#filter">7.3.29.4.2.3. <tt class="docutils literal"><span class="pre">filter</span></tt></a></li>
         
     | 
| 
       2276 
2276 
     | 
    
         
             
            </ul>
         
     | 
| 
       2277 
2277 
     | 
    
         
             
            </li>
         
     | 
| 
       2278 
     | 
    
         
            -
            <li><a class="reference internal" href="#advanced-search-parameters">7.3. 
     | 
| 
       2279 
     | 
    
         
            -
            <li><a class="reference internal" href="#match-escalation-threshold">7.3. 
     | 
| 
       2280 
     | 
    
         
            -
            <li><a class="reference internal" href="#query-expansion">7.3. 
     | 
| 
       2281 
     | 
    
         
            -
            <li><a class="reference internal" href="#query-flags">7.3. 
     | 
| 
       2282 
     | 
    
         
            -
            <li><a class="reference internal" href="#query-expander">7.3. 
     | 
| 
      
 2278 
     | 
    
         
            +
            <li><a class="reference internal" href="#advanced-search-parameters">7.3.29.4.3. 高度な検索のための引数</a><ul>
         
     | 
| 
      
 2279 
     | 
    
         
            +
            <li><a class="reference internal" href="#match-escalation-threshold">7.3.29.4.3.1. <tt class="docutils literal"><span class="pre">match_escalation_threshold</span></tt></a></li>
         
     | 
| 
      
 2280 
     | 
    
         
            +
            <li><a class="reference internal" href="#query-expansion">7.3.29.4.3.2. <tt class="docutils literal"><span class="pre">query_expansion</span></tt></a></li>
         
     | 
| 
      
 2281 
     | 
    
         
            +
            <li><a class="reference internal" href="#query-flags">7.3.29.4.3.3. <tt class="docutils literal"><span class="pre">query_flags</span></tt></a></li>
         
     | 
| 
      
 2282 
     | 
    
         
            +
            <li><a class="reference internal" href="#query-expander">7.3.29.4.3.4. <tt class="docutils literal"><span class="pre">query_expander</span></tt></a></li>
         
     | 
| 
       2283 
2283 
     | 
    
         
             
            </ul>
         
     | 
| 
       2284 
2284 
     | 
    
         
             
            </li>
         
     | 
| 
       2285 
     | 
    
         
            -
            <li><a class="reference internal" href="#output-related-parameters">7.3. 
     | 
| 
       2286 
     | 
    
         
            -
            <li><a class="reference internal" href="#output-columns">7.3. 
     | 
| 
       2287 
     | 
    
         
            -
            <li><a class="reference internal" href="#sortby">7.3. 
     | 
| 
       2288 
     | 
    
         
            -
            <li><a class="reference internal" href="#offset">7.3. 
     | 
| 
       2289 
     | 
    
         
            -
            <li><a class="reference internal" href="#limit">7.3. 
     | 
| 
       2290 
     | 
    
         
            -
            <li><a class="reference internal" href="#scorer">7.3. 
     | 
| 
      
 2285 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-related-parameters">7.3.29.4.4. 出力関連の引数</a><ul>
         
     | 
| 
      
 2286 
     | 
    
         
            +
            <li><a class="reference internal" href="#output-columns">7.3.29.4.4.1. <tt class="docutils literal"><span class="pre">output_columns</span></tt></a></li>
         
     | 
| 
      
 2287 
     | 
    
         
            +
            <li><a class="reference internal" href="#sortby">7.3.29.4.4.2. <tt class="docutils literal"><span class="pre">sortby</span></tt></a></li>
         
     | 
| 
      
 2288 
     | 
    
         
            +
            <li><a class="reference internal" href="#offset">7.3.29.4.4.3. <tt class="docutils literal"><span class="pre">offset</span></tt></a></li>
         
     | 
| 
      
 2289 
     | 
    
         
            +
            <li><a class="reference internal" href="#limit">7.3.29.4.4.4. <tt class="docutils literal"><span class="pre">limit</span></tt></a></li>
         
     | 
| 
      
 2290 
     | 
    
         
            +
            <li><a class="reference internal" href="#scorer">7.3.29.4.4.5. <tt class="docutils literal"><span class="pre">scorer</span></tt></a></li>
         
     | 
| 
       2291 
2291 
     | 
    
         
             
            </ul>
         
     | 
| 
       2292 
2292 
     | 
    
         
             
            </li>
         
     | 
| 
       2293 
     | 
    
         
            -
            <li><a class="reference internal" href="#facet-related-parameters">7.3. 
     | 
| 
       2294 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown">7.3. 
     | 
| 
       2295 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-sortby">7.3. 
     | 
| 
       2296 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-output-columns">7.3. 
     | 
| 
       2297 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-offset">7.3. 
     | 
| 
       2298 
     | 
    
         
            -
            <li><a class="reference internal" href="#drilldown-limit">7.3. 
     | 
| 
      
 2293 
     | 
    
         
            +
            <li><a class="reference internal" href="#facet-related-parameters">7.3.29.4.5. ファセット関連の引数</a><ul>
         
     | 
| 
      
 2294 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown">7.3.29.4.5.1. <tt class="docutils literal"><span class="pre">drilldown</span></tt></a></li>
         
     | 
| 
      
 2295 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-sortby">7.3.29.4.5.2. <tt class="docutils literal"><span class="pre">drilldown_sortby</span></tt></a></li>
         
     | 
| 
      
 2296 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-output-columns">7.3.29.4.5.3. <tt class="docutils literal"><span class="pre">drilldown_output_columns</span></tt></a></li>
         
     | 
| 
      
 2297 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-offset">7.3.29.4.5.4. <tt class="docutils literal"><span class="pre">drilldown_offset</span></tt></a></li>
         
     | 
| 
      
 2298 
     | 
    
         
            +
            <li><a class="reference internal" href="#drilldown-limit">7.3.29.4.5.5. <tt class="docutils literal"><span class="pre">drilldown_limit</span></tt></a></li>
         
     | 
| 
       2299 
2299 
     | 
    
         
             
            </ul>
         
     | 
| 
       2300 
2300 
     | 
    
         
             
            </li>
         
     | 
| 
       2301 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache-related-parameter">7.3. 
     | 
| 
       2302 
     | 
    
         
            -
            <li><a class="reference internal" href="#cache">7.3. 
     | 
| 
      
 2301 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache-related-parameter">7.3.29.4.6. キャッシュ関連の引数</a><ul>
         
     | 
| 
      
 2302 
     | 
    
         
            +
            <li><a class="reference internal" href="#cache">7.3.29.4.6.1. <tt class="docutils literal"><span class="pre">cache</span></tt></a></li>
         
     | 
| 
       2303 
2303 
     | 
    
         
             
            </ul>
         
     | 
| 
       2304 
2304 
     | 
    
         
             
            </li>
         
     | 
| 
       2305 
     | 
    
         
            -
            <li><a class="reference internal" href="#score-related-parameters">7.3. 
     | 
| 
       2306 
     | 
    
         
            -
            <li><a class="reference internal" href="#adjuster">7.3. 
     | 
| 
      
 2305 
     | 
    
         
            +
            <li><a class="reference internal" href="#score-related-parameters">7.3.29.4.7. スコアー関連の引数</a><ul>
         
     | 
| 
      
 2306 
     | 
    
         
            +
            <li><a class="reference internal" href="#adjuster">7.3.29.4.7.1. <tt class="docutils literal"><span class="pre">adjuster</span></tt></a></li>
         
     | 
| 
       2307 
2307 
     | 
    
         
             
            </ul>
         
     | 
| 
       2308 
2308 
     | 
    
         
             
            </li>
         
     | 
| 
       2309 
2309 
     | 
    
         
             
            </ul>
         
     | 
| 
       2310 
2310 
     | 
    
         
             
            </li>
         
     | 
| 
       2311 
     | 
    
         
            -
            <li><a class="reference internal" href="#id6">7.3. 
     | 
| 
       2312 
     | 
    
         
            -
            <li><a class="reference internal" href="#see-also">7.3. 
     | 
| 
      
 2311 
     | 
    
         
            +
            <li><a class="reference internal" href="#id6">7.3.29.5. 返値</a></li>
         
     | 
| 
      
 2312 
     | 
    
         
            +
            <li><a class="reference internal" href="#see-also">7.3.29.6. 参考</a></li>
         
     | 
| 
       2313 
2313 
     | 
    
         
             
            </ul>
         
     | 
| 
       2314 
2314 
     | 
    
         
             
            </li>
         
     | 
| 
       2315 
2315 
     | 
    
         
             
            </ul>
         
     | 
| 
       2316 
2316 
     | 
    
         | 
| 
       2317 
2317 
     | 
    
         
             
              <h4>前のトピックへ</h4>
         
     | 
| 
       2318 
2318 
     | 
    
         
             
              <p class="topless"><a href="ruby_load.html"
         
     | 
| 
       2319 
     | 
    
         
            -
                                    title="前の章へ">7.3. 
     | 
| 
      
 2319 
     | 
    
         
            +
                                    title="前の章へ">7.3.28. <tt class="docutils literal"><span class="pre">ruby_load</span></tt></a></p>
         
     | 
| 
       2320 
2320 
     | 
    
         
             
              <h4>次のトピックへ</h4>
         
     | 
| 
       2321 
2321 
     | 
    
         
             
              <p class="topless"><a href="shutdown.html"
         
     | 
| 
       2322 
     | 
    
         
            -
                                    title="次の章へ">7.3. 
     | 
| 
       2323 
     | 
    
         
            -
              < 
     | 
| 
       2324 
     | 
    
         
            -
             
     | 
| 
       2325 
     | 
    
         
            -
                < 
     | 
| 
       2326 
     | 
    
         
            -
             
     | 
| 
       2327 
     | 
    
         
            -
             
     | 
| 
       2328 
     | 
    
         
            -
             
     | 
| 
       2329 
     | 
    
         
            -
               </div>
         
     | 
| 
       2330 
     | 
    
         
            -
            <div id="searchbox" style="display: none" role="search">
         
     | 
| 
      
 2322 
     | 
    
         
            +
                                    title="次の章へ">7.3.30. <tt class="docutils literal"><span class="pre">shutdown</span></tt></a></p>
         
     | 
| 
      
 2323 
     | 
    
         
            +
              <h3>このページ</h3>
         
     | 
| 
      
 2324 
     | 
    
         
            +
              <ul class="this-page-menu">
         
     | 
| 
      
 2325 
     | 
    
         
            +
                <li><a href="../../_sources/reference/commands/select.txt"
         
     | 
| 
      
 2326 
     | 
    
         
            +
                       rel="nofollow">ソースコードを表示</a></li>
         
     | 
| 
      
 2327 
     | 
    
         
            +
              </ul>
         
     | 
| 
      
 2328 
     | 
    
         
            +
            <div id="searchbox" style="display: none">
         
     | 
| 
       2331 
2329 
     | 
    
         
             
              <h3>クイック検索</h3>
         
     | 
| 
       2332 
2330 
     | 
    
         
             
                <form class="search" action="../../search.html" method="get">
         
     | 
| 
       2333 
2331 
     | 
    
         
             
                  <input type="text" name="q" />
         
     | 
| 
         @@ -2344,24 +2342,24 @@ select Entries --match_columns content --query "popular" --query_expan 
     | 
|
| 
       2344 
2342 
     | 
    
         
             
                  </div>
         
     | 
| 
       2345 
2343 
     | 
    
         
             
                  <div class="clearer"></div>
         
     | 
| 
       2346 
2344 
     | 
    
         
             
                </div>
         
     | 
| 
       2347 
     | 
    
         
            -
                <div class="related" 
     | 
| 
      
 2345 
     | 
    
         
            +
                <div class="related">
         
     | 
| 
       2348 
2346 
     | 
    
         
             
                  <h3>ナビゲーション</h3>
         
     | 
| 
       2349 
2347 
     | 
    
         
             
                  <ul>
         
     | 
| 
       2350 
2348 
     | 
    
         
             
                    <li class="right" style="margin-right: 10px">
         
     | 
| 
       2351 
2349 
     | 
    
         
             
                      <a href="../../genindex.html" title="総合索引"
         
     | 
| 
       2352 
2350 
     | 
    
         
             
                         >索引</a></li>
         
     | 
| 
       2353 
2351 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       2354 
     | 
    
         
            -
                      <a href="shutdown.html" title="7.3. 
     | 
| 
      
 2352 
     | 
    
         
            +
                      <a href="shutdown.html" title="7.3.30. shutdown"
         
     | 
| 
       2355 
2353 
     | 
    
         
             
                         >次へ</a> |</li>
         
     | 
| 
       2356 
2354 
     | 
    
         
             
                    <li class="right" >
         
     | 
| 
       2357 
     | 
    
         
            -
                      <a href="ruby_load.html" title="7.3. 
     | 
| 
      
 2355 
     | 
    
         
            +
                      <a href="ruby_load.html" title="7.3.28. ruby_load"
         
     | 
| 
       2358 
2356 
     | 
    
         
             
                         >前へ</a> |</li>
         
     | 
| 
       2359 
     | 
    
         
            -
                    <li><a href="../../index.html">Groonga v4.0.8ドキュメント</a> »</li>
         
     | 
| 
      
 2357 
     | 
    
         
            +
                    <li><a href="../../index.html">Groonga v4.0.8-168-gae696d7ドキュメント</a> »</li>
         
     | 
| 
       2360 
2358 
     | 
    
         
             
                      <li><a href="../../reference.html" >7. リファレンスマニュアル</a> »</li>
         
     | 
| 
       2361 
2359 
     | 
    
         
             
                      <li><a href="../command.html" >7.3. コマンド</a> »</li> 
         
     | 
| 
       2362 
2360 
     | 
    
         
             
                  </ul>
         
     | 
| 
       2363 
2361 
     | 
    
         
             
                </div>
         
     | 
| 
       2364 
     | 
    
         
            -
                <div class="footer" 
     | 
| 
      
 2362 
     | 
    
         
            +
                <div class="footer">
         
     | 
| 
       2365 
2363 
     | 
    
         
             
                    © Copyright 2009-2014, Brazil, Inc.
         
     | 
| 
       2366 
2364 
     | 
    
         
             
                </div>
         
     | 
| 
       2367 
2365 
     | 
    
         
             
              </body>
         
     |