rroonga 4.0.6-x86-mingw32 → 4.0.7-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/doc/text/news.textile +14 -2
- data/ext/groonga/extconf.rb +0 -3
- data/ext/groonga/rb-grn-expression.c +1 -6
- data/ext/groonga/rb-grn-index-column.c +96 -0
- data/ext/groonga/rb-grn-index-cursor.c +32 -8
- data/ext/groonga/rb-grn-posting.c +26 -6
- data/ext/groonga/rb-grn-utils.c +27 -0
- data/ext/groonga/rb-grn.h +4 -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/rroonga-build.rb +3 -3
- data/test/test-column.rb +50 -12
- data/test/test-expression-builder.rb +1 -1
- data/test/test-expression.rb +80 -25
- data/test/test-index-column.rb +41 -0
- data/test/test-index-cursor.rb +21 -1
- data/test/test-table-key-support.rb +59 -1
- 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 +0 -0
- data/vendor/local/bin/lz4c +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/groonga.conf +1 -1
- data/vendor/local/etc/groonga/httpd/fastcgi.conf +25 -0
- data/vendor/local/etc/groonga/httpd/fastcgi.conf.default +25 -0
- data/vendor/local/etc/groonga/httpd/fastcgi_params +24 -0
- data/vendor/local/etc/groonga/httpd/fastcgi_params.default +24 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/etc/groonga/httpd/html/50x.html +21 -0
- data/vendor/local/etc/groonga/httpd/html/index.html +25 -0
- data/vendor/local/etc/groonga/httpd/koi-utf +109 -0
- data/vendor/local/etc/groonga/httpd/koi-win +103 -0
- data/vendor/local/etc/groonga/httpd/mime.types +89 -0
- data/vendor/local/etc/groonga/httpd/mime.types.default +89 -0
- data/vendor/local/etc/groonga/httpd/nginx.conf.default +117 -0
- data/vendor/local/etc/groonga/httpd/scgi_params +16 -0
- data/vendor/local/etc/groonga/httpd/scgi_params.default +16 -0
- data/vendor/local/etc/groonga/httpd/uwsgi_params +16 -0
- data/vendor/local/etc/groonga/httpd/uwsgi_params.default +16 -0
- data/vendor/local/etc/groonga/httpd/win-utf +126 -0
- data/vendor/local/include/groonga/groonga/expr.h +108 -0
- data/vendor/local/include/groonga/groonga/groonga.h +2031 -0
- data/vendor/local/include/groonga/groonga/ii.h +46 -0
- data/vendor/local/include/groonga/groonga/nfkc.h +3 -3
- data/vendor/local/include/groonga/groonga/plugin.h +5 -3
- data/vendor/local/include/groonga/groonga/token.h +136 -0
- data/vendor/local/include/groonga/groonga/token_filter.h +4 -6
- data/vendor/local/include/groonga/groonga/tokenizer.h +60 -55
- data/vendor/local/include/groonga/groonga/util.h +40 -0
- data/vendor/local/include/groonga/groonga.h +5 -2095
- data/vendor/local/include/lz4.h +323 -0
- data/vendor/local/include/lz4hc.h +223 -0
- data/vendor/local/include/zconf.h +511 -0
- data/vendor/local/include/zlib.h +1768 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/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/scan_info_builder.rb +22 -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.4.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 +14 -0
- 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 +13 -0
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +3 -24
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/introduction.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/development/travis-ci.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +7 -19
- 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 +4 -4
- 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 +88 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_content_type.txt +39 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/range_filter.txt +28 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +109 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +30 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/token_filters.txt +111 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http.txt +0 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/server/package.txt +54 -50
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/data.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/drilldown.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/index.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/search.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +67 -5
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +25 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +10308 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +4 -9404
- data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +999 -0
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +31 -1415
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +14 -14
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/client.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/community.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +40 -58
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/contribution.html +24 -23
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/development.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/genindex.html +12 -12
- data/vendor/local/share/doc/groonga/en/html/index.html +81 -77
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +33 -34
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +26 -25
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +28 -27
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/install/others.html +93 -103
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +28 -27
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +32 -30
- data/vendor/local/share/doc/groonga/en/html/install.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/limitations.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +34 -32
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +99 -97
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +71 -69
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/news.html +210 -116
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +45 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +65 -63
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +174 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +63 -61
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +30 -28
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +66 -64
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +31 -29
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +76 -74
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +31 -29
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +62 -60
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +51 -49
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +39 -37
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +61 -59
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +96 -94
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +52 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +45 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +41 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +72 -70
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +43 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +39 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +35 -33
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +25 -23
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +24 -22
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +61 -59
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +31 -29
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +27 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +166 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +51 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +55 -53
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +385 -383
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +39 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +83 -81
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +149 -147
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +51 -49
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +41 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +276 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +103 -101
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +47 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +48 -46
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +28 -26
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +75 -73
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +44 -42
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +36 -34
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +57 -55
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +26 -23
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +81 -79
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +32 -30
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +53 -51
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +41 -39
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +35 -33
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +164 -0
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +76 -74
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +42 -40
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +66 -64
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +59 -57
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +210 -208
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +262 -260
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +26 -24
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +54 -52
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +34 -32
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +57 -55
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +54 -52
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +323 -0
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +29 -27
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +40 -38
- data/vendor/local/share/doc/groonga/en/html/reference.html +78 -74
- 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/gqtp.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/server/http.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/server/package.html +92 -85
- data/vendor/local/share/doc/groonga/en/html/server.html +21 -19
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +127 -125
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/spec.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +33 -31
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +23 -21
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +52 -50
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +19 -17
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +20 -18
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +22 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +35 -33
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +3 -24
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/introduction.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/development/travis-ci.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +7 -19
- 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 +4 -4
- 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 +88 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_content_type.txt +39 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/range_filter.txt +28 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +109 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +30 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/token_filters.txt +111 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http.txt +0 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/package.txt +54 -50
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/data.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/drilldown.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/index.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/search.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +67 -5
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +25 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +10308 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +4 -9404
- data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +999 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +31 -1415
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +14 -14
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/client.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/community.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +40 -58
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +30 -28
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +24 -23
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/development.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +12 -12
- data/vendor/local/share/doc/groonga/ja/html/index.html +82 -78
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +36 -40
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +27 -27
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +84 -90
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +29 -29
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +31 -29
- data/vendor/local/share/doc/groonga/ja/html/install.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +34 -32
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +93 -91
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +61 -59
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/news.html +233 -147
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +39 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +59 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +176 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +61 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +32 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +30 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +53 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +31 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +76 -74
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +31 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +62 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +51 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +42 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +39 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +51 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +45 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +95 -93
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +52 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +37 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +45 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +41 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +64 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +39 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +34 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +35 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +26 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +24 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +56 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +31 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +167 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +47 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +55 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +55 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +256 -254
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +39 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +80 -78
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +125 -123
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +51 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +41 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +268 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +89 -87
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +47 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +28 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +63 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +44 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +36 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +57 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +26 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +42 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +65 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +32 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +32 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +35 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +165 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +40 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +69 -67
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +42 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +52 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +51 -49
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +115 -113
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +179 -177
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +43 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +30 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +36 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +44 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +316 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +23 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +29 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +38 -36
- data/vendor/local/share/doc/groonga/ja/html/reference.html +79 -75
- 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/gqtp.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +27 -25
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +91 -82
- data/vendor/local/share/doc/groonga/ja/html/server.html +21 -19
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +126 -124
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/spec.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +32 -30
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +25 -23
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +49 -47
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +19 -17
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +20 -18
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +22 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +33 -31
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +20 -18
- data/vendor/local/share/groonga/examples/dictionary/edict/edict-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/edict/edict2grn.rb +0 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/eijiro/eijiro2grn.rb +0 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene-import.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/gene95/gene2grn.rb +0 -0
- data/vendor/local/share/groonga/examples/dictionary/html/index.html +1 -1
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.7.2.js +9404 -0
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-ui-1.8.18.custom.js +11802 -0
- data/vendor/local/share/groonga/examples/dictionary/init-db.sh +0 -0
- data/vendor/local/share/groonga/examples/dictionary/jmdict/jmdict.rb +0 -0
- data/vendor/local/share/groonga/html/admin/index.html +2 -2
- data/vendor/local/share/groonga/html/admin/index.ja.html +2 -2
- data/vendor/local/share/groonga/html/admin/js/jquery-1.7.2.js +9404 -0
- data/vendor/local/share/groonga/html/admin/js/jquery-ui-1.8.18.custom.js +11802 -0
- data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.js +2599 -0
- data/vendor/local/share/license/lz4/LICENSE +24 -0
- data/vendor/local/share/license/zlib/README +115 -0
- data/vendor/local/share/man/ja/man1/groonga.1 +183 -215
- data/vendor/local/share/man/man1/groonga.1 +188 -227
- data/vendor/local/share/man/man1/lz4.1 +88 -0
- data/vendor/local/share/man/man1/lz4c.1 +33 -0
- data/vendor/local/share/man/man1/lz4cat.1 +32 -0
- metadata +117 -50
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-1.7.2.min.js +0 -4
- data/vendor/local/share/groonga/examples/dictionary/html/js/jquery-ui-1.8.18.custom.min.js +0 -356
- data/vendor/local/share/groonga/html/admin/js/jquery-1.7.2.min.js +0 -4
- data/vendor/local/share/groonga/html/admin/js/jquery-ui-1.8.18.custom.min.js +0 -356
- data/vendor/local/share/groonga/html/admin/js/jquery.flot-0.7.min.js +0 -6
@@ -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.26. select — Groonga v4.0.8 documentation</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.
|
18
|
+
VERSION: '4.0.8',
|
19
19
|
COLLAPSE_INDEX: false,
|
20
20
|
FILE_SUFFIX: '.html',
|
21
21
|
HAS_SOURCE: true
|
@@ -25,12 +25,12 @@
|
|
25
25
|
<script type="text/javascript" src="../../_static/underscore.js"></script>
|
26
26
|
<script type="text/javascript" src="../../_static/doctools.js"></script>
|
27
27
|
<link rel="shortcut icon" href="../../_static/favicon.ico"/>
|
28
|
-
<link rel="top" title="Groonga v4.0.
|
28
|
+
<link rel="top" title="Groonga v4.0.8 documentation" href="../../index.html" />
|
29
29
|
<link rel="up" title="7.3. Command" href="../command.html" />
|
30
|
-
<link rel="next" title="7.3.
|
31
|
-
<link rel="prev" title="7.3.
|
30
|
+
<link rel="next" title="7.3.27. shutdown" href="shutdown.html" />
|
31
|
+
<link rel="prev" title="7.3.25. ruby_load" href="ruby_load.html" />
|
32
32
|
</head>
|
33
|
-
<body>
|
33
|
+
<body role="document">
|
34
34
|
<div class="header">
|
35
35
|
<h1 class="title">
|
36
36
|
<a id="top-link" href="../../index.html">
|
@@ -48,19 +48,19 @@
|
|
48
48
|
</div>
|
49
49
|
|
50
50
|
|
51
|
-
<div class="related">
|
51
|
+
<div class="related" role="navigation" aria-label="related navigation">
|
52
52
|
<h3>Navigation</h3>
|
53
53
|
<ul>
|
54
54
|
<li class="right" style="margin-right: 10px">
|
55
55
|
<a href="../../genindex.html" title="General Index"
|
56
56
|
accesskey="I">index</a></li>
|
57
57
|
<li class="right" >
|
58
|
-
<a href="shutdown.html" title="7.3.
|
58
|
+
<a href="shutdown.html" title="7.3.27. shutdown"
|
59
59
|
accesskey="N">next</a> |</li>
|
60
60
|
<li class="right" >
|
61
|
-
<a href="ruby_load.html" title="7.3.
|
61
|
+
<a href="ruby_load.html" title="7.3.25. ruby_load"
|
62
62
|
accesskey="P">previous</a> |</li>
|
63
|
-
<li><a href="../../index.html">Groonga v4.0.
|
63
|
+
<li><a href="../../index.html">Groonga v4.0.8 documentation</a> »</li>
|
64
64
|
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
65
65
|
<li><a href="../command.html" accesskey="U">7.3. Command</a> »</li>
|
66
66
|
</ul>
|
@@ -69,21 +69,21 @@
|
|
69
69
|
<div class="document">
|
70
70
|
<div class="documentwrapper">
|
71
71
|
<div class="bodywrapper">
|
72
|
-
<div class="body">
|
72
|
+
<div class="body" role="main">
|
73
73
|
|
74
74
|
<div class="section" id="select">
|
75
|
-
<h1>7.3.
|
75
|
+
<h1>7.3.26. <code class="docutils literal"><span class="pre">select</span></code><a class="headerlink" href="#select" title="Permalink to this headline">¶</a></h1>
|
76
76
|
<div class="section" id="summary">
|
77
|
-
<h2>7.3.
|
78
|
-
<p><
|
77
|
+
<h2>7.3.26.1. Summary<a class="headerlink" href="#summary" title="Permalink to this headline">¶</a></h2>
|
78
|
+
<p><code class="docutils literal"><span class="pre">select</span></code> searches records that are matched to specified conditions
|
79
79
|
from a table and then outputs them.</p>
|
80
|
-
<p><
|
81
|
-
understand <
|
80
|
+
<p><code class="docutils literal"><span class="pre">select</span></code> is the most important command in groonga. You need to
|
81
|
+
understand <code class="docutils literal"><span class="pre">select</span></code> to use the full power of groonga.</p>
|
82
82
|
</div>
|
83
83
|
<div class="section" id="syntax">
|
84
|
-
<h2>7.3.
|
85
|
-
<p><
|
86
|
-
<
|
84
|
+
<h2>7.3.26.2. Syntax<a class="headerlink" href="#syntax" title="Permalink to this headline">¶</a></h2>
|
85
|
+
<p><code class="docutils literal"><span class="pre">select</span></code> has many parameters. The required parameter is only
|
86
|
+
<code class="docutils literal"><span class="pre">table</span></code> and others are optional:</p>
|
87
87
|
<div class="highlight-none"><div class="highlight"><pre>select table
|
88
88
|
[match_columns=null]
|
89
89
|
[query=null]
|
@@ -108,8 +108,8 @@ understand <tt class="docutils literal"><span class="pre">select</span></tt> to
|
|
108
108
|
</div>
|
109
109
|
</div>
|
110
110
|
<div class="section" id="usage">
|
111
|
-
<h2>7.3.
|
112
|
-
<p>Let's learn about <
|
111
|
+
<h2>7.3.26.3. Usage<a class="headerlink" href="#usage" title="Permalink to this headline">¶</a></h2>
|
112
|
+
<p>Let's learn about <code class="docutils literal"><span class="pre">select</span></code> usage with examples. This section shows
|
113
113
|
many popular usages.</p>
|
114
114
|
<p>Here are a schema definition and sample data to show usage.</p>
|
115
115
|
<p>Execution example:</p>
|
@@ -146,18 +146,18 @@ load --table Entries
|
|
146
146
|
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
147
147
|
</pre></div>
|
148
148
|
</div>
|
149
|
-
<p>There is a table, <
|
149
|
+
<p>There is a table, <code class="docutils literal"><span class="pre">Entries</span></code>, for blog entries. An entry has title,
|
150
150
|
content and the number of likes for the entry. Title is key of
|
151
|
-
<
|
152
|
-
number of likes is value of <
|
153
|
-
<p><
|
154
|
-
using <
|
155
|
-
<
|
151
|
+
<code class="docutils literal"><span class="pre">Entries</span></code>. Content is value of <code class="docutils literal"><span class="pre">Entries.content</span></code> column. The
|
152
|
+
number of likes is value of <code class="docutils literal"><span class="pre">Entries.n_likes</span></code> column.</p>
|
153
|
+
<p><code class="docutils literal"><span class="pre">Entries._key</span></code> column and <code class="docutils literal"><span class="pre">Entries.content</span></code> column are indexed
|
154
|
+
using <code class="docutils literal"><span class="pre">TokenBigram</span></code> tokenizer. So both <code class="docutils literal"><span class="pre">Entries._key</span></code> and
|
155
|
+
<code class="docutils literal"><span class="pre">Entries.content</span></code> are fulltext search ready.</p>
|
156
156
|
<p>OK. The schema and data for examples are ready.</p>
|
157
157
|
<div class="section" id="simple-usage">
|
158
|
-
<h3>7.3.
|
158
|
+
<h3>7.3.26.3.1. Simple usage<a class="headerlink" href="#simple-usage" title="Permalink to this headline">¶</a></h3>
|
159
159
|
<p>Here is the most simple usage with the above schema and data. It outputs
|
160
|
-
all records in <
|
160
|
+
all records in <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
161
161
|
<p>Execution example:</p>
|
162
162
|
<div class="highlight-none"><div class="highlight"><pre>select Entries
|
163
163
|
# [
|
@@ -227,29 +227,29 @@ all records in <tt class="docutils literal"><span class="pre">Entries</span></tt
|
|
227
227
|
<p>Why does the command output all records? There are two reasons. The
|
228
228
|
first reason is that the command doesn't specify any search
|
229
229
|
conditions. No search condition means all records are matched. The
|
230
|
-
second reason is that the number of all records is 5. <
|
230
|
+
second reason is that the number of all records is 5. <code class="docutils literal"><span class="pre">select</span></code>
|
231
231
|
command outputs 10 records at a maximum by default. There are only 5
|
232
232
|
records. It is less than 10. So the command outputs all records.</p>
|
233
233
|
</div>
|
234
234
|
<div class="section" id="search-conditions">
|
235
|
-
<h3>7.3.
|
236
|
-
<p>Search conditions are specified by <
|
237
|
-
also specify both <
|
238
|
-
records must be matched against both <
|
235
|
+
<h3>7.3.26.3.2. Search conditions<a class="headerlink" href="#search-conditions" title="Permalink to this headline">¶</a></h3>
|
236
|
+
<p>Search conditions are specified by <code class="docutils literal"><span class="pre">query</span></code> or <code class="docutils literal"><span class="pre">filter</span></code>. You can
|
237
|
+
also specify both <code class="docutils literal"><span class="pre">query</span></code> and <code class="docutils literal"><span class="pre">filter</span></code>. It means that selected
|
238
|
+
records must be matched against both <code class="docutils literal"><span class="pre">query</span></code> and <code class="docutils literal"><span class="pre">filter</span></code>.</p>
|
239
239
|
<div class="section" id="search-condition-query">
|
240
|
-
<h4>7.3.
|
241
|
-
<p><
|
242
|
-
in google.com. You specify search conditions for <
|
243
|
-
separated keywords. For example, <
|
244
|
-
record should contain two words, <
|
245
|
-
<p>Normally, <
|
240
|
+
<h4>7.3.26.3.2.1. Search condition: <code class="docutils literal"><span class="pre">query</span></code><a class="headerlink" href="#search-condition-query" title="Permalink to this headline">¶</a></h4>
|
241
|
+
<p><code class="docutils literal"><span class="pre">query</span></code> is designed for search box in Web page. Imagine a search box
|
242
|
+
in google.com. You specify search conditions for <code class="docutils literal"><span class="pre">query</span></code> as space
|
243
|
+
separated keywords. For example, <code class="docutils literal"><span class="pre">search</span> <span class="pre">engine</span></code> means a matched
|
244
|
+
record should contain two words, <code class="docutils literal"><span class="pre">search</span></code> and <code class="docutils literal"><span class="pre">engine</span></code>.</p>
|
245
|
+
<p>Normally, <code class="docutils literal"><span class="pre">query</span></code> parameter is used for specifying fulltext search
|
246
246
|
conditions. It can be used for non fulltext search conditions but
|
247
|
-
<
|
248
|
-
<p><
|
249
|
-
<
|
250
|
-
conditions. <
|
251
|
-
matched against <
|
252
|
-
<p>Here is a simple <
|
247
|
+
<code class="docutils literal"><span class="pre">filter</span></code> is used for the propose.</p>
|
248
|
+
<p><code class="docutils literal"><span class="pre">query</span></code> parameter is used with <code class="docutils literal"><span class="pre">match_columns</span></code> parameter when
|
249
|
+
<code class="docutils literal"><span class="pre">query</span></code> parameter is used for specifying fulltext search
|
250
|
+
conditions. <code class="docutils literal"><span class="pre">match_columns</span></code> specifies which columnes and indexes are
|
251
|
+
matched against <code class="docutils literal"><span class="pre">query</span></code>.</p>
|
252
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">query</span></code> usage example.</p>
|
253
253
|
<p>Execution example:</p>
|
254
254
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast
|
255
255
|
# [
|
@@ -298,16 +298,16 @@ matched against <tt class="docutils literal"><span class="pre">query</span></tt>
|
|
298
298
|
# ]
|
299
299
|
</pre></div>
|
300
300
|
</div>
|
301
|
-
<p>The <
|
302
|
-
in <
|
303
|
-
<p><
|
301
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain a word <code class="docutils literal"><span class="pre">fast</span></code>
|
302
|
+
in <code class="docutils literal"><span class="pre">content</span></code> column value from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
303
|
+
<p><code class="docutils literal"><span class="pre">query</span></code> has query syntax but its deatils aren't described here. See
|
304
304
|
<a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for datails.</p>
|
305
305
|
</div>
|
306
306
|
<div class="section" id="search-condition-filter">
|
307
|
-
<h4>7.3.
|
308
|
-
<p><
|
309
|
-
search conditions for <
|
310
|
-
<p>Here is a simple <
|
307
|
+
<h4>7.3.26.3.2.2. Search condition: <code class="docutils literal"><span class="pre">filter</span></code><a class="headerlink" href="#search-condition-filter" title="Permalink to this headline">¶</a></h4>
|
308
|
+
<p><code class="docutils literal"><span class="pre">filter</span></code> is designed for complex search conditions. You specify
|
309
|
+
search conditions for <code class="docutils literal"><span class="pre">filter</span></code> as ECMAScript like syntax.</p>
|
310
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">filter</span></code> usage example.</p>
|
311
311
|
<p>Execution example:</p>
|
312
312
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && _key == "Groonga"'
|
313
313
|
# [
|
@@ -350,20 +350,20 @@ search conditions for <tt class="docutils literal"><span class="pre">filter</spa
|
|
350
350
|
# ]
|
351
351
|
</pre></div>
|
352
352
|
</div>
|
353
|
-
<p>The <
|
354
|
-
in <
|
355
|
-
<
|
356
|
-
<
|
357
|
-
<
|
358
|
-
<
|
359
|
-
<p><
|
353
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain a word <code class="docutils literal"><span class="pre">fast</span></code>
|
354
|
+
in <code class="docutils literal"><span class="pre">content</span></code> column value and has <code class="docutils literal"><span class="pre">Groonga</span></code> as <code class="docutils literal"><span class="pre">_key</span></code> from
|
355
|
+
<code class="docutils literal"><span class="pre">Entries</span></code> table. There are three operators in the command, <code class="docutils literal"><span class="pre">@</span></code>,
|
356
|
+
<code class="docutils literal"><span class="pre">&&</span></code> and <code class="docutils literal"><span class="pre">==</span></code>. <code class="docutils literal"><span class="pre">@</span></code> is fulltext search operator. <code class="docutils literal"><span class="pre">&&</span></code> and
|
357
|
+
<code class="docutils literal"><span class="pre">==</span></code> are the same as ECMAScript. <code class="docutils literal"><span class="pre">&&</span></code> is logical AND operator and
|
358
|
+
<code class="docutils literal"><span class="pre">==</span></code> is equality operator.</p>
|
359
|
+
<p><code class="docutils literal"><span class="pre">filter</span></code> has more operators and syntax like grouping by <code class="docutils literal"><span class="pre">(...)</span></code>
|
360
360
|
its deatils aren't described here. See <a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a> for
|
361
361
|
datails.</p>
|
362
362
|
</div>
|
363
363
|
</div>
|
364
364
|
<div class="section" id="paging">
|
365
|
-
<h3>7.3.
|
366
|
-
<p>You can specify range of outputted records by <
|
365
|
+
<h3>7.3.26.3.3. Paging<a class="headerlink" href="#paging" title="Permalink to this headline">¶</a></h3>
|
366
|
+
<p>You can specify range of outputted records by <code class="docutils literal"><span class="pre">offset</span></code> and <code class="docutils literal"><span class="pre">limit</span></code>.
|
367
367
|
Here is an example to output only the 2nd record.</p>
|
368
368
|
<p>Execution example:</p>
|
369
369
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --offset 1 --limit 1
|
@@ -407,15 +407,15 @@ Here is an example to output only the 2nd record.</p>
|
|
407
407
|
# ]
|
408
408
|
</pre></div>
|
409
409
|
</div>
|
410
|
-
<p><
|
410
|
+
<p><code class="docutils literal"><span class="pre">offset</span></code> is zero-origin. <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> means output range is
|
411
411
|
started from the 2nd record.</p>
|
412
|
-
<p><
|
412
|
+
<p><code class="docutils literal"><span class="pre">limit</span></code> specifies the max number of output records. <code class="docutils literal"><span class="pre">--limit</span> <span class="pre">1</span></code>
|
413
413
|
means the number of output records is 1 at a maximium. If no records
|
414
|
-
are matched, <
|
414
|
+
are matched, <code class="docutils literal"><span class="pre">select</span></code> command outputs no records.</p>
|
415
415
|
</div>
|
416
416
|
<div class="section" id="the-total-number-of-records">
|
417
|
-
<h3>7.3.
|
418
|
-
<p>You can use <
|
417
|
+
<h3>7.3.26.3.4. The total number of records<a class="headerlink" href="#the-total-number-of-records" title="Permalink to this headline">¶</a></h3>
|
418
|
+
<p>You can use <code class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></code> to retrieve the total number of recrods
|
419
419
|
without any contents of records.</p>
|
420
420
|
<p>Execution example:</p>
|
421
421
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit 0
|
@@ -453,19 +453,19 @@ without any contents of records.</p>
|
|
453
453
|
# ]
|
454
454
|
</pre></div>
|
455
455
|
</div>
|
456
|
-
<p><
|
456
|
+
<p><code class="docutils literal"><span class="pre">--limit</span> <span class="pre">0</span></code> is also useful for retrieving only the number of matched
|
457
457
|
records.</p>
|
458
458
|
</div>
|
459
459
|
</div>
|
460
460
|
<div class="section" id="parameters">
|
461
|
-
<h2>7.3.
|
461
|
+
<h2>7.3.26.4. Parameters<a class="headerlink" href="#parameters" title="Permalink to this headline">¶</a></h2>
|
462
462
|
<p>This section describes all parameters. Parameters are categorized.</p>
|
463
463
|
<div class="section" id="required-parameter">
|
464
|
-
<h3>7.3.
|
465
|
-
<p>There is a required parameter, <
|
464
|
+
<h3>7.3.26.4.1. Required parameter<a class="headerlink" href="#required-parameter" title="Permalink to this headline">¶</a></h3>
|
465
|
+
<p>There is a required parameter, <code class="docutils literal"><span class="pre">table</span></code>.</p>
|
466
466
|
<div class="section" id="table">
|
467
|
-
<span id="select-table"></span><h4>7.3.
|
468
|
-
<p>It specifies a table to be searched. <
|
467
|
+
<span id="select-table"></span><h4>7.3.26.4.1.1. <code class="docutils literal"><span class="pre">table</span></code><a class="headerlink" href="#table" title="Permalink to this headline">¶</a></h4>
|
468
|
+
<p>It specifies a table to be searched. <code class="docutils literal"><span class="pre">table</span></code> must be specified.</p>
|
469
469
|
<p>If nonexistent table is specified, an error is returned.</p>
|
470
470
|
<p>Execution example:</p>
|
471
471
|
<div class="highlight-none"><div class="highlight"><pre>select Nonexistent
|
@@ -489,25 +489,25 @@ records.</p>
|
|
489
489
|
</div>
|
490
490
|
</div>
|
491
491
|
<div class="section" id="search-related-parameters">
|
492
|
-
<h3>7.3.
|
493
|
-
<p>There are search related parameters. Typically, <
|
494
|
-
<
|
495
|
-
box. <
|
492
|
+
<h3>7.3.26.4.2. Search related parameters<a class="headerlink" href="#search-related-parameters" title="Permalink to this headline">¶</a></h3>
|
493
|
+
<p>There are search related parameters. Typically, <code class="docutils literal"><span class="pre">match_columns</span></code> and
|
494
|
+
<code class="docutils literal"><span class="pre">query</span></code> parameters are used for implementing a search
|
495
|
+
box. <code class="docutils literal"><span class="pre">filter</span></code> parameters is used for implementing complex search
|
496
496
|
feature.</p>
|
497
|
-
<p>If both <
|
498
|
-
be matched against both <
|
499
|
-
and <
|
497
|
+
<p>If both <code class="docutils literal"><span class="pre">query</span></code> and <code class="docutils literal"><span class="pre">filter</span></code> are specified, selected records must
|
498
|
+
be matched against both <code class="docutils literal"><span class="pre">query</span></code> and <code class="docutils literal"><span class="pre">filter</span></code>. If both <code class="docutils literal"><span class="pre">query</span></code>
|
499
|
+
and <code class="docutils literal"><span class="pre">filter</span></code> aren't specified, all records are selected.</p>
|
500
500
|
<div class="section" id="match-columns">
|
501
|
-
<span id="select-match-columns"></span><h4>7.3.
|
501
|
+
<span id="select-match-columns"></span><h4>7.3.26.4.2.1. <code class="docutils literal"><span class="pre">match_columns</span></code><a class="headerlink" href="#match-columns" title="Permalink to this headline">¶</a></h4>
|
502
502
|
<p>It specifies the default target column for fulltext search by
|
503
|
-
<
|
504
|
-
specified in <
|
505
|
-
<
|
506
|
-
not. <
|
503
|
+
<code class="docutils literal"><span class="pre">query</span></code> parameter value. A target column for fulltext search can be
|
504
|
+
specified in <code class="docutils literal"><span class="pre">query</span></code> parameter. The difference between
|
505
|
+
<code class="docutils literal"><span class="pre">match_columns</span></code> and <code class="docutils literal"><span class="pre">query</span></code> is whether weight is supported or
|
506
|
+
not. <code class="docutils literal"><span class="pre">match_columns</span></code> supports weight but <code class="docutils literal"><span class="pre">query</span></code> doesn't.</p>
|
507
507
|
<p>Weight is relative importance of target column. A higher weight target
|
508
508
|
column gets more hit score rather than a lower weight target column
|
509
509
|
when a record is matched by fulltext search. The default weight is 1.</p>
|
510
|
-
<p>Here is a simple <
|
510
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">match_columns</span></code> usage example.</p>
|
511
511
|
<p>Execution example:</p>
|
512
512
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --output_columns '_key, _score'
|
513
513
|
# [
|
@@ -544,18 +544,18 @@ when a record is matched by fulltext search. The default weight is 1.</p>
|
|
544
544
|
# ]
|
545
545
|
</pre></div>
|
546
546
|
</div>
|
547
|
-
<p><
|
548
|
-
fulltext search is <
|
549
|
-
is 1. <
|
550
|
-
command outputs <
|
547
|
+
<p><code class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">content</span></code> means the default target column for
|
548
|
+
fulltext search is <code class="docutils literal"><span class="pre">content</span></code> column and its weight
|
549
|
+
is 1. <code class="docutils literal"><span class="pre">--output_columns</span> <span class="pre">'_key,</span> <span class="pre">_score'</span></code> means that the <code class="docutils literal"><span class="pre">select</span></code>
|
550
|
+
command outputs <code class="docutils literal"><span class="pre">_key</span></code> value and <code class="docutils literal"><span class="pre">_score</span></code> value for matched
|
551
551
|
records.</p>
|
552
|
-
<p>Pay attention to <
|
553
|
-
matched counts against <
|
554
|
-
<
|
555
|
-
is 1 means that <
|
556
|
-
fact that <
|
557
|
-
<
|
558
|
-
<p>To specify weight, <
|
552
|
+
<p>Pay attention to <code class="docutils literal"><span class="pre">_score</span></code> value. <code class="docutils literal"><span class="pre">_score</span></code> value is the number of
|
553
|
+
matched counts against <code class="docutils literal"><span class="pre">query</span></code> parameter value. In the example,
|
554
|
+
<code class="docutils literal"><span class="pre">query</span></code> parameter value is <code class="docutils literal"><span class="pre">fast</span></code>. The fact that <code class="docutils literal"><span class="pre">_score</span></code> value
|
555
|
+
is 1 means that <code class="docutils literal"><span class="pre">fast</span></code> appers in <code class="docutils literal"><span class="pre">content</span></code> column only once. The
|
556
|
+
fact that <code class="docutils literal"><span class="pre">_score</span></code> value is 2 means that <code class="docutils literal"><span class="pre">fast</span></code> appears in
|
557
|
+
<code class="docutils literal"><span class="pre">content</span></code> column twice.</p>
|
558
|
+
<p>To specify weight, <code class="docutils literal"><span class="pre">column</span> <span class="pre">*</span> <span class="pre">weight</span></code> syntax is used. Here is a
|
559
559
|
weight usage example.</p>
|
560
560
|
<p>Execution example:</p>
|
561
561
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns 'content * 2' --query fast --output_columns '_key, _score'
|
@@ -593,17 +593,17 @@ weight usage example.</p>
|
|
593
593
|
# ]
|
594
594
|
</pre></div>
|
595
595
|
</div>
|
596
|
-
<p><
|
597
|
-
fulltext search is <
|
598
|
-
<p>Pay attention to <
|
596
|
+
<p><code class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'content</span> <span class="pre">*</span> <span class="pre">2'</span></code> means the default target column for
|
597
|
+
fulltext search is <code class="docutils literal"><span class="pre">content</span></code> column and its weight is 2.</p>
|
598
|
+
<p>Pay attention to <code class="docutils literal"><span class="pre">_score</span></code> value. <code class="docutils literal"><span class="pre">_score</span></code> value is doubled because
|
599
599
|
weight is 2.</p>
|
600
600
|
<p>You can specify one or more columns as the default target columns for
|
601
601
|
fulltext search. If one or more columns are specified, fulltext search
|
602
602
|
is done for all columns and scores are accumulated. If one of the
|
603
|
-
columns is matched against <
|
603
|
+
columns is matched against <code class="docutils literal"><span class="pre">query</span></code> parameter value, the record is
|
604
604
|
treated as matched.</p>
|
605
|
-
<p>To specify one or more columns, <
|
606
|
-
<span class="pre">weight2</span> <span class="pre">||</span> <span class="pre">...</span></
|
605
|
+
<p>To specify one or more columns, <code class="docutils literal"><span class="pre">column1</span> <span class="pre">*</span> <span class="pre">weight1</span> <span class="pre">||</span> <span class="pre">column2</span> <span class="pre">*</span>
|
606
|
+
<span class="pre">weight2</span> <span class="pre">||</span> <span class="pre">...</span></code> syntax is used. <code class="docutils literal"><span class="pre">*</span> <span class="pre">weight</span></code> can be omitted. If it is
|
607
607
|
omitted, 1 is used for weight. Here is a one or more columns usage
|
608
608
|
example.</p>
|
609
609
|
<p>Execution example:</p>
|
@@ -638,23 +638,23 @@ example.</p>
|
|
638
638
|
# ]
|
639
639
|
</pre></div>
|
640
640
|
</div>
|
641
|
-
<p><
|
642
|
-
columns for fulltext search are <
|
643
|
-
<
|
644
|
-
is 1. This weight allocation means <
|
645
|
-
important rather than <
|
641
|
+
<p><code class="docutils literal"><span class="pre">--match_columns</span> <span class="pre">'_key</span> <span class="pre">*</span> <span class="pre">10</span> <span class="pre">||</span> <span class="pre">content'</span></code> means the default target
|
642
|
+
columns for fulltext search are <code class="docutils literal"><span class="pre">_key</span></code> and <code class="docutils literal"><span class="pre">content</span></code> columns and
|
643
|
+
<code class="docutils literal"><span class="pre">_key</span></code> column's weight is 10 and <code class="docutils literal"><span class="pre">content</span></code> column's weight
|
644
|
+
is 1. This weight allocation means <code class="docutils literal"><span class="pre">_key</span></code> column value is more
|
645
|
+
important rather than <code class="docutils literal"><span class="pre">content</span></code> column value. In this example, title
|
646
646
|
of blog entry is more important rather thatn content of blog entry.</p>
|
647
647
|
</div>
|
648
648
|
<div class="section" id="query">
|
649
|
-
<span id="select-query"></span><h4>7.3.
|
649
|
+
<span id="select-query"></span><h4>7.3.26.4.2.2. <code class="docutils literal"><span class="pre">query</span></code><a class="headerlink" href="#query" title="Permalink to this headline">¶</a></h4>
|
650
650
|
<p>It specifies the query text. Normally, it is used for fulltext search
|
651
|
-
with <
|
651
|
+
with <code class="docutils literal"><span class="pre">match_columns</span></code> parameter. <code class="docutils literal"><span class="pre">query</span></code> parameter is designed for
|
652
652
|
a fulltext search form in a Web page. A query text should be formatted
|
653
653
|
in <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a>. The syntax is similar to common search
|
654
|
-
form like Google's search form. For example, <
|
655
|
-
that groonga searches records that contain both <
|
656
|
-
<
|
657
|
-
contain either <
|
654
|
+
form like Google's search form. For example, <code class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span></code> means
|
655
|
+
that groonga searches records that contain both <code class="docutils literal"><span class="pre">word1</span></code> and
|
656
|
+
<code class="docutils literal"><span class="pre">word2</span></code>. <code class="docutils literal"><span class="pre">word1</span> <span class="pre">OR</span> <span class="pre">word2</span></code> means that groogna searches records that
|
657
|
+
contain either <code class="docutils literal"><span class="pre">word1</span></code> or <code class="docutils literal"><span class="pre">word2</span></code>.</p>
|
658
658
|
<p>Here is a simple logical and search example.</p>
|
659
659
|
<p>Execution example:</p>
|
660
660
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "fast groonga"
|
@@ -698,8 +698,8 @@ contain either <tt class="docutils literal"><span class="pre">word1</span></tt>
|
|
698
698
|
# ]
|
699
699
|
</pre></div>
|
700
700
|
</div>
|
701
|
-
<p>The <
|
702
|
-
<
|
701
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain two words
|
702
|
+
<code class="docutils literal"><span class="pre">fast</span></code> and <code class="docutils literal"><span class="pre">groonga</span></code> in <code class="docutils literal"><span class="pre">content</span></code> column value from <code class="docutils literal"><span class="pre">Entries</span></code>
|
703
703
|
table.</p>
|
704
704
|
<p>Here is a simple logical or search example.</p>
|
705
705
|
<p>Execution example:</p>
|
@@ -750,14 +750,14 @@ table.</p>
|
|
750
750
|
# ]
|
751
751
|
</pre></div>
|
752
752
|
</div>
|
753
|
-
<p>The <
|
754
|
-
<
|
755
|
-
<
|
753
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain one of two words
|
754
|
+
<code class="docutils literal"><span class="pre">groonga</span></code> or <code class="docutils literal"><span class="pre">mroonga</span></code> in <code class="docutils literal"><span class="pre">content</span></code> column value from
|
755
|
+
<code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
756
756
|
<p>See <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for other syntax.</p>
|
757
757
|
<p>It can be used for not only fulltext search but also other
|
758
|
-
conditions. For example, <
|
759
|
-
<
|
760
|
-
value of <
|
758
|
+
conditions. For example, <code class="docutils literal"><span class="pre">column:value</span></code> means the value of
|
759
|
+
<code class="docutils literal"><span class="pre">column</span></code> column is equal to <code class="docutils literal"><span class="pre">value</span></code>. <code class="docutils literal"><span class="pre">column:<value</span></code> means the
|
760
|
+
value of <code class="docutils literal"><span class="pre">column</span></code> column is less than <code class="docutils literal"><span class="pre">value</span></code>.</p>
|
761
761
|
<p>Here is a simple equality operator search example.</p>
|
762
762
|
<p>Execution example:</p>
|
763
763
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query _key:Groonga
|
@@ -801,8 +801,8 @@ value of <tt class="docutils literal"><span class="pre">column</span></tt> colum
|
|
801
801
|
# ]
|
802
802
|
</pre></div>
|
803
803
|
</div>
|
804
|
-
<p>The <
|
805
|
-
<
|
804
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that <code class="docutils literal"><span class="pre">_key</span></code> column value is
|
805
|
+
<code class="docutils literal"><span class="pre">Groonga</span></code> from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
806
806
|
<p>Here is a simple less than operator search example.</p>
|
807
807
|
<p>Execution example:</p>
|
808
808
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query n_likes:<11
|
@@ -864,23 +864,23 @@ value of <tt class="docutils literal"><span class="pre">column</span></tt> colum
|
|
864
864
|
# ]
|
865
865
|
</pre></div>
|
866
866
|
</div>
|
867
|
-
<p>The <
|
868
|
-
is less than <
|
867
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value
|
868
|
+
is less than <code class="docutils literal"><span class="pre">11</span></code> from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
869
869
|
<p>See <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> for other operations.</p>
|
870
870
|
</div>
|
871
871
|
<div class="section" id="filter">
|
872
|
-
<span id="select-filter"></span><h4>7.3.
|
872
|
+
<span id="select-filter"></span><h4>7.3.26.4.2.3. <code class="docutils literal"><span class="pre">filter</span></code><a class="headerlink" href="#filter" title="Permalink to this headline">¶</a></h4>
|
873
873
|
<p>It specifies the filter text. Normally, it is used for complex search
|
874
|
-
conditions. <
|
875
|
-
<
|
874
|
+
conditions. <code class="docutils literal"><span class="pre">filter</span></code> can be used with <code class="docutils literal"><span class="pre">query</span></code> parameter. If both
|
875
|
+
<code class="docutils literal"><span class="pre">filter</span></code> and <code class="docutils literal"><span class="pre">query</span></code> are specified, there are conbined with
|
876
876
|
logical and. It means that matched records should be matched against
|
877
|
-
both <
|
878
|
-
<p><
|
877
|
+
both <code class="docutils literal"><span class="pre">filter</span></code> and <code class="docutils literal"><span class="pre">query</span></code>.</p>
|
878
|
+
<p><code class="docutils literal"><span class="pre">filter</span></code> parameter is designed for complex conditions. A filter text
|
879
879
|
should be formated in <a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a>. The syntax is
|
880
|
-
similar to ECMAScript. For example, <
|
881
|
-
the value of <
|
882
|
-
<span class="pre">value</span></
|
883
|
-
<
|
880
|
+
similar to ECMAScript. For example, <code class="docutils literal"><span class="pre">column</span> <span class="pre">==</span> <span class="pre">"value"</span></code> means that
|
881
|
+
the value of <code class="docutils literal"><span class="pre">column</span></code> column is equal to <code class="docutils literal"><span class="pre">"value"</span></code>. <code class="docutils literal"><span class="pre">column</span> <span class="pre"><</span>
|
882
|
+
<span class="pre">value</span></code> means that the value of <code class="docutils literal"><span class="pre">column</span></code> column is less than
|
883
|
+
<code class="docutils literal"><span class="pre">value</span></code>.</p>
|
884
884
|
<p>Here is a simple equality operator search example.</p>
|
885
885
|
<p>Execution example:</p>
|
886
886
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '_key == "Groonga"'
|
@@ -924,8 +924,8 @@ the value of <tt class="docutils literal"><span class="pre">column</span></tt> c
|
|
924
924
|
# ]
|
925
925
|
</pre></div>
|
926
926
|
</div>
|
927
|
-
<p>The <
|
928
|
-
<
|
927
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that <code class="docutils literal"><span class="pre">_key</span></code> column value is
|
928
|
+
<code class="docutils literal"><span class="pre">Groonga</span></code> from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
929
929
|
<p>Here is a simple less than operator search example.</p>
|
930
930
|
<p>Execution example:</p>
|
931
931
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 11'
|
@@ -987,15 +987,15 @@ the value of <tt class="docutils literal"><span class="pre">column</span></tt> c
|
|
987
987
|
# ]
|
988
988
|
</pre></div>
|
989
989
|
</div>
|
990
|
-
<p>The <
|
991
|
-
is less than <
|
990
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value
|
991
|
+
is less than <code class="docutils literal"><span class="pre">11</span></code> from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
992
992
|
<p>See <a class="reference internal" href="../grn_expr/script_syntax.html"><em>Script syntax</em></a> for other operators.</p>
|
993
993
|
</div>
|
994
994
|
</div>
|
995
995
|
<div class="section" id="advanced-search-parameters">
|
996
|
-
<h3>7.3.
|
996
|
+
<h3>7.3.26.4.3. Advanced search parameters<a class="headerlink" href="#advanced-search-parameters" title="Permalink to this headline">¶</a></h3>
|
997
997
|
<div class="section" id="match-escalation-threshold">
|
998
|
-
<span id="id1"></span><h4>7.3.
|
998
|
+
<span id="id1"></span><h4>7.3.26.4.3.1. <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code><a class="headerlink" href="#match-escalation-threshold" title="Permalink to this headline">¶</a></h4>
|
999
999
|
<p>It specifies threshold to determine whether search storategy
|
1000
1000
|
escalation is used or not. The threshold is compared against the
|
1001
1001
|
number of matched records. If the number of matched records is equal
|
@@ -1006,15 +1006,15 @@ is used only when no records are matched.</p>
|
|
1006
1006
|
<p>The default threshold can be customized by one of the followings.</p>
|
1007
1007
|
<blockquote>
|
1008
1008
|
<div><ul class="simple">
|
1009
|
-
<li><
|
1010
|
-
<li><
|
1011
|
-
<li><
|
1009
|
+
<li><code class="docutils literal"><span class="pre">--with-match-escalation-threshold</span></code> option of configure</li>
|
1010
|
+
<li><code class="docutils literal"><span class="pre">--match-escalation-threshold</span></code> option of groogna command</li>
|
1011
|
+
<li><code class="docutils literal"><span class="pre">match-escalation-threshold</span></code> configuration item in configuration
|
1012
1012
|
file</li>
|
1013
1013
|
</ul>
|
1014
1014
|
</div></blockquote>
|
1015
|
-
<p>Here is a simple <
|
1016
|
-
first <
|
1017
|
-
parameter. The second <
|
1015
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> usage example. The
|
1016
|
+
first <code class="docutils literal"><span class="pre">select</span></code> doesn't have <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code>
|
1017
|
+
parameter. The second <code class="docutils literal"><span class="pre">select</span></code> has <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code>
|
1018
1018
|
parameter.</p>
|
1019
1019
|
<p>Execution example:</p>
|
1020
1020
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query groo
|
@@ -1091,60 +1091,60 @@ select Entries --match_columns content --query groo --match_escalation_threshold
|
|
1091
1091
|
# ]
|
1092
1092
|
</pre></div>
|
1093
1093
|
</div>
|
1094
|
-
<p>The first <
|
1095
|
-
<
|
1096
|
-
records are matched because the <
|
1097
|
-
<
|
1098
|
-
<
|
1099
|
-
<
|
1100
|
-
It means that <
|
1101
|
-
records are matched against <
|
1094
|
+
<p>The first <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain a word
|
1095
|
+
<code class="docutils literal"><span class="pre">groo</span></code> in <code class="docutils literal"><span class="pre">content</span></code> column value from <code class="docutils literal"><span class="pre">Entries</span></code> table. But no
|
1096
|
+
records are matched because the <code class="docutils literal"><span class="pre">TokenBigram</span></code> tokenizer tokenizes
|
1097
|
+
<code class="docutils literal"><span class="pre">groonga</span></code> to <code class="docutils literal"><span class="pre">groonga</span></code> not <code class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></code>. (The
|
1098
|
+
<code class="docutils literal"><span class="pre">TokenBigramSplitSymbolAlpha</span></code> tokenizer tokenizes <code class="docutils literal"><span class="pre">groonga</span></code> to
|
1099
|
+
<code class="docutils literal"><span class="pre">gr|ro|oo|on|ng|ga</span></code>. See <a class="reference internal" href="../tokenizers.html"><em>Tokenizers</em></a> for details.)
|
1100
|
+
It means that <code class="docutils literal"><span class="pre">groonga</span></code> is indexed but <code class="docutils literal"><span class="pre">groo</span></code> isn't indexed. So no
|
1101
|
+
records are matched against <code class="docutils literal"><span class="pre">groo</span></code> by exact match. In the case, the
|
1102
1102
|
search storategy escalation is used because the number of matched
|
1103
|
-
records (0) is equal to <
|
1104
|
-
is matched against <
|
1105
|
-
<p>The second <
|
1106
|
-
word <
|
1103
|
+
records (0) is equal to <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> (0). One record
|
1104
|
+
is matched against <code class="docutils literal"><span class="pre">groo</span></code> by unsplit search.</p>
|
1105
|
+
<p>The second <code class="docutils literal"><span class="pre">select</span></code> command also searches records that contain a
|
1106
|
+
word <code class="docutils literal"><span class="pre">groo</span></code> in <code class="docutils literal"><span class="pre">content</span></code> column value from <code class="docutils literal"><span class="pre">Entries</span></code> table. And
|
1107
1107
|
it also doesn't found matched records. In this case, the search
|
1108
1108
|
storategy escalation is not used because the number of matched
|
1109
|
-
records (0) is larger than <
|
1109
|
+
records (0) is larger than <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code> (-1). So no
|
1110
1110
|
more searches aren't executed. And no records are matched.</p>
|
1111
1111
|
</div>
|
1112
1112
|
<div class="section" id="query-expansion">
|
1113
|
-
<span id="id2"></span><h4>7.3.
|
1113
|
+
<span id="id2"></span><h4>7.3.26.4.3.2. <code class="docutils literal"><span class="pre">query_expansion</span></code><a class="headerlink" href="#query-expansion" title="Permalink to this headline">¶</a></h4>
|
1114
1114
|
<p>Deprecated. Use <a class="reference internal" href="#query-expander"><em>query_expander</em></a> instead.</p>
|
1115
1115
|
</div>
|
1116
1116
|
<div class="section" id="query-flags">
|
1117
|
-
<span id="id3"></span><h4>7.3.
|
1118
|
-
<p>It customs <
|
1119
|
-
by <
|
1120
|
-
<
|
1121
|
-
column value by <
|
1117
|
+
<span id="id3"></span><h4>7.3.26.4.3.3. <code class="docutils literal"><span class="pre">query_flags</span></code><a class="headerlink" href="#query-flags" title="Permalink to this headline">¶</a></h4>
|
1118
|
+
<p>It customs <code class="docutils literal"><span class="pre">query</span></code> parameter syntax. You cannot update column value
|
1119
|
+
by <code class="docutils literal"><span class="pre">query</span></code> parameter by default. But if you specify
|
1120
|
+
<code class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></code> as <code class="docutils literal"><span class="pre">query_flags</span></code>, you can update
|
1121
|
+
column value by <code class="docutils literal"><span class="pre">query</span></code>.</p>
|
1122
1122
|
<p>Here are available values:</p>
|
1123
1123
|
<ul class="simple">
|
1124
|
-
<li><
|
1125
|
-
<li><
|
1126
|
-
<li><
|
1127
|
-
<li><
|
1128
|
-
<li><
|
1124
|
+
<li><code class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></code></li>
|
1125
|
+
<li><code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code></li>
|
1126
|
+
<li><code class="docutils literal"><span class="pre">ALLOW_UPDATE</span></code></li>
|
1127
|
+
<li><code class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></code></li>
|
1128
|
+
<li><code class="docutils literal"><span class="pre">NONE</span></code></li>
|
1129
1129
|
</ul>
|
1130
|
-
<p><
|
1130
|
+
<p><code class="docutils literal"><span class="pre">ALLOW_PRAGMA</span></code> enables pragma at the head of <code class="docutils literal"><span class="pre">query</span></code>. This is not
|
1131
1131
|
implemented yet.</p>
|
1132
|
-
<p><
|
1133
|
-
in <
|
1132
|
+
<p><code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> enables search againt columns that are not included
|
1133
|
+
in <code class="docutils literal"><span class="pre">match_columns</span></code>. To specify column, there are <code class="docutils literal"><span class="pre">COLUMN:...</span></code>
|
1134
1134
|
syntaxes.</p>
|
1135
|
-
<p><
|
1136
|
-
<
|
1135
|
+
<p><code class="docutils literal"><span class="pre">ALLOW_UPDATE</span></code> enables column update by <code class="docutils literal"><span class="pre">query</span></code> with
|
1136
|
+
<code class="docutils literal"><span class="pre">COLUMN:=NEW_VALUE</span></code> syntax. <code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> is also required to
|
1137
1137
|
update column because the column update syntax specifies column.</p>
|
1138
|
-
<p><
|
1138
|
+
<p><code class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></code> enables leading NOT condition with <code class="docutils literal"><span class="pre">-WORD</span></code>
|
1139
1139
|
syntax. The query searches records that doesn't match
|
1140
|
-
<
|
1140
|
+
<code class="docutils literal"><span class="pre">WORD</span></code>. Leading NOT condition query is heavy query in many cases
|
1141
1141
|
because it matches many records. So this flag is disabled by
|
1142
1142
|
default. Be careful about it when you use the flag.</p>
|
1143
|
-
<p><
|
1144
|
-
<p>They can be combined by separated <
|
1145
|
-
<
|
1146
|
-
<p>The default value is <
|
1147
|
-
<p>Here is a usage example of <
|
1143
|
+
<p><code class="docutils literal"><span class="pre">NONE</span></code> is just ignores. You can use <code class="docutils literal"><span class="pre">NONE</span></code> for specifying no flags.</p>
|
1144
|
+
<p>They can be combined by separated <code class="docutils literal"><span class="pre">|</span></code> such as
|
1145
|
+
<code class="docutils literal"><span class="pre">ALLOW_COLUMN|ALLOW_UPDATE</span></code>.</p>
|
1146
|
+
<p>The default value is <code class="docutils literal"><span class="pre">ALLOW_PRAGMA|ALLOW_COLUMN</span></code>.</p>
|
1147
|
+
<p>Here is a usage example of <code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code>.</p>
|
1148
1148
|
<p>Execution example:</p>
|
1149
1149
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --query content:@mroonga --query_flags ALLOW_COLUMN
|
1150
1150
|
# [
|
@@ -1187,9 +1187,9 @@ default. Be careful about it when you use the flag.</p>
|
|
1187
1187
|
# ]
|
1188
1188
|
</pre></div>
|
1189
1189
|
</div>
|
1190
|
-
<p>The <
|
1191
|
-
<
|
1192
|
-
<p>Here is a usage example of <
|
1190
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain <code class="docutils literal"><span class="pre">mroonga</span></code> in
|
1191
|
+
<code class="docutils literal"><span class="pre">content</span></code> column value from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
1192
|
+
<p>Here is a usage example of <code class="docutils literal"><span class="pre">ALLOW_UPDATE</span></code>.</p>
|
1193
1193
|
<p>Execution example:</p>
|
1194
1194
|
<div class="highlight-none"><div class="highlight"><pre>table_create Users TABLE_HASH_KEY ShortText
|
1195
1195
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
@@ -1281,10 +1281,10 @@ select Users
|
|
1281
1281
|
# ]
|
1282
1282
|
</pre></div>
|
1283
1283
|
</div>
|
1284
|
-
<p>The first <
|
1285
|
-
to <
|
1284
|
+
<p>The first <code class="docutils literal"><span class="pre">select</span></code> command sets <code class="docutils literal"><span class="pre">age</span></code> column value of all records
|
1285
|
+
to <code class="docutils literal"><span class="pre">19</span></code>. The second <code class="docutils literal"><span class="pre">select</span></code> command outputs updated <code class="docutils literal"><span class="pre">age</span></code>
|
1286
1286
|
column values.</p>
|
1287
|
-
<p>Here is a usage example of <
|
1287
|
+
<p>Here is a usage example of <code class="docutils literal"><span class="pre">ALLOW_LEADING_NOT</span></code>.</p>
|
1288
1288
|
<p>Execution example:</p>
|
1289
1289
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT
|
1290
1290
|
# [
|
@@ -1345,9 +1345,9 @@ column values.</p>
|
|
1345
1345
|
# ]
|
1346
1346
|
</pre></div>
|
1347
1347
|
</div>
|
1348
|
-
<p>The <
|
1349
|
-
in <
|
1350
|
-
<p>Here is a usage example of <
|
1348
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that don't contain <code class="docutils literal"><span class="pre">mroonga</span></code>
|
1349
|
+
in <code class="docutils literal"><span class="pre">content</span></code> column value from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
1350
|
+
<p>Here is a usage example of <code class="docutils literal"><span class="pre">NONE</span></code>.</p>
|
1351
1351
|
<p>Execution example:</p>
|
1352
1352
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE
|
1353
1353
|
# [
|
@@ -1390,36 +1390,36 @@ in <tt class="docutils literal"><span class="pre">content</span></tt> column val
|
|
1390
1390
|
# ]
|
1391
1391
|
</pre></div>
|
1392
1392
|
</div>
|
1393
|
-
<p>The <
|
1394
|
-
<
|
1395
|
-
Note that <
|
1396
|
-
column is equal to <
|
1393
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command searches records that contain one of two words
|
1394
|
+
<code class="docutils literal"><span class="pre">mroonga</span></code> or <code class="docutils literal"><span class="pre">_key:Groonga</span></code> in <code class="docutils literal"><span class="pre">content</span></code> from <code class="docutils literal"><span class="pre">Entries</span></code> table.
|
1395
|
+
Note that <code class="docutils literal"><span class="pre">_key:Groonga</span></code> doesn't mean that the value of <code class="docutils literal"><span class="pre">_key</span></code>
|
1396
|
+
column is equal to <code class="docutils literal"><span class="pre">Groonga</span></code>. Because <code class="docutils literal"><span class="pre">ALLOW_COLUMN</span></code> flag is not
|
1397
1397
|
specified.</p>
|
1398
1398
|
<p>See also <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a>.</p>
|
1399
1399
|
</div>
|
1400
1400
|
<div class="section" id="query-expander">
|
1401
|
-
<span id="id4"></span><h4>7.3.
|
1401
|
+
<span id="id4"></span><h4>7.3.26.4.3.4. <code class="docutils literal"><span class="pre">query_expander</span></code><a class="headerlink" href="#query-expander" title="Permalink to this headline">¶</a></h4>
|
1402
1402
|
<p>It's for query expansion. Query expansion substitutes specific words
|
1403
1403
|
to another words in query. Nomally, it's used for synonym search.</p>
|
1404
|
-
<p>It specifies a column that is used to substitute <
|
1404
|
+
<p>It specifies a column that is used to substitute <code class="docutils literal"><span class="pre">query</span></code> parameter
|
1405
1405
|
value. The format of this parameter value is
|
1406
|
-
"<
|
1407
|
-
<
|
1406
|
+
"<code class="docutils literal"><span class="pre">${TABLE}.${COLUMN}</span></code>". For example, "<code class="docutils literal"><span class="pre">Terms.synonym</span></code>" specifies
|
1407
|
+
<code class="docutils literal"><span class="pre">synonym</span></code> column in <code class="docutils literal"><span class="pre">Terms</span></code> table.</p>
|
1408
1408
|
<p>Table for query expansion is called "substitution table". Substitution
|
1409
|
-
table's key must be <
|
1409
|
+
table's key must be <code class="docutils literal"><span class="pre">ShortText</span></code>. So array table (<code class="docutils literal"><span class="pre">TABLE_NO_KEY</span></code>)
|
1410
1410
|
can't be used for query expansion. Because array table doesn't have
|
1411
1411
|
key.</p>
|
1412
1412
|
<p>Column for query expansion is called "substitution
|
1413
1413
|
column". Substitution column's value type must be
|
1414
|
-
<
|
1414
|
+
<code class="docutils literal"><span class="pre">ShortText</span></code>. Column type must be vector (<code class="docutils literal"><span class="pre">COLUMN_VECTOR</span></code>).</p>
|
1415
1415
|
<p>Query expansion substitutes key of substitution table in query with
|
1416
|
-
values in substitution column. If a word in <
|
1416
|
+
values in substitution column. If a word in <code class="docutils literal"><span class="pre">query</span></code> is a key of
|
1417
1417
|
substitution table, the word is substituted with substitution column
|
1418
1418
|
value that is associated with the key. Substition isn't performed
|
1419
1419
|
recursively. It means that substitution target words in substituted
|
1420
1420
|
query aren't substituted.</p>
|
1421
1421
|
<p>Here is a sample substitution table to show a simple
|
1422
|
-
<
|
1422
|
+
<code class="docutils literal"><span class="pre">query_expander</span></code> usage example.</p>
|
1423
1423
|
<p>Execution example:</p>
|
1424
1424
|
<div class="highlight-none"><div class="highlight"><pre>table_create Thesaurus TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
1425
1425
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
@@ -1433,22 +1433,22 @@ load --table Thesaurus
|
|
1433
1433
|
# [[0, 1337566253.89858, 0.000355720520019531], 2]
|
1434
1434
|
</pre></div>
|
1435
1435
|
</div>
|
1436
|
-
<p><
|
1437
|
-
<
|
1438
|
-
searches with <
|
1439
|
-
user searches with <
|
1440
|
-
<span class="pre">OR</span> <span class="pre">(senna))"</span></
|
1441
|
-
<
|
1436
|
+
<p><code class="docutils literal"><span class="pre">Thesaurus</span></code> substitution table has two synonyms, <code class="docutils literal"><span class="pre">"mroonga"</span></code> and
|
1437
|
+
<code class="docutils literal"><span class="pre">"groonga"</span></code>. If an user searches with <code class="docutils literal"><span class="pre">"mroonga"</span></code>, groonga
|
1438
|
+
searches with <code class="docutils literal"><span class="pre">"((mroonga)</span> <span class="pre">OR</span> <span class="pre">(tritonn)</span> <span class="pre">OR</span> <span class="pre">(groonga</span> <span class="pre">mysql))"</span></code>. If an
|
1439
|
+
user searches with <code class="docutils literal"><span class="pre">"groonga"</span></code>, groonga searches with <code class="docutils literal"><span class="pre">"((groonga)</span>
|
1440
|
+
<span class="pre">OR</span> <span class="pre">(senna))"</span></code>. Nomrally, it's good idea that substitution table has
|
1441
|
+
<code class="docutils literal"><span class="pre">KEY_NORMALIZE</span></code> flag. If the flag is used, substitute target word is
|
1442
1442
|
matched in case insensitive manner.</p>
|
1443
1443
|
<p>Note that those synonym values include the key value such as
|
1444
|
-
<
|
1444
|
+
<code class="docutils literal"><span class="pre">"mroonga"</span></code> and <code class="docutils literal"><span class="pre">"groonga"</span></code>. It's recommended that you include the
|
1445
1445
|
key value. If you don't include key value, substituted value doesn't
|
1446
1446
|
include the original substitute target value. Normally, including the
|
1447
1447
|
original value is better search result. If you have a word that you
|
1448
1448
|
don't want to be searched, you should not include the original
|
1449
1449
|
word. For example, you can implement "stop words" by an empty vector
|
1450
1450
|
value.</p>
|
1451
|
-
<p>Here is a simple <
|
1451
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">query_expander</span></code> usage example.</p>
|
1452
1452
|
<p>Execution example:</p>
|
1453
1453
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query "mroonga"
|
1454
1454
|
# [
|
@@ -1581,13 +1581,13 @@ select Entries --match_columns content --query "((mroonga) OR (tritonn) OR
|
|
1581
1581
|
# ]
|
1582
1582
|
</pre></div>
|
1583
1583
|
</div>
|
1584
|
-
<p>The first <
|
1585
|
-
that has <
|
1586
|
-
query expansion. So a record that has <
|
1587
|
-
third <
|
1588
|
-
the second <
|
1584
|
+
<p>The first <code class="docutils literal"><span class="pre">select</span></code> command doesn't use query expansion. So a record
|
1585
|
+
that has <code class="docutils literal"><span class="pre">"tritonn"</span></code> isn't found. The second <code class="docutils literal"><span class="pre">select</span></code> command uses
|
1586
|
+
query expansion. So a record that has <code class="docutils literal"><span class="pre">"tritonn"</span></code> is found. The
|
1587
|
+
third <code class="docutils literal"><span class="pre">select</span></code> command doesn't use query expansion but it is same as
|
1588
|
+
the second <code class="docutils literal"><span class="pre">select</span></code> command. The third one uses expanded query.</p>
|
1589
1589
|
<p>Each substitute value can contain any <a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a> syntax
|
1590
|
-
such as <
|
1590
|
+
such as <code class="docutils literal"><span class="pre">(...)</span></code> and <code class="docutils literal"><span class="pre">OR</span></code>. You can use complex substitution by
|
1591
1591
|
using those syntax.</p>
|
1592
1592
|
<p>Here is a complex substitution usage example that uses query syntax.</p>
|
1593
1593
|
<p>Execution example:</p>
|
@@ -1643,20 +1643,20 @@ select Entries --match_columns content --query "popular" --query_expan
|
|
1643
1643
|
# ]
|
1644
1644
|
</pre></div>
|
1645
1645
|
</div>
|
1646
|
-
<p>The <
|
1647
|
-
substituted with <
|
1646
|
+
<p>The <code class="docutils literal"><span class="pre">load</span></code> command registers a new synonym <code class="docutils literal"><span class="pre">"popular"</span></code>. It is
|
1647
|
+
substituted with <code class="docutils literal"><span class="pre">((popular)</span> <span class="pre">OR</span> <span class="pre">(n_likes:>=10))</span></code>. The substituted
|
1648
1648
|
query means that "popular" is containing the word "popular" or 10 or
|
1649
1649
|
more liked entries.</p>
|
1650
|
-
<p>The <
|
1651
|
-
is equal to or more than <
|
1650
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command outputs records that <code class="docutils literal"><span class="pre">n_likes</span></code> column value
|
1651
|
+
is equal to or more than <code class="docutils literal"><span class="pre">10</span></code> from <code class="docutils literal"><span class="pre">Entries</span></code> table.</p>
|
1652
1652
|
</div>
|
1653
1653
|
</div>
|
1654
1654
|
<div class="section" id="output-related-parameters">
|
1655
|
-
<h3>7.3.
|
1655
|
+
<h3>7.3.26.4.4. Output related parameters<a class="headerlink" href="#output-related-parameters" title="Permalink to this headline">¶</a></h3>
|
1656
1656
|
<div class="section" id="output-columns">
|
1657
|
-
<span id="id5"></span><h4>7.3.
|
1658
|
-
<p>It specifies output columns separated by <
|
1659
|
-
<p>Here is a simple <
|
1657
|
+
<span id="id5"></span><h4>7.3.26.4.4.1. <code class="docutils literal"><span class="pre">output_columns</span></code><a class="headerlink" href="#output-columns" title="Permalink to this headline">¶</a></h4>
|
1658
|
+
<p>It specifies output columns separated by <code class="docutils literal"><span class="pre">,</span></code>.</p>
|
1659
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">output_columns</span></code> usage example.</p>
|
1660
1660
|
<p>Execution example:</p>
|
1661
1661
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_id, _key' --limit 1
|
1662
1662
|
# [
|
@@ -1689,11 +1689,11 @@ is equal to or more than <tt class="docutils literal"><span class="pre">10</span
|
|
1689
1689
|
# ]
|
1690
1690
|
</pre></div>
|
1691
1691
|
</div>
|
1692
|
-
<p>The <
|
1692
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command just outputs <code class="docutils literal"><span class="pre">_id</span></code> and <code class="docutils literal"><span class="pre">_key</span></code> column
|
1693
1693
|
values.</p>
|
1694
|
-
<p><
|
1694
|
+
<p><code class="docutils literal"><span class="pre">*</span></code> is a special value. It means that all columns that are not
|
1695
1695
|
<a class="reference internal" href="../columns/pseudo.html"><em>疑似カラム (pseudo_column)</em></a>.</p>
|
1696
|
-
<p>Here is a <
|
1696
|
+
<p>Here is a <code class="docutils literal"><span class="pre">*</span></code> usage example.</p>
|
1697
1697
|
<p>Execution example:</p>
|
1698
1698
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns '_key, *' --limit 1
|
1699
1699
|
# [
|
@@ -1731,17 +1731,17 @@ values.</p>
|
|
1731
1731
|
# ]
|
1732
1732
|
</pre></div>
|
1733
1733
|
</div>
|
1734
|
-
<p>The <
|
1735
|
-
column and <
|
1734
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command outputs <code class="docutils literal"><span class="pre">_key</span></code> pseudo column, <code class="docutils literal"><span class="pre">content</span></code>
|
1735
|
+
column and <code class="docutils literal"><span class="pre">n_likes</span></code> column values but doesn't output <code class="docutils literal"><span class="pre">_id</span></code> pseudo
|
1736
1736
|
column value.</p>
|
1737
|
-
<p>The default value is <
|
1738
|
-
values except <
|
1737
|
+
<p>The default value is <code class="docutils literal"><span class="pre">_id,</span> <span class="pre">_key,</span> <span class="pre">*</span></code>. It means that all column
|
1738
|
+
values except <code class="docutils literal"><span class="pre">_score</span></code> are outputted.</p>
|
1739
1739
|
</div>
|
1740
1740
|
<div class="section" id="sortby">
|
1741
|
-
<h4>7.3.
|
1742
|
-
<p>It specifies sort keys separated by <
|
1741
|
+
<h4>7.3.26.4.4.2. <code class="docutils literal"><span class="pre">sortby</span></code><a class="headerlink" href="#sortby" title="Permalink to this headline">¶</a></h4>
|
1742
|
+
<p>It specifies sort keys separated by <code class="docutils literal"><span class="pre">,</span></code>. Each sort key is column
|
1743
1743
|
name.</p>
|
1744
|
-
<p>Here is a simple <
|
1744
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">sortby</span></code> usage example.</p>
|
1745
1745
|
<p>Execution example:</p>
|
1746
1746
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby 'n_likes, _id'
|
1747
1747
|
# [
|
@@ -1808,12 +1808,12 @@ name.</p>
|
|
1808
1808
|
# ]
|
1809
1809
|
</pre></div>
|
1810
1810
|
</div>
|
1811
|
-
<p>The <
|
1812
|
-
order. For records that has the same <
|
1813
|
-
in ascending order. <
|
1811
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command sorts by <code class="docutils literal"><span class="pre">n_likes</span></code> column value in ascending
|
1812
|
+
order. For records that has the same <code class="docutils literal"><span class="pre">n_likes</span></code> are sorted by <code class="docutils literal"><span class="pre">_id</span></code>
|
1813
|
+
in ascending order. <code class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Senna"</span></code> and <code class="docutils literal"><span class="pre">"Good-bye</span> <span class="pre">Tritonn"</span></code>
|
1814
1814
|
are the case.</p>
|
1815
|
-
<p>If you want to sort in descending order, add <
|
1816
|
-
<p>Here is a descending order <
|
1815
|
+
<p>If you want to sort in descending order, add <code class="docutils literal"><span class="pre">-</span></code> before column name.</p>
|
1816
|
+
<p>Here is a descending order <code class="docutils literal"><span class="pre">sortby</span></code> usage example.</p>
|
1817
1817
|
<p>Execution example:</p>
|
1818
1818
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby '-n_likes, _id'
|
1819
1819
|
# [
|
@@ -1880,10 +1880,10 @@ are the case.</p>
|
|
1880
1880
|
# ]
|
1881
1881
|
</pre></div>
|
1882
1882
|
</div>
|
1883
|
-
<p>The <
|
1884
|
-
order. But ascending order is used for sorting by <
|
1885
|
-
<p>You can use <
|
1886
|
-
<
|
1883
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command sorts by <code class="docutils literal"><span class="pre">n_likes</span></code> column value in descending
|
1884
|
+
order. But ascending order is used for sorting by <code class="docutils literal"><span class="pre">_id</span></code>.</p>
|
1885
|
+
<p>You can use <code class="docutils literal"><span class="pre">_score</span></code> pseudo column in <code class="docutils literal"><span class="pre">sortby</span></code> if you use
|
1886
|
+
<code class="docutils literal"><span class="pre">query</span></code> or <code class="docutils literal"><span class="pre">filter</span></code> parameter.</p>
|
1887
1887
|
<p>Execution example:</p>
|
1888
1888
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --match_columns content --query fast --sortby -_score --output_columns '_key, _score'
|
1889
1889
|
# [
|
@@ -1920,15 +1920,15 @@ order. But ascending order is used for sorting by <tt class="docutils literal"><
|
|
1920
1920
|
# ]
|
1921
1921
|
</pre></div>
|
1922
1922
|
</div>
|
1923
|
-
<p>The <
|
1923
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command sorts matched records by hit score in
|
1924
1924
|
descending order and outputs record key and hit score.</p>
|
1925
|
-
<p>If you use <
|
1925
|
+
<p>If you use <code class="docutils literal"><span class="pre">_score</span></code> without <code class="docutils literal"><span class="pre">query</span></code> nor <code class="docutils literal"><span class="pre">filter</span></code> parameters,
|
1926
1926
|
it's just ignored but get a warning in log file.</p>
|
1927
1927
|
</div>
|
1928
1928
|
<div class="section" id="offset">
|
1929
|
-
<h4>7.3.
|
1929
|
+
<h4>7.3.26.4.4.3. <code class="docutils literal"><span class="pre">offset</span></code><a class="headerlink" href="#offset" title="Permalink to this headline">¶</a></h4>
|
1930
1930
|
<p>It specifies offset to determine output records range. Offset is
|
1931
|
-
zero-origin. <
|
1931
|
+
zero-origin. <code class="docutils literal"><span class="pre">--offset</span> <span class="pre">1</span></code> means output range is started from the 2nd
|
1932
1932
|
record.</p>
|
1933
1933
|
<p>Execution example:</p>
|
1934
1934
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 3 --output_columns _key
|
@@ -1960,10 +1960,10 @@ record.</p>
|
|
1960
1960
|
# ]
|
1961
1961
|
</pre></div>
|
1962
1962
|
</div>
|
1963
|
-
<p>The <
|
1964
|
-
<p>You can specify negative value. It means that <
|
1965
|
-
<span class="pre">records</span> <span class="pre">+</span> <span class="pre">offset</span></
|
1966
|
-
<
|
1963
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command outputs from the 4th record.</p>
|
1964
|
+
<p>You can specify negative value. It means that <code class="docutils literal"><span class="pre">the</span> <span class="pre">number</span> <span class="pre">of</span> <span class="pre">matched</span>
|
1965
|
+
<span class="pre">records</span> <span class="pre">+</span> <span class="pre">offset</span></code>. If you have 3 matched records and specify
|
1966
|
+
<code class="docutils literal"><span class="pre">--offset</span> <span class="pre">-2</span></code>, you get records from the 1st (<code class="docutils literal"><span class="pre">3</span> <span class="pre">+</span> <span class="pre">-2</span> <span class="pre">=</span> <span class="pre">1</span></code>) record
|
1967
1967
|
to the 3rd record.</p>
|
1968
1968
|
<p>Execution example:</p>
|
1969
1969
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset -2 --output_columns _key
|
@@ -1995,15 +1995,15 @@ to the 3rd record.</p>
|
|
1995
1995
|
# ]
|
1996
1996
|
</pre></div>
|
1997
1997
|
</div>
|
1998
|
-
<p>The <
|
1999
|
-
number of records is <
|
2000
|
-
<p>The default value is <
|
1998
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command outputs from the 4th record because the total
|
1999
|
+
number of records is <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
2000
|
+
<p>The default value is <code class="docutils literal"><span class="pre">0</span></code>.</p>
|
2001
2001
|
</div>
|
2002
2002
|
<div class="section" id="limit">
|
2003
|
-
<h4>7.3.
|
2003
|
+
<h4>7.3.26.4.4.4. <code class="docutils literal"><span class="pre">limit</span></code><a class="headerlink" href="#limit" title="Permalink to this headline">¶</a></h4>
|
2004
2004
|
<p>It specifies the max number of output records. If the number of
|
2005
|
-
matched records is less than <
|
2006
|
-
<p>Here is a simple <
|
2005
|
+
matched records is less than <code class="docutils literal"><span class="pre">limit</span></code>, all records are outputted.</p>
|
2006
|
+
<p>Here is a simple <code class="docutils literal"><span class="pre">limit</span></code> usage example.</p>
|
2007
2007
|
<p>Execution example:</p>
|
2008
2008
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --sortby _id --offset 2 --limit 3 --output_columns _key
|
2009
2009
|
# [
|
@@ -2037,11 +2037,11 @@ matched records is less than <tt class="docutils literal"><span class="pre">limi
|
|
2037
2037
|
# ]
|
2038
2038
|
</pre></div>
|
2039
2039
|
</div>
|
2040
|
-
<p>The <
|
2041
|
-
<p>You can specify negative value. It means that <
|
2042
|
-
<span class="pre">records</span> <span class="pre">+</span> <span class="pre">limit</span> <span class="pre">+</span> <span class="pre">1</span></
|
2040
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command outputs the 3rd, the 4th and the 5th records.</p>
|
2041
|
+
<p>You can specify negative value. It means that <code class="docutils literal"><span class="pre">the</span> <span class="pre">number</span> <span class="pre">of</span> <span class="pre">matched</span>
|
2042
|
+
<span class="pre">records</span> <span class="pre">+</span> <span class="pre">limit</span> <span class="pre">+</span> <span class="pre">1</span></code>. For example, <code class="docutils literal"><span class="pre">--limit</span> <span class="pre">-1</span></code> outputs all
|
2043
2043
|
records. It's very useful value to show all records.</p>
|
2044
|
-
<p>Here is a simple negative <
|
2044
|
+
<p>Here is a simple negative <code class="docutils literal"><span class="pre">limit</span></code> value usage example.</p>
|
2045
2045
|
<p>Execution example:</p>
|
2046
2046
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --limit -1
|
2047
2047
|
# [
|
@@ -2108,85 +2108,85 @@ records. It's very useful value to show all records.</p>
|
|
2108
2108
|
# ]
|
2109
2109
|
</pre></div>
|
2110
2110
|
</div>
|
2111
|
-
<p>The <
|
2112
|
-
<p>The default value is <
|
2111
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command outputs all records.</p>
|
2112
|
+
<p>The default value is <code class="docutils literal"><span class="pre">10</span></code>.</p>
|
2113
2113
|
</div>
|
2114
2114
|
<div class="section" id="scorer">
|
2115
|
-
<h4>7.3.
|
2115
|
+
<h4>7.3.26.4.4.5. <code class="docutils literal"><span class="pre">scorer</span></code><a class="headerlink" href="#scorer" title="Permalink to this headline">¶</a></h4>
|
2116
2116
|
<p>TODO: write in English and add example.</p>
|
2117
2117
|
<p>検索条件にマッチする全てのレコードに対して適用するgrn_exprをscript形式で指定します。</p>
|
2118
2118
|
<p>scorerは、検索処理が完了し、ソート処理が実行される前に呼び出されます。従って、各レコードのスコアを操作する式を指定しておけば、検索結果のソート順序をカスタマイズできるようになります。</p>
|
2119
2119
|
</div>
|
2120
2120
|
</div>
|
2121
2121
|
<div class="section" id="facet-related-parameters">
|
2122
|
-
<h3>7.3.
|
2122
|
+
<h3>7.3.26.4.5. Facet related parameters<a class="headerlink" href="#facet-related-parameters" title="Permalink to this headline">¶</a></h3>
|
2123
2123
|
<div class="section" id="drilldown">
|
2124
|
-
<h4>7.3.
|
2124
|
+
<h4>7.3.26.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code><a class="headerlink" href="#drilldown" title="Permalink to this headline">¶</a></h4>
|
2125
2125
|
<p>TODO: write in English and add example.</p>
|
2126
2126
|
<p>グループ化のキーとなるカラム名のリストをカンマ(',')区切りで指定します。検索条件にマッチした各レコードを出力したのちに、drilldownに指定されたカラムの値が同一であるレコードをとりまとめて、それぞれについて結果レコードを出力します。</p>
|
2127
2127
|
</div>
|
2128
2128
|
<div class="section" id="drilldown-sortby">
|
2129
|
-
<h4>7.3.
|
2129
|
+
<h4>7.3.26.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code><a class="headerlink" href="#drilldown-sortby" title="Permalink to this headline">¶</a></h4>
|
2130
2130
|
<p>TODO: write in English and add example.</p>
|
2131
2131
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、ソートキーとなるカラム名のリストをカンマ(',')区切りで指定します。sortbyパラメータと同様に昇降順を指定できます。</p>
|
2132
2132
|
</div>
|
2133
2133
|
<div class="section" id="drilldown-output-columns">
|
2134
|
-
<h4>7.3.
|
2134
|
+
<h4>7.3.26.4.5.3. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code><a class="headerlink" href="#drilldown-output-columns" title="Permalink to this headline">¶</a></h4>
|
2135
2135
|
<p>TODO: write in English and add example.</p>
|
2136
2136
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力するカラム名のリストをカンマ(',')区切りで指定します。</p>
|
2137
2137
|
</div>
|
2138
2138
|
<div class="section" id="drilldown-offset">
|
2139
|
-
<h4>7.3.
|
2139
|
+
<h4>7.3.26.4.5.4. <code class="docutils literal"><span class="pre">drilldown_offset</span></code><a class="headerlink" href="#drilldown-offset" title="Permalink to this headline">¶</a></h4>
|
2140
2140
|
<p>TODO: write in English and add example.</p>
|
2141
2141
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力対象となる最初のレコードの番号を0ベースで指定します。デフォルト値は0です。drilldown_offsetに負の値を指定した場合は、ヒットした件数 + drilldown_offsetによって算出される値が指定されたものとみなされます。</p>
|
2142
2142
|
</div>
|
2143
2143
|
<div class="section" id="drilldown-limit">
|
2144
|
-
<h4>7.3.
|
2144
|
+
<h4>7.3.26.4.5.5. <code class="docutils literal"><span class="pre">drilldown_limit</span></code><a class="headerlink" href="#drilldown-limit" title="Permalink to this headline">¶</a></h4>
|
2145
2145
|
<p>TODO: write in English and add example.</p>
|
2146
2146
|
<p>drilldown条件に指定されたカラムの値毎にとりまとめられたレコードについて、出力を行うレコードの件数を指定します。デフォルト値は10です。実際には、drilldown_offset + drilldown_limit がヒットした件数を超えない範囲でレコードが出力されます。drilldown_limitに負の値を指定した場合は、ヒットした件数 + drilldown_limit + 1 によって算出される値が指定されたものとみなされます。</p>
|
2147
2147
|
</div>
|
2148
2148
|
</div>
|
2149
2149
|
<div class="section" id="cache-related-parameter">
|
2150
|
-
<h3>7.3.
|
2150
|
+
<h3>7.3.26.4.6. Cache related parameter<a class="headerlink" href="#cache-related-parameter" title="Permalink to this headline">¶</a></h3>
|
2151
2151
|
<div class="section" id="cache">
|
2152
|
-
<h4>7.3.
|
2152
|
+
<h4>7.3.26.4.6.1. <code class="docutils literal"><span class="pre">cache</span></code><a class="headerlink" href="#cache" title="Permalink to this headline">¶</a></h4>
|
2153
2153
|
<p>TODO: write in English and add example.</p>
|
2154
2154
|
<p>クエリキャッシュに関する動作を設定します。</p>
|
2155
|
-
<p><
|
2155
|
+
<p><code class="docutils literal"><span class="pre">no</span></code></p>
|
2156
2156
|
<blockquote>
|
2157
2157
|
<div>検索結果をクエリキャッシュに残しません。キャッシュして再利用される可能性が低いクエリに対して用います。キャッシュ容量は有限です。有効なキャッシュが多くヒットするために、このパラメータは有効です。</div></blockquote>
|
2158
2158
|
</div>
|
2159
2159
|
</div>
|
2160
2160
|
<div class="section" id="score-related-parameters">
|
2161
|
-
<h3>7.3.
|
2162
|
-
<p>There is a score related parameter, <
|
2161
|
+
<h3>7.3.26.4.7. Score related parameters<a class="headerlink" href="#score-related-parameters" title="Permalink to this headline">¶</a></h3>
|
2162
|
+
<p>There is a score related parameter, <code class="docutils literal"><span class="pre">adjuster</span></code>.</p>
|
2163
2163
|
<div class="section" id="adjuster">
|
2164
|
-
<span id="select-adjuster"></span><h4>7.3.
|
2164
|
+
<span id="select-adjuster"></span><h4>7.3.26.4.7.1. <code class="docutils literal"><span class="pre">adjuster</span></code><a class="headerlink" href="#adjuster" title="Permalink to this headline">¶</a></h4>
|
2165
2165
|
<p>It specifies one or more score adjust expressions. You need to use
|
2166
|
-
<
|
2166
|
+
<code class="docutils literal"><span class="pre">adjuster</span></code> with <code class="docutils literal"><span class="pre">query</span></code> or <code class="docutils literal"><span class="pre">filter</span></code>. <code class="docutils literal"><span class="pre">adjuster</span></code> doesn't work
|
2167
2167
|
with not searched request.</p>
|
2168
|
-
<p>You can increase score of specific records by <
|
2169
|
-
use <
|
2170
|
-
<p>For example, you can use <
|
2171
|
-
that have <
|
2168
|
+
<p>You can increase score of specific records by <code class="docutils literal"><span class="pre">adjuster</span></code>. You can
|
2169
|
+
use <code class="docutils literal"><span class="pre">adjuster</span></code> to set high score for important records.</p>
|
2170
|
+
<p>For example, you can use <code class="docutils literal"><span class="pre">adjuster</span></code> to increase score of records
|
2171
|
+
that have <code class="docutils literal"><span class="pre">groonga</span></code> tag.</p>
|
2172
2172
|
<p>Here is the syntax:</p>
|
2173
2173
|
<div class="highlight-none"><div class="highlight"><pre>--adjuster "SCORE_ADJUST_EXPRESSION1 + SCORE_ADJUST_EXPRESSION2 + ..."
|
2174
2174
|
</pre></div>
|
2175
2175
|
</div>
|
2176
|
-
<p>Here is the <
|
2176
|
+
<p>Here is the <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> syntax:</p>
|
2177
2177
|
<div class="highlight-none"><div class="highlight"><pre>COLUMN @ "KEYWORD" * FACTOR
|
2178
2178
|
</pre></div>
|
2179
2179
|
</div>
|
2180
2180
|
<p>Note the following:</p>
|
2181
2181
|
<blockquote>
|
2182
2182
|
<div><ul class="simple">
|
2183
|
-
<li><
|
2184
|
-
<li><
|
2185
|
-
<li><
|
2183
|
+
<li><code class="docutils literal"><span class="pre">COLUMN</span></code> must be indexed.</li>
|
2184
|
+
<li><code class="docutils literal"><span class="pre">"KEYWORD"</span></code> must be a string.</li>
|
2185
|
+
<li><code class="docutils literal"><span class="pre">FACTOR</span></code> must be a positive integer.</li>
|
2186
2186
|
</ul>
|
2187
2187
|
</div></blockquote>
|
2188
|
-
<p>Here is a sample <
|
2189
|
-
<
|
2188
|
+
<p>Here is a sample <code class="docutils literal"><span class="pre">adjuster</span></code> usage example that uses just one
|
2189
|
+
<code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code>:</p>
|
2190
2190
|
<p>Execution example:</p>
|
2191
2191
|
<div class="highlight-none"><div class="highlight"><pre>select Entries \
|
2192
2192
|
--filter true \
|
@@ -2247,13 +2247,13 @@ that have <tt class="docutils literal"><span class="pre">groonga</span></tt> tag
|
|
2247
2247
|
# ]
|
2248
2248
|
</pre></div>
|
2249
2249
|
</div>
|
2250
|
-
<p>The <
|
2251
|
-
<
|
2252
|
-
<
|
2253
|
-
record that has <
|
2254
|
-
record that its key is <
|
2255
|
-
<p>You can omit <
|
2256
|
-
<p>Here is a sample <
|
2250
|
+
<p>The <code class="docutils literal"><span class="pre">select</span></code> command matches all records. Then it applies
|
2251
|
+
<code class="docutils literal"><span class="pre">adjuster</span></code>. The adjuster increases score of records that have
|
2252
|
+
<code class="docutils literal"><span class="pre">"groonga"</span></code> in <code class="docutils literal"><span class="pre">Entries.content</span></code> column by 5. There is only one
|
2253
|
+
record that has <code class="docutils literal"><span class="pre">"groonga"</span></code> in <code class="docutils literal"><span class="pre">Entries.content</span></code> column. So the
|
2254
|
+
record that its key is <code class="docutils literal"><span class="pre">"Groonga"</span></code> has score 6 (<code class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">5</span></code>).</p>
|
2255
|
+
<p>You can omit <code class="docutils literal"><span class="pre">FACTOR</span></code>. If you omit <code class="docutils literal"><span class="pre">FACTOR</span></code>, it is treated as 1.</p>
|
2256
|
+
<p>Here is a sample <code class="docutils literal"><span class="pre">adjuster</span></code> usage example that omits <code class="docutils literal"><span class="pre">FACTOR</span></code>:</p>
|
2257
2257
|
<p>Execution example:</p>
|
2258
2258
|
<div class="highlight-none"><div class="highlight"><pre>select Entries \
|
2259
2259
|
--filter true \
|
@@ -2314,12 +2314,12 @@ record that its key is <tt class="docutils literal"><span class="pre">"Groo
|
|
2314
2314
|
# ]
|
2315
2315
|
</pre></div>
|
2316
2316
|
</div>
|
2317
|
-
<p>The <
|
2317
|
+
<p>The <code class="docutils literal"><span class="pre">adjuster</span></code> in the <code class="docutils literal"><span class="pre">select</span></code> command doesn't have <code class="docutils literal"><span class="pre">FACTOR</span></code>. So
|
2318
2318
|
the factor is treated as 1. There is only one record that has
|
2319
|
-
<
|
2320
|
-
key is <
|
2321
|
-
<p>Here is a sample <
|
2322
|
-
<
|
2319
|
+
<code class="docutils literal"><span class="pre">"groonga"</span></code> in <code class="docutils literal"><span class="pre">Entries.content</span></code> column. So the record that its
|
2320
|
+
key is <code class="docutils literal"><span class="pre">"Groonga"</span></code> has score 2 (<code class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">1</span></code>).</p>
|
2321
|
+
<p>Here is a sample <code class="docutils literal"><span class="pre">adjuster</span></code> usage example that uses multiple
|
2322
|
+
<code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code>:</p>
|
2323
2323
|
<p>Execution example:</p>
|
2324
2324
|
<div class="highlight-none"><div class="highlight"><pre>select Entries \
|
2325
2325
|
--filter true \
|
@@ -2380,83 +2380,83 @@ key is <tt class="docutils literal"><span class="pre">"Groonga"</span>
|
|
2380
2380
|
# ]
|
2381
2381
|
</pre></div>
|
2382
2382
|
</div>
|
2383
|
-
<p>The <
|
2384
|
-
<
|
2385
|
-
scores of these <
|
2386
|
-
<
|
2387
|
-
a record that its key is <
|
2388
|
-
of the record is sum of scores of all <
|
2389
|
-
<p>The first <
|
2383
|
+
<p>The <code class="docutils literal"><span class="pre">adjuster</span></code> in the <code class="docutils literal"><span class="pre">select</span></code> command has two
|
2384
|
+
<code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> s. The final increased score is sum of
|
2385
|
+
scores of these <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> s. All
|
2386
|
+
<code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> s in the <code class="docutils literal"><span class="pre">select</span></code> command are applied to
|
2387
|
+
a record that its key is <code class="docutils literal"><span class="pre">"Groonga"</span></code>. So the final increased score
|
2388
|
+
of the record is sum of scores of all <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> s.</p>
|
2389
|
+
<p>The first <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> is <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"groonga"</span> <span class="pre">*</span> <span class="pre">5</span></code>.
|
2390
2390
|
It increases score by 5.</p>
|
2391
|
-
<p>The second <
|
2391
|
+
<p>The second <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> is <code class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"started"</span> <span class="pre">*</span> <span class="pre">3</span></code>.
|
2392
2392
|
It increases score by 3.</p>
|
2393
|
-
<p>The final increased score is 9 (<
|
2394
|
-
<p>A <
|
2395
|
-
means that increased scores of all records that has <
|
2393
|
+
<p>The final increased score is 9 (<code class="docutils literal"><span class="pre">=</span> <span class="pre">1</span> <span class="pre">+</span> <span class="pre">5</span> <span class="pre">+</span> <span class="pre">3</span></code>).</p>
|
2394
|
+
<p>A <code class="docutils literal"><span class="pre">SCORE_ADJUST_EXPRESSION</span></code> has a factor for <code class="docutils literal"><span class="pre">"KEYWORD"</span></code>. This
|
2395
|
+
means that increased scores of all records that has <code class="docutils literal"><span class="pre">"KEYWORD"</span></code> are
|
2396
2396
|
the same value. You can change increase score for each record that has
|
2397
|
-
the same <
|
2397
|
+
the same <code class="docutils literal"><span class="pre">"KEYWORD"</span></code>. It is useful to tune search score. See
|
2398
2398
|
<a class="reference internal" href="../columns/vector.html#weight-vector-column"><em>Weight vector column</em></a> for details.</p>
|
2399
2399
|
</div>
|
2400
2400
|
</div>
|
2401
2401
|
</div>
|
2402
2402
|
<div class="section" id="id6">
|
2403
|
-
<h2>7.3.
|
2403
|
+
<h2>7.3.26.5. 返値<a class="headerlink" href="#id6" title="Permalink to this headline">¶</a></h2>
|
2404
2404
|
<p>TODO: write in English and add example.</p>
|
2405
2405
|
<p>以下のようなjson形式で値が返却されます。</p>
|
2406
2406
|
<div class="highlight-none"><div class="highlight"><pre>[[リターンコード, 処理開始時間, 処理時間], [検索結果, ドリルダウン結果]]
|
2407
2407
|
</pre></div>
|
2408
2408
|
</div>
|
2409
|
-
<p><
|
2409
|
+
<p><code class="docutils literal"><span class="pre">リターンコード</span></code></p>
|
2410
2410
|
<blockquote>
|
2411
2411
|
<div>grn_rcに対応する数値が返されます。0(GRN_SUCCESS)以外の場合は、続いてエラー内容を示す
|
2412
2412
|
文字列が返されます。</div></blockquote>
|
2413
|
-
<p><
|
2413
|
+
<p><code class="docutils literal"><span class="pre">処理開始時間</span></code></p>
|
2414
2414
|
<blockquote>
|
2415
2415
|
<div>処理を開始した時間について、1970年1月1日0時0分0秒を起点とした秒数を小数で返します。</div></blockquote>
|
2416
|
-
<p><
|
2416
|
+
<p><code class="docutils literal"><span class="pre">処理時間</span></code></p>
|
2417
2417
|
<blockquote>
|
2418
2418
|
<div>処理にかかった秒数を返します。</div></blockquote>
|
2419
|
-
<p><
|
2419
|
+
<p><code class="docutils literal"><span class="pre">検索結果</span></code></p>
|
2420
2420
|
<blockquote>
|
2421
2421
|
<div><p>drilldown条件が実行される前の検索結果が以下のように出力されます。:</p>
|
2422
2422
|
<div class="highlight-none"><div class="highlight"><pre>[[ヒット数], [[カラム名1,カラム型1],..], 検索結果1,..]
|
2423
2423
|
</pre></div>
|
2424
2424
|
</div>
|
2425
|
-
<p><
|
2425
|
+
<p><code class="docutils literal"><span class="pre">ヒット数</span></code></p>
|
2426
2426
|
<blockquote>
|
2427
|
-
<div>検索条件にヒットしたレコードの数が出力されます。 <
|
2428
|
-
<p><
|
2427
|
+
<div>検索条件にヒットしたレコードの数が出力されます。 <code class="docutils literal"><span class="pre">--limit</span></code> オプションで出力件数を制限した場合は出力するレコード数と一致しません。 <code class="docutils literal"><span class="pre">ヒット数</span></code> は <code class="docutils literal"><span class="pre">--limit</span></code> オプションに関係なく常にヒットしたレコードの数になります。</div></blockquote>
|
2428
|
+
<p><code class="docutils literal"><span class="pre">カラム名n</span></code></p>
|
2429
2429
|
<blockquote>
|
2430
2430
|
<div>output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
|
2431
|
-
<p><
|
2431
|
+
<p><code class="docutils literal"><span class="pre">カラム型n</span></code></p>
|
2432
2432
|
<blockquote>
|
2433
2433
|
<div>output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
|
2434
|
-
<p><
|
2434
|
+
<p><code class="docutils literal"><span class="pre">検索結果n</span></code></p>
|
2435
2435
|
<blockquote>
|
2436
2436
|
<div>output_columns, offset, limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
2437
2437
|
</div></blockquote>
|
2438
|
-
<p><
|
2438
|
+
<p><code class="docutils literal"><span class="pre">drilldown結果</span></code></p>
|
2439
2439
|
<blockquote>
|
2440
2440
|
<div><p>drilldown処理の結果が以下のように出力されます。:</p>
|
2441
2441
|
<div class="highlight-none"><div class="highlight"><pre>[[[件数], [[カラム名1,カラム型1],..], 検索結果1,..],..]
|
2442
2442
|
</pre></div>
|
2443
2443
|
</div>
|
2444
|
-
<p><
|
2444
|
+
<p><code class="docutils literal"><span class="pre">件数</span></code></p>
|
2445
2445
|
<blockquote>
|
2446
2446
|
<div>drilldownに指定されたカラムの値の異なり数が出力されます。</div></blockquote>
|
2447
|
-
<p><
|
2447
|
+
<p><code class="docutils literal"><span class="pre">カラム名n</span></code></p>
|
2448
2448
|
<blockquote>
|
2449
2449
|
<div>drilldown_output_columnsに指定された条件に従って、対象となるカラム名が出力されます。</div></blockquote>
|
2450
|
-
<p><
|
2450
|
+
<p><code class="docutils literal"><span class="pre">カラム型n</span></code></p>
|
2451
2451
|
<blockquote>
|
2452
2452
|
<div>drilldown_output_columnsに指定された条件に従って、対象となるカラム型が出力されます。</div></blockquote>
|
2453
|
-
<p><
|
2453
|
+
<p><code class="docutils literal"><span class="pre">ドリルダウン結果n</span></code></p>
|
2454
2454
|
<blockquote>
|
2455
2455
|
<div>drilldown_output_columns, drilldown_offset, drilldown_limitによって指定された条件に従って各レコードの値が出力されます。</div></blockquote>
|
2456
2456
|
</div></blockquote>
|
2457
2457
|
</div>
|
2458
2458
|
<div class="section" id="see-also">
|
2459
|
-
<h2>7.3.
|
2459
|
+
<h2>7.3.26.6. See also<a class="headerlink" href="#see-also" title="Permalink to this headline">¶</a></h2>
|
2460
2460
|
<blockquote>
|
2461
2461
|
<div><ul class="simple">
|
2462
2462
|
<li><a class="reference internal" href="../grn_expr/query_syntax.html"><em>Query syntax</em></a></li>
|
@@ -2470,86 +2470,88 @@ the same <tt class="docutils literal"><span class="pre">"KEYWORD"</spa
|
|
2470
2470
|
</div>
|
2471
2471
|
</div>
|
2472
2472
|
</div>
|
2473
|
-
<div class="sphinxsidebar">
|
2473
|
+
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
2474
2474
|
<div class="sphinxsidebarwrapper">
|
2475
2475
|
<h3><a href="../../index.html">Table Of Contents</a></h3>
|
2476
2476
|
<ul>
|
2477
|
-
<li><a class="reference internal" href="#">7.3.
|
2478
|
-
<li><a class="reference internal" href="#summary">7.3.
|
2479
|
-
<li><a class="reference internal" href="#syntax">7.3.
|
2480
|
-
<li><a class="reference internal" href="#usage">7.3.
|
2481
|
-
<li><a class="reference internal" href="#simple-usage">7.3.
|
2482
|
-
<li><a class="reference internal" href="#search-conditions">7.3.
|
2483
|
-
<li><a class="reference internal" href="#search-condition-query">7.3.
|
2484
|
-
<li><a class="reference internal" href="#search-condition-filter">7.3.
|
2477
|
+
<li><a class="reference internal" href="#">7.3.26. <code class="docutils literal"><span class="pre">select</span></code></a><ul>
|
2478
|
+
<li><a class="reference internal" href="#summary">7.3.26.1. Summary</a></li>
|
2479
|
+
<li><a class="reference internal" href="#syntax">7.3.26.2. Syntax</a></li>
|
2480
|
+
<li><a class="reference internal" href="#usage">7.3.26.3. Usage</a><ul>
|
2481
|
+
<li><a class="reference internal" href="#simple-usage">7.3.26.3.1. Simple usage</a></li>
|
2482
|
+
<li><a class="reference internal" href="#search-conditions">7.3.26.3.2. Search conditions</a><ul>
|
2483
|
+
<li><a class="reference internal" href="#search-condition-query">7.3.26.3.2.1. Search condition: <code class="docutils literal"><span class="pre">query</span></code></a></li>
|
2484
|
+
<li><a class="reference internal" href="#search-condition-filter">7.3.26.3.2.2. Search condition: <code class="docutils literal"><span class="pre">filter</span></code></a></li>
|
2485
2485
|
</ul>
|
2486
2486
|
</li>
|
2487
|
-
<li><a class="reference internal" href="#paging">7.3.
|
2488
|
-
<li><a class="reference internal" href="#the-total-number-of-records">7.3.
|
2487
|
+
<li><a class="reference internal" href="#paging">7.3.26.3.3. Paging</a></li>
|
2488
|
+
<li><a class="reference internal" href="#the-total-number-of-records">7.3.26.3.4. The total number of records</a></li>
|
2489
2489
|
</ul>
|
2490
2490
|
</li>
|
2491
|
-
<li><a class="reference internal" href="#parameters">7.3.
|
2492
|
-
<li><a class="reference internal" href="#required-parameter">7.3.
|
2493
|
-
<li><a class="reference internal" href="#table">7.3.
|
2491
|
+
<li><a class="reference internal" href="#parameters">7.3.26.4. Parameters</a><ul>
|
2492
|
+
<li><a class="reference internal" href="#required-parameter">7.3.26.4.1. Required parameter</a><ul>
|
2493
|
+
<li><a class="reference internal" href="#table">7.3.26.4.1.1. <code class="docutils literal"><span class="pre">table</span></code></a></li>
|
2494
2494
|
</ul>
|
2495
2495
|
</li>
|
2496
|
-
<li><a class="reference internal" href="#search-related-parameters">7.3.
|
2497
|
-
<li><a class="reference internal" href="#match-columns">7.3.
|
2498
|
-
<li><a class="reference internal" href="#query">7.3.
|
2499
|
-
<li><a class="reference internal" href="#filter">7.3.
|
2496
|
+
<li><a class="reference internal" href="#search-related-parameters">7.3.26.4.2. Search related parameters</a><ul>
|
2497
|
+
<li><a class="reference internal" href="#match-columns">7.3.26.4.2.1. <code class="docutils literal"><span class="pre">match_columns</span></code></a></li>
|
2498
|
+
<li><a class="reference internal" href="#query">7.3.26.4.2.2. <code class="docutils literal"><span class="pre">query</span></code></a></li>
|
2499
|
+
<li><a class="reference internal" href="#filter">7.3.26.4.2.3. <code class="docutils literal"><span class="pre">filter</span></code></a></li>
|
2500
2500
|
</ul>
|
2501
2501
|
</li>
|
2502
|
-
<li><a class="reference internal" href="#advanced-search-parameters">7.3.
|
2503
|
-
<li><a class="reference internal" href="#match-escalation-threshold">7.3.
|
2504
|
-
<li><a class="reference internal" href="#query-expansion">7.3.
|
2505
|
-
<li><a class="reference internal" href="#query-flags">7.3.
|
2506
|
-
<li><a class="reference internal" href="#query-expander">7.3.
|
2502
|
+
<li><a class="reference internal" href="#advanced-search-parameters">7.3.26.4.3. Advanced search parameters</a><ul>
|
2503
|
+
<li><a class="reference internal" href="#match-escalation-threshold">7.3.26.4.3.1. <code class="docutils literal"><span class="pre">match_escalation_threshold</span></code></a></li>
|
2504
|
+
<li><a class="reference internal" href="#query-expansion">7.3.26.4.3.2. <code class="docutils literal"><span class="pre">query_expansion</span></code></a></li>
|
2505
|
+
<li><a class="reference internal" href="#query-flags">7.3.26.4.3.3. <code class="docutils literal"><span class="pre">query_flags</span></code></a></li>
|
2506
|
+
<li><a class="reference internal" href="#query-expander">7.3.26.4.3.4. <code class="docutils literal"><span class="pre">query_expander</span></code></a></li>
|
2507
2507
|
</ul>
|
2508
2508
|
</li>
|
2509
|
-
<li><a class="reference internal" href="#output-related-parameters">7.3.
|
2510
|
-
<li><a class="reference internal" href="#output-columns">7.3.
|
2511
|
-
<li><a class="reference internal" href="#sortby">7.3.
|
2512
|
-
<li><a class="reference internal" href="#offset">7.3.
|
2513
|
-
<li><a class="reference internal" href="#limit">7.3.
|
2514
|
-
<li><a class="reference internal" href="#scorer">7.3.
|
2509
|
+
<li><a class="reference internal" href="#output-related-parameters">7.3.26.4.4. Output related parameters</a><ul>
|
2510
|
+
<li><a class="reference internal" href="#output-columns">7.3.26.4.4.1. <code class="docutils literal"><span class="pre">output_columns</span></code></a></li>
|
2511
|
+
<li><a class="reference internal" href="#sortby">7.3.26.4.4.2. <code class="docutils literal"><span class="pre">sortby</span></code></a></li>
|
2512
|
+
<li><a class="reference internal" href="#offset">7.3.26.4.4.3. <code class="docutils literal"><span class="pre">offset</span></code></a></li>
|
2513
|
+
<li><a class="reference internal" href="#limit">7.3.26.4.4.4. <code class="docutils literal"><span class="pre">limit</span></code></a></li>
|
2514
|
+
<li><a class="reference internal" href="#scorer">7.3.26.4.4.5. <code class="docutils literal"><span class="pre">scorer</span></code></a></li>
|
2515
2515
|
</ul>
|
2516
2516
|
</li>
|
2517
|
-
<li><a class="reference internal" href="#facet-related-parameters">7.3.
|
2518
|
-
<li><a class="reference internal" href="#drilldown">7.3.
|
2519
|
-
<li><a class="reference internal" href="#drilldown-sortby">7.3.
|
2520
|
-
<li><a class="reference internal" href="#drilldown-output-columns">7.3.
|
2521
|
-
<li><a class="reference internal" href="#drilldown-offset">7.3.
|
2522
|
-
<li><a class="reference internal" href="#drilldown-limit">7.3.
|
2517
|
+
<li><a class="reference internal" href="#facet-related-parameters">7.3.26.4.5. Facet related parameters</a><ul>
|
2518
|
+
<li><a class="reference internal" href="#drilldown">7.3.26.4.5.1. <code class="docutils literal"><span class="pre">drilldown</span></code></a></li>
|
2519
|
+
<li><a class="reference internal" href="#drilldown-sortby">7.3.26.4.5.2. <code class="docutils literal"><span class="pre">drilldown_sortby</span></code></a></li>
|
2520
|
+
<li><a class="reference internal" href="#drilldown-output-columns">7.3.26.4.5.3. <code class="docutils literal"><span class="pre">drilldown_output_columns</span></code></a></li>
|
2521
|
+
<li><a class="reference internal" href="#drilldown-offset">7.3.26.4.5.4. <code class="docutils literal"><span class="pre">drilldown_offset</span></code></a></li>
|
2522
|
+
<li><a class="reference internal" href="#drilldown-limit">7.3.26.4.5.5. <code class="docutils literal"><span class="pre">drilldown_limit</span></code></a></li>
|
2523
2523
|
</ul>
|
2524
2524
|
</li>
|
2525
|
-
<li><a class="reference internal" href="#cache-related-parameter">7.3.
|
2526
|
-
<li><a class="reference internal" href="#cache">7.3.
|
2525
|
+
<li><a class="reference internal" href="#cache-related-parameter">7.3.26.4.6. Cache related parameter</a><ul>
|
2526
|
+
<li><a class="reference internal" href="#cache">7.3.26.4.6.1. <code class="docutils literal"><span class="pre">cache</span></code></a></li>
|
2527
2527
|
</ul>
|
2528
2528
|
</li>
|
2529
|
-
<li><a class="reference internal" href="#score-related-parameters">7.3.
|
2530
|
-
<li><a class="reference internal" href="#adjuster">7.3.
|
2529
|
+
<li><a class="reference internal" href="#score-related-parameters">7.3.26.4.7. Score related parameters</a><ul>
|
2530
|
+
<li><a class="reference internal" href="#adjuster">7.3.26.4.7.1. <code class="docutils literal"><span class="pre">adjuster</span></code></a></li>
|
2531
2531
|
</ul>
|
2532
2532
|
</li>
|
2533
2533
|
</ul>
|
2534
2534
|
</li>
|
2535
|
-
<li><a class="reference internal" href="#id6">7.3.
|
2536
|
-
<li><a class="reference internal" href="#see-also">7.3.
|
2535
|
+
<li><a class="reference internal" href="#id6">7.3.26.5. 返値</a></li>
|
2536
|
+
<li><a class="reference internal" href="#see-also">7.3.26.6. See also</a></li>
|
2537
2537
|
</ul>
|
2538
2538
|
</li>
|
2539
2539
|
</ul>
|
2540
2540
|
|
2541
2541
|
<h4>Previous topic</h4>
|
2542
2542
|
<p class="topless"><a href="ruby_load.html"
|
2543
|
-
title="previous chapter">7.3.
|
2543
|
+
title="previous chapter">7.3.25. <code class="docutils literal"><span class="pre">ruby_load</span></code></a></p>
|
2544
2544
|
<h4>Next topic</h4>
|
2545
2545
|
<p class="topless"><a href="shutdown.html"
|
2546
|
-
title="next chapter">7.3.
|
2547
|
-
<
|
2548
|
-
|
2549
|
-
<
|
2550
|
-
|
2551
|
-
|
2552
|
-
|
2546
|
+
title="next chapter">7.3.27. <code class="docutils literal"><span class="pre">shutdown</span></code></a></p>
|
2547
|
+
<div role="note" aria-label="source link">
|
2548
|
+
<h3>This Page</h3>
|
2549
|
+
<ul class="this-page-menu">
|
2550
|
+
<li><a href="../../_sources/reference/commands/select.txt"
|
2551
|
+
rel="nofollow">Show Source</a></li>
|
2552
|
+
</ul>
|
2553
|
+
</div>
|
2554
|
+
<div id="searchbox" style="display: none" role="search">
|
2553
2555
|
<h3>Quick search</h3>
|
2554
2556
|
<form class="search" action="../../search.html" method="get">
|
2555
2557
|
<input type="text" name="q" />
|
@@ -2566,24 +2568,24 @@ the same <tt class="docutils literal"><span class="pre">"KEYWORD"</spa
|
|
2566
2568
|
</div>
|
2567
2569
|
<div class="clearer"></div>
|
2568
2570
|
</div>
|
2569
|
-
<div class="related">
|
2571
|
+
<div class="related" role="navigation" aria-label="related navigation">
|
2570
2572
|
<h3>Navigation</h3>
|
2571
2573
|
<ul>
|
2572
2574
|
<li class="right" style="margin-right: 10px">
|
2573
2575
|
<a href="../../genindex.html" title="General Index"
|
2574
2576
|
>index</a></li>
|
2575
2577
|
<li class="right" >
|
2576
|
-
<a href="shutdown.html" title="7.3.
|
2578
|
+
<a href="shutdown.html" title="7.3.27. shutdown"
|
2577
2579
|
>next</a> |</li>
|
2578
2580
|
<li class="right" >
|
2579
|
-
<a href="ruby_load.html" title="7.3.
|
2581
|
+
<a href="ruby_load.html" title="7.3.25. ruby_load"
|
2580
2582
|
>previous</a> |</li>
|
2581
|
-
<li><a href="../../index.html">Groonga v4.0.
|
2583
|
+
<li><a href="../../index.html">Groonga v4.0.8 documentation</a> »</li>
|
2582
2584
|
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
2583
2585
|
<li><a href="../command.html" >7.3. Command</a> »</li>
|
2584
2586
|
</ul>
|
2585
2587
|
</div>
|
2586
|
-
<div class="footer">
|
2588
|
+
<div class="footer" role="contentinfo">
|
2587
2589
|
© Copyright 2009-2014, Brazil, Inc.
|
2588
2590
|
</div>
|
2589
2591
|
</body>
|