rroonga 4.0.7-x64-mingw32 → 4.0.8-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/README.md +1 -1
- data/doc/text/news.textile +17 -1
- data/ext/groonga/extconf.rb +2 -1
- data/ext/groonga/rb-grn-column.c +31 -0
- data/ext/groonga/rb-grn-database.c +33 -1
- data/ext/groonga/rb-grn-table.c +1 -1
- data/ext/groonga/rb-grn.h +1 -1
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/groonga/geo-point.rb +2 -1
- data/rroonga-build.rb +3 -3
- data/test/test-column.rb +68 -6
- data/test/test-command-select.rb +0 -3
- data/test/test-database.rb +28 -1
- data/test/test-expression-builder.rb +1 -1
- data/test/test-geo-point.rb +15 -0
- data/test/test-variable-size-column.rb +2 -2
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-3.dll +0 -0
- data/vendor/local/bin/libmsgpackc-2.dll +0 -0
- data/vendor/local/bin/libonig-5.dll +0 -0
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libwinpthread-1.dll +0 -0
- data/vendor/local/bin/lz4.exe +0 -0
- data/vendor/local/bin/lz4c.exe +0 -0
- data/vendor/local/bin/lz4cat +0 -0
- data/vendor/local/bin/mecab-config +2 -2
- data/vendor/local/bin/mecab.exe +0 -0
- data/vendor/local/bin/onig-config +1 -1
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/etc/groonga/httpd/groonga-httpd.conf +2 -2
- data/vendor/local/include/groonga/groonga.h +1 -0
- data/vendor/local/include/groonga/groonga/groonga.h +4 -1
- data/vendor/local/include/groonga/groonga/request_canceler.h +39 -0
- data/vendor/local/include/lz4.h +21 -29
- data/vendor/local/include/lz4frame.h +252 -0
- data/vendor/local/include/lz4hc.h +14 -63
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +3 -3
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +3 -3
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +3 -3
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +3 -3
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +3 -3
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +3 -3
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +3 -3
- data/vendor/local/lib/groonga/scripts/ruby/command/grndb.rb +169 -0
- data/vendor/local/lib/groonga/scripts/ruby/database.rb +19 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +4 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +1 -0
- data/vendor/local/lib/groonga/scripts/ruby/require.rb +68 -0
- data/vendor/local/lib/groonga/scripts/ruby/table_cursor.rb +11 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +3 -3
- data/vendor/local/lib/liblz4.a +0 -0
- data/vendor/local/lib/liblz4.dll +0 -0
- data/vendor/local/lib/liblz4.dll.1 +0 -0
- data/vendor/local/lib/liblz4.dll.1.5.0 +0 -0
- data/vendor/local/lib/libmecab.a +0 -0
- data/vendor/local/lib/libmecab.dll.a +0 -0
- data/vendor/local/lib/libmecab.la +3 -3
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +3 -3
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +3 -3
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +6 -6
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/documentation/introduction.txt +9 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +10 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/others.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +10 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/limitations.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +75 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_column.txt +16 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_db.txt +40 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command.txt +1 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/command/request_id.txt +41 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/clearlock.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +91 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +139 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +39 -14
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/grndb.txt +84 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +2 -21
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/token_filters.txt +16 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/server/http/comparison.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +5 -67
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +0 -25
- data/vendor/local/share/doc/groonga/en/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery.js +2 -4
- data/vendor/local/share/doc/groonga/en/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +14 -14
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/client.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/contribution/development.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/com.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/cooperation.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/query.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/release.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/repository.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/development/test.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/c-api.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/i18n.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/contribution/documentation/introduction.html +33 -35
- data/vendor/local/share/doc/groonga/en/html/contribution/report.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/development.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/development/travis-ci.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/genindex.html +22 -14
- data/vendor/local/share/doc/groonga/en/html/index.html +84 -82
- data/vendor/local/share/doc/groonga/en/html/install.html +31 -33
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +29 -25
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +25 -27
- data/vendor/local/share/doc/groonga/en/html/install/mac_os_x.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/others.html +88 -90
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +30 -26
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/limitations.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/news.html +226 -147
- data/vendor/local/share/doc/groonga/en/html/news/0.x.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/1.0.x.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/news/1.1.x.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news/1.2.x.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/news/1.3.x.html +27 -29
- data/vendor/local/share/doc/groonga/en/html/news/2.x.html +97 -99
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +69 -71
- data/vendor/local/share/doc/groonga/en/html/news/senna.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/en/html/reference.html +83 -81
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +31 -33
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +93 -65
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +27 -29
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +61 -63
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +86 -33
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +64 -66
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +29 -31
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +27 -29
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +25 -27
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +74 -76
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +29 -31
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +25 -27
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +59 -61
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +54 -53
- data/vendor/local/share/doc/groonga/en/html/reference/command/command_version.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/command/output_format.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +173 -0
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +110 -112
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +57 -59
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +59 -61
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +44 -43
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +55 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +90 -92
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +59 -61
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +55 -57
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +53 -55
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +61 -63
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +221 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +48 -50
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/range_filter.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/register.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +276 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_eval.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/ruby_load.html +53 -55
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +384 -386
- data/vendor/local/share/doc/groonga/en/html/reference/commands/shutdown.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/status.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +146 -148
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_list.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_remove.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_tokenize.html +65 -67
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +101 -103
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenizer_list.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/truncate.html +178 -54
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +31 -32
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +224 -0
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +64 -66
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +111 -113
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +80 -82
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +56 -58
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +79 -81
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +51 -53
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +46 -48
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +208 -210
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +260 -262
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +46 -65
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +36 -38
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/query_expanders/tsv.html +55 -57
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/tables.html +52 -54
- data/vendor/local/share/doc/groonga/en/html/reference/token_filters.html +58 -58
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +27 -29
- data/vendor/local/share/doc/groonga/en/html/reference/types.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/en/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/en/html/server.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/server/http.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/server/package.html +31 -33
- data/vendor/local/share/doc/groonga/en/html/spec.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +125 -127
- data/vendor/local/share/doc/groonga/en/html/spec/search.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/troubleshooting.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/data.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/drilldown.html +31 -33
- data/vendor/local/share/doc/groonga/en/html/tutorial/index.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/lexicon.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/match_columns.html +21 -23
- data/vendor/local/share/doc/groonga/en/html/tutorial/micro_blog.html +50 -52
- data/vendor/local/share/doc/groonga/en/html/tutorial/network.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/tutorial/patricia_trie.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/tutorial/query_expansion.html +20 -22
- data/vendor/local/share/doc/groonga/en/html/tutorial/search.html +33 -35
- data/vendor/local/share/doc/groonga/ja/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/documentation/introduction.txt +9 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +10 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/mac_os_x.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/others.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +10 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/limitations.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +75 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_column.txt +16 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_db.txt +40 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command.txt +1 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/command/request_id.txt +41 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/clearlock.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +91 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +139 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +39 -14
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/grndb.txt +84 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +2 -21
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/token_filters.txt +16 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/http/comparison.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +5 -67
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +0 -25
- data/vendor/local/share/doc/groonga/ja/html/_static/down-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/down.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/file.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery.js +2 -4
- data/vendor/local/share/doc/groonga/ja/html/_static/minus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/plus.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +14 -14
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/client.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/contribution/development.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/com.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/cooperation.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/query.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/release.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/repository.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/development/test.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/c-api.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/i18n.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/contribution/report.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/development.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/development/travis-ci.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/genindex.html +26 -18
- data/vendor/local/share/doc/groonga/ja/html/index.html +84 -82
- data/vendor/local/share/doc/groonga/ja/html/install.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +31 -27
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/install/mac_os_x.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/install/others.html +79 -81
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +32 -28
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/news.html +226 -136
- data/vendor/local/share/doc/groonga/ja/html/news/0.x.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/1.0.x.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/news/1.1.x.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news/1.2.x.html +33 -35
- data/vendor/local/share/doc/groonga/ja/html/news/1.3.x.html +27 -29
- data/vendor/local/share/doc/groonga/ja/html/news/2.x.html +91 -93
- data/vendor/local/share/doc/groonga/ja/html/news/3.x.html +59 -61
- data/vendor/local/share/doc/groonga/ja/html/news/senna.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/objects.inv +0 -0
- data/vendor/local/share/doc/groonga/ja/html/reference.html +83 -81
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +87 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +27 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +85 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +50 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +27 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +25 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +75 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +60 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +25 -27
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +54 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/command/command_version.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/command/output_format.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +174 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +109 -111
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +54 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +59 -61
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +44 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +82 -84
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +56 -58
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +52 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +54 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +224 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +76 -78
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/range_filter.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/register.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +278 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +54 -56
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_load.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/select.html +255 -257
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/shutdown.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/status.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +79 -81
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +122 -124
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_list.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_remove.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_tokenize.html +60 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +86 -88
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +178 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +31 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +222 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +64 -66
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +99 -101
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +80 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +56 -58
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +81 -83
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +67 -69
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +115 -117
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +180 -182
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +37 -54
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/query_expanders/tsv.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/tables.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/token_filters.html +55 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +27 -29
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +36 -38
- data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/spec.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +124 -126
- data/vendor/local/share/doc/groonga/ja/html/spec/search.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/different_results_with_the_same_keyword.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/troubleshooting/mmap_cannot_allocate_memory.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/drilldown.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/tutorial/index.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/introduction.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/lexicon.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/tutorial/match_columns.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/tutorial/micro_blog.html +47 -49
- data/vendor/local/share/doc/groonga/ja/html/tutorial/network.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/patricia_trie.html +18 -20
- data/vendor/local/share/doc/groonga/ja/html/tutorial/query_expansion.html +20 -22
- data/vendor/local/share/doc/groonga/ja/html/tutorial/search.html +31 -33
- data/vendor/local/share/groonga/html/admin/index.html +1 -1
- data/vendor/local/share/groonga/html/admin/index.ja.html +1 -1
- data/vendor/local/share/license/mruby/AUTHORS +11 -0
- data/vendor/local/share/license/mruby/README.md +32 -20
- data/vendor/local/share/man/ja/man1/groonga.1 +952 -259
- data/vendor/local/share/man/man1/groonga.1 +930 -239
- metadata +104 -81
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/lz4 +0 -0
- data/vendor/local/bin/lz4c +0 -0
- data/vendor/local/lib/liblz4.dll.1.4.0 +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/jquery-1.11.1.js +0 -10308
- data/vendor/local/share/doc/groonga/en/html/_static/underscore-1.3.1.js +0 -999
- data/vendor/local/share/doc/groonga/ja/html/_static/jquery-1.11.1.js +0 -10308
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore-1.3.1.js +0 -999
@@ -7,7 +7,7 @@
|
|
7
7
|
<head>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
9
9
|
|
10
|
-
<title>7.11.2. Script syntax — Groonga v4.0.8 documentation</title>
|
10
|
+
<title>7.11.2. Script syntax — Groonga v4.0.8-168-gae696d7 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.8',
|
18
|
+
VERSION: '4.0.8-168-gae696d7',
|
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.8 documentation" href="../../index.html" />
|
28
|
+
<link rel="top" title="Groonga v4.0.8-168-gae696d7 documentation" href="../../index.html" />
|
29
29
|
<link rel="up" title="7.11. grn_expr" href="../grn_expr.html" />
|
30
30
|
<link rel="next" title="7.12. Function" href="../function.html" />
|
31
31
|
<link rel="prev" title="7.11.1. Query syntax" href="query_syntax.html" />
|
32
32
|
</head>
|
33
|
-
<body
|
33
|
+
<body>
|
34
34
|
<div class="header">
|
35
35
|
<h1 class="title">
|
36
36
|
<a id="top-link" href="../../index.html">
|
@@ -48,7 +48,7 @@
|
|
48
48
|
</div>
|
49
49
|
|
50
50
|
|
51
|
-
<div class="related"
|
51
|
+
<div class="related">
|
52
52
|
<h3>Navigation</h3>
|
53
53
|
<ul>
|
54
54
|
<li class="right" style="margin-right: 10px">
|
@@ -60,7 +60,7 @@
|
|
60
60
|
<li class="right" >
|
61
61
|
<a href="query_syntax.html" title="7.11.1. Query syntax"
|
62
62
|
accesskey="P">previous</a> |</li>
|
63
|
-
<li><a href="../../index.html">Groonga v4.0.8 documentation</a> »</li>
|
63
|
+
<li><a href="../../index.html">Groonga v4.0.8-168-gae696d7 documentation</a> »</li>
|
64
64
|
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
65
65
|
<li><a href="../grn_expr.html" accesskey="U">7.11. grn_expr</a> »</li>
|
66
66
|
</ul>
|
@@ -69,19 +69,19 @@
|
|
69
69
|
<div class="document">
|
70
70
|
<div class="documentwrapper">
|
71
71
|
<div class="bodywrapper">
|
72
|
-
<div class="body"
|
72
|
+
<div class="body">
|
73
73
|
|
74
74
|
<div class="section" id="script-syntax">
|
75
75
|
<h1>7.11.2. Script syntax<a class="headerlink" href="#script-syntax" title="Permalink to this headline">¶</a></h1>
|
76
76
|
<p>Script syntax is a syntax to specify complex search condition. It is
|
77
|
-
similar to ECMAScript. For example, <
|
78
|
-
groonga searches records that <
|
77
|
+
similar to ECMAScript. For example, <tt class="docutils literal"><span class="pre">_key</span> <span class="pre">==</span> <span class="pre">"book"</span></tt> means that
|
78
|
+
groonga searches records that <tt class="docutils literal"><span class="pre">_key</span></tt> value is <tt class="docutils literal"><span class="pre">"book"</span></tt>. All values
|
79
79
|
are string in <a class="reference internal" href="query_syntax.html"><em>Query syntax</em></a> but its own type in script
|
80
|
-
syntax. For example, <
|
81
|
-
<
|
80
|
+
syntax. For example, <tt class="docutils literal"><span class="pre">"book"</span></tt> is string, <tt class="docutils literal"><span class="pre">1</span></tt> is integer,
|
81
|
+
<tt class="docutils literal"><span class="pre">TokenBigram</span></tt> is the object whose name is <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> and so on.</p>
|
82
82
|
<p>Script syntax doesn't support full ECMAScript syntax. For example,
|
83
|
-
script syntax doesn't support statement such as <
|
84
|
-
statement, <
|
83
|
+
script syntax doesn't support statement such as <tt class="docutils literal"><span class="pre">if</span></tt> control
|
84
|
+
statement, <tt class="docutils literal"><span class="pre">for</span></tt> iteration statement and variable definition
|
85
85
|
statement. Function definion is not supported too. But script syntax
|
86
86
|
addes the original additional operators. They are described after
|
87
87
|
ECMAScript syntax is described.</p>
|
@@ -122,53 +122,53 @@ load --table Entries
|
|
122
122
|
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
123
123
|
</pre></div>
|
124
124
|
</div>
|
125
|
-
<p>There is a table, <
|
125
|
+
<p>There is a table, <tt class="docutils literal"><span class="pre">Entries</span></tt>, for blog entries. An entry has title,
|
126
126
|
content and the number of likes for the entry. Title is key of
|
127
|
-
<
|
128
|
-
number of likes is value of <
|
129
|
-
<p><
|
130
|
-
using <
|
131
|
-
<
|
127
|
+
<tt class="docutils literal"><span class="pre">Entries</span></tt>. Content is value of <tt class="docutils literal"><span class="pre">Entries.content</span></tt> column. The
|
128
|
+
number of likes is value of <tt class="docutils literal"><span class="pre">Entries.n_likes</span></tt> column.</p>
|
129
|
+
<p><tt class="docutils literal"><span class="pre">Entries._key</span></tt> column and <tt class="docutils literal"><span class="pre">Entries.content</span></tt> column are indexed
|
130
|
+
using <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> tokenizer. So both <tt class="docutils literal"><span class="pre">Entries._key</span></tt> and
|
131
|
+
<tt class="docutils literal"><span class="pre">Entries.content</span></tt> are fulltext search ready.</p>
|
132
132
|
<p>OK. The schema and data for examples are ready.</p>
|
133
133
|
</div>
|
134
134
|
<div class="section" id="literals">
|
135
135
|
<h2>7.11.2.2. Literals<a class="headerlink" href="#literals" title="Permalink to this headline">¶</a></h2>
|
136
136
|
<div class="section" id="integer">
|
137
137
|
<h3>7.11.2.2.1. Integer<a class="headerlink" href="#integer" title="Permalink to this headline">¶</a></h3>
|
138
|
-
<p>Integer literal is sequence of <
|
139
|
-
<
|
140
|
-
<
|
138
|
+
<p>Integer literal is sequence of <tt class="docutils literal"><span class="pre">0</span></tt> to <tt class="docutils literal"><span class="pre">9</span></tt> such as
|
139
|
+
<tt class="docutils literal"><span class="pre">1234567890</span></tt>. <tt class="docutils literal"><span class="pre">+</span></tt> or <tt class="docutils literal"><span class="pre">-</span></tt> can be prepended as sign such as
|
140
|
+
<tt class="docutils literal"><span class="pre">+29</span></tt> and <tt class="docutils literal"><span class="pre">-29</span></tt>. Integer literal must be decimal. Octal notation,
|
141
141
|
hex and so on can't be used.</p>
|
142
|
-
<p>The maximum value of integer literal is <
|
143
|
-
<span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></
|
144
|
-
<
|
142
|
+
<p>The maximum value of integer literal is <tt class="docutils literal"><span class="pre">9223372036854775807</span></tt> (<tt class="docutils literal"><span class="pre">=</span> <span class="pre">2</span>
|
143
|
+
<span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></tt>). The minimum value of integer literal is
|
144
|
+
<tt class="docutils literal"><span class="pre">-9223372036854775808</span></tt> (<tt class="docutils literal"><span class="pre">=</span> <span class="pre">-(2</span> <span class="pre">**</span> <span class="pre">63)</span></tt>).</p>
|
145
145
|
</div>
|
146
146
|
<div class="section" id="float">
|
147
147
|
<h3>7.11.2.2.2. Float<a class="headerlink" href="#float" title="Permalink to this headline">¶</a></h3>
|
148
|
-
<p>Float literal is sequence of <
|
149
|
-
such as <
|
150
|
-
<
|
151
|
-
<
|
152
|
-
<
|
148
|
+
<p>Float literal is sequence of <tt class="docutils literal"><span class="pre">0</span></tt> to <tt class="docutils literal"><span class="pre">9</span></tt>, <tt class="docutils literal"><span class="pre">.</span></tt> and <tt class="docutils literal"><span class="pre">0</span></tt> to <tt class="docutils literal"><span class="pre">9</span></tt>
|
149
|
+
such as <tt class="docutils literal"><span class="pre">3.14</span></tt>. <tt class="docutils literal"><span class="pre">+</span></tt> or <tt class="docutils literal"><span class="pre">-</span></tt> can be prepended as sign such as
|
150
|
+
<tt class="docutils literal"><span class="pre">+3.14</span></tt> and <tt class="docutils literal"><span class="pre">-3.14</span></tt>. <tt class="docutils literal"><span class="pre">${RADIX}e${EXPORNENTIAL}</span></tt> and
|
151
|
+
<tt class="docutils literal"><span class="pre">${RADIX}E${EXPORNENTIAL}</span></tt> formats are also supported. For example,
|
152
|
+
<tt class="docutils literal"><span class="pre">314e-2</span></tt> is the same as <tt class="docutils literal"><span class="pre">3.14</span></tt>.</p>
|
153
153
|
</div>
|
154
154
|
<div class="section" id="string">
|
155
155
|
<h3>7.11.2.2.3. String<a class="headerlink" href="#string" title="Permalink to this headline">¶</a></h3>
|
156
|
-
<p>String literal is <
|
157
|
-
prepending <
|
158
|
-
a literal for <
|
156
|
+
<p>String literal is <tt class="docutils literal"><span class="pre">"..."</span></tt>. You need to escape <tt class="docutils literal"><span class="pre">"</span></tt> in literal by
|
157
|
+
prepending <tt class="docutils literal"><span class="pre">\\''</span> <span class="pre">such</span> <span class="pre">as</span> <span class="pre">``\"</span></tt>. For example, <tt class="docutils literal"><span class="pre">"Say</span> <span class="pre">\"Hello!\"."</span></tt> is
|
158
|
+
a literal for <tt class="docutils literal"><span class="pre">Say</span> <span class="pre">"Hello!".</span></tt> string.</p>
|
159
159
|
<p>String encoding must be the same as encoding of database. The default
|
160
|
-
encoding is UTF-8. It can be changed by <
|
161
|
-
configure option, <
|
160
|
+
encoding is UTF-8. It can be changed by <tt class="docutils literal"><span class="pre">--with-default-encoding</span></tt>
|
161
|
+
configure option, <tt class="docutils literal"><span class="pre">--encodiong</span></tt> <a class="reference internal" href="../executables/groonga.html"><em>groonga command</em></a> option
|
162
162
|
and so on.</p>
|
163
163
|
</div>
|
164
164
|
<div class="section" id="boolean">
|
165
165
|
<h3>7.11.2.2.4. Boolean<a class="headerlink" href="#boolean" title="Permalink to this headline">¶</a></h3>
|
166
|
-
<p>Boolean literal is <
|
167
|
-
<
|
166
|
+
<p>Boolean literal is <tt class="docutils literal"><span class="pre">true</span></tt> and <tt class="docutils literal"><span class="pre">false</span></tt>. <tt class="docutils literal"><span class="pre">true</span></tt> means true and
|
167
|
+
<tt class="docutils literal"><span class="pre">false</span></tt> means false.</p>
|
168
168
|
</div>
|
169
169
|
<div class="section" id="null">
|
170
170
|
<h3>7.11.2.2.5. Null<a class="headerlink" href="#null" title="Permalink to this headline">¶</a></h3>
|
171
|
-
<p>Null literal is <
|
171
|
+
<p>Null literal is <tt class="docutils literal"><span class="pre">null</span></tt>. Groonga doesn't support null value but null
|
172
172
|
literal is supported.</p>
|
173
173
|
</div>
|
174
174
|
<div class="section" id="time">
|
@@ -179,18 +179,18 @@ literal is supported.</p>
|
|
179
179
|
</div>
|
180
180
|
<p>Time literal doesn't exit. There are string time notation, integer
|
181
181
|
time notation and float time notation.</p>
|
182
|
-
<p>String time notation is <
|
183
|
-
<
|
184
|
-
<
|
185
|
-
<
|
186
|
-
<
|
182
|
+
<p>String time notation is <tt class="docutils literal"><span class="pre">"YYYY/MM/DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></tt> or
|
183
|
+
<tt class="docutils literal"><span class="pre">"YYYY-MM-DD</span> <span class="pre">hh:mm:ss.uuuuuu"</span></tt>. <tt class="docutils literal"><span class="pre">YYYY</span></tt> is year, <tt class="docutils literal"><span class="pre">MM</span></tt> is month,
|
184
|
+
<tt class="docutils literal"><span class="pre">DD</span></tt> is day, <tt class="docutils literal"><span class="pre">hh</span></tt> is hour, <tt class="docutils literal"><span class="pre">mm</span></tt> is minute, <tt class="docutils literal"><span class="pre">ss</span></tt> is second and
|
185
|
+
<tt class="docutils literal"><span class="pre">uuuuuu</span></tt> is micro second. It is local time. For example,
|
186
|
+
<tt class="docutils literal"><span class="pre">"2012/07/23</span> <span class="pre">02:41:10.436218"</span></tt> is <tt class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218</span></tt> in
|
187
187
|
ISO 8601 format.</p>
|
188
188
|
<p>Integer time notation is the number of seconds that have elapsed since
|
189
189
|
midnight UTC, January 1, 1970. It is also known as POSIX time. For
|
190
|
-
example, <
|
190
|
+
example, <tt class="docutils literal"><span class="pre">1343011270</span></tt> is <tt class="docutils literal"><span class="pre">2012-07-23T02:41:10Z</span></tt> in ISO 8601 format.</p>
|
191
191
|
<p>Float time notation is the number of seconds and micro seconds that
|
192
192
|
have elapsed since midnight UTC, January 1, 1970. For example,
|
193
|
-
<
|
193
|
+
<tt class="docutils literal"><span class="pre">1343011270.436218</span></tt> is <tt class="docutils literal"><span class="pre">2012-07-23T02:41:10.436218Z</span></tt> in ISO 8601
|
194
194
|
format.</p>
|
195
195
|
</div>
|
196
196
|
<div class="section" id="geo-point">
|
@@ -203,31 +203,31 @@ format.</p>
|
|
203
203
|
<p>String geo point notation has the following patterns:</p>
|
204
204
|
<blockquote>
|
205
205
|
<div><ul class="simple">
|
206
|
-
<li><
|
207
|
-
<li><
|
208
|
-
<li><
|
209
|
-
<li><
|
206
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_MSECxLONGITUDE_IN_MSEC"</span></tt></li>
|
207
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_MSEC,LONGITUDE_IN_MSEC"</span></tt></li>
|
208
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREExLONGITUDE_IN_DEGREE"</span></tt></li>
|
209
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREE,LONGITUDE_IN_DEGREE"</span></tt></li>
|
210
210
|
</ul>
|
211
211
|
</div></blockquote>
|
212
|
-
<p><
|
212
|
+
<p><tt class="docutils literal"><span class="pre">x</span></tt> and <tt class="docutils literal"><span class="pre">,</span></tt> can be used for separator. Latitude and longitude can
|
213
213
|
be represented in milliseconds or degree.</p>
|
214
214
|
</div>
|
215
215
|
<div class="section" id="array">
|
216
216
|
<h3>7.11.2.2.8. Array<a class="headerlink" href="#array" title="Permalink to this headline">¶</a></h3>
|
217
|
-
<p>Array literal is <
|
217
|
+
<p>Array literal is <tt class="docutils literal"><span class="pre">[element1,</span> <span class="pre">element2,</span> <span class="pre">...]</span></tt>.</p>
|
218
218
|
</div>
|
219
219
|
<div class="section" id="object-literal">
|
220
220
|
<h3>7.11.2.2.9. Object literal<a class="headerlink" href="#object-literal" title="Permalink to this headline">¶</a></h3>
|
221
|
-
<p>Object literal is <
|
221
|
+
<p>Object literal is <tt class="docutils literal"><span class="pre">{name1:</span> <span class="pre">value1,</span> <span class="pre">name2:</span> <span class="pre">value2,</span> <span class="pre">...}</span></tt>. Groonga
|
222
222
|
doesn't support object literal yet.</p>
|
223
223
|
</div>
|
224
224
|
</div>
|
225
225
|
<div class="section" id="control-syntaxes">
|
226
226
|
<h2>7.11.2.3. Control syntaxes<a class="headerlink" href="#control-syntaxes" title="Permalink to this headline">¶</a></h2>
|
227
227
|
<p>Script syntax doesn't support statement. So you cannot use control
|
228
|
-
statement such as <
|
228
|
+
statement such as <tt class="docutils literal"><span class="pre">if</span></tt>. You can only use <tt class="docutils literal"><span class="pre">A</span> <span class="pre">?</span> <span class="pre">B</span> <span class="pre">:</span> <span class="pre">C</span></tt> expression as
|
229
229
|
control syntax.</p>
|
230
|
-
<p><
|
230
|
+
<p><tt class="docutils literal"><span class="pre">A</span> <span class="pre">?</span> <span class="pre">B</span> <span class="pre">:</span> <span class="pre">C</span></tt> returns <tt class="docutils literal"><span class="pre">B</span></tt> if <tt class="docutils literal"><span class="pre">A</span></tt> is true, <tt class="docutils literal"><span class="pre">C</span></tt> otherwise.</p>
|
231
231
|
<p>Here is a simple exmaple.</p>
|
232
232
|
<p>Execution example:</p>
|
233
233
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (_id == 1 ? 5 : 3)'
|
@@ -283,17 +283,17 @@ control syntax.</p>
|
|
283
283
|
# ]
|
284
284
|
</pre></div>
|
285
285
|
</div>
|
286
|
-
<p>The expression matches records that <
|
287
|
-
and <
|
288
|
-
not equal to 1 and <
|
286
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">_id</span></tt> column value is equal to <tt class="docutils literal"><span class="pre">1</span></tt>
|
287
|
+
and <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal to <tt class="docutils literal"><span class="pre">5</span></tt> or <tt class="docutils literal"><span class="pre">_id</span></tt> column value is
|
288
|
+
not equal to 1 and <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal to <tt class="docutils literal"><span class="pre">3</span></tt>.</p>
|
289
289
|
</div>
|
290
290
|
<div class="section" id="grouping">
|
291
291
|
<h2>7.11.2.4. Grouping<a class="headerlink" href="#grouping" title="Permalink to this headline">¶</a></h2>
|
292
|
-
<p>Its syntax is <
|
293
|
-
<p><
|
294
|
-
an expression. <
|
295
|
-
or <
|
296
|
-
<
|
292
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">(...)</span></tt>. <tt class="docutils literal"><span class="pre">...</span></tt> is comma separated expression list.</p>
|
293
|
+
<p><tt class="docutils literal"><span class="pre">(...)</span></tt> groups one ore more expressions and they can be processed as
|
294
|
+
an expression. <tt class="docutils literal"><span class="pre">a</span> <span class="pre">&&</span> <span class="pre">b</span> <span class="pre">||</span> <span class="pre">c</span></tt> means that <tt class="docutils literal"><span class="pre">a</span></tt> and <tt class="docutils literal"><span class="pre">b</span></tt> are matched
|
295
|
+
or <tt class="docutils literal"><span class="pre">c</span></tt> is matched. <tt class="docutils literal"><span class="pre">a</span> <span class="pre">&&</span> <span class="pre">(b</span> <span class="pre">||</span> <span class="pre">c)</span></tt> means that <tt class="docutils literal"><span class="pre">a</span></tt> and one of
|
296
|
+
<tt class="docutils literal"><span class="pre">b</span></tt> and <tt class="docutils literal"><span class="pre">c</span></tt> are matched.</p>
|
297
297
|
<p>Here is a simple exmaple.</p>
|
298
298
|
<p>Execution example:</p>
|
299
299
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 5 && content @ "senna" || content @ "fast"'
|
@@ -389,17 +389,17 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
389
389
|
</pre></div>
|
390
390
|
</div>
|
391
391
|
<p>The first expression doesn't use grouping. It matches records that
|
392
|
-
<
|
393
|
-
<
|
394
|
-
<p>The second expression uses grouping. It matches records that <
|
395
|
-
<span class="pre"><</span> <span class="pre">5</span></
|
392
|
+
<tt class="docutils literal"><span class="pre">n_likes</span> <span class="pre"><</span> <span class="pre">5</span></tt> and <tt class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></tt> are matched or
|
393
|
+
<tt class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></tt> is matched.</p>
|
394
|
+
<p>The second expression uses grouping. It matches records that <tt class="docutils literal"><span class="pre">n_likes</span>
|
395
|
+
<span class="pre"><</span> <span class="pre">5</span></tt> and one of <tt class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"senna"</span></tt> or <tt class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></tt> are
|
396
396
|
matched.</p>
|
397
397
|
</div>
|
398
398
|
<div class="section" id="function-call">
|
399
399
|
<h2>7.11.2.5. Function call<a class="headerlink" href="#function-call" title="Permalink to this headline">¶</a></h2>
|
400
|
-
<p>Its syntax is <
|
401
|
-
<p><
|
402
|
-
<
|
400
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">name(arugment1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></tt>.</p>
|
401
|
+
<p><tt class="docutils literal"><span class="pre">name(argument1,</span> <span class="pre">argument2,</span> <span class="pre">...)</span></tt> calls a function that is named
|
402
|
+
<tt class="docutils literal"><span class="pre">name</span></tt> with arguments <tt class="docutils literal"><span class="pre">argument1</span></tt>, <tt class="docutils literal"><span class="pre">argument2</span></tt> and <tt class="docutils literal"><span class="pre">...</span></tt>.</p>
|
403
403
|
<p>See <a class="reference internal" href="../function.html"><em>Function</em></a> for available functin list.</p>
|
404
404
|
<p>Here is a simple exmaple.</p>
|
405
405
|
<p>Execution example:</p>
|
@@ -451,10 +451,10 @@ matched.</p>
|
|
451
451
|
</pre></div>
|
452
452
|
</div>
|
453
453
|
<p>The expression uses <a class="reference internal" href="../functions/edit_distance.html"><em>edit_distance</em></a>. It
|
454
|
-
matches records that <
|
455
|
-
<
|
454
|
+
matches records that <tt class="docutils literal"><span class="pre">_key</span></tt> column value is similar to
|
455
|
+
<tt class="docutils literal"><span class="pre">"Groonga"</span></tt>. Similality of <tt class="docutils literal"><span class="pre">"Groonga"</span></tt> is computed as edit
|
456
456
|
distance. If edit distance is less than or equal to 1, the value is
|
457
|
-
treated as similar. In this case, <
|
457
|
+
treated as similar. In this case, <tt class="docutils literal"><span class="pre">"Groonga"</span></tt> and <tt class="docutils literal"><span class="pre">"Mroonga"</span></tt> are
|
458
458
|
treated as similar.</p>
|
459
459
|
</div>
|
460
460
|
<div class="section" id="basic-operators">
|
@@ -465,8 +465,8 @@ treated as similar.</p>
|
|
465
465
|
<p>Here are arithmetic operators.</p>
|
466
466
|
<div class="section" id="addition-operator">
|
467
467
|
<h4>7.11.2.6.1.1. Addition operator<a class="headerlink" href="#addition-operator" title="Permalink to this headline">¶</a></h4>
|
468
|
-
<p>Its syntax is <
|
469
|
-
<p>The operator adds <
|
468
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">+</span> <span class="pre">number2</span></tt>.</p>
|
469
|
+
<p>The operator adds <tt class="docutils literal"><span class="pre">number1</span></tt> and <tt class="docutils literal"><span class="pre">number2</span></tt> and returns the result.</p>
|
470
470
|
<p>Here is a simple example.</p>
|
471
471
|
<p>Execution example:</p>
|
472
472
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 10 + 5'
|
@@ -510,13 +510,13 @@ treated as similar.</p>
|
|
510
510
|
# ]
|
511
511
|
</pre></div>
|
512
512
|
</div>
|
513
|
-
<p>The expression matches records that <
|
514
|
-
to <
|
513
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
514
|
+
to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="docutils literal"><span class="pre">10</span> <span class="pre">+</span> <span class="pre">5</span></tt>).</p>
|
515
515
|
</div>
|
516
516
|
<div class="section" id="subtraction-operator">
|
517
517
|
<h4>7.11.2.6.1.2. Subtraction operator<a class="headerlink" href="#subtraction-operator" title="Permalink to this headline">¶</a></h4>
|
518
|
-
<p>Its syntax is <
|
519
|
-
<p>The operator subtracts <
|
518
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">-</span> <span class="pre">number2</span></tt>.</p>
|
519
|
+
<p>The operator subtracts <tt class="docutils literal"><span class="pre">number2</span></tt> from <tt class="docutils literal"><span class="pre">number1</span></tt> and returns the result.</p>
|
520
520
|
<p>Here is a simple example.</p>
|
521
521
|
<p>Execution example:</p>
|
522
522
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 20 - 5'
|
@@ -560,13 +560,13 @@ to <code class="docutils literal"><span class="pre">15</span></code> (= <code cl
|
|
560
560
|
# ]
|
561
561
|
</pre></div>
|
562
562
|
</div>
|
563
|
-
<p>The expression matches records that <
|
564
|
-
to <
|
563
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
564
|
+
to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="docutils literal"><span class="pre">20</span> <span class="pre">-</span> <span class="pre">5</span></tt>).</p>
|
565
565
|
</div>
|
566
566
|
<div class="section" id="multiplication-operator">
|
567
567
|
<h4>7.11.2.6.1.3. Multiplication operator<a class="headerlink" href="#multiplication-operator" title="Permalink to this headline">¶</a></h4>
|
568
|
-
<p>Its syntax is <
|
569
|
-
<p>The operator multiplies <
|
568
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">*</span> <span class="pre">number2</span></tt>.</p>
|
569
|
+
<p>The operator multiplies <tt class="docutils literal"><span class="pre">number1</span></tt> and <tt class="docutils literal"><span class="pre">number2</span></tt> and returns the result.</p>
|
570
570
|
<p>Here is a simple example.</p>
|
571
571
|
<p>Execution example:</p>
|
572
572
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 3 * 5'
|
@@ -610,14 +610,14 @@ to <code class="docutils literal"><span class="pre">15</span></code> (= <code cl
|
|
610
610
|
# ]
|
611
611
|
</pre></div>
|
612
612
|
</div>
|
613
|
-
<p>The expression matches records that <
|
614
|
-
to <
|
613
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
614
|
+
to <tt class="docutils literal"><span class="pre">15</span></tt> (= <tt class="docutils literal"><span class="pre">3</span> <span class="pre">*</span> <span class="pre">5</span></tt>).</p>
|
615
615
|
</div>
|
616
616
|
<div class="section" id="division-operator">
|
617
617
|
<h4>7.11.2.6.1.4. Division operator<a class="headerlink" href="#division-operator" title="Permalink to this headline">¶</a></h4>
|
618
|
-
<p>Its syntax is <
|
619
|
-
<p>The operator divides <
|
620
|
-
quotient of result. <
|
618
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">/</span> <span class="pre">number2</span></tt> and <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">%</span> <span class="pre">number2</span></tt>.</p>
|
619
|
+
<p>The operator divides <tt class="docutils literal"><span class="pre">number2</span></tt> by <tt class="docutils literal"><span class="pre">number1</span></tt>. <tt class="docutils literal"><span class="pre">/</span></tt> returns the
|
620
|
+
quotient of result. <tt class="docutils literal"><span class="pre">%</span></tt> returns the remainder of result.</p>
|
621
621
|
<p>Here is simple examples.</p>
|
622
622
|
<p>Execution example:</p>
|
623
623
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 / 7'
|
@@ -667,8 +667,8 @@ quotient of result. <code class="docutils literal"><span class="pre">%</span></c
|
|
667
667
|
# ]
|
668
668
|
</pre></div>
|
669
669
|
</div>
|
670
|
-
<p>The expression matches records that <
|
671
|
-
to <
|
670
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
671
|
+
to <tt class="docutils literal"><span class="pre">3</span></tt> (= <tt class="docutils literal"><span class="pre">26</span> <span class="pre">/</span> <span class="pre">7</span></tt>).</p>
|
672
672
|
<p>Execution example:</p>
|
673
673
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 % 7'
|
674
674
|
# [
|
@@ -711,8 +711,8 @@ to <code class="docutils literal"><span class="pre">3</span></code> (= <code cla
|
|
711
711
|
# ]
|
712
712
|
</pre></div>
|
713
713
|
</div>
|
714
|
-
<p>The expression matches records that <
|
715
|
-
to <
|
714
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
715
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="docutils literal"><span class="pre">26</span> <span class="pre">%</span> <span class="pre">7</span></tt>).</p>
|
716
716
|
</div>
|
717
717
|
</div>
|
718
718
|
<div class="section" id="logical-operators">
|
@@ -720,8 +720,8 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
720
720
|
<p>Here are logical operators.</p>
|
721
721
|
<div class="section" id="logical-not-operator">
|
722
722
|
<h4>7.11.2.6.2.1. Logical NOT operator<a class="headerlink" href="#logical-not-operator" title="Permalink to this headline">¶</a></h4>
|
723
|
-
<p>Its syntax is <
|
724
|
-
<p>The operator inverts boolean value of <
|
723
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">!condition</span></tt>.</p>
|
724
|
+
<p>The operator inverts boolean value of <tt class="docutils literal"><span class="pre">condition</span></tt>.</p>
|
725
725
|
<p>Here is a simple example.</p>
|
726
726
|
<p>Execution example:</p>
|
727
727
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '!(n_likes == 5)'
|
@@ -783,14 +783,14 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
783
783
|
# ]
|
784
784
|
</pre></div>
|
785
785
|
</div>
|
786
|
-
<p>The expression matches records that <
|
787
|
-
equal to <
|
786
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is not
|
787
|
+
equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
788
788
|
</div>
|
789
789
|
<div class="section" id="logical-and-operator">
|
790
790
|
<h4>7.11.2.6.2.2. Logical AND operator<a class="headerlink" href="#logical-and-operator" title="Permalink to this headline">¶</a></h4>
|
791
|
-
<p>Its syntax is <
|
792
|
-
<p>The operator returns true if both of <
|
793
|
-
<
|
791
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">condition1</span> <span class="pre">&&</span> <span class="pre">condition2</span></tt>.</p>
|
792
|
+
<p>The operator returns true if both of <tt class="docutils literal"><span class="pre">condition1</span></tt> and
|
793
|
+
<tt class="docutils literal"><span class="pre">condition2</span></tt> are true, false otherwise.</p>
|
794
794
|
<p>Here is a simple example.</p>
|
795
795
|
<p>Execution example:</p>
|
796
796
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && n_likes >= 10'
|
@@ -840,14 +840,14 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
840
840
|
# ]
|
841
841
|
</pre></div>
|
842
842
|
</div>
|
843
|
-
<p>The expression matches records that <
|
844
|
-
word <
|
845
|
-
<
|
843
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">content</span></tt> column value has the
|
844
|
+
word <tt class="docutils literal"><span class="pre">fast</span></tt> and <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is greater or equal to
|
845
|
+
<tt class="docutils literal"><span class="pre">10</span></tt>.</p>
|
846
846
|
</div>
|
847
847
|
<div class="section" id="logical-or-operator">
|
848
848
|
<h4>7.11.2.6.2.3. Logical OR operator<a class="headerlink" href="#logical-or-operator" title="Permalink to this headline">¶</a></h4>
|
849
|
-
<p>Its syntax is <
|
850
|
-
<p>The operator returns true if either <
|
849
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">condition1</span> <span class="pre">||</span> <span class="pre">condition2</span></tt>.</p>
|
850
|
+
<p>The operator returns true if either <tt class="docutils literal"><span class="pre">condition1</span></tt> or <tt class="docutils literal"><span class="pre">condition2</span></tt> is
|
851
851
|
true, false otherwise.</p>
|
852
852
|
<p>Here is a simple example.</p>
|
853
853
|
<p>Execution example:</p>
|
@@ -898,13 +898,13 @@ true, false otherwise.</p>
|
|
898
898
|
# ]
|
899
899
|
</pre></div>
|
900
900
|
</div>
|
901
|
-
<p>The expression matches records that <
|
902
|
-
to <
|
901
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
902
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> or <tt class="docutils literal"><span class="pre">10</span></tt>.</p>
|
903
903
|
</div>
|
904
904
|
<div class="section" id="logical-and-not-operator">
|
905
905
|
<h4>7.11.2.6.2.4. Logical AND NOT operator<a class="headerlink" href="#logical-and-not-operator" title="Permalink to this headline">¶</a></h4>
|
906
|
-
<p>Its syntax is <
|
907
|
-
<p>The operator returns true if <
|
906
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">condition1</span> <span class="pre">&!</span> <span class="pre">condition2</span></tt>.</p>
|
907
|
+
<p>The operator returns true if <tt class="docutils literal"><span class="pre">condition1</span></tt> is true but <tt class="docutils literal"><span class="pre">condition2</span></tt>
|
908
908
|
is false, false otherwise. It returns difference set.</p>
|
909
909
|
<p>Here is a simple example.</p>
|
910
910
|
<p>Execution example:</p>
|
@@ -949,8 +949,8 @@ is false, false otherwise. It returns difference set.</p>
|
|
949
949
|
# ]
|
950
950
|
</pre></div>
|
951
951
|
</div>
|
952
|
-
<p>The expression matches records that <
|
953
|
-
word <
|
952
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">content</span></tt> column value has the
|
953
|
+
word <tt class="docutils literal"><span class="pre">fast</span></tt> but doesn't have the word <tt class="docutils literal"><span class="pre">mroonga</span></tt>.</p>
|
954
954
|
</div>
|
955
955
|
</div>
|
956
956
|
<div class="section" id="bitwise-operators">
|
@@ -958,8 +958,8 @@ word <code class="docutils literal"><span class="pre">fast</span></code> but doe
|
|
958
958
|
<p>Here are bitwise operators.</p>
|
959
959
|
<div class="section" id="bitwise-not-operator">
|
960
960
|
<h4>7.11.2.6.3.1. Bitwise NOT operator<a class="headerlink" href="#bitwise-not-operator" title="Permalink to this headline">¶</a></h4>
|
961
|
-
<p>Its syntax is <
|
962
|
-
<p>The operator returns bitwise NOT of <
|
961
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">~number</span></tt>.</p>
|
962
|
+
<p>The operator returns bitwise NOT of <tt class="docutils literal"><span class="pre">number</span></tt>.</p>
|
963
963
|
<p>Here is a simple example.</p>
|
964
964
|
<p>Execution example:</p>
|
965
965
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '~n_likes == -6'
|
@@ -1003,13 +1003,13 @@ word <code class="docutils literal"><span class="pre">fast</span></code> but doe
|
|
1003
1003
|
# ]
|
1004
1004
|
</pre></div>
|
1005
1005
|
</div>
|
1006
|
-
<p>The expression matches records that <
|
1007
|
-
to <
|
1006
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1007
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> because bitwise NOT of <tt class="docutils literal"><span class="pre">5</span></tt> is equal to <tt class="docutils literal"><span class="pre">-6</span></tt>.</p>
|
1008
1008
|
</div>
|
1009
1009
|
<div class="section" id="bitwise-and-operator">
|
1010
1010
|
<h4>7.11.2.6.3.2. Bitwise AND operator<a class="headerlink" href="#bitwise-and-operator" title="Permalink to this headline">¶</a></h4>
|
1011
|
-
<p>Its syntax is <
|
1012
|
-
<p>The operator returns bitwise AND between <
|
1011
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">&</span> <span class="pre">number2</span></tt>.</p>
|
1012
|
+
<p>The operator returns bitwise AND between <tt class="docutils literal"><span class="pre">number1</span></tt> and <tt class="docutils literal"><span class="pre">number2</span></tt>.</p>
|
1013
1013
|
<p>Here is a simple example.</p>
|
1014
1014
|
<p>Execution example:</p>
|
1015
1015
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '(n_likes & 1) == 1'
|
@@ -1071,16 +1071,16 @@ to <code class="docutils literal"><span class="pre">5</span></code> because bitw
|
|
1071
1071
|
# ]
|
1072
1072
|
</pre></div>
|
1073
1073
|
</div>
|
1074
|
-
<p>The expression matches records that <
|
1075
|
-
number because bitwise AND between an even number and <
|
1076
|
-
to <
|
1077
|
-
<
|
1074
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is even
|
1075
|
+
number because bitwise AND between an even number and <tt class="docutils literal"><span class="pre">1</span></tt> is equal
|
1076
|
+
to <tt class="docutils literal"><span class="pre">1</span></tt> and bitwise AND between an odd number and <tt class="docutils literal"><span class="pre">1</span></tt> is equal to
|
1077
|
+
<tt class="docutils literal"><span class="pre">0</span></tt>.</p>
|
1078
1078
|
</div>
|
1079
1079
|
</div>
|
1080
1080
|
<div class="section" id="bitwise-or-operator">
|
1081
1081
|
<h3>7.11.2.6.4. Bitwise OR operator<a class="headerlink" href="#bitwise-or-operator" title="Permalink to this headline">¶</a></h3>
|
1082
|
-
<p>Its syntax is <
|
1083
|
-
<p>The operator returns bitwise OR between <
|
1082
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">|</span> <span class="pre">number2</span></tt>.</p>
|
1083
|
+
<p>The operator returns bitwise OR between <tt class="docutils literal"><span class="pre">number1</span></tt> and <tt class="docutils literal"><span class="pre">number2</span></tt>.</p>
|
1084
1084
|
<p>Here is a simple example.</p>
|
1085
1085
|
<p>Execution example:</p>
|
1086
1086
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (1 | 4)'
|
@@ -1124,13 +1124,13 @@ to <code class="docutils literal"><span class="pre">1</span></code> and bitwise
|
|
1124
1124
|
# ]
|
1125
1125
|
</pre></div>
|
1126
1126
|
</div>
|
1127
|
-
<p>The expression matches records that <
|
1128
|
-
to <
|
1127
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1128
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">4</span></tt>).</p>
|
1129
1129
|
</div>
|
1130
1130
|
<div class="section" id="bitwise-xor-operator">
|
1131
1131
|
<h3>7.11.2.6.5. Bitwise XOR operator<a class="headerlink" href="#bitwise-xor-operator" title="Permalink to this headline">¶</a></h3>
|
1132
|
-
<p>Its syntax is <
|
1133
|
-
<p>The operator returns bitwise XOR between <
|
1132
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">^</span> <span class="pre">number2</span></tt>.</p>
|
1133
|
+
<p>The operator returns bitwise XOR between <tt class="docutils literal"><span class="pre">number1</span></tt> and <tt class="docutils literal"><span class="pre">number2</span></tt>.</p>
|
1134
1134
|
<p>Here is a simple example.</p>
|
1135
1135
|
<p>Execution example:</p>
|
1136
1136
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (10 ^ 15)'
|
@@ -1174,17 +1174,17 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
1174
1174
|
# ]
|
1175
1175
|
</pre></div>
|
1176
1176
|
</div>
|
1177
|
-
<p>The expression matches records that <
|
1178
|
-
to <
|
1177
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1178
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="docutils literal"><span class="pre">10</span> <span class="pre">^</span> <span class="pre">15</span></tt>).</p>
|
1179
1179
|
</div>
|
1180
1180
|
<div class="section" id="shift-operators">
|
1181
1181
|
<h3>7.11.2.6.6. Shift operators<a class="headerlink" href="#shift-operators" title="Permalink to this headline">¶</a></h3>
|
1182
1182
|
<p>Here are shift operators.</p>
|
1183
1183
|
<div class="section" id="left-shift-operator">
|
1184
1184
|
<h4>7.11.2.6.6.1. Left shift operator<a class="headerlink" href="#left-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1185
|
-
<p>Its syntax is <
|
1186
|
-
<p>The operator performs a bitwise left shift operation on <
|
1187
|
-
<
|
1185
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre"><<</span> <span class="pre">number2</span></tt>.</p>
|
1186
|
+
<p>The operator performs a bitwise left shift operation on <tt class="docutils literal"><span class="pre">number1</span></tt> by
|
1187
|
+
<tt class="docutils literal"><span class="pre">number2</span></tt>.</p>
|
1188
1188
|
<p>Here is a simple example.</p>
|
1189
1189
|
<p>Execution example:</p>
|
1190
1190
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (5 << 1)'
|
@@ -1228,14 +1228,14 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
1228
1228
|
# ]
|
1229
1229
|
</pre></div>
|
1230
1230
|
</div>
|
1231
|
-
<p>The expression matches records that <
|
1232
|
-
to <
|
1231
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1232
|
+
to <tt class="docutils literal"><span class="pre">10</span></tt> (= <tt class="docutils literal"><span class="pre">5</span> <span class="pre"><<</span> <span class="pre">1</span></tt>).</p>
|
1233
1233
|
</div>
|
1234
1234
|
<div class="section" id="signed-right-shift-operator">
|
1235
1235
|
<h4>7.11.2.6.6.2. Signed right shift operator<a class="headerlink" href="#signed-right-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1236
|
-
<p>Its syntax is <
|
1237
|
-
<p>The operator shifts bits of <
|
1238
|
-
of the result is the same as <
|
1236
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">>></span> <span class="pre">number2</span></tt>.</p>
|
1237
|
+
<p>The operator shifts bits of <tt class="docutils literal"><span class="pre">number1</span></tt> to right by <tt class="docutils literal"><span class="pre">number2</span></tt>. The sign
|
1238
|
+
of the result is the same as <tt class="docutils literal"><span class="pre">number1</span></tt>.</p>
|
1239
1239
|
<p>Here is a simple example.</p>
|
1240
1240
|
<p>Execution example:</p>
|
1241
1241
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == -(-10 >> 1)'
|
@@ -1279,14 +1279,14 @@ of the result is the same as <code class="docutils literal"><span class="pre">nu
|
|
1279
1279
|
# ]
|
1280
1280
|
</pre></div>
|
1281
1281
|
</div>
|
1282
|
-
<p>The expression matches records that <
|
1283
|
-
to <
|
1282
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1283
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="docutils literal"><span class="pre">-(-10</span> <span class="pre">>></span> <span class="pre">1)</span></tt> = <tt class="docutils literal"><span class="pre">-(-5)</span></tt>).</p>
|
1284
1284
|
</div>
|
1285
1285
|
<div class="section" id="unsigned-right-shift-operator">
|
1286
1286
|
<h4>7.11.2.6.6.3. Unsigned right shift operator<a class="headerlink" href="#unsigned-right-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1287
|
-
<p>Its syntax is <
|
1288
|
-
<p>The operator shifts bits of <
|
1289
|
-
leftmost <
|
1287
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">>>></span> <span class="pre">number2</span></tt>.</p>
|
1288
|
+
<p>The operator shifts bits of <tt class="docutils literal"><span class="pre">number1</span></tt> to right by <tt class="docutils literal"><span class="pre">number2</span></tt>. The
|
1289
|
+
leftmost <tt class="docutils literal"><span class="pre">number2</span></tt> bits are filled by <tt class="docutils literal"><span class="pre">0</span></tt>.</p>
|
1290
1290
|
<p>Here is a simple example.</p>
|
1291
1291
|
<p>Execution example:</p>
|
1292
1292
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (2147483648 - (-10 >>> 1))'
|
@@ -1330,8 +1330,8 @@ leftmost <code class="docutils literal"><span class="pre">number2</span></code>
|
|
1330
1330
|
# ]
|
1331
1331
|
</pre></div>
|
1332
1332
|
</div>
|
1333
|
-
<p>The expression matches records that <
|
1334
|
-
to <
|
1333
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1334
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> (= <tt class="docutils literal"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">(-10</span> <span class="pre">>>></span> <span class="pre">1)</span></tt> = <tt class="docutils literal"><span class="pre">2147483648</span> <span class="pre">-</span> <span class="pre">2147483643</span></tt>).</p>
|
1335
1335
|
</div>
|
1336
1336
|
</div>
|
1337
1337
|
<div class="section" id="comparison-operators">
|
@@ -1339,8 +1339,8 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
1339
1339
|
<p>Here are comparison operators.</p>
|
1340
1340
|
<div class="section" id="equal-operator">
|
1341
1341
|
<h4>7.11.2.6.7.1. Equal operator<a class="headerlink" href="#equal-operator" title="Permalink to this headline">¶</a></h4>
|
1342
|
-
<p>Its syntax is <
|
1343
|
-
<p>The operator returns true if <
|
1342
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">object1</span> <span class="pre">==</span> <span class="pre">object2</span></tt>.</p>
|
1343
|
+
<p>The operator returns true if <tt class="docutils literal"><span class="pre">object1</span></tt> equals to <tt class="docutils literal"><span class="pre">object2</span></tt>, false
|
1344
1344
|
otherwise.</p>
|
1345
1345
|
<p>Here is a simple example.</p>
|
1346
1346
|
<p>Execution example:</p>
|
@@ -1385,14 +1385,14 @@ otherwise.</p>
|
|
1385
1385
|
# ]
|
1386
1386
|
</pre></div>
|
1387
1387
|
</div>
|
1388
|
-
<p>The expression matches records that <
|
1389
|
-
to <
|
1388
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1389
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
1390
1390
|
</div>
|
1391
1391
|
<div class="section" id="not-equal-operator">
|
1392
1392
|
<h4>7.11.2.6.7.2. Not equal operator<a class="headerlink" href="#not-equal-operator" title="Permalink to this headline">¶</a></h4>
|
1393
|
-
<p>Its syntax is <
|
1394
|
-
<p>The operator returns true if <
|
1395
|
-
<
|
1393
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">object1</span> <span class="pre">!=</span> <span class="pre">object2</span></tt>.</p>
|
1394
|
+
<p>The operator returns true if <tt class="docutils literal"><span class="pre">object1</span></tt> does not equal to
|
1395
|
+
<tt class="docutils literal"><span class="pre">object2</span></tt>, false otherwise.</p>
|
1396
1396
|
<p>Here is a simple example.</p>
|
1397
1397
|
<p>Execution example:</p>
|
1398
1398
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes != 5'
|
@@ -1454,8 +1454,8 @@ to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
1454
1454
|
# ]
|
1455
1455
|
</pre></div>
|
1456
1456
|
</div>
|
1457
|
-
<p>The expression matches records that <
|
1458
|
-
equal to <
|
1457
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is not
|
1458
|
+
equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
1459
1459
|
</div>
|
1460
1460
|
<div class="section" id="less-than-operator">
|
1461
1461
|
<h4>7.11.2.6.7.3. Less than operator<a class="headerlink" href="#less-than-operator" title="Permalink to this headline">¶</a></h4>
|
@@ -1479,7 +1479,7 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
1479
1479
|
<h2>7.11.2.7. Assignment operators<a class="headerlink" href="#assignment-operators" title="Permalink to this headline">¶</a></h2>
|
1480
1480
|
<div class="section" id="addition-assignment-operator">
|
1481
1481
|
<h3>7.11.2.7.1. Addition assignment operator<a class="headerlink" href="#addition-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1482
|
-
<p>Its syntax is <
|
1482
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">+=</span> <span class="pre">column2</span></tt>.</p>
|
1483
1483
|
<p>The operator performs addition assginment operation on column1 by column2.</p>
|
1484
1484
|
<p>Execution example:</p>
|
1485
1485
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
|
@@ -1538,15 +1538,15 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
1538
1538
|
# ]
|
1539
1539
|
</pre></div>
|
1540
1540
|
</div>
|
1541
|
-
<p>The value of <
|
1541
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1542
1542
|
then performs addition assignment operation such as '_score = _score + n_likes' for each records.</p>
|
1543
|
-
<p>For example, the value of <
|
1543
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1544
1544
|
is 3.</p>
|
1545
|
-
<p>So the expression <
|
1545
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">+</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1546
1546
|
</div>
|
1547
1547
|
<div class="section" id="subtraction-assignment-operator">
|
1548
1548
|
<h3>7.11.2.7.2. Subtraction assignment operator<a class="headerlink" href="#subtraction-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1549
|
-
<p>Its syntax is <
|
1549
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">-=</span> <span class="pre">column2</span></tt>.</p>
|
1550
1550
|
<p>The operator performs subtraction assginment operation on column1 by column2.</p>
|
1551
1551
|
<p>Execution example:</p>
|
1552
1552
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
|
@@ -1605,15 +1605,15 @@ is 3.</p>
|
|
1605
1605
|
# ]
|
1606
1606
|
</pre></div>
|
1607
1607
|
</div>
|
1608
|
-
<p>The value of <
|
1608
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1609
1609
|
then performs subtraction assignment operation such as '_score = _score - n_likes' for each records.</p>
|
1610
|
-
<p>For example, the value of <
|
1610
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1611
1611
|
is 3.</p>
|
1612
|
-
<p>So the expression <
|
1612
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">-</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1613
1613
|
</div>
|
1614
1614
|
<div class="section" id="multiplication-assignment-operator">
|
1615
1615
|
<h3>7.11.2.7.3. Multiplication assignment operator<a class="headerlink" href="#multiplication-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1616
|
-
<p>Its syntax is <
|
1616
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">*=</span> <span class="pre">column2</span></tt>.</p>
|
1617
1617
|
<p>The operator performs multiplication assginment operation on column1 by column2.</p>
|
1618
1618
|
<p>Execution example:</p>
|
1619
1619
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
|
@@ -1672,15 +1672,15 @@ is 3.</p>
|
|
1672
1672
|
# ]
|
1673
1673
|
</pre></div>
|
1674
1674
|
</div>
|
1675
|
-
<p>The value of <
|
1675
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1676
1676
|
then performs subtraction assignment operation such as '_score = _score * n_likes' for each records.</p>
|
1677
|
-
<p>For example, the value of <
|
1677
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1678
1678
|
is 3.</p>
|
1679
|
-
<p>So the expression <
|
1679
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">*</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1680
1680
|
</div>
|
1681
1681
|
<div class="section" id="division-assignment-operator">
|
1682
1682
|
<h3>7.11.2.7.4. Division assignment operator<a class="headerlink" href="#division-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1683
|
-
<p>Its syntax is <
|
1683
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">/=</span> <span class="pre">column2</span></tt>.</p>
|
1684
1684
|
<p>The operator performs division assginment operation on column1 by column2.</p>
|
1685
1685
|
<p>Execution example:</p>
|
1686
1686
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
|
@@ -1739,15 +1739,15 @@ is 3.</p>
|
|
1739
1739
|
# ]
|
1740
1740
|
</pre></div>
|
1741
1741
|
</div>
|
1742
|
-
<p>The value of <
|
1742
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1743
1743
|
then performs subtraction assignment operation such as '_score = _score / n_likes' for each records.</p>
|
1744
|
-
<p>For example, the value of <
|
1744
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1745
1745
|
is 3.</p>
|
1746
|
-
<p>So the expression <
|
1746
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">/</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1747
1747
|
</div>
|
1748
1748
|
<div class="section" id="modulo-assignment-operator">
|
1749
1749
|
<h3>7.11.2.7.5. Modulo assignment operator<a class="headerlink" href="#modulo-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1750
|
-
<p>Its syntax is <
|
1750
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">%=</span> <span class="pre">column2</span></tt>.</p>
|
1751
1751
|
<p>The operator performs modulo assginment operation on column1 by column2.</p>
|
1752
1752
|
<p>Execution example:</p>
|
1753
1753
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
|
@@ -1806,15 +1806,15 @@ is 3.</p>
|
|
1806
1806
|
# ]
|
1807
1807
|
</pre></div>
|
1808
1808
|
</div>
|
1809
|
-
<p>The value of <
|
1809
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1810
1810
|
then performs subtraction assignment operation such as '_score = _score % n_likes' for each records.</p>
|
1811
|
-
<p>For example, the value of <
|
1811
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1812
1812
|
is 3.</p>
|
1813
|
-
<p>So the expression <
|
1813
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">%</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1814
1814
|
</div>
|
1815
1815
|
<div class="section" id="bitwise-left-shift-assignment-operator">
|
1816
1816
|
<h3>7.11.2.7.6. Bitwise left shift assignment operator<a class="headerlink" href="#bitwise-left-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1817
|
-
<p>Its syntax is <
|
1817
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre"><<=</span> <span class="pre">column2</span></tt>.</p>
|
1818
1818
|
<p>The operator performs left shift assginment operation on column1 by column2.</p>
|
1819
1819
|
<p>Execution example:</p>
|
1820
1820
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
|
@@ -1873,25 +1873,25 @@ is 3.</p>
|
|
1873
1873
|
# ]
|
1874
1874
|
</pre></div>
|
1875
1875
|
</div>
|
1876
|
-
<p>The value of <
|
1876
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1877
1877
|
then performs subtraction assignment operation such as '_score = _score << n_likes' for each records.</p>
|
1878
|
-
<p>For example, the value of <
|
1878
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1879
1879
|
is 3.</p>
|
1880
|
-
<p>So the expression <
|
1880
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre"><<</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1881
1881
|
</div>
|
1882
1882
|
<div class="section" id="bitwise-signed-right-shift-assignment-operator">
|
1883
1883
|
<h3>7.11.2.7.7. Bitwise signed right shift assignment operator<a class="headerlink" href="#bitwise-signed-right-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1884
|
-
<p>Its syntax is <
|
1884
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column2</span> <span class="pre">>>=</span> <span class="pre">column2</span></tt>.</p>
|
1885
1885
|
<p>The operator performs signed right shift assginment operation on column1 by column2.</p>
|
1886
1886
|
</div>
|
1887
1887
|
<div class="section" id="bitwise-unsigned-right-shift-assignment-operator">
|
1888
1888
|
<h3>7.11.2.7.8. Bitwise unsigned right shift assignment operator<a class="headerlink" href="#bitwise-unsigned-right-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1889
|
-
<p>Its syntax is <
|
1889
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">>>>=</span> <span class="pre">column2</span></tt>.</p>
|
1890
1890
|
<p>The operator performs unsigned right shift assginment operation on column1 by column2.</p>
|
1891
1891
|
</div>
|
1892
1892
|
<div class="section" id="bitwise-and-assignment-operator">
|
1893
1893
|
<h3>7.11.2.7.9. Bitwise AND assignment operator<a class="headerlink" href="#bitwise-and-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1894
|
-
<p>Its syntax is <
|
1894
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">&=</span> <span class="pre">column2</span></tt>.</p>
|
1895
1895
|
<p>The operator performs bitwise AND assignment operation on column1 by column2.</p>
|
1896
1896
|
<p>Execution example:</p>
|
1897
1897
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
|
@@ -1950,15 +1950,15 @@ is 3.</p>
|
|
1950
1950
|
# ]
|
1951
1951
|
</pre></div>
|
1952
1952
|
</div>
|
1953
|
-
<p>The value of <
|
1953
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
1954
1954
|
then performs subtraction assignment operation such as '_score = _score & n_likes' for each records.</p>
|
1955
|
-
<p>For example, the value of <
|
1955
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Groonga" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
1956
1956
|
is 10.</p>
|
1957
|
-
<p>So the expression <
|
1957
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">&</span> <span class="pre">10</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
1958
1958
|
</div>
|
1959
1959
|
<div class="section" id="bitwise-or-assignment-operator">
|
1960
1960
|
<h3>7.11.2.7.10. Bitwise OR assignment operator<a class="headerlink" href="#bitwise-or-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1961
|
-
<p>Its syntax is <
|
1961
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">|=</span> <span class="pre">column2</span></tt>.</p>
|
1962
1962
|
<p>The operator performs bitwise OR assignment operation on column1 by column2.</p>
|
1963
1963
|
<p>Execution example:</p>
|
1964
1964
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
|
@@ -2017,15 +2017,15 @@ is 10.</p>
|
|
2017
2017
|
# ]
|
2018
2018
|
</pre></div>
|
2019
2019
|
</div>
|
2020
|
-
<p>The value of <
|
2020
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
2021
2021
|
then performs subtraction assignment operation such as '_score = _score | n_likes' for each records.</p>
|
2022
|
-
<p>For example, the value of <
|
2022
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Groonga" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
2023
2023
|
is 10.</p>
|
2024
|
-
<p>So the expression <
|
2024
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">|</span> <span class="pre">10</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
2025
2025
|
</div>
|
2026
2026
|
<div class="section" id="bitwise-xor-assignment-operator">
|
2027
2027
|
<h3>7.11.2.7.11. Bitwise XOR assignment operator<a class="headerlink" href="#bitwise-xor-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
2028
|
-
<p>Its syntax is <
|
2028
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">^=</span> <span class="pre">column2</span></tt>.</p>
|
2029
2029
|
<p>The operator performs bitwise XOR assginment operation on column1 by column2.</p>
|
2030
2030
|
<p>Execution example:</p>
|
2031
2031
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
|
@@ -2084,22 +2084,22 @@ is 10.</p>
|
|
2084
2084
|
# ]
|
2085
2085
|
</pre></div>
|
2086
2086
|
</div>
|
2087
|
-
<p>The value of <
|
2087
|
+
<p>The value of <tt class="docutils literal"><span class="pre">_score</span></tt> by <tt class="docutils literal"><span class="pre">--filter</span></tt> is always 1 in this case,
|
2088
2088
|
then performs subtraction assignment operation such as '_score = _score ^ n_likes' for each records.</p>
|
2089
|
-
<p>For example, the value of <
|
2089
|
+
<p>For example, the value of <tt class="docutils literal"><span class="pre">_score</span></tt> about the record which stores "Good-bye Senna" as the <tt class="docutils literal"><span class="pre">_key</span></tt>
|
2090
2090
|
is 3.</p>
|
2091
|
-
<p>So the expression <
|
2091
|
+
<p>So the expression <tt class="docutils literal"><span class="pre">1</span> <span class="pre">^</span> <span class="pre">3</span></tt> is evaluated and stored to <tt class="docutils literal"><span class="pre">_score</span></tt> column as the execution result.</p>
|
2092
2092
|
</div>
|
2093
2093
|
</div>
|
2094
2094
|
<div class="section" id="original-operators">
|
2095
2095
|
<h2>7.11.2.8. Original operators<a class="headerlink" href="#original-operators" title="Permalink to this headline">¶</a></h2>
|
2096
2096
|
<p>Script syntax adds the original binary opearators to ECMAScript
|
2097
2097
|
syntax. They operate search specific operations. They are starts with
|
2098
|
-
<
|
2098
|
+
<tt class="docutils literal"><span class="pre">@</span></tt> or <tt class="docutils literal"><span class="pre">*</span></tt>.</p>
|
2099
2099
|
<div class="section" id="match-operator">
|
2100
2100
|
<span id="match-oeprator"></span><h3>7.11.2.8.1. Match operator<a class="headerlink" href="#match-operator" title="Permalink to this headline">¶</a></h3>
|
2101
|
-
<p>Its syntax is <
|
2102
|
-
<p>The operator searches <
|
2101
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@</span> <span class="pre">value</span></tt>.</p>
|
2102
|
+
<p>The operator searches <tt class="docutils literal"><span class="pre">value</span></tt> by inverted index of <tt class="docutils literal"><span class="pre">column</span></tt>.
|
2103
2103
|
Normally, full text search is operated but tag search can be operated.
|
2104
2104
|
Because tag search is also implemented by inverted index.</p>
|
2105
2105
|
<p><a class="reference internal" href="query_syntax.html"><em>Query syntax</em></a> uses this operator by default.</p>
|
@@ -2134,20 +2134,20 @@ Because tag search is also implemented by inverted index.</p>
|
|
2134
2134
|
# ]
|
2135
2135
|
</pre></div>
|
2136
2136
|
</div>
|
2137
|
-
<p>The expression matches records that contain a word <
|
2138
|
-
<
|
2137
|
+
<p>The expression matches records that contain a word <tt class="docutils literal"><span class="pre">fast</span></tt> in
|
2138
|
+
<tt class="docutils literal"><span class="pre">content</span></tt> column value.</p>
|
2139
2139
|
</div>
|
2140
2140
|
<div class="section" id="prefix-search-operator">
|
2141
2141
|
<span id="id1"></span><h3>7.11.2.8.2. Prefix search operator<a class="headerlink" href="#prefix-search-operator" title="Permalink to this headline">¶</a></h3>
|
2142
|
-
<p>Its syntax is <
|
2143
|
-
<p>The operator does prefix search with <
|
2144
|
-
records that contain a word that starts with <
|
2142
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@^</span> <span class="pre">value</span></tt>.</p>
|
2143
|
+
<p>The operator does prefix search with <tt class="docutils literal"><span class="pre">value</span></tt>. Prefix search searches
|
2144
|
+
records that contain a word that starts with <tt class="docutils literal"><span class="pre">value</span></tt>.</p>
|
2145
2145
|
<p>You can use fast prefix search against a column. The column must be
|
2146
2146
|
indexed and index table must be patricia trie table
|
2147
|
-
(<
|
2148
|
-
(<
|
2149
|
-
<
|
2150
|
-
table. You don't need to index <
|
2147
|
+
(<tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt>) or double array trie table
|
2148
|
+
(<tt class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></tt>). You can also use fast prefix search against
|
2149
|
+
<tt class="docutils literal"><span class="pre">_key</span></tt> pseudo column of patricia trie table or double array trie
|
2150
|
+
table. You don't need to index <tt class="docutils literal"><span class="pre">_key</span></tt>.</p>
|
2151
2151
|
<p>Prefix search can be used with other table types but it causes all
|
2152
2152
|
records scan. It's not problem for small records but it spends more
|
2153
2153
|
time for large records.</p>
|
@@ -2183,21 +2183,21 @@ time for large records.</p>
|
|
2183
2183
|
</pre></div>
|
2184
2184
|
</div>
|
2185
2185
|
<p>The expression matches records that contain a word that starts with
|
2186
|
-
<
|
2187
|
-
<
|
2186
|
+
<tt class="docutils literal"><span class="pre">Goo</span></tt> in <tt class="docutils literal"><span class="pre">_key</span></tt> pseudo column value. <tt class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Senna</span></tt> and
|
2187
|
+
<tt class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></tt> are matched with the expression.</p>
|
2188
2188
|
</div>
|
2189
2189
|
<div class="section" id="suffix-search-operator">
|
2190
2190
|
<span id="id2"></span><h3>7.11.2.8.3. Suffix search operator<a class="headerlink" href="#suffix-search-operator" title="Permalink to this headline">¶</a></h3>
|
2191
|
-
<p>Its syntax is <
|
2192
|
-
<p>This operator does suffix search with <
|
2193
|
-
searches records that contain a word that ends with <
|
2191
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@$</span> <span class="pre">value</span></tt>.</p>
|
2192
|
+
<p>This operator does suffix search with <tt class="docutils literal"><span class="pre">value</span></tt>. Suffix search
|
2193
|
+
searches records that contain a word that ends with <tt class="docutils literal"><span class="pre">value</span></tt>.</p>
|
2194
2194
|
<p>You can use fast suffix search against a column. The column must be
|
2195
2195
|
indexed and index table must be patricia trie table
|
2196
|
-
(<
|
2197
|
-
suffix search against <
|
2198
|
-
(<
|
2199
|
-
index <
|
2200
|
-
suffix search instead of <
|
2196
|
+
(<tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt>) with <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> flag. You can also use fast
|
2197
|
+
suffix search against <tt class="docutils literal"><span class="pre">_key</span></tt> pseudo column of patricia trie table
|
2198
|
+
(<tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt>) with <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> flag. You don't need to
|
2199
|
+
index <tt class="docutils literal"><span class="pre">_key</span></tt>. We recommended that you use index column based fast
|
2200
|
+
suffix search instead of <tt class="docutils literal"><span class="pre">_key</span></tt> based fast suffix search. <tt class="docutils literal"><span class="pre">_key</span></tt>
|
2201
2201
|
based fast suffix search returns automatically registered
|
2202
2202
|
substrings. (TODO: write document about suffix search and link to it
|
2203
2203
|
from here.)</p>
|
@@ -2208,7 +2208,7 @@ as hiragana in Japanese. You cannot use fast suffix search for
|
|
2208
2208
|
ASCII character.</p>
|
2209
2209
|
</div>
|
2210
2210
|
<p>Suffix search can be used with other table types or patricia trie
|
2211
|
-
table without <
|
2211
|
+
table without <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> flag but it causes all records
|
2212
2212
|
scan. It's not problem for small records but it spends more time for
|
2213
2213
|
large records.</p>
|
2214
2214
|
<p>Here is a simple exmaple. It uses fast suffix search for hiragana in
|
@@ -2265,25 +2265,25 @@ select Titles --query 'content:$んが'
|
|
2265
2265
|
# ]
|
2266
2266
|
</pre></div>
|
2267
2267
|
</div>
|
2268
|
-
<p>The expression matches records that have value that ends with <
|
2269
|
-
in <
|
2268
|
+
<p>The expression matches records that have value that ends with <tt class="docutils literal"><span class="pre">んが</span></tt>
|
2269
|
+
in <tt class="docutils literal"><span class="pre">content</span></tt> column value. <tt class="docutils literal"><span class="pre">ぐるんが</span></tt> and <tt class="docutils literal"><span class="pre">むるんが</span></tt> are matched
|
2270
2270
|
with the expression.</p>
|
2271
2271
|
</div>
|
2272
2272
|
<div class="section" id="near-search-operator">
|
2273
2273
|
<span id="id3"></span><h3>7.11.2.8.4. Near search operator<a class="headerlink" href="#near-search-operator" title="Permalink to this headline">¶</a></h3>
|
2274
|
-
<p>Its syntax is <
|
2275
|
-
<p>The operator does near search with words <
|
2274
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">*N</span> <span class="pre">"word1</span> <span class="pre">word2</span> <span class="pre">..."</span></tt>.</p>
|
2275
|
+
<p>The operator does near search with words <tt class="docutils literal"><span class="pre">word1</span> <span class="pre">word2</span> <span class="pre">...</span></tt>. Near
|
2276
2276
|
search searches records that contain the words and the words are
|
2277
|
-
appeared in the near distance. Near distance is always <
|
2277
|
+
appeared in the near distance. Near distance is always <tt class="docutils literal"><span class="pre">10</span></tt> for
|
2278
2278
|
now. The unit of near distance is the number of characters in N-gram
|
2279
2279
|
family tokenizers and the number of words in morphological analysis
|
2280
2280
|
family tokenizers.</p>
|
2281
|
-
<p>(TODO: Add a description about <
|
2281
|
+
<p>(TODO: Add a description about <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> doesn't split ASCII
|
2282
2282
|
only word into tokens. So the unit for ASCII words with
|
2283
|
-
<
|
2283
|
+
<tt class="docutils literal"><span class="pre">TokenBigram</span></tt> is the number of words even if <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> is a
|
2284
2284
|
N-gram family tokenizer.)</p>
|
2285
2285
|
<p>Note that an index column for full text search must be defined for
|
2286
|
-
<
|
2286
|
+
<tt class="docutils literal"><span class="pre">column</span></tt>.</p>
|
2287
2287
|
<p>Here is a simple exmaple.</p>
|
2288
2288
|
<p>Execution example:</p>
|
2289
2289
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *N "I fast"' --output_columns content
|
@@ -2338,30 +2338,30 @@ select Entries --filter 'content *N "also Really"' --output_co
|
|
2338
2338
|
# ]
|
2339
2339
|
</pre></div>
|
2340
2340
|
</div>
|
2341
|
-
<p>The first expression matches records that contain <
|
2341
|
+
<p>The first expression matches records that contain <tt class="docutils literal"><span class="pre">I</span></tt> and <tt class="docutils literal"><span class="pre">fast</span></tt>
|
2342
2342
|
and the near distance of those words are in 10 words. So the record
|
2343
|
-
that its content is <
|
2344
|
-
<span class="pre">fast!</span> <span class="pre">...</span></
|
2343
|
+
that its content is <tt class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span> <span class="pre">also</span> <span class="pre">very</span>
|
2344
|
+
<span class="pre">fast!</span> <span class="pre">...</span></tt> is matched. The number of words between <tt class="docutils literal"><span class="pre">I</span></tt> and <tt class="docutils literal"><span class="pre">fast</span></tt>
|
2345
2345
|
is just 10.</p>
|
2346
|
-
<p>The second expression matches records that contain <
|
2347
|
-
<
|
2348
|
-
the record that its content is <
|
2349
|
-
<span class="pre">also</span> <span class="pre">very</span> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></
|
2350
|
-
<
|
2351
|
-
<p>The third expression matches records that contain <
|
2352
|
-
<
|
2353
|
-
the record that its content is <
|
2354
|
-
<span class="pre">also</span> <span class="pre">very</span> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></
|
2355
|
-
<
|
2346
|
+
<p>The second expression matches records that contain <tt class="docutils literal"><span class="pre">I</span></tt> and
|
2347
|
+
<tt class="docutils literal"><span class="pre">Really</span></tt> and the near distance of those words are in 10 words. So
|
2348
|
+
the record that its content is <tt class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">started</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span>
|
2349
|
+
<span class="pre">also</span> <span class="pre">very</span> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></tt> is not matched. The number of words between
|
2350
|
+
<tt class="docutils literal"><span class="pre">I</span></tt> and <tt class="docutils literal"><span class="pre">Really</span></tt> is 11.</p>
|
2351
|
+
<p>The third expression matches records that contain <tt class="docutils literal"><span class="pre">also</span></tt> and
|
2352
|
+
<tt class="docutils literal"><span class="pre">Really</span></tt> and the near distance of those words are in 10 words. So
|
2353
|
+
the record that its content is <tt class="docutils literal"><span class="pre">I</span> <span class="pre">also</span> <span class="pre">st</span> <span class="pre">arted</span> <span class="pre">to</span> <span class="pre">use</span> <span class="pre">mroonga.</span> <span class="pre">It's</span>
|
2354
|
+
<span class="pre">also</span> <span class="pre">very</span> <span class="pre">fast!</span> <span class="pre">Really</span> <span class="pre">fast!</span></tt> is matched. The number of words between
|
2355
|
+
<tt class="docutils literal"><span class="pre">also</span></tt> and <tt class="docutils literal"><span class="pre">Really</span></tt> is 10.</p>
|
2356
2356
|
</div>
|
2357
2357
|
<div class="section" id="similar-search">
|
2358
2358
|
<span id="similar-search-operator"></span><h3>7.11.2.8.5. Similar search<a class="headerlink" href="#similar-search" title="Permalink to this headline">¶</a></h3>
|
2359
|
-
<p>Its syntax is <
|
2360
|
-
<p>The operator does similar search with document <
|
2359
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">*S</span> <span class="pre">"document"</span></tt>.</p>
|
2360
|
+
<p>The operator does similar search with document <tt class="docutils literal"><span class="pre">document</span></tt>. Similar
|
2361
2361
|
search searches records that have similar content to
|
2362
|
-
<
|
2362
|
+
<tt class="docutils literal"><span class="pre">document</span></tt>.</p>
|
2363
2363
|
<p>Note that an index column for full text search must be defined for
|
2364
|
-
<
|
2364
|
+
<tt class="docutils literal"><span class="pre">column</span></tt>.</p>
|
2365
2365
|
<p>Here is a simple exmaple.</p>
|
2366
2366
|
<p>Execution example:</p>
|
2367
2367
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *S "I migrated all Solr system!"' --output_columns content
|
@@ -2393,18 +2393,18 @@ search searches records that have similar content to
|
|
2393
2393
|
# ]
|
2394
2394
|
</pre></div>
|
2395
2395
|
</div>
|
2396
|
-
<p>The expression matches records that have similar content to <
|
2397
|
-
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></
|
2398
|
-
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></
|
2396
|
+
<p>The expression matches records that have similar content to <tt class="docutils literal"><span class="pre">I</span>
|
2397
|
+
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></tt>. In this case, records that have <tt class="docutils literal"><span class="pre">I</span>
|
2398
|
+
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></tt> content are matched.</p>
|
2399
2399
|
</div>
|
2400
2400
|
<div class="section" id="term-extract-operator">
|
2401
2401
|
<span id="id4"></span><h3>7.11.2.8.6. Term extract operator<a class="headerlink" href="#term-extract-operator" title="Permalink to this headline">¶</a></h3>
|
2402
|
-
<p>Its syntax is <
|
2403
|
-
<p>The operator extracts terms from <
|
2404
|
-
registered as keys of the table of <
|
2405
|
-
<p>Note that the table must be patricia trie (<
|
2406
|
-
double array trie (<
|
2407
|
-
(<
|
2402
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">_key</span> <span class="pre">*T</span> <span class="pre">"document"</span></tt>.</p>
|
2403
|
+
<p>The operator extracts terms from <tt class="docutils literal"><span class="pre">document</span></tt>. Terms must be
|
2404
|
+
registered as keys of the table of <tt class="docutils literal"><span class="pre">_key</span></tt>.</p>
|
2405
|
+
<p>Note that the table must be patricia trie (<tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt>) or
|
2406
|
+
double array trie (<tt class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></tt>). You can't use hash table
|
2407
|
+
(<tt class="docutils literal"><span class="pre">TABLE_HASH_KEY</span></tt>) and array (<tt class="docutils literal"><span class="pre">TABLE_NO_KEY</span></tt>) because they don't
|
2408
2408
|
support longest common prefix search. Longest common prefix search is
|
2409
2409
|
used to implement the operator.</p>
|
2410
2410
|
<p>Here is a simple exmaple.</p>
|
@@ -2448,10 +2448,10 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2448
2448
|
# ]
|
2449
2449
|
</pre></div>
|
2450
2450
|
</div>
|
2451
|
-
<p>The expression extrcts terms that included in document <
|
2452
|
-
<span class="pre">the</span> <span class="pre">successor</span> <span class="pre">project</span> <span class="pre">to</span> <span class="pre">Senna.</span></
|
2453
|
-
flag is specified to <
|
2454
|
-
if it is loaded as <
|
2451
|
+
<p>The expression extrcts terms that included in document <tt class="docutils literal"><span class="pre">Groonga</span> <span class="pre">is</span>
|
2452
|
+
<span class="pre">the</span> <span class="pre">successor</span> <span class="pre">project</span> <span class="pre">to</span> <span class="pre">Senna.</span></tt>. In this case, <tt class="docutils literal"><span class="pre">KEY_NORMALIZE</span></tt>
|
2453
|
+
flag is specified to <tt class="docutils literal"><span class="pre">Words</span></tt>. So <tt class="docutils literal"><span class="pre">Groonga</span></tt> can be extracted even
|
2454
|
+
if it is loaded as <tt class="docutils literal"><span class="pre">groonga</span></tt> into <tt class="docutils literal"><span class="pre">Words</span></tt>. All of extracted terms
|
2455
2455
|
are also normalized.</p>
|
2456
2456
|
</div>
|
2457
2457
|
</div>
|
@@ -2461,7 +2461,7 @@ are also normalized.</p>
|
|
2461
2461
|
</div>
|
2462
2462
|
</div>
|
2463
2463
|
</div>
|
2464
|
-
<div class="sphinxsidebar"
|
2464
|
+
<div class="sphinxsidebar">
|
2465
2465
|
<div class="sphinxsidebarwrapper">
|
2466
2466
|
<h3><a href="../../index.html">Table Of Contents</a></h3>
|
2467
2467
|
<ul>
|
@@ -2554,14 +2554,12 @@ are also normalized.</p>
|
|
2554
2554
|
<h4>Next topic</h4>
|
2555
2555
|
<p class="topless"><a href="../function.html"
|
2556
2556
|
title="next chapter">7.12. Function</a></p>
|
2557
|
-
<
|
2558
|
-
|
2559
|
-
<
|
2560
|
-
|
2561
|
-
|
2562
|
-
|
2563
|
-
</div>
|
2564
|
-
<div id="searchbox" style="display: none" role="search">
|
2557
|
+
<h3>This Page</h3>
|
2558
|
+
<ul class="this-page-menu">
|
2559
|
+
<li><a href="../../_sources/reference/grn_expr/script_syntax.txt"
|
2560
|
+
rel="nofollow">Show Source</a></li>
|
2561
|
+
</ul>
|
2562
|
+
<div id="searchbox" style="display: none">
|
2565
2563
|
<h3>Quick search</h3>
|
2566
2564
|
<form class="search" action="../../search.html" method="get">
|
2567
2565
|
<input type="text" name="q" />
|
@@ -2578,7 +2576,7 @@ are also normalized.</p>
|
|
2578
2576
|
</div>
|
2579
2577
|
<div class="clearer"></div>
|
2580
2578
|
</div>
|
2581
|
-
<div class="related"
|
2579
|
+
<div class="related">
|
2582
2580
|
<h3>Navigation</h3>
|
2583
2581
|
<ul>
|
2584
2582
|
<li class="right" style="margin-right: 10px">
|
@@ -2590,12 +2588,12 @@ are also normalized.</p>
|
|
2590
2588
|
<li class="right" >
|
2591
2589
|
<a href="query_syntax.html" title="7.11.1. Query syntax"
|
2592
2590
|
>previous</a> |</li>
|
2593
|
-
<li><a href="../../index.html">Groonga v4.0.8 documentation</a> »</li>
|
2591
|
+
<li><a href="../../index.html">Groonga v4.0.8-168-gae696d7 documentation</a> »</li>
|
2594
2592
|
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
2595
2593
|
<li><a href="../grn_expr.html" >7.11. grn_expr</a> »</li>
|
2596
2594
|
</ul>
|
2597
2595
|
</div>
|
2598
|
-
<div class="footer"
|
2596
|
+
<div class="footer">
|
2599
2597
|
© Copyright 2009-2014, Brazil, Inc.
|
2600
2598
|
</div>
|
2601
2599
|
</body>
|