rroonga 5.0.0-x86-mingw32 → 5.0.1-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.yardopts +1 -0
- data/Rakefile +1 -16
- data/example/bookmark.rb +1 -6
- data/example/index-html.rb +0 -1
- data/ext/groonga/extconf.rb +4 -7
- data/ext/groonga/rb-grn-array.c +1 -1
- data/ext/groonga/rb-grn-column.c +33 -67
- data/ext/groonga/rb-grn-context.c +5 -5
- data/ext/groonga/rb-grn-database.c +2 -2
- data/ext/groonga/rb-grn-double-array-trie.c +4 -2
- data/ext/groonga/rb-grn-encoding-support.c +7 -1
- data/ext/groonga/rb-grn-equal-operator.c +85 -0
- data/ext/groonga/rb-grn-exception.c +17 -0
- data/ext/groonga/rb-grn-expression.c +85 -43
- data/ext/groonga/rb-grn-greater-equal-operator.c +88 -0
- data/ext/groonga/rb-grn-greater-operator.c +85 -0
- data/ext/groonga/rb-grn-hash.c +1 -1
- data/ext/groonga/rb-grn-index-column.c +150 -11
- data/ext/groonga/rb-grn-less-equal-operator.c +88 -0
- data/ext/groonga/rb-grn-less-operator.c +85 -0
- data/ext/groonga/rb-grn-logger.c +5 -5
- data/ext/groonga/rb-grn-match-operator.c +86 -0
- data/ext/groonga/rb-grn-normalizer.c +8 -1
- data/ext/groonga/rb-grn-not-equal-operator.c +85 -0
- data/ext/groonga/rb-grn-object.c +170 -36
- data/ext/groonga/rb-grn-operator.c +395 -172
- data/ext/groonga/rb-grn-patricia-trie.c +10 -8
- data/ext/groonga/rb-grn-plugin.c +51 -3
- data/ext/groonga/rb-grn-prefix-operator.c +86 -0
- data/ext/groonga/rb-grn-procedure-type.c +4 -0
- data/ext/groonga/rb-grn-query-logger.c +4 -4
- data/ext/groonga/rb-grn-regexp-operator.c +85 -0
- data/ext/groonga/rb-grn-snippet.c +1 -1
- data/ext/groonga/rb-grn-table-key-support.c +9 -5
- data/ext/groonga/rb-grn-table.c +52 -66
- data/ext/groonga/rb-grn-type.c +1 -1
- data/ext/groonga/rb-grn-utils.c +22 -3
- data/ext/groonga/rb-grn.h +31 -4
- data/ext/groonga/rb-groonga.c +9 -9
- data/lib/1.9/groonga.so +0 -0
- data/lib/2.0/groonga.so +0 -0
- data/lib/2.1/groonga.so +0 -0
- data/lib/2.2/groonga.so +0 -0
- data/lib/groonga/context.rb +31 -0
- data/lib/groonga/expression-builder.rb +14 -1
- data/lib/groonga/record.rb +10 -8
- data/lib/groonga/schema.rb +3 -1
- data/rroonga-build.rb +2 -2
- data/rroonga.gemspec +3 -3
- data/test/groonga-test-utils.rb +4 -0
- data/test/test-column.rb +28 -26
- data/test/test-exception.rb +1 -0
- data/test/test-expression-builder.rb +83 -1
- data/test/test-expression.rb +80 -48
- data/test/test-index-column.rb +102 -29
- data/test/test-normalizer.rb +35 -29
- data/test/test-operator.rb +214 -0
- data/test/test-plugin.rb +24 -6
- data/test/test-procedure.rb +29 -0
- data/test/test-schema-type.rb +14 -0
- data/test/test-table-select-mecab.rb +1 -4
- data/test/test-table.rb +7 -0
- data/test/test-token-regexp.rb +30 -0
- data/test/test-type.rb +24 -0
- data/vendor/local/bin/grndb.exe +0 -0
- data/vendor/local/bin/groonga-benchmark.exe +0 -0
- data/vendor/local/bin/groonga.exe +0 -0
- data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
- data/vendor/local/bin/libgroonga-0.dll +0 -0
- data/vendor/local/bin/libmecab-1.dll +0 -0
- data/vendor/local/bin/libmsgpack-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/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/groonga.conf +1 -1
- 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/expr.h +2 -0
- data/vendor/local/include/groonga/groonga/groonga.h +32 -5
- data/vendor/local/include/groonga/groonga/ii.h +7 -0
- data/vendor/local/include/groonga/groonga/obj.h +37 -0
- data/vendor/local/include/groonga/groonga/scorer.h +95 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/query_expanders/tsv.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/eval.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/eval.la +2 -2
- data/vendor/local/lib/groonga/plugins/ruby/load.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/ruby/load.la +2 -2
- data/vendor/local/lib/groonga/plugins/sharding/logical_count.rb +6 -3
- data/vendor/local/lib/groonga/plugins/sharding/logical_enumerator.rb +6 -5
- data/vendor/local/lib/groonga/plugins/sharding/logical_range_filter.rb +421 -17
- data/vendor/local/lib/groonga/plugins/suggest/suggest.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/suggest/suggest.la +2 -2
- data/vendor/local/lib/groonga/plugins/table/table.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/table/table.la +2 -2
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/token_filters/stop_word.la +2 -2
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.dll.a +0 -0
- data/vendor/local/lib/groonga/plugins/tokenizers/mecab.la +2 -2
- data/vendor/local/lib/groonga/scripts/ruby/backtrace_entry.rb +12 -4
- data/vendor/local/lib/groonga/scripts/ruby/database.rb +11 -3
- data/vendor/local/lib/groonga/scripts/ruby/expression.rb +23 -0
- data/vendor/local/lib/groonga/scripts/ruby/expression_size_estimator.rb +158 -0
- data/vendor/local/lib/groonga/scripts/ruby/index_column.rb +39 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/post.rb +4 -0
- data/vendor/local/lib/groonga/scripts/ruby/initialize/pre.rb +2 -0
- data/vendor/local/lib/groonga/scripts/ruby/logger.rb +11 -7
- data/vendor/local/lib/groonga/scripts/ruby/object.rb +11 -0
- data/vendor/local/lib/groonga/scripts/ruby/operator.rb +22 -0
- data/vendor/local/lib/groonga/scripts/ruby/scan_info.rb +7 -2
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_builder.rb +7 -11
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_data.rb +137 -34
- data/vendor/local/lib/groonga/scripts/ruby/scan_info_search_index.rb +9 -0
- data/vendor/local/lib/libgroonga.a +0 -0
- data/vendor/local/lib/libgroonga.dll.a +0 -0
- data/vendor/local/lib/libgroonga.la +2 -2
- data/vendor/local/lib/liblz4.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 +2 -2
- data/vendor/local/lib/libmsgpack.a +0 -0
- data/vendor/local/lib/libmsgpack.dll.a +0 -0
- data/vendor/local/lib/libmsgpack.la +2 -2
- data/vendor/local/lib/libmsgpackc.a +0 -0
- data/vendor/local/lib/libmsgpackc.dll.a +0 -0
- data/vendor/local/lib/libmsgpackc.la +2 -2
- data/vendor/local/lib/libonig.a +0 -0
- data/vendor/local/lib/libonig.dll.a +0 -0
- data/vendor/local/lib/libonig.la +2 -2
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/groonga.pc +3 -3
- data/vendor/local/lib/pkgconfig/liblz4.pc +5 -5
- data/vendor/local/lib/pkgconfig/msgpack.pc +1 -1
- data/vendor/local/lib/pkgconfig/oniguruma.pc +6 -6
- data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
- data/vendor/local/libexec/mecab/mecab-cost-train.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-gen.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-dict-index.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-system-eval.exe +0 -0
- data/vendor/local/libexec/mecab/mecab-test-gen.exe +0 -0
- data/vendor/local/sbin/groonga-httpd-restart +1 -1
- data/vendor/local/sbin/groonga-httpd.exe +0 -0
- data/vendor/local/share/doc/groonga/en/html/.buildinfo +1 -1
- data/vendor/local/share/doc/groonga/en/html/_images/used-when-indexing.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_images/used-when-searching.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/characteristic.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/contribution/development/release.txt +32 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/fedora.txt +4 -4
- 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 +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/ubuntu.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/en/html/_sources/news.txt +194 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/news/3.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/news/4.x.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api.txt +3 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/grn_ctx.txt +42 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/api/overview.txt +54 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/cache_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_list.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/column_rename.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/delete.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/load.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/lock_clear.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_count.txt +173 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/logical_range_filter.txt +112 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/normalize.txt +7 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_register.txt +64 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/plugin_unregister.txt +63 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/register.txt +11 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/request_cancel.txt +3 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/select.txt +17 -17
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/suggest.txt +12 -12
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_create.txt +7 -7
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/table_tokenize.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/tokenize.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/commands/truncate.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/executables/groonga.txt +47 -26
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/between.txt +5 -5
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/geo_distance.txt +3 -3
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_full.txt +6 -6
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/in_values.txt +54 -2
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/query.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/functions/sub_filter.txt +4 -4
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/query_syntax.txt +44 -18
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/grn_expr/script_syntax.txt +41 -11
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/indexing.txt +2 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/normalizers.txt +4 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/operations.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/regular_expression.txt +403 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorer.txt +217 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_at_most.txt +22 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scorers/scorer_tf_idf.txt +110 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/scoring_note.txt +13 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tables.txt +8 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/reference/tokenizers.txt +530 -16
- data/vendor/local/share/doc/groonga/en/html/_sources/server.txt +2 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/server/memcached.txt +15 -0
- data/vendor/local/share/doc/groonga/en/html/_sources/spec/gqtp.txt +66 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/en/html/_sources/tutorial/network.txt +0 -81
- data/vendor/local/share/doc/groonga/en/html/_static/basic.css +6 -68
- data/vendor/local/share/doc/groonga/en/html/_static/doctools.js +1 -26
- 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 +9404 -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/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/en/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/en/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/en/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/en/html/characteristic.html +18 -20
- data/vendor/local/share/doc/groonga/en/html/client.html +22 -24
- 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 +51 -38
- 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 +24 -26
- 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 +26 -14
- data/vendor/local/share/doc/groonga/en/html/index.html +150 -130
- data/vendor/local/share/doc/groonga/en/html/install.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/install/centos.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/install/debian.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/install/fedora.html +28 -30
- 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 +87 -89
- data/vendor/local/share/doc/groonga/en/html/install/solaris.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/install/ubuntu.html +25 -27
- data/vendor/local/share/doc/groonga/en/html/install/windows.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/limitations.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/news.html +256 -27
- 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 +19 -21
- 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 +98 -100
- data/vendor/local/share/doc/groonga/en/html/news/3.x.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/news/4.x.html +102 -104
- 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 +139 -118
- data/vendor/local/share/doc/groonga/en/html/reference/api.html +51 -52
- data/vendor/local/share/doc/groonga/en/html/reference/api/global_configurations.html +49 -51
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_cache.html +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_column.html +80 -82
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_command_version.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_content_type.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ctx.html +130 -80
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_db.html +48 -50
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_encoding.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_expr.html +79 -81
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_geo.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_hook.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_ii.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_index_cursor.html +41 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_info.html +41 -43
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_match_escalation.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_obj.html +89 -91
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_proc.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_search.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table.html +75 -77
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_table_cursor.html +64 -66
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_type.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/api/grn_user_data.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/api/overview.html +202 -0
- data/vendor/local/share/doc/groonga/en/html/reference/api/plugin.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/column.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/index.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/columns/scalar.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/columns/vector.html +58 -60
- data/vendor/local/share/doc/groonga/en/html/reference/command.html +56 -54
- 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 +53 -55
- data/vendor/local/share/doc/groonga/en/html/reference/command/request_id.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/command/return_code.html +94 -96
- data/vendor/local/share/doc/groonga/en/html/reference/commands/cache_limit.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/check.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/clearlock.html +23 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_create.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_list.html +71 -73
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_remove.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/column_rename.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/commands/define_selector.html +37 -39
- data/vendor/local/share/doc/groonga/en/html/reference/commands/defrag.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/delete.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/commands/dump.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/reference/commands/load.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/commands/lock_clear.html +49 -47
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_level.html +23 -25
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_put.html +24 -26
- data/vendor/local/share/doc/groonga/en/html/reference/commands/log_reopen.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_count.html +314 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/logical_range_filter.html +252 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalize.html +87 -89
- data/vendor/local/share/doc/groonga/en/html/reference/commands/normalizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_register.html +195 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/plugin_unregister.html +193 -0
- data/vendor/local/share/doc/groonga/en/html/reference/commands/quit.html +38 -40
- 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 +61 -51
- data/vendor/local/share/doc/groonga/en/html/reference/commands/request_cancel.html +72 -74
- 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 +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/commands/select.html +590 -592
- 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 +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/commands/suggest.html +92 -94
- data/vendor/local/share/doc/groonga/en/html/reference/commands/table_create.html +152 -154
- 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 +68 -70
- data/vendor/local/share/doc/groonga/en/html/reference/commands/tokenize.html +103 -105
- 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 +52 -54
- data/vendor/local/share/doc/groonga/en/html/reference/executables.html +19 -21
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grndb.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/executables/grnslap.html +21 -23
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-benchmark.html +26 -28
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-httpd.html +73 -75
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-server-http.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-httpd.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga-suggest-learner.html +34 -36
- data/vendor/local/share/doc/groonga/en/html/reference/executables/groonga.html +124 -90
- data/vendor/local/share/doc/groonga/en/html/reference/function.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/between.html +66 -68
- data/vendor/local/share/doc/groonga/en/html/reference/functions/edit_distance.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_distance.html +113 -115
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_circle.html +55 -57
- data/vendor/local/share/doc/groonga/en/html/reference/functions/geo_in_rectangle.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_full.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/highlight_html.html +65 -67
- data/vendor/local/share/doc/groonga/en/html/reference/functions/html_untag.html +54 -56
- data/vendor/local/share/doc/groonga/en/html/reference/functions/in_values.html +135 -44
- data/vendor/local/share/doc/groonga/en/html/reference/functions/now.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/functions/query.html +81 -83
- data/vendor/local/share/doc/groonga/en/html/reference/functions/rand.html +43 -45
- data/vendor/local/share/doc/groonga/en/html/reference/functions/snippet_html.html +67 -69
- data/vendor/local/share/doc/groonga/en/html/reference/functions/sub_filter.html +66 -70
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr.html +39 -41
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/query_syntax.html +349 -286
- data/vendor/local/share/doc/groonga/en/html/reference/grn_expr/script_syntax.html +483 -417
- data/vendor/local/share/doc/groonga/en/html/reference/indexing.html +35 -37
- data/vendor/local/share/doc/groonga/en/html/reference/log.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/normalizers.html +44 -46
- data/vendor/local/share/doc/groonga/en/html/reference/operations.html +30 -31
- data/vendor/local/share/doc/groonga/en/html/reference/operations/geolocation_search.html +32 -34
- data/vendor/local/share/doc/groonga/en/html/reference/output.html +32 -34
- 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 +60 -62
- data/vendor/local/share/doc/groonga/en/html/reference/regular_expression.html +931 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorer.html +442 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_at_most.html +153 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scorers/scorer_tf_idf.html +287 -0
- data/vendor/local/share/doc/groonga/en/html/reference/scoring_note.html +114 -0
- data/vendor/local/share/doc/groonga/en/html/reference/suggest.html +45 -47
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/completion.html +51 -53
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/correction.html +40 -42
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/introduction.html +38 -40
- data/vendor/local/share/doc/groonga/en/html/reference/suggest/suggestion.html +40 -42
- 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 +36 -38
- data/vendor/local/share/doc/groonga/en/html/reference/tokenizers.html +1394 -34
- data/vendor/local/share/doc/groonga/en/html/reference/tuning.html +57 -59
- 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 +23 -24
- data/vendor/local/share/doc/groonga/en/html/server/gqtp.html +28 -30
- data/vendor/local/share/doc/groonga/en/html/server/http.html +42 -44
- data/vendor/local/share/doc/groonga/en/html/server/http/comparison.html +68 -70
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga-httpd.html +30 -32
- data/vendor/local/share/doc/groonga/en/html/server/http/groonga.html +29 -31
- data/vendor/local/share/doc/groonga/en/html/server/memcached.html +137 -0
- data/vendor/local/share/doc/groonga/en/html/server/package.html +36 -38
- data/vendor/local/share/doc/groonga/en/html/spec.html +22 -24
- data/vendor/local/share/doc/groonga/en/html/spec/gqtp.html +208 -129
- 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 +18 -20
- 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 +21 -25
- 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 +27 -125
- 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/_images/used-when-indexing.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_images/used-when-searching.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/characteristic.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/contribution/development/release.txt +32 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/centos.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/debian.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/fedora.txt +4 -4
- 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 +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/solaris.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/ubuntu.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/install/windows.txt +9 -9
- data/vendor/local/share/doc/groonga/ja/html/_sources/news.txt +194 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/1.0.x.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/3.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/news/4.x.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api.txt +3 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/grn_ctx.txt +42 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/api/overview.txt +54 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/cache_limit.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_create.txt +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_list.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/column_rename.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/delete.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/load.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/lock_clear.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_count.txt +173 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/logical_range_filter.txt +112 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/normalize.txt +7 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_register.txt +64 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/plugin_unregister.txt +63 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/register.txt +11 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/request_cancel.txt +3 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_eval.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/ruby_load.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/select.txt +17 -17
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/suggest.txt +12 -12
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_create.txt +7 -7
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/table_tokenize.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/tokenize.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/commands/truncate.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/executables/groonga.txt +47 -26
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/between.txt +5 -5
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/geo_distance.txt +3 -3
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_full.txt +6 -6
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/highlight_html.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/html_untag.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/in_values.txt +54 -2
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/query.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/functions/sub_filter.txt +4 -4
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/query_syntax.txt +44 -18
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/grn_expr/script_syntax.txt +41 -11
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/indexing.txt +2 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/normalizers.txt +4 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/operations.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/regular_expression.txt +403 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorer.txt +217 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_at_most.txt +22 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scorers/scorer_tf_idf.txt +110 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/scoring_note.txt +13 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tables.txt +8 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/reference/tokenizers.txt +530 -16
- data/vendor/local/share/doc/groonga/ja/html/_sources/server.txt +2 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/server/memcached.txt +15 -0
- data/vendor/local/share/doc/groonga/ja/html/_sources/spec/gqtp.txt +66 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/troubleshooting/different_results_with_the_same_keyword.txt +1 -1
- data/vendor/local/share/doc/groonga/ja/html/_sources/tutorial/network.txt +0 -81
- data/vendor/local/share/doc/groonga/ja/html/_static/basic.css +6 -68
- data/vendor/local/share/doc/groonga/ja/html/_static/doctools.js +1 -26
- 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 +9404 -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/searchtools.js +2 -2
- data/vendor/local/share/doc/groonga/ja/html/_static/underscore.js +1415 -31
- data/vendor/local/share/doc/groonga/ja/html/_static/up-pressed.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/up.png +0 -0
- data/vendor/local/share/doc/groonga/ja/html/_static/websupport.js +15 -15
- data/vendor/local/share/doc/groonga/ja/html/characteristic.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/client.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/community.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution.html +18 -20
- 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 +51 -38
- 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 +17 -19
- data/vendor/local/share/doc/groonga/ja/html/contribution/documentation/introduction.html +24 -26
- 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 -14
- data/vendor/local/share/doc/groonga/ja/html/index.html +150 -130
- data/vendor/local/share/doc/groonga/ja/html/install.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/install/centos.html +31 -33
- data/vendor/local/share/doc/groonga/ja/html/install/debian.html +25 -27
- data/vendor/local/share/doc/groonga/ja/html/install/fedora.html +29 -31
- 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 +78 -80
- data/vendor/local/share/doc/groonga/ja/html/install/solaris.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/install/ubuntu.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/install/windows.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/limitations.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/news.html +210 -27
- 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 +19 -21
- 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 +32 -34
- 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/4.x.html +89 -91
- 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 +139 -118
- data/vendor/local/share/doc/groonga/ja/html/reference/api.html +51 -52
- data/vendor/local/share/doc/groonga/ja/html/reference/api/global_configurations.html +49 -51
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_cache.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_column.html +80 -82
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_command_version.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_content_type.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ctx.html +126 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_db.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_encoding.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_expr.html +74 -76
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_geo.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_hook.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_ii.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_index_cursor.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_info.html +41 -43
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_match_escalation.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_obj.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_proc.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_search.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table.html +75 -77
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_table_cursor.html +64 -66
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_type.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/api/grn_user_data.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/api/overview.html +197 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/api/plugin.html +58 -60
- data/vendor/local/share/doc/groonga/ja/html/reference/cast.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/column.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/index.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/pseudo.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/scalar.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/columns/vector.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/command.html +56 -54
- 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 +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/command/request_id.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/command/return_code.html +93 -95
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/cache_limit.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/check.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/clearlock.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_create.html +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_list.html +62 -64
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_remove.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/column_rename.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/define_selector.html +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/defrag.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/delete.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/dump.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/load.html +33 -35
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/lock_clear.html +48 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_level.html +23 -25
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_put.html +24 -26
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/log_reopen.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_count.html +314 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/logical_range_filter.html +250 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalize.html +80 -81
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/normalizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_register.html +188 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/plugin_unregister.html +190 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/quit.html +38 -40
- 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 +57 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/request_cancel.html +71 -73
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/ruby_eval.html +53 -55
- 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 +394 -396
- 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 +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/suggest.html +78 -80
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/table_create.html +123 -125
- 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 +61 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenize.html +89 -91
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/tokenizer_list.html +46 -48
- data/vendor/local/share/doc/groonga/ja/html/reference/commands/truncate.html +51 -53
- data/vendor/local/share/doc/groonga/ja/html/reference/executables.html +19 -21
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grndb.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/grnslap.html +21 -23
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-benchmark.html +26 -28
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-httpd.html +61 -63
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-server-http.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-create-dataset.html +17 -19
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-httpd.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga-suggest-learner.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/executables/groonga.html +126 -90
- data/vendor/local/share/doc/groonga/ja/html/reference/function.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/between.html +63 -65
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/edit_distance.html +44 -46
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_distance.html +94 -96
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_circle.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/geo_in_rectangle.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_full.html +66 -68
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/highlight_html.html +55 -57
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/html_untag.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/in_values.html +135 -44
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/now.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/query.html +70 -72
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/rand.html +43 -45
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/snippet_html.html +53 -55
- data/vendor/local/share/doc/groonga/ja/html/reference/functions/sub_filter.html +56 -62
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr.html +36 -38
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/query_syntax.html +229 -171
- data/vendor/local/share/doc/groonga/ja/html/reference/grn_expr/script_syntax.html +381 -322
- data/vendor/local/share/doc/groonga/ja/html/reference/indexing.html +34 -36
- data/vendor/local/share/doc/groonga/ja/html/reference/log.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/normalizers.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/operations.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/reference/operations/geolocation_search.html +32 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/output.html +28 -30
- 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 +39 -41
- data/vendor/local/share/doc/groonga/ja/html/reference/regular_expression.html +878 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorer.html +442 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_at_most.html +154 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scorers/scorer_tf_idf.html +287 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/scoring_note.html +115 -0
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest.html +45 -47
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/completion.html +48 -50
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/correction.html +40 -42
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/introduction.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/reference/suggest/suggestion.html +40 -42
- 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 +37 -39
- data/vendor/local/share/doc/groonga/ja/html/reference/tokenizers.html +1300 -34
- data/vendor/local/share/doc/groonga/ja/html/reference/tuning.html +57 -59
- data/vendor/local/share/doc/groonga/ja/html/reference/types.html +38 -40
- data/vendor/local/share/doc/groonga/ja/html/search.html +11 -11
- data/vendor/local/share/doc/groonga/ja/html/searchindex.js +1 -1
- data/vendor/local/share/doc/groonga/ja/html/server.html +23 -24
- data/vendor/local/share/doc/groonga/ja/html/server/gqtp.html +28 -30
- data/vendor/local/share/doc/groonga/ja/html/server/http.html +42 -44
- data/vendor/local/share/doc/groonga/ja/html/server/http/comparison.html +62 -64
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga-httpd.html +30 -32
- data/vendor/local/share/doc/groonga/ja/html/server/http/groonga.html +29 -31
- data/vendor/local/share/doc/groonga/ja/html/server/memcached.html +138 -0
- data/vendor/local/share/doc/groonga/ja/html/server/package.html +35 -37
- data/vendor/local/share/doc/groonga/ja/html/spec.html +22 -24
- data/vendor/local/share/doc/groonga/ja/html/spec/gqtp.html +207 -128
- 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 +18 -20
- 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 +21 -25
- data/vendor/local/share/doc/groonga/ja/html/tutorial/data.html +17 -19
- 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 +17 -19
- 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 +23 -25
- 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 +27 -125
- 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/license/mruby/README.md +2 -2
- data/vendor/local/share/man/ja/man1/groonga.1 +6205 -2251
- data/vendor/local/share/man/man1/groonga.1 +7210 -3029
- metadata +75 -11
- data/doc/text/news.textile +0 -1217
- 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.
|
10
|
+
<title>7.12.2. Script syntax — Groonga v5.0.1-42-g4d10df1 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: '5.0.
|
18
|
+
VERSION: '5.0.1-42-g4d10df1',
|
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 v5.0.
|
29
|
-
<link rel="up" title="7.
|
30
|
-
<link rel="next" title="7.
|
31
|
-
<link rel="prev" title="7.
|
28
|
+
<link rel="top" title="Groonga v5.0.1-42-g4d10df1 documentation" href="../../index.html" />
|
29
|
+
<link rel="up" title="7.12. grn_expr" href="../grn_expr.html" />
|
30
|
+
<link rel="next" title="7.13. Regular expression" href="../regular_expression.html" />
|
31
|
+
<link rel="prev" title="7.12.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,45 +48,45 @@
|
|
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">
|
55
55
|
<a href="../../genindex.html" title="General Index"
|
56
56
|
accesskey="I">index</a></li>
|
57
57
|
<li class="right" >
|
58
|
-
<a href="../
|
58
|
+
<a href="../regular_expression.html" title="7.13. Regular expression"
|
59
59
|
accesskey="N">next</a> |</li>
|
60
60
|
<li class="right" >
|
61
|
-
<a href="query_syntax.html" title="7.
|
61
|
+
<a href="query_syntax.html" title="7.12.1. Query syntax"
|
62
62
|
accesskey="P">previous</a> |</li>
|
63
|
-
<li><a href="../../index.html">Groonga v5.0.
|
63
|
+
<li><a href="../../index.html">Groonga v5.0.1-42-g4d10df1 documentation</a> »</li>
|
64
64
|
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
65
|
-
<li><a href="../grn_expr.html" accesskey="U">7.
|
65
|
+
<li><a href="../grn_expr.html" accesskey="U">7.12. grn_expr</a> »</li>
|
66
66
|
</ul>
|
67
67
|
</div>
|
68
68
|
|
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
|
-
<h1>7.
|
75
|
+
<h1>7.12.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>
|
88
88
|
<div class="section" id="security">
|
89
|
-
<span id="script-syntax-security"></span><h2>7.
|
89
|
+
<span id="script-syntax-security"></span><h2>7.12.2.1. Security<a class="headerlink" href="#security" title="Permalink to this headline">¶</a></h2>
|
90
90
|
<p>For security reason, you should not pass an input from users to
|
91
91
|
Groonga directly. If there is an evil user, the user may input a query
|
92
92
|
that retrieves records that should not be shown to the user.</p>
|
@@ -101,12 +101,12 @@ select_options = {
|
|
101
101
|
groonga_client.select(select_options)
|
102
102
|
</pre></div>
|
103
103
|
</div>
|
104
|
-
<p><
|
104
|
+
<p><tt class="docutils literal"><span class="pre">user_input</span></tt> is an input from user. If the input is <tt class="docutils literal"><span class="pre">query</span></tt>,
|
105
105
|
here is the constructed <a class="reference internal" href="../commands/select.html#select-filter"><em>filter</em></a> parameter:</p>
|
106
106
|
<div class="highlight-none"><div class="highlight"><pre>column @ "query"
|
107
107
|
</pre></div>
|
108
108
|
</div>
|
109
|
-
<p>If the input is <
|
109
|
+
<p>If the input is <tt class="docutils literal"><span class="pre">x"</span> <span class="pre">||</span> <span class="pre">true</span> <span class="pre">||</span> <span class="pre">"</span></tt>, here is the constructed
|
110
110
|
ref:<cite>select-filter</cite> parameter:</p>
|
111
111
|
<div class="highlight-none"><div class="highlight"><pre>column @ "x" || true || ""
|
112
112
|
</pre></div>
|
@@ -115,24 +115,24 @@ ref:<cite>select-filter</cite> parameter:</p>
|
|
115
115
|
your database. The user may be evil.</p>
|
116
116
|
<p>It's better that you just receive an user input as a value. It means
|
117
117
|
that you don't accept that user input can contain operator such as
|
118
|
-
<
|
118
|
+
<tt class="docutils literal"><span class="pre">@</span></tt> and <tt class="docutils literal"><span class="pre">&&</span></tt>. If you accept operator, user can create evil query.</p>
|
119
119
|
<p>If user input has only value, you blocks evil query by escaping user
|
120
120
|
input value. Here is a list how to escape user input value:</p>
|
121
121
|
<blockquote>
|
122
122
|
<div><ul class="simple">
|
123
|
-
<li>True value: Convert it to <
|
124
|
-
<li>False value: Convert it to <
|
125
|
-
<li>Numerical value: Convert it to number. For example, <
|
126
|
-
be converted to <
|
127
|
-
<li>String value: Replace <
|
123
|
+
<li>True value: Convert it to <tt class="docutils literal"><span class="pre">true</span></tt>.</li>
|
124
|
+
<li>False value: Convert it to <tt class="docutils literal"><span class="pre">false</span></tt>.</li>
|
125
|
+
<li>Numerical value: Convert it to number. For example, <tt class="docutils literal"><span class="pre">1.2</span></tt> should
|
126
|
+
be converted to <tt class="docutils literal"><span class="pre">1.2</span></tt>.</li>
|
127
|
+
<li>String value: Replace <tt class="docutils literal"><span class="pre">"</span></tt> with <tt class="docutils literal"><span class="pre">\"</span></tt> and <tt class="docutils literal"><span class="pre">\</span></tt> with <tt class="docutils literal"><span class="pre">\\</span></tt> in
|
128
128
|
the string value and surround substituted string value by
|
129
|
-
<
|
130
|
-
converted to <
|
129
|
+
<tt class="docutils literal"><span class="pre">"</span></tt>. For example, <tt class="docutils literal"><span class="pre">double</span> <span class="pre">"</span> <span class="pre">quote</span> <span class="pre">and</span> <span class="pre">back</span> <span class="pre">\</span> <span class="pre">slash</span></tt> should be
|
130
|
+
converted to <tt class="docutils literal"><span class="pre">"double</span> <span class="pre">\"</span> <span class="pre">quote</span> <span class="pre">and</span> <span class="pre">back</span> <span class="pre">\\</span> <span class="pre">slash"</span></tt>.</li>
|
131
131
|
</ul>
|
132
132
|
</div></blockquote>
|
133
133
|
</div>
|
134
134
|
<div class="section" id="sample-data">
|
135
|
-
<h2>7.
|
135
|
+
<h2>7.12.2.2. Sample data<a class="headerlink" href="#sample-data" title="Permalink to this headline">¶</a></h2>
|
136
136
|
<p>Here are a schema definition and sample data to show usage.</p>
|
137
137
|
<p>Execution example:</p>
|
138
138
|
<div class="highlight-none"><div class="highlight"><pre>table_create Entries TABLE_PAT_KEY ShortText
|
@@ -168,79 +168,79 @@ load --table Entries
|
|
168
168
|
# [[0, 1337566253.89858, 0.000355720520019531], 5]
|
169
169
|
</pre></div>
|
170
170
|
</div>
|
171
|
-
<p>There is a table, <
|
171
|
+
<p>There is a table, <tt class="docutils literal"><span class="pre">Entries</span></tt>, for blog entries. An entry has title,
|
172
172
|
content and the number of likes for the entry. Title is key of
|
173
|
-
<
|
174
|
-
number of likes is value of <
|
175
|
-
<p><
|
176
|
-
using <
|
177
|
-
<
|
173
|
+
<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
|
174
|
+
number of likes is value of <tt class="docutils literal"><span class="pre">Entries.n_likes</span></tt> column.</p>
|
175
|
+
<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
|
176
|
+
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
|
177
|
+
<tt class="docutils literal"><span class="pre">Entries.content</span></tt> are fulltext search ready.</p>
|
178
178
|
<p>OK. The schema and data for examples are ready.</p>
|
179
179
|
</div>
|
180
180
|
<div class="section" id="literals">
|
181
|
-
<h2>7.
|
181
|
+
<h2>7.12.2.3. Literals<a class="headerlink" href="#literals" title="Permalink to this headline">¶</a></h2>
|
182
182
|
<div class="section" id="integer">
|
183
|
-
<h3>7.
|
184
|
-
<p>Integer literal is sequence of <
|
185
|
-
<
|
186
|
-
<
|
183
|
+
<h3>7.12.2.3.1. Integer<a class="headerlink" href="#integer" title="Permalink to this headline">¶</a></h3>
|
184
|
+
<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
|
185
|
+
<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
|
186
|
+
<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,
|
187
187
|
hex and so on can't be used.</p>
|
188
|
-
<p>The maximum value of integer literal is <
|
189
|
-
<span class="pre">**</span> <span class="pre">63</span> <span class="pre">-</span> <span class="pre">1</span></
|
190
|
-
<
|
188
|
+
<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>
|
189
|
+
<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
|
190
|
+
<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>
|
191
191
|
</div>
|
192
192
|
<div class="section" id="float">
|
193
|
-
<h3>7.
|
194
|
-
<p>Float literal is sequence of <
|
195
|
-
such as <
|
196
|
-
<
|
197
|
-
<
|
198
|
-
<
|
193
|
+
<h3>7.12.2.3.2. Float<a class="headerlink" href="#float" title="Permalink to this headline">¶</a></h3>
|
194
|
+
<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>
|
195
|
+
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
|
196
|
+
<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
|
197
|
+
<tt class="docutils literal"><span class="pre">${RADIX}E${EXPORNENTIAL}</span></tt> formats are also supported. For example,
|
198
|
+
<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>
|
199
199
|
</div>
|
200
200
|
<div class="section" id="string">
|
201
|
-
<h3>7.
|
202
|
-
<p>String literal is <
|
203
|
-
prepending <
|
204
|
-
a literal for <
|
201
|
+
<h3>7.12.2.3.3. String<a class="headerlink" href="#string" title="Permalink to this headline">¶</a></h3>
|
202
|
+
<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
|
203
|
+
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
|
204
|
+
a literal for <tt class="docutils literal"><span class="pre">Say</span> <span class="pre">"Hello!".</span></tt> string.</p>
|
205
205
|
<p>String encoding must be the same as encoding of database. The default
|
206
|
-
encoding is UTF-8. It can be changed by <
|
207
|
-
configure option, <
|
206
|
+
encoding is UTF-8. It can be changed by <tt class="docutils literal"><span class="pre">--with-default-encoding</span></tt>
|
207
|
+
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
|
208
208
|
and so on.</p>
|
209
209
|
</div>
|
210
210
|
<div class="section" id="boolean">
|
211
|
-
<h3>7.
|
212
|
-
<p>Boolean literal is <
|
213
|
-
<
|
211
|
+
<h3>7.12.2.3.4. Boolean<a class="headerlink" href="#boolean" title="Permalink to this headline">¶</a></h3>
|
212
|
+
<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
|
213
|
+
<tt class="docutils literal"><span class="pre">false</span></tt> means false.</p>
|
214
214
|
</div>
|
215
215
|
<div class="section" id="null">
|
216
|
-
<h3>7.
|
217
|
-
<p>Null literal is <
|
216
|
+
<h3>7.12.2.3.5. Null<a class="headerlink" href="#null" title="Permalink to this headline">¶</a></h3>
|
217
|
+
<p>Null literal is <tt class="docutils literal"><span class="pre">null</span></tt>. Groonga doesn't support null value but null
|
218
218
|
literal is supported.</p>
|
219
219
|
</div>
|
220
220
|
<div class="section" id="time">
|
221
|
-
<h3>7.
|
221
|
+
<h3>7.12.2.3.6. Time<a class="headerlink" href="#time" title="Permalink to this headline">¶</a></h3>
|
222
222
|
<div class="admonition note">
|
223
223
|
<p class="first admonition-title">Note</p>
|
224
224
|
<p class="last">This is the groonga original notation.</p>
|
225
225
|
</div>
|
226
226
|
<p>Time literal doesn't exit. There are string time notation, integer
|
227
227
|
time notation and float time notation.</p>
|
228
|
-
<p>String time notation is <
|
229
|
-
<
|
230
|
-
<
|
231
|
-
<
|
232
|
-
<
|
228
|
+
<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
|
229
|
+
<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,
|
230
|
+
<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
|
231
|
+
<tt class="docutils literal"><span class="pre">uuuuuu</span></tt> is micro second. It is local time. For example,
|
232
|
+
<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
|
233
233
|
ISO 8601 format.</p>
|
234
234
|
<p>Integer time notation is the number of seconds that have elapsed since
|
235
235
|
midnight UTC, January 1, 1970. It is also known as POSIX time. For
|
236
|
-
example, <
|
236
|
+
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>
|
237
237
|
<p>Float time notation is the number of seconds and micro seconds that
|
238
238
|
have elapsed since midnight UTC, January 1, 1970. For example,
|
239
|
-
<
|
239
|
+
<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
|
240
240
|
format.</p>
|
241
241
|
</div>
|
242
242
|
<div class="section" id="geo-point">
|
243
|
-
<h3>7.
|
243
|
+
<h3>7.12.2.3.7. Geo point<a class="headerlink" href="#geo-point" title="Permalink to this headline">¶</a></h3>
|
244
244
|
<div class="admonition note">
|
245
245
|
<p class="first admonition-title">Note</p>
|
246
246
|
<p class="last">This is the groonga original notation.</p>
|
@@ -249,32 +249,32 @@ format.</p>
|
|
249
249
|
<p>String geo point notation has the following patterns:</p>
|
250
250
|
<blockquote>
|
251
251
|
<div><ul class="simple">
|
252
|
-
<li><
|
253
|
-
<li><
|
254
|
-
<li><
|
255
|
-
<li><
|
252
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_MSECxLONGITUDE_IN_MSEC"</span></tt></li>
|
253
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_MSEC,LONGITUDE_IN_MSEC"</span></tt></li>
|
254
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREExLONGITUDE_IN_DEGREE"</span></tt></li>
|
255
|
+
<li><tt class="docutils literal"><span class="pre">"LATITUDE_IN_DEGREE,LONGITUDE_IN_DEGREE"</span></tt></li>
|
256
256
|
</ul>
|
257
257
|
</div></blockquote>
|
258
|
-
<p><
|
258
|
+
<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
|
259
259
|
be represented in milliseconds or degree.</p>
|
260
260
|
</div>
|
261
261
|
<div class="section" id="array">
|
262
|
-
<h3>7.
|
263
|
-
<p>Array literal is <
|
262
|
+
<h3>7.12.2.3.8. Array<a class="headerlink" href="#array" title="Permalink to this headline">¶</a></h3>
|
263
|
+
<p>Array literal is <tt class="docutils literal"><span class="pre">[element1,</span> <span class="pre">element2,</span> <span class="pre">...]</span></tt>.</p>
|
264
264
|
</div>
|
265
265
|
<div class="section" id="object-literal">
|
266
|
-
<h3>7.
|
267
|
-
<p>Object literal is <
|
266
|
+
<h3>7.12.2.3.9. Object literal<a class="headerlink" href="#object-literal" title="Permalink to this headline">¶</a></h3>
|
267
|
+
<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
|
268
268
|
doesn't support object literal yet.</p>
|
269
269
|
</div>
|
270
270
|
</div>
|
271
271
|
<div class="section" id="control-syntaxes">
|
272
|
-
<h2>7.
|
272
|
+
<h2>7.12.2.4. Control syntaxes<a class="headerlink" href="#control-syntaxes" title="Permalink to this headline">¶</a></h2>
|
273
273
|
<p>Script syntax doesn't support statement. So you cannot use control
|
274
|
-
statement such as <
|
274
|
+
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
|
275
275
|
control syntax.</p>
|
276
|
-
<p><
|
277
|
-
<p>Here is a simple
|
276
|
+
<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>
|
277
|
+
<p>Here is a simple example.</p>
|
278
278
|
<p>Execution example:</p>
|
279
279
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (_id == 1 ? 5 : 3)'
|
280
280
|
# [
|
@@ -329,18 +329,18 @@ control syntax.</p>
|
|
329
329
|
# ]
|
330
330
|
</pre></div>
|
331
331
|
</div>
|
332
|
-
<p>The expression matches records that <
|
333
|
-
and <
|
334
|
-
not equal to 1 and <
|
332
|
+
<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>
|
333
|
+
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
|
334
|
+
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>
|
335
335
|
</div>
|
336
336
|
<div class="section" id="grouping">
|
337
|
-
<h2>7.
|
338
|
-
<p>Its syntax is <
|
339
|
-
<p><
|
340
|
-
an expression. <
|
341
|
-
or <
|
342
|
-
<
|
343
|
-
<p>Here is a simple
|
337
|
+
<h2>7.12.2.5. Grouping<a class="headerlink" href="#grouping" title="Permalink to this headline">¶</a></h2>
|
338
|
+
<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>
|
339
|
+
<p><tt class="docutils literal"><span class="pre">(...)</span></tt> groups one ore more expressions and they can be processed as
|
340
|
+
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
|
341
|
+
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
|
342
|
+
<tt class="docutils literal"><span class="pre">b</span></tt> and <tt class="docutils literal"><span class="pre">c</span></tt> are matched.</p>
|
343
|
+
<p>Here is a simple example.</p>
|
344
344
|
<p>Execution example:</p>
|
345
345
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes < 5 && content @ "senna" || content @ "fast"'
|
346
346
|
# [
|
@@ -435,19 +435,19 @@ select Entries --filter 'n_likes < 5 && (content @ "senna&qu
|
|
435
435
|
</pre></div>
|
436
436
|
</div>
|
437
437
|
<p>The first expression doesn't use grouping. It matches records that
|
438
|
-
<
|
439
|
-
<
|
440
|
-
<p>The second expression uses grouping. It matches records that <
|
441
|
-
<span class="pre"><</span> <span class="pre">5</span></
|
438
|
+
<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
|
439
|
+
<tt class="docutils literal"><span class="pre">content</span> <span class="pre">@</span> <span class="pre">"fast"</span></tt> is matched.</p>
|
440
|
+
<p>The second expression uses grouping. It matches records that <tt class="docutils literal"><span class="pre">n_likes</span>
|
441
|
+
<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
|
442
442
|
matched.</p>
|
443
443
|
</div>
|
444
444
|
<div class="section" id="function-call">
|
445
|
-
<h2>7.
|
446
|
-
<p>Its syntax is <
|
447
|
-
<p><
|
448
|
-
<
|
445
|
+
<h2>7.12.2.6. Function call<a class="headerlink" href="#function-call" title="Permalink to this headline">¶</a></h2>
|
446
|
+
<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>
|
447
|
+
<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
|
448
|
+
<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>
|
449
449
|
<p>See <a class="reference internal" href="../function.html"><em>Function</em></a> for available functin list.</p>
|
450
|
-
<p>Here is a simple
|
450
|
+
<p>Here is a simple example.</p>
|
451
451
|
<p>Execution example:</p>
|
452
452
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'edit_distance(_key, "Groonga") <= 1'
|
453
453
|
# [
|
@@ -497,22 +497,22 @@ matched.</p>
|
|
497
497
|
</pre></div>
|
498
498
|
</div>
|
499
499
|
<p>The expression uses <a class="reference internal" href="../functions/edit_distance.html"><em>edit_distance</em></a>. It
|
500
|
-
matches records that <
|
501
|
-
<
|
500
|
+
matches records that <tt class="docutils literal"><span class="pre">_key</span></tt> column value is similar to
|
501
|
+
<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
|
502
502
|
distance. If edit distance is less than or equal to 1, the value is
|
503
|
-
treated as similar. In this case, <
|
503
|
+
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
|
504
504
|
treated as similar.</p>
|
505
505
|
</div>
|
506
506
|
<div class="section" id="basic-operators">
|
507
|
-
<h2>7.
|
507
|
+
<h2>7.12.2.7. Basic operators<a class="headerlink" href="#basic-operators" title="Permalink to this headline">¶</a></h2>
|
508
508
|
<p>Groonga supports operators defined in ECMAScript.</p>
|
509
509
|
<div class="section" id="arithmetic-operators">
|
510
|
-
<h3>7.
|
510
|
+
<h3>7.12.2.7.1. Arithmetic operators<a class="headerlink" href="#arithmetic-operators" title="Permalink to this headline">¶</a></h3>
|
511
511
|
<p>Here are arithmetic operators.</p>
|
512
512
|
<div class="section" id="addition-operator">
|
513
|
-
<h4>7.
|
514
|
-
<p>Its syntax is <
|
515
|
-
<p>The operator adds <
|
513
|
+
<h4>7.12.2.7.1.1. Addition operator<a class="headerlink" href="#addition-operator" title="Permalink to this headline">¶</a></h4>
|
514
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">+</span> <span class="pre">number2</span></tt>.</p>
|
515
|
+
<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>
|
516
516
|
<p>Here is a simple example.</p>
|
517
517
|
<p>Execution example:</p>
|
518
518
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 10 + 5'
|
@@ -556,13 +556,13 @@ treated as similar.</p>
|
|
556
556
|
# ]
|
557
557
|
</pre></div>
|
558
558
|
</div>
|
559
|
-
<p>The expression matches records that <
|
560
|
-
to <
|
559
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
560
|
+
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>
|
561
561
|
</div>
|
562
562
|
<div class="section" id="subtraction-operator">
|
563
|
-
<h4>7.
|
564
|
-
<p>Its syntax is <
|
565
|
-
<p>The operator subtracts <
|
563
|
+
<h4>7.12.2.7.1.2. Subtraction operator<a class="headerlink" href="#subtraction-operator" title="Permalink to this headline">¶</a></h4>
|
564
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">-</span> <span class="pre">number2</span></tt>.</p>
|
565
|
+
<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>
|
566
566
|
<p>Here is a simple example.</p>
|
567
567
|
<p>Execution example:</p>
|
568
568
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 20 - 5'
|
@@ -606,13 +606,13 @@ to <code class="docutils literal"><span class="pre">15</span></code> (= <code cl
|
|
606
606
|
# ]
|
607
607
|
</pre></div>
|
608
608
|
</div>
|
609
|
-
<p>The expression matches records that <
|
610
|
-
to <
|
609
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
610
|
+
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>
|
611
611
|
</div>
|
612
612
|
<div class="section" id="multiplication-operator">
|
613
|
-
<h4>7.
|
614
|
-
<p>Its syntax is <
|
615
|
-
<p>The operator multiplies <
|
613
|
+
<h4>7.12.2.7.1.3. Multiplication operator<a class="headerlink" href="#multiplication-operator" title="Permalink to this headline">¶</a></h4>
|
614
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">*</span> <span class="pre">number2</span></tt>.</p>
|
615
|
+
<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>
|
616
616
|
<p>Here is a simple example.</p>
|
617
617
|
<p>Execution example:</p>
|
618
618
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 3 * 5'
|
@@ -656,14 +656,14 @@ to <code class="docutils literal"><span class="pre">15</span></code> (= <code cl
|
|
656
656
|
# ]
|
657
657
|
</pre></div>
|
658
658
|
</div>
|
659
|
-
<p>The expression matches records that <
|
660
|
-
to <
|
659
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
660
|
+
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>
|
661
661
|
</div>
|
662
662
|
<div class="section" id="division-operator">
|
663
|
-
<h4>7.
|
664
|
-
<p>Its syntax is <
|
665
|
-
<p>The operator divides <
|
666
|
-
quotient of result. <
|
663
|
+
<h4>7.12.2.7.1.4. Division operator<a class="headerlink" href="#division-operator" title="Permalink to this headline">¶</a></h4>
|
664
|
+
<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>
|
665
|
+
<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
|
666
|
+
quotient of result. <tt class="docutils literal"><span class="pre">%</span></tt> returns the remainder of result.</p>
|
667
667
|
<p>Here is simple examples.</p>
|
668
668
|
<p>Execution example:</p>
|
669
669
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 / 7'
|
@@ -713,8 +713,8 @@ quotient of result. <code class="docutils literal"><span class="pre">%</span></c
|
|
713
713
|
# ]
|
714
714
|
</pre></div>
|
715
715
|
</div>
|
716
|
-
<p>The expression matches records that <
|
717
|
-
to <
|
716
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
717
|
+
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>
|
718
718
|
<p>Execution example:</p>
|
719
719
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == 26 % 7'
|
720
720
|
# [
|
@@ -757,17 +757,17 @@ to <code class="docutils literal"><span class="pre">3</span></code> (= <code cla
|
|
757
757
|
# ]
|
758
758
|
</pre></div>
|
759
759
|
</div>
|
760
|
-
<p>The expression matches records that <
|
761
|
-
to <
|
760
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
761
|
+
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>
|
762
762
|
</div>
|
763
763
|
</div>
|
764
764
|
<div class="section" id="logical-operators">
|
765
|
-
<h3>7.
|
765
|
+
<h3>7.12.2.7.2. Logical operators<a class="headerlink" href="#logical-operators" title="Permalink to this headline">¶</a></h3>
|
766
766
|
<p>Here are logical operators.</p>
|
767
767
|
<div class="section" id="logical-not-operator">
|
768
|
-
<h4>7.
|
769
|
-
<p>Its syntax is <
|
770
|
-
<p>The operator inverts boolean value of <
|
768
|
+
<h4>7.12.2.7.2.1. Logical NOT operator<a class="headerlink" href="#logical-not-operator" title="Permalink to this headline">¶</a></h4>
|
769
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">!condition</span></tt>.</p>
|
770
|
+
<p>The operator inverts boolean value of <tt class="docutils literal"><span class="pre">condition</span></tt>.</p>
|
771
771
|
<p>Here is a simple example.</p>
|
772
772
|
<p>Execution example:</p>
|
773
773
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '!(n_likes == 5)'
|
@@ -829,14 +829,14 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
829
829
|
# ]
|
830
830
|
</pre></div>
|
831
831
|
</div>
|
832
|
-
<p>The expression matches records that <
|
833
|
-
equal to <
|
832
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is not
|
833
|
+
equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
834
834
|
</div>
|
835
835
|
<div class="section" id="logical-and-operator">
|
836
|
-
<h4>7.
|
837
|
-
<p>Its syntax is <
|
838
|
-
<p>The operator returns true if both of <
|
839
|
-
<
|
836
|
+
<h4>7.12.2.7.2.2. Logical AND operator<a class="headerlink" href="#logical-and-operator" title="Permalink to this headline">¶</a></h4>
|
837
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">condition1</span> <span class="pre">&&</span> <span class="pre">condition2</span></tt>.</p>
|
838
|
+
<p>The operator returns true if both of <tt class="docutils literal"><span class="pre">condition1</span></tt> and
|
839
|
+
<tt class="docutils literal"><span class="pre">condition2</span></tt> are true, false otherwise.</p>
|
840
840
|
<p>Here is a simple example.</p>
|
841
841
|
<p>Execution example:</p>
|
842
842
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast" && n_likes >= 10'
|
@@ -886,14 +886,14 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
886
886
|
# ]
|
887
887
|
</pre></div>
|
888
888
|
</div>
|
889
|
-
<p>The expression matches records that <
|
890
|
-
word <
|
891
|
-
<
|
889
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">content</span></tt> column value has the
|
890
|
+
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
|
891
|
+
<tt class="docutils literal"><span class="pre">10</span></tt>.</p>
|
892
892
|
</div>
|
893
893
|
<div class="section" id="logical-or-operator">
|
894
|
-
<h4>7.
|
895
|
-
<p>Its syntax is <
|
896
|
-
<p>The operator returns true if either <
|
894
|
+
<h4>7.12.2.7.2.3. Logical OR operator<a class="headerlink" href="#logical-or-operator" title="Permalink to this headline">¶</a></h4>
|
895
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">condition1</span> <span class="pre">||</span> <span class="pre">condition2</span></tt>.</p>
|
896
|
+
<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
|
897
897
|
true, false otherwise.</p>
|
898
898
|
<p>Here is a simple example.</p>
|
899
899
|
<p>Execution example:</p>
|
@@ -944,13 +944,13 @@ true, false otherwise.</p>
|
|
944
944
|
# ]
|
945
945
|
</pre></div>
|
946
946
|
</div>
|
947
|
-
<p>The expression matches records that <
|
948
|
-
to <
|
947
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
948
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt> or <tt class="docutils literal"><span class="pre">10</span></tt>.</p>
|
949
949
|
</div>
|
950
950
|
<div class="section" id="logical-and-not-operator">
|
951
|
-
<h4>7.
|
952
|
-
<p>Its syntax is <
|
953
|
-
<p>The operator returns true if <
|
951
|
+
<h4>7.12.2.7.2.4. Logical AND NOT operator<a class="headerlink" href="#logical-and-not-operator" title="Permalink to this headline">¶</a></h4>
|
952
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">condition1</span> <span class="pre">&!</span> <span class="pre">condition2</span></tt>.</p>
|
953
|
+
<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>
|
954
954
|
is false, false otherwise. It returns difference set.</p>
|
955
955
|
<p>Here is a simple example.</p>
|
956
956
|
<p>Execution example:</p>
|
@@ -995,17 +995,17 @@ is false, false otherwise. It returns difference set.</p>
|
|
995
995
|
# ]
|
996
996
|
</pre></div>
|
997
997
|
</div>
|
998
|
-
<p>The expression matches records that <
|
999
|
-
word <
|
998
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">content</span></tt> column value has the
|
999
|
+
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>
|
1000
1000
|
</div>
|
1001
1001
|
</div>
|
1002
1002
|
<div class="section" id="bitwise-operators">
|
1003
|
-
<h3>7.
|
1003
|
+
<h3>7.12.2.7.3. Bitwise operators<a class="headerlink" href="#bitwise-operators" title="Permalink to this headline">¶</a></h3>
|
1004
1004
|
<p>Here are bitwise operators.</p>
|
1005
1005
|
<div class="section" id="bitwise-not-operator">
|
1006
|
-
<h4>7.
|
1007
|
-
<p>Its syntax is <
|
1008
|
-
<p>The operator returns bitwise NOT of <
|
1006
|
+
<h4>7.12.2.7.3.1. Bitwise NOT operator<a class="headerlink" href="#bitwise-not-operator" title="Permalink to this headline">¶</a></h4>
|
1007
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">~number</span></tt>.</p>
|
1008
|
+
<p>The operator returns bitwise NOT of <tt class="docutils literal"><span class="pre">number</span></tt>.</p>
|
1009
1009
|
<p>Here is a simple example.</p>
|
1010
1010
|
<p>Execution example:</p>
|
1011
1011
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '~n_likes == -6'
|
@@ -1049,13 +1049,13 @@ word <code class="docutils literal"><span class="pre">fast</span></code> but doe
|
|
1049
1049
|
# ]
|
1050
1050
|
</pre></div>
|
1051
1051
|
</div>
|
1052
|
-
<p>The expression matches records that <
|
1053
|
-
to <
|
1052
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1053
|
+
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>
|
1054
1054
|
</div>
|
1055
1055
|
<div class="section" id="bitwise-and-operator">
|
1056
|
-
<h4>7.
|
1057
|
-
<p>Its syntax is <
|
1058
|
-
<p>The operator returns bitwise AND between <
|
1056
|
+
<h4>7.12.2.7.3.2. Bitwise AND operator<a class="headerlink" href="#bitwise-and-operator" title="Permalink to this headline">¶</a></h4>
|
1057
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">&</span> <span class="pre">number2</span></tt>.</p>
|
1058
|
+
<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>
|
1059
1059
|
<p>Here is a simple example.</p>
|
1060
1060
|
<p>Execution example:</p>
|
1061
1061
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '(n_likes & 1) == 1'
|
@@ -1117,16 +1117,16 @@ to <code class="docutils literal"><span class="pre">5</span></code> because bitw
|
|
1117
1117
|
# ]
|
1118
1118
|
</pre></div>
|
1119
1119
|
</div>
|
1120
|
-
<p>The expression matches records that <
|
1121
|
-
number because bitwise AND between an even number and <
|
1122
|
-
to <
|
1123
|
-
<
|
1120
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is even
|
1121
|
+
number because bitwise AND between an even number and <tt class="docutils literal"><span class="pre">1</span></tt> is equal
|
1122
|
+
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
|
1123
|
+
<tt class="docutils literal"><span class="pre">0</span></tt>.</p>
|
1124
1124
|
</div>
|
1125
1125
|
</div>
|
1126
1126
|
<div class="section" id="bitwise-or-operator">
|
1127
|
-
<h3>7.
|
1128
|
-
<p>Its syntax is <
|
1129
|
-
<p>The operator returns bitwise OR between <
|
1127
|
+
<h3>7.12.2.7.4. Bitwise OR operator<a class="headerlink" href="#bitwise-or-operator" title="Permalink to this headline">¶</a></h3>
|
1128
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">|</span> <span class="pre">number2</span></tt>.</p>
|
1129
|
+
<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>
|
1130
1130
|
<p>Here is a simple example.</p>
|
1131
1131
|
<p>Execution example:</p>
|
1132
1132
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (1 | 4)'
|
@@ -1170,13 +1170,13 @@ to <code class="docutils literal"><span class="pre">1</span></code> and bitwise
|
|
1170
1170
|
# ]
|
1171
1171
|
</pre></div>
|
1172
1172
|
</div>
|
1173
|
-
<p>The expression matches records that <
|
1174
|
-
to <
|
1173
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1174
|
+
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>
|
1175
1175
|
</div>
|
1176
1176
|
<div class="section" id="bitwise-xor-operator">
|
1177
|
-
<h3>7.
|
1178
|
-
<p>Its syntax is <
|
1179
|
-
<p>The operator returns bitwise XOR between <
|
1177
|
+
<h3>7.12.2.7.5. Bitwise XOR operator<a class="headerlink" href="#bitwise-xor-operator" title="Permalink to this headline">¶</a></h3>
|
1178
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">^</span> <span class="pre">number2</span></tt>.</p>
|
1179
|
+
<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>
|
1180
1180
|
<p>Here is a simple example.</p>
|
1181
1181
|
<p>Execution example:</p>
|
1182
1182
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (10 ^ 15)'
|
@@ -1220,17 +1220,17 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
1220
1220
|
# ]
|
1221
1221
|
</pre></div>
|
1222
1222
|
</div>
|
1223
|
-
<p>The expression matches records that <
|
1224
|
-
to <
|
1223
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1224
|
+
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>
|
1225
1225
|
</div>
|
1226
1226
|
<div class="section" id="shift-operators">
|
1227
|
-
<h3>7.
|
1227
|
+
<h3>7.12.2.7.6. Shift operators<a class="headerlink" href="#shift-operators" title="Permalink to this headline">¶</a></h3>
|
1228
1228
|
<p>Here are shift operators.</p>
|
1229
1229
|
<div class="section" id="left-shift-operator">
|
1230
|
-
<h4>7.
|
1231
|
-
<p>Its syntax is <
|
1232
|
-
<p>The operator performs a bitwise left shift operation on <
|
1233
|
-
<
|
1230
|
+
<h4>7.12.2.7.6.1. Left shift operator<a class="headerlink" href="#left-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1231
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre"><<</span> <span class="pre">number2</span></tt>.</p>
|
1232
|
+
<p>The operator performs a bitwise left shift operation on <tt class="docutils literal"><span class="pre">number1</span></tt> by
|
1233
|
+
<tt class="docutils literal"><span class="pre">number2</span></tt>.</p>
|
1234
1234
|
<p>Here is a simple example.</p>
|
1235
1235
|
<p>Execution example:</p>
|
1236
1236
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (5 << 1)'
|
@@ -1274,14 +1274,14 @@ to <code class="docutils literal"><span class="pre">5</span></code> (= <code cla
|
|
1274
1274
|
# ]
|
1275
1275
|
</pre></div>
|
1276
1276
|
</div>
|
1277
|
-
<p>The expression matches records that <
|
1278
|
-
to <
|
1277
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1278
|
+
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>
|
1279
1279
|
</div>
|
1280
1280
|
<div class="section" id="signed-right-shift-operator">
|
1281
|
-
<h4>7.
|
1282
|
-
<p>Its syntax is <
|
1283
|
-
<p>The operator shifts bits of <
|
1284
|
-
of the result is the same as <
|
1281
|
+
<h4>7.12.2.7.6.2. Signed right shift operator<a class="headerlink" href="#signed-right-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1282
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">>></span> <span class="pre">number2</span></tt>.</p>
|
1283
|
+
<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
|
1284
|
+
of the result is the same as <tt class="docutils literal"><span class="pre">number1</span></tt>.</p>
|
1285
1285
|
<p>Here is a simple example.</p>
|
1286
1286
|
<p>Execution example:</p>
|
1287
1287
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == -(-10 >> 1)'
|
@@ -1325,14 +1325,14 @@ of the result is the same as <code class="docutils literal"><span class="pre">nu
|
|
1325
1325
|
# ]
|
1326
1326
|
</pre></div>
|
1327
1327
|
</div>
|
1328
|
-
<p>The expression matches records that <
|
1329
|
-
to <
|
1328
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1329
|
+
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>
|
1330
1330
|
</div>
|
1331
1331
|
<div class="section" id="unsigned-right-shift-operator">
|
1332
|
-
<h4>7.
|
1333
|
-
<p>Its syntax is <
|
1334
|
-
<p>The operator shifts bits of <
|
1335
|
-
leftmost <
|
1332
|
+
<h4>7.12.2.7.6.3. Unsigned right shift operator<a class="headerlink" href="#unsigned-right-shift-operator" title="Permalink to this headline">¶</a></h4>
|
1333
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">number1</span> <span class="pre">>>></span> <span class="pre">number2</span></tt>.</p>
|
1334
|
+
<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
|
1335
|
+
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>
|
1336
1336
|
<p>Here is a simple example.</p>
|
1337
1337
|
<p>Execution example:</p>
|
1338
1338
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes == (2147483648 - (-10 >>> 1))'
|
@@ -1376,17 +1376,17 @@ leftmost <code class="docutils literal"><span class="pre">number2</span></code>
|
|
1376
1376
|
# ]
|
1377
1377
|
</pre></div>
|
1378
1378
|
</div>
|
1379
|
-
<p>The expression matches records that <
|
1380
|
-
to <
|
1379
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1380
|
+
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>
|
1381
1381
|
</div>
|
1382
1382
|
</div>
|
1383
1383
|
<div class="section" id="comparison-operators">
|
1384
|
-
<h3>7.
|
1384
|
+
<h3>7.12.2.7.7. Comparison operators<a class="headerlink" href="#comparison-operators" title="Permalink to this headline">¶</a></h3>
|
1385
1385
|
<p>Here are comparison operators.</p>
|
1386
1386
|
<div class="section" id="equal-operator">
|
1387
|
-
<h4>7.
|
1388
|
-
<p>Its syntax is <
|
1389
|
-
<p>The operator returns true if <
|
1387
|
+
<h4>7.12.2.7.7.1. Equal operator<a class="headerlink" href="#equal-operator" title="Permalink to this headline">¶</a></h4>
|
1388
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">object1</span> <span class="pre">==</span> <span class="pre">object2</span></tt>.</p>
|
1389
|
+
<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
|
1390
1390
|
otherwise.</p>
|
1391
1391
|
<p>Here is a simple example.</p>
|
1392
1392
|
<p>Execution example:</p>
|
@@ -1431,14 +1431,14 @@ otherwise.</p>
|
|
1431
1431
|
# ]
|
1432
1432
|
</pre></div>
|
1433
1433
|
</div>
|
1434
|
-
<p>The expression matches records that <
|
1435
|
-
to <
|
1434
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is equal
|
1435
|
+
to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
1436
1436
|
</div>
|
1437
1437
|
<div class="section" id="not-equal-operator">
|
1438
|
-
<h4>7.
|
1439
|
-
<p>Its syntax is <
|
1440
|
-
<p>The operator returns true if <
|
1441
|
-
<
|
1438
|
+
<h4>7.12.2.7.7.2. Not equal operator<a class="headerlink" href="#not-equal-operator" title="Permalink to this headline">¶</a></h4>
|
1439
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">object1</span> <span class="pre">!=</span> <span class="pre">object2</span></tt>.</p>
|
1440
|
+
<p>The operator returns true if <tt class="docutils literal"><span class="pre">object1</span></tt> does not equal to
|
1441
|
+
<tt class="docutils literal"><span class="pre">object2</span></tt>, false otherwise.</p>
|
1442
1442
|
<p>Here is a simple example.</p>
|
1443
1443
|
<p>Execution example:</p>
|
1444
1444
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'n_likes != 5'
|
@@ -1500,32 +1500,32 @@ to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
1500
1500
|
# ]
|
1501
1501
|
</pre></div>
|
1502
1502
|
</div>
|
1503
|
-
<p>The expression matches records that <
|
1504
|
-
equal to <
|
1503
|
+
<p>The expression matches records that <tt class="docutils literal"><span class="pre">n_likes</span></tt> column value is not
|
1504
|
+
equal to <tt class="docutils literal"><span class="pre">5</span></tt>.</p>
|
1505
1505
|
</div>
|
1506
1506
|
<div class="section" id="less-than-operator">
|
1507
|
-
<h4>7.
|
1507
|
+
<h4>7.12.2.7.7.3. Less than operator<a class="headerlink" href="#less-than-operator" title="Permalink to this headline">¶</a></h4>
|
1508
1508
|
<p>TODO: ...</p>
|
1509
1509
|
</div>
|
1510
1510
|
<div class="section" id="less-than-or-equal-to-operator">
|
1511
|
-
<h4>7.
|
1511
|
+
<h4>7.12.2.7.7.4. Less than or equal to operator<a class="headerlink" href="#less-than-or-equal-to-operator" title="Permalink to this headline">¶</a></h4>
|
1512
1512
|
<p>TODO: ...</p>
|
1513
1513
|
</div>
|
1514
1514
|
<div class="section" id="greater-than-operator">
|
1515
|
-
<h4>7.
|
1515
|
+
<h4>7.12.2.7.7.5. Greater than operator<a class="headerlink" href="#greater-than-operator" title="Permalink to this headline">¶</a></h4>
|
1516
1516
|
<p>TODO: ...</p>
|
1517
1517
|
</div>
|
1518
1518
|
<div class="section" id="greater-than-or-equal-to-operator">
|
1519
|
-
<h4>7.
|
1519
|
+
<h4>7.12.2.7.7.6. Greater than or equal to operator<a class="headerlink" href="#greater-than-or-equal-to-operator" title="Permalink to this headline">¶</a></h4>
|
1520
1520
|
<p>TODO: ...</p>
|
1521
1521
|
</div>
|
1522
1522
|
</div>
|
1523
1523
|
</div>
|
1524
1524
|
<div class="section" id="assignment-operators">
|
1525
|
-
<h2>7.
|
1525
|
+
<h2>7.12.2.8. Assignment operators<a class="headerlink" href="#assignment-operators" title="Permalink to this headline">¶</a></h2>
|
1526
1526
|
<div class="section" id="addition-assignment-operator">
|
1527
|
-
<h3>7.
|
1528
|
-
<p>Its syntax is <
|
1527
|
+
<h3>7.12.2.8.1. Addition assignment operator<a class="headerlink" href="#addition-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1528
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">+=</span> <span class="pre">column2</span></tt>.</p>
|
1529
1529
|
<p>The operator performs addition assginment operation on column1 by column2.</p>
|
1530
1530
|
<p>Execution example:</p>
|
1531
1531
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score += n_likes'
|
@@ -1584,15 +1584,15 @@ equal to <code class="docutils literal"><span class="pre">5</span></code>.</p>
|
|
1584
1584
|
# ]
|
1585
1585
|
</pre></div>
|
1586
1586
|
</div>
|
1587
|
-
<p>The value of <
|
1587
|
+
<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,
|
1588
1588
|
then performs addition assignment operation such as '_score = _score + n_likes' for each records.</p>
|
1589
|
-
<p>For example, the value of <
|
1589
|
+
<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>
|
1590
1590
|
is 3.</p>
|
1591
|
-
<p>So the expression <
|
1591
|
+
<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>
|
1592
1592
|
</div>
|
1593
1593
|
<div class="section" id="subtraction-assignment-operator">
|
1594
|
-
<h3>7.
|
1595
|
-
<p>Its syntax is <
|
1594
|
+
<h3>7.12.2.8.2. Subtraction assignment operator<a class="headerlink" href="#subtraction-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1595
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">-=</span> <span class="pre">column2</span></tt>.</p>
|
1596
1596
|
<p>The operator performs subtraction assginment operation on column1 by column2.</p>
|
1597
1597
|
<p>Execution example:</p>
|
1598
1598
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score -= n_likes'
|
@@ -1651,15 +1651,15 @@ is 3.</p>
|
|
1651
1651
|
# ]
|
1652
1652
|
</pre></div>
|
1653
1653
|
</div>
|
1654
|
-
<p>The value of <
|
1654
|
+
<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,
|
1655
1655
|
then performs subtraction assignment operation such as '_score = _score - n_likes' for each records.</p>
|
1656
|
-
<p>For example, the value of <
|
1656
|
+
<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>
|
1657
1657
|
is 3.</p>
|
1658
|
-
<p>So the expression <
|
1658
|
+
<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>
|
1659
1659
|
</div>
|
1660
1660
|
<div class="section" id="multiplication-assignment-operator">
|
1661
|
-
<h3>7.
|
1662
|
-
<p>Its syntax is <
|
1661
|
+
<h3>7.12.2.8.3. Multiplication assignment operator<a class="headerlink" href="#multiplication-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1662
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">*=</span> <span class="pre">column2</span></tt>.</p>
|
1663
1663
|
<p>The operator performs multiplication assginment operation on column1 by column2.</p>
|
1664
1664
|
<p>Execution example:</p>
|
1665
1665
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score *= n_likes'
|
@@ -1718,15 +1718,15 @@ is 3.</p>
|
|
1718
1718
|
# ]
|
1719
1719
|
</pre></div>
|
1720
1720
|
</div>
|
1721
|
-
<p>The value of <
|
1721
|
+
<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,
|
1722
1722
|
then performs subtraction assignment operation such as '_score = _score * n_likes' for each records.</p>
|
1723
|
-
<p>For example, the value of <
|
1723
|
+
<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>
|
1724
1724
|
is 3.</p>
|
1725
|
-
<p>So the expression <
|
1725
|
+
<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>
|
1726
1726
|
</div>
|
1727
1727
|
<div class="section" id="division-assignment-operator">
|
1728
|
-
<h3>7.
|
1729
|
-
<p>Its syntax is <
|
1728
|
+
<h3>7.12.2.8.4. Division assignment operator<a class="headerlink" href="#division-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1729
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">/=</span> <span class="pre">column2</span></tt>.</p>
|
1730
1730
|
<p>The operator performs division assginment operation on column1 by column2.</p>
|
1731
1731
|
<p>Execution example:</p>
|
1732
1732
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score /= n_likes'
|
@@ -1785,15 +1785,15 @@ is 3.</p>
|
|
1785
1785
|
# ]
|
1786
1786
|
</pre></div>
|
1787
1787
|
</div>
|
1788
|
-
<p>The value of <
|
1788
|
+
<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,
|
1789
1789
|
then performs subtraction assignment operation such as '_score = _score / n_likes' for each records.</p>
|
1790
|
-
<p>For example, the value of <
|
1790
|
+
<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>
|
1791
1791
|
is 3.</p>
|
1792
|
-
<p>So the expression <
|
1792
|
+
<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>
|
1793
1793
|
</div>
|
1794
1794
|
<div class="section" id="modulo-assignment-operator">
|
1795
|
-
<h3>7.
|
1796
|
-
<p>Its syntax is <
|
1795
|
+
<h3>7.12.2.8.5. Modulo assignment operator<a class="headerlink" href="#modulo-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1796
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">%=</span> <span class="pre">column2</span></tt>.</p>
|
1797
1797
|
<p>The operator performs modulo assginment operation on column1 by column2.</p>
|
1798
1798
|
<p>Execution example:</p>
|
1799
1799
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score %= n_likes'
|
@@ -1852,15 +1852,15 @@ is 3.</p>
|
|
1852
1852
|
# ]
|
1853
1853
|
</pre></div>
|
1854
1854
|
</div>
|
1855
|
-
<p>The value of <
|
1855
|
+
<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,
|
1856
1856
|
then performs subtraction assignment operation such as '_score = _score % n_likes' for each records.</p>
|
1857
|
-
<p>For example, the value of <
|
1857
|
+
<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>
|
1858
1858
|
is 3.</p>
|
1859
|
-
<p>So the expression <
|
1859
|
+
<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>
|
1860
1860
|
</div>
|
1861
1861
|
<div class="section" id="bitwise-left-shift-assignment-operator">
|
1862
|
-
<h3>7.
|
1863
|
-
<p>Its syntax is <
|
1862
|
+
<h3>7.12.2.8.6. Bitwise left shift assignment operator<a class="headerlink" href="#bitwise-left-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1863
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre"><<=</span> <span class="pre">column2</span></tt>.</p>
|
1864
1864
|
<p>The operator performs left shift assginment operation on column1 by column2.</p>
|
1865
1865
|
<p>Execution example:</p>
|
1866
1866
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score <<= n_likes'
|
@@ -1919,25 +1919,25 @@ is 3.</p>
|
|
1919
1919
|
# ]
|
1920
1920
|
</pre></div>
|
1921
1921
|
</div>
|
1922
|
-
<p>The value of <
|
1922
|
+
<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,
|
1923
1923
|
then performs subtraction assignment operation such as '_score = _score << n_likes' for each records.</p>
|
1924
|
-
<p>For example, the value of <
|
1924
|
+
<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>
|
1925
1925
|
is 3.</p>
|
1926
|
-
<p>So the expression <
|
1926
|
+
<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>
|
1927
1927
|
</div>
|
1928
1928
|
<div class="section" id="bitwise-signed-right-shift-assignment-operator">
|
1929
|
-
<h3>7.
|
1930
|
-
<p>Its syntax is <
|
1929
|
+
<h3>7.12.2.8.7. Bitwise signed right shift assignment operator<a class="headerlink" href="#bitwise-signed-right-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1930
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column2</span> <span class="pre">>>=</span> <span class="pre">column2</span></tt>.</p>
|
1931
1931
|
<p>The operator performs signed right shift assginment operation on column1 by column2.</p>
|
1932
1932
|
</div>
|
1933
1933
|
<div class="section" id="bitwise-unsigned-right-shift-assignment-operator">
|
1934
|
-
<h3>7.
|
1935
|
-
<p>Its syntax is <
|
1934
|
+
<h3>7.12.2.8.8. Bitwise unsigned right shift assignment operator<a class="headerlink" href="#bitwise-unsigned-right-shift-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1935
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">>>>=</span> <span class="pre">column2</span></tt>.</p>
|
1936
1936
|
<p>The operator performs unsigned right shift assginment operation on column1 by column2.</p>
|
1937
1937
|
</div>
|
1938
1938
|
<div class="section" id="bitwise-and-assignment-operator">
|
1939
|
-
<h3>7.
|
1940
|
-
<p>Its syntax is <
|
1939
|
+
<h3>7.12.2.8.9. Bitwise AND assignment operator<a class="headerlink" href="#bitwise-and-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
1940
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">&=</span> <span class="pre">column2</span></tt>.</p>
|
1941
1941
|
<p>The operator performs bitwise AND assignment operation on column1 by column2.</p>
|
1942
1942
|
<p>Execution example:</p>
|
1943
1943
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score &= n_likes'
|
@@ -1996,15 +1996,15 @@ is 3.</p>
|
|
1996
1996
|
# ]
|
1997
1997
|
</pre></div>
|
1998
1998
|
</div>
|
1999
|
-
<p>The value of <
|
1999
|
+
<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,
|
2000
2000
|
then performs subtraction assignment operation such as '_score = _score & n_likes' for each records.</p>
|
2001
|
-
<p>For example, the value of <
|
2001
|
+
<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>
|
2002
2002
|
is 10.</p>
|
2003
|
-
<p>So the expression <
|
2003
|
+
<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>
|
2004
2004
|
</div>
|
2005
2005
|
<div class="section" id="bitwise-or-assignment-operator">
|
2006
|
-
<h3>7.
|
2007
|
-
<p>Its syntax is <
|
2006
|
+
<h3>7.12.2.8.10. Bitwise OR assignment operator<a class="headerlink" href="#bitwise-or-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
2007
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">|=</span> <span class="pre">column2</span></tt>.</p>
|
2008
2008
|
<p>The operator performs bitwise OR assignment operation on column1 by column2.</p>
|
2009
2009
|
<p>Execution example:</p>
|
2010
2010
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score |= n_likes'
|
@@ -2063,15 +2063,15 @@ is 10.</p>
|
|
2063
2063
|
# ]
|
2064
2064
|
</pre></div>
|
2065
2065
|
</div>
|
2066
|
-
<p>The value of <
|
2066
|
+
<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,
|
2067
2067
|
then performs subtraction assignment operation such as '_score = _score | n_likes' for each records.</p>
|
2068
|
-
<p>For example, the value of <
|
2068
|
+
<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>
|
2069
2069
|
is 10.</p>
|
2070
|
-
<p>So the expression <
|
2070
|
+
<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>
|
2071
2071
|
</div>
|
2072
2072
|
<div class="section" id="bitwise-xor-assignment-operator">
|
2073
|
-
<h3>7.
|
2074
|
-
<p>Its syntax is <
|
2073
|
+
<h3>7.12.2.8.11. Bitwise XOR assignment operator<a class="headerlink" href="#bitwise-xor-assignment-operator" title="Permalink to this headline">¶</a></h3>
|
2074
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column1</span> <span class="pre">^=</span> <span class="pre">column2</span></tt>.</p>
|
2075
2075
|
<p>The operator performs bitwise XOR assginment operation on column1 by column2.</p>
|
2076
2076
|
<p>Execution example:</p>
|
2077
2077
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --output_columns _key,n_likes,_score --filter true --scorer '_score ^= n_likes'
|
@@ -2130,26 +2130,26 @@ is 10.</p>
|
|
2130
2130
|
# ]
|
2131
2131
|
</pre></div>
|
2132
2132
|
</div>
|
2133
|
-
<p>The value of <
|
2133
|
+
<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,
|
2134
2134
|
then performs subtraction assignment operation such as '_score = _score ^ n_likes' for each records.</p>
|
2135
|
-
<p>For example, the value of <
|
2135
|
+
<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>
|
2136
2136
|
is 3.</p>
|
2137
|
-
<p>So the expression <
|
2137
|
+
<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>
|
2138
2138
|
</div>
|
2139
2139
|
</div>
|
2140
2140
|
<div class="section" id="original-operators">
|
2141
|
-
<h2>7.
|
2141
|
+
<h2>7.12.2.9. Original operators<a class="headerlink" href="#original-operators" title="Permalink to this headline">¶</a></h2>
|
2142
2142
|
<p>Script syntax adds the original binary opearators to ECMAScript
|
2143
2143
|
syntax. They operate search specific operations. They are starts with
|
2144
|
-
<
|
2144
|
+
<tt class="docutils literal"><span class="pre">@</span></tt> or <tt class="docutils literal"><span class="pre">*</span></tt>.</p>
|
2145
2145
|
<div class="section" id="match-operator">
|
2146
|
-
<span id="match-oeprator"></span><h3>7.
|
2147
|
-
<p>Its syntax is <
|
2148
|
-
<p>The operator searches <
|
2146
|
+
<span id="match-oeprator"></span><h3>7.12.2.9.1. Match operator<a class="headerlink" href="#match-operator" title="Permalink to this headline">¶</a></h3>
|
2147
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@</span> <span class="pre">value</span></tt>.</p>
|
2148
|
+
<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>.
|
2149
2149
|
Normally, full text search is operated but tag search can be operated.
|
2150
2150
|
Because tag search is also implemented by inverted index.</p>
|
2151
2151
|
<p><a class="reference internal" href="query_syntax.html"><em>Query syntax</em></a> uses this operator by default.</p>
|
2152
|
-
<p>Here is a simple
|
2152
|
+
<p>Here is a simple example.</p>
|
2153
2153
|
<p>Execution example:</p>
|
2154
2154
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @ "fast"' --output_columns content
|
2155
2155
|
# [
|
@@ -2180,24 +2180,24 @@ Because tag search is also implemented by inverted index.</p>
|
|
2180
2180
|
# ]
|
2181
2181
|
</pre></div>
|
2182
2182
|
</div>
|
2183
|
-
<p>The expression matches records that contain a word <
|
2184
|
-
<
|
2183
|
+
<p>The expression matches records that contain a word <tt class="docutils literal"><span class="pre">fast</span></tt> in
|
2184
|
+
<tt class="docutils literal"><span class="pre">content</span></tt> column value.</p>
|
2185
2185
|
</div>
|
2186
2186
|
<div class="section" id="prefix-search-operator">
|
2187
|
-
<span id="id1"></span><h3>7.
|
2188
|
-
<p>Its syntax is <
|
2189
|
-
<p>The operator does prefix search with <
|
2190
|
-
records that contain a word that starts with <
|
2187
|
+
<span id="id1"></span><h3>7.12.2.9.2. Prefix search operator<a class="headerlink" href="#prefix-search-operator" title="Permalink to this headline">¶</a></h3>
|
2188
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@^</span> <span class="pre">value</span></tt>.</p>
|
2189
|
+
<p>The operator does prefix search with <tt class="docutils literal"><span class="pre">value</span></tt>. Prefix search searches
|
2190
|
+
records that contain a word that starts with <tt class="docutils literal"><span class="pre">value</span></tt>.</p>
|
2191
2191
|
<p>You can use fast prefix search against a column. The column must be
|
2192
2192
|
indexed and index table must be patricia trie table
|
2193
|
-
(<
|
2194
|
-
(<
|
2195
|
-
<
|
2196
|
-
table. You don't need to index <
|
2193
|
+
(<tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt>) or double array trie table
|
2194
|
+
(<tt class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></tt>). You can also use fast prefix search against
|
2195
|
+
<tt class="docutils literal"><span class="pre">_key</span></tt> pseudo column of patricia trie table or double array trie
|
2196
|
+
table. You don't need to index <tt class="docutils literal"><span class="pre">_key</span></tt>.</p>
|
2197
2197
|
<p>Prefix search can be used with other table types but it causes all
|
2198
2198
|
records scan. It's not problem for small records but it spends more
|
2199
2199
|
time for large records.</p>
|
2200
|
-
<p>Here is a simple
|
2200
|
+
<p>Here is a simple example.</p>
|
2201
2201
|
<p>Execution example:</p>
|
2202
2202
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter '_key @^ "Goo"' --output_columns _key
|
2203
2203
|
# [
|
@@ -2229,21 +2229,21 @@ time for large records.</p>
|
|
2229
2229
|
</pre></div>
|
2230
2230
|
</div>
|
2231
2231
|
<p>The expression matches records that contain a word that starts with
|
2232
|
-
<
|
2233
|
-
<
|
2232
|
+
<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
|
2233
|
+
<tt class="docutils literal"><span class="pre">Good-bye</span> <span class="pre">Tritonn</span></tt> are matched with the expression.</p>
|
2234
2234
|
</div>
|
2235
2235
|
<div class="section" id="suffix-search-operator">
|
2236
|
-
<span id="id2"></span><h3>7.
|
2237
|
-
<p>Its syntax is <
|
2238
|
-
<p>This operator does suffix search with <
|
2239
|
-
searches records that contain a word that ends with <
|
2236
|
+
<span id="id2"></span><h3>7.12.2.9.3. Suffix search operator<a class="headerlink" href="#suffix-search-operator" title="Permalink to this headline">¶</a></h3>
|
2237
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@$</span> <span class="pre">value</span></tt>.</p>
|
2238
|
+
<p>This operator does suffix search with <tt class="docutils literal"><span class="pre">value</span></tt>. Suffix search
|
2239
|
+
searches records that contain a word that ends with <tt class="docutils literal"><span class="pre">value</span></tt>.</p>
|
2240
2240
|
<p>You can use fast suffix search against a column. The column must be
|
2241
2241
|
indexed and index table must be patricia trie table
|
2242
|
-
(<
|
2243
|
-
suffix search against <
|
2244
|
-
(<
|
2245
|
-
index <
|
2246
|
-
suffix search instead of <
|
2242
|
+
(<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
|
2243
|
+
suffix search against <tt class="docutils literal"><span class="pre">_key</span></tt> pseudo column of patricia trie table
|
2244
|
+
(<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
|
2245
|
+
index <tt class="docutils literal"><span class="pre">_key</span></tt>. We recommended that you use index column based fast
|
2246
|
+
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>
|
2247
2247
|
based fast suffix search returns automatically registered
|
2248
2248
|
substrings. (TODO: write document about suffix search and link to it
|
2249
2249
|
from here.)</p>
|
@@ -2254,10 +2254,10 @@ as hiragana in Japanese. You cannot use fast suffix search for
|
|
2254
2254
|
ASCII character.</p>
|
2255
2255
|
</div>
|
2256
2256
|
<p>Suffix search can be used with other table types or patricia trie
|
2257
|
-
table without <
|
2257
|
+
table without <tt class="docutils literal"><span class="pre">KEY_WITH_SIS</span></tt> flag but it causes all records
|
2258
2258
|
scan. It's not problem for small records but it spends more time for
|
2259
2259
|
large records.</p>
|
2260
|
-
<p>Here is a simple
|
2260
|
+
<p>Here is a simple example. It uses fast suffix search for hiragana in
|
2261
2261
|
Japanese that is one of non-ASCII characters.</p>
|
2262
2262
|
<p>Execution example:</p>
|
2263
2263
|
<div class="highlight-none"><div class="highlight"><pre>table_create Titles TABLE_NO_KEY
|
@@ -2311,26 +2311,26 @@ select Titles --query 'content:$んが'
|
|
2311
2311
|
# ]
|
2312
2312
|
</pre></div>
|
2313
2313
|
</div>
|
2314
|
-
<p>The expression matches records that have value that ends with <
|
2315
|
-
in <
|
2314
|
+
<p>The expression matches records that have value that ends with <tt class="docutils literal"><span class="pre">んが</span></tt>
|
2315
|
+
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
|
2316
2316
|
with the expression.</p>
|
2317
2317
|
</div>
|
2318
2318
|
<div class="section" id="near-search-operator">
|
2319
|
-
<span id="id3"></span><h3>7.
|
2320
|
-
<p>Its syntax is <
|
2321
|
-
<p>The operator does near search with words <
|
2319
|
+
<span id="id3"></span><h3>7.12.2.9.4. Near search operator<a class="headerlink" href="#near-search-operator" title="Permalink to this headline">¶</a></h3>
|
2320
|
+
<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>
|
2321
|
+
<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
|
2322
2322
|
search searches records that contain the words and the words are
|
2323
|
-
appeared in the near distance. Near distance is always <
|
2323
|
+
appeared in the near distance. Near distance is always <tt class="docutils literal"><span class="pre">10</span></tt> for
|
2324
2324
|
now. The unit of near distance is the number of characters in N-gram
|
2325
2325
|
family tokenizers and the number of words in morphological analysis
|
2326
2326
|
family tokenizers.</p>
|
2327
|
-
<p>(TODO: Add a description about <
|
2327
|
+
<p>(TODO: Add a description about <tt class="docutils literal"><span class="pre">TokenBigram</span></tt> doesn't split ASCII
|
2328
2328
|
only word into tokens. So the unit for ASCII words with
|
2329
|
-
<
|
2329
|
+
<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
|
2330
2330
|
N-gram family tokenizer.)</p>
|
2331
2331
|
<p>Note that an index column for full text search must be defined for
|
2332
|
-
<
|
2333
|
-
<p>Here is a simple
|
2332
|
+
<tt class="docutils literal"><span class="pre">column</span></tt>.</p>
|
2333
|
+
<p>Here is a simple example.</p>
|
2334
2334
|
<p>Execution example:</p>
|
2335
2335
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *N "I fast"' --output_columns content
|
2336
2336
|
# [
|
@@ -2384,31 +2384,31 @@ select Entries --filter 'content *N "also Really"' --output_co
|
|
2384
2384
|
# ]
|
2385
2385
|
</pre></div>
|
2386
2386
|
</div>
|
2387
|
-
<p>The first expression matches records that contain <
|
2387
|
+
<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>
|
2388
2388
|
and the near distance of those words are in 10 words. So the record
|
2389
|
-
that its content is <
|
2390
|
-
<span class="pre">fast!</span> <span class="pre">...</span></
|
2389
|
+
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>
|
2390
|
+
<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>
|
2391
2391
|
is just 10.</p>
|
2392
|
-
<p>The second expression matches records that contain <
|
2393
|
-
<
|
2394
|
-
the record that its content is <
|
2395
|
-
<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></
|
2396
|
-
<
|
2397
|
-
<p>The third expression matches records that contain <
|
2398
|
-
<
|
2399
|
-
the record that its content is <
|
2400
|
-
<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></
|
2401
|
-
<
|
2392
|
+
<p>The second expression matches records that contain <tt class="docutils literal"><span class="pre">I</span></tt> and
|
2393
|
+
<tt class="docutils literal"><span class="pre">Really</span></tt> and the near distance of those words are in 10 words. So
|
2394
|
+
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>
|
2395
|
+
<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
|
2396
|
+
<tt class="docutils literal"><span class="pre">I</span></tt> and <tt class="docutils literal"><span class="pre">Really</span></tt> is 11.</p>
|
2397
|
+
<p>The third expression matches records that contain <tt class="docutils literal"><span class="pre">also</span></tt> and
|
2398
|
+
<tt class="docutils literal"><span class="pre">Really</span></tt> and the near distance of those words are in 10 words. So
|
2399
|
+
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>
|
2400
|
+
<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
|
2401
|
+
<tt class="docutils literal"><span class="pre">also</span></tt> and <tt class="docutils literal"><span class="pre">Really</span></tt> is 10.</p>
|
2402
2402
|
</div>
|
2403
2403
|
<div class="section" id="similar-search">
|
2404
|
-
<span id="similar-search-operator"></span><h3>7.
|
2405
|
-
<p>Its syntax is <
|
2406
|
-
<p>The operator does similar search with document <
|
2404
|
+
<span id="similar-search-operator"></span><h3>7.12.2.9.5. Similar search<a class="headerlink" href="#similar-search" title="Permalink to this headline">¶</a></h3>
|
2405
|
+
<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>
|
2406
|
+
<p>The operator does similar search with document <tt class="docutils literal"><span class="pre">document</span></tt>. Similar
|
2407
2407
|
search searches records that have similar content to
|
2408
|
-
<
|
2408
|
+
<tt class="docutils literal"><span class="pre">document</span></tt>.</p>
|
2409
2409
|
<p>Note that an index column for full text search must be defined for
|
2410
|
-
<
|
2411
|
-
<p>Here is a simple
|
2410
|
+
<tt class="docutils literal"><span class="pre">column</span></tt>.</p>
|
2411
|
+
<p>Here is a simple example.</p>
|
2412
2412
|
<p>Execution example:</p>
|
2413
2413
|
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content *S "I migrated all Solr system!"' --output_columns content
|
2414
2414
|
# [
|
@@ -2439,21 +2439,21 @@ search searches records that have similar content to
|
|
2439
2439
|
# ]
|
2440
2440
|
</pre></div>
|
2441
2441
|
</div>
|
2442
|
-
<p>The expression matches records that have similar content to <
|
2443
|
-
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">Solr</span> <span class="pre">system!</span></
|
2444
|
-
<span class="pre">migrated</span> <span class="pre">all</span> <span class="pre">XXX</span> <span class="pre">system!</span></
|
2442
|
+
<p>The expression matches records that have similar content to <tt class="docutils literal"><span class="pre">I</span>
|
2443
|
+
<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>
|
2444
|
+
<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>
|
2445
2445
|
</div>
|
2446
2446
|
<div class="section" id="term-extract-operator">
|
2447
|
-
<span id="id4"></span><h3>7.
|
2448
|
-
<p>Its syntax is <
|
2449
|
-
<p>The operator extracts terms from <
|
2450
|
-
registered as keys of the table of <
|
2451
|
-
<p>Note that the table must be patricia trie (<
|
2452
|
-
double array trie (<
|
2453
|
-
(<
|
2447
|
+
<span id="id4"></span><h3>7.12.2.9.6. Term extract operator<a class="headerlink" href="#term-extract-operator" title="Permalink to this headline">¶</a></h3>
|
2448
|
+
<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>
|
2449
|
+
<p>The operator extracts terms from <tt class="docutils literal"><span class="pre">document</span></tt>. Terms must be
|
2450
|
+
registered as keys of the table of <tt class="docutils literal"><span class="pre">_key</span></tt>.</p>
|
2451
|
+
<p>Note that the table must be patricia trie (<tt class="docutils literal"><span class="pre">TABLE_PAT_KEY</span></tt>) or
|
2452
|
+
double array trie (<tt class="docutils literal"><span class="pre">TABLE_DAT_KEY</span></tt>). You can't use hash table
|
2453
|
+
(<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
|
2454
2454
|
support longest common prefix search. Longest common prefix search is
|
2455
2455
|
used to implement the operator.</p>
|
2456
|
-
<p>Here is a simple
|
2456
|
+
<p>Here is a simple example.</p>
|
2457
2457
|
<p>Execution example:</p>
|
2458
2458
|
<div class="highlight-none"><div class="highlight"><pre>table_create Words TABLE_PAT_KEY|KEY_NORMALIZE ShortText
|
2459
2459
|
# [[0, 1337566253.89858, 0.000355720520019531], true]
|
@@ -2494,12 +2494,79 @@ select Words --filter '_key *T "Groonga is the successor project to Sen
|
|
2494
2494
|
# ]
|
2495
2495
|
</pre></div>
|
2496
2496
|
</div>
|
2497
|
-
<p>The expression extrcts terms that included in document <
|
2498
|
-
<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></
|
2499
|
-
flag is specified to <
|
2500
|
-
if it is loaded as <
|
2497
|
+
<p>The expression extrcts terms that included in document <tt class="docutils literal"><span class="pre">Groonga</span> <span class="pre">is</span>
|
2498
|
+
<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>
|
2499
|
+
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
|
2500
|
+
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
|
2501
2501
|
are also normalized.</p>
|
2502
2502
|
</div>
|
2503
|
+
<div class="section" id="regular-expression-operator">
|
2504
|
+
<span id="script-regular-expression-operator"></span><h3>7.12.2.9.7. Regular expression operator<a class="headerlink" href="#regular-expression-operator" title="Permalink to this headline">¶</a></h3>
|
2505
|
+
<div class="versionadded">
|
2506
|
+
<p><span class="versionmodified">New in version 5.0.1.</span></p>
|
2507
|
+
</div>
|
2508
|
+
<p>Its syntax is <tt class="docutils literal"><span class="pre">column</span> <span class="pre">@~</span> <span class="pre">"pattern"</span></tt>.</p>
|
2509
|
+
<p>The operator searches records by the regular expression
|
2510
|
+
<tt class="docutils literal"><span class="pre">pattern</span></tt>. If a record's <tt class="docutils literal"><span class="pre">column</span></tt> value is matched to <tt class="docutils literal"><span class="pre">pattern</span></tt>,
|
2511
|
+
the record is matched.</p>
|
2512
|
+
<p><tt class="docutils literal"><span class="pre">pattern</span></tt> must be valid regular expression syntax. See
|
2513
|
+
<a class="reference internal" href="../regular_expression.html"><em>Regular expression</em></a> about regular expression syntax
|
2514
|
+
details.</p>
|
2515
|
+
<p>The following example uses <tt class="docutils literal"><span class="pre">.roonga</span></tt> as pattern. It matches
|
2516
|
+
<tt class="docutils literal"><span class="pre">Groonga</span></tt>, <tt class="docutils literal"><span class="pre">Mroonga</span></tt> and so on.</p>
|
2517
|
+
<p>Execution example:</p>
|
2518
|
+
<div class="highlight-none"><div class="highlight"><pre>select Entries --filter 'content @~ ".roonga"'
|
2519
|
+
# [
|
2520
|
+
# [
|
2521
|
+
# 0,
|
2522
|
+
# 1337566253.89858,
|
2523
|
+
# 0.000355720520019531
|
2524
|
+
# ],
|
2525
|
+
# [
|
2526
|
+
# [
|
2527
|
+
# [
|
2528
|
+
# 2
|
2529
|
+
# ],
|
2530
|
+
# [
|
2531
|
+
# [
|
2532
|
+
# "_id",
|
2533
|
+
# "UInt32"
|
2534
|
+
# ],
|
2535
|
+
# [
|
2536
|
+
# "_key",
|
2537
|
+
# "ShortText"
|
2538
|
+
# ],
|
2539
|
+
# [
|
2540
|
+
# "content",
|
2541
|
+
# "Text"
|
2542
|
+
# ],
|
2543
|
+
# [
|
2544
|
+
# "n_likes",
|
2545
|
+
# "UInt32"
|
2546
|
+
# ]
|
2547
|
+
# ],
|
2548
|
+
# [
|
2549
|
+
# 2,
|
2550
|
+
# "Groonga",
|
2551
|
+
# "I started to use Groonga. It's very fast!",
|
2552
|
+
# 10
|
2553
|
+
# ],
|
2554
|
+
# [
|
2555
|
+
# 3,
|
2556
|
+
# "Mroonga",
|
2557
|
+
# "I also started to use Mroonga. It's also very fast! Really fast!",
|
2558
|
+
# 15
|
2559
|
+
# ]
|
2560
|
+
# ]
|
2561
|
+
# ]
|
2562
|
+
# ]
|
2563
|
+
</pre></div>
|
2564
|
+
</div>
|
2565
|
+
<p>In most cases, regular expression is evaluated sequentially. So it may
|
2566
|
+
be slow against many records.</p>
|
2567
|
+
<p>In some cases, Groonga evaluates regular expression by index. It's
|
2568
|
+
very fast. See <a class="reference internal" href="../regular_expression.html"><em>Regular expression</em></a> for details.</p>
|
2569
|
+
</div>
|
2503
2570
|
</div>
|
2504
2571
|
</div>
|
2505
2572
|
|
@@ -2507,88 +2574,89 @@ are also normalized.</p>
|
|
2507
2574
|
</div>
|
2508
2575
|
</div>
|
2509
2576
|
</div>
|
2510
|
-
<div class="sphinxsidebar"
|
2577
|
+
<div class="sphinxsidebar">
|
2511
2578
|
<div class="sphinxsidebarwrapper">
|
2512
2579
|
<h3><a href="../../index.html">Table Of Contents</a></h3>
|
2513
2580
|
<ul>
|
2514
|
-
<li><a class="reference internal" href="#">7.
|
2515
|
-
<li><a class="reference internal" href="#security">7.
|
2516
|
-
<li><a class="reference internal" href="#sample-data">7.
|
2517
|
-
<li><a class="reference internal" href="#literals">7.
|
2518
|
-
<li><a class="reference internal" href="#integer">7.
|
2519
|
-
<li><a class="reference internal" href="#float">7.
|
2520
|
-
<li><a class="reference internal" href="#string">7.
|
2521
|
-
<li><a class="reference internal" href="#boolean">7.
|
2522
|
-
<li><a class="reference internal" href="#null">7.
|
2523
|
-
<li><a class="reference internal" href="#time">7.
|
2524
|
-
<li><a class="reference internal" href="#geo-point">7.
|
2525
|
-
<li><a class="reference internal" href="#array">7.
|
2526
|
-
<li><a class="reference internal" href="#object-literal">7.
|
2581
|
+
<li><a class="reference internal" href="#">7.12.2. Script syntax</a><ul>
|
2582
|
+
<li><a class="reference internal" href="#security">7.12.2.1. Security</a></li>
|
2583
|
+
<li><a class="reference internal" href="#sample-data">7.12.2.2. Sample data</a></li>
|
2584
|
+
<li><a class="reference internal" href="#literals">7.12.2.3. Literals</a><ul>
|
2585
|
+
<li><a class="reference internal" href="#integer">7.12.2.3.1. Integer</a></li>
|
2586
|
+
<li><a class="reference internal" href="#float">7.12.2.3.2. Float</a></li>
|
2587
|
+
<li><a class="reference internal" href="#string">7.12.2.3.3. String</a></li>
|
2588
|
+
<li><a class="reference internal" href="#boolean">7.12.2.3.4. Boolean</a></li>
|
2589
|
+
<li><a class="reference internal" href="#null">7.12.2.3.5. Null</a></li>
|
2590
|
+
<li><a class="reference internal" href="#time">7.12.2.3.6. Time</a></li>
|
2591
|
+
<li><a class="reference internal" href="#geo-point">7.12.2.3.7. Geo point</a></li>
|
2592
|
+
<li><a class="reference internal" href="#array">7.12.2.3.8. Array</a></li>
|
2593
|
+
<li><a class="reference internal" href="#object-literal">7.12.2.3.9. Object literal</a></li>
|
2527
2594
|
</ul>
|
2528
2595
|
</li>
|
2529
|
-
<li><a class="reference internal" href="#control-syntaxes">7.
|
2530
|
-
<li><a class="reference internal" href="#grouping">7.
|
2531
|
-
<li><a class="reference internal" href="#function-call">7.
|
2532
|
-
<li><a class="reference internal" href="#basic-operators">7.
|
2533
|
-
<li><a class="reference internal" href="#arithmetic-operators">7.
|
2534
|
-
<li><a class="reference internal" href="#addition-operator">7.
|
2535
|
-
<li><a class="reference internal" href="#subtraction-operator">7.
|
2536
|
-
<li><a class="reference internal" href="#multiplication-operator">7.
|
2537
|
-
<li><a class="reference internal" href="#division-operator">7.
|
2596
|
+
<li><a class="reference internal" href="#control-syntaxes">7.12.2.4. Control syntaxes</a></li>
|
2597
|
+
<li><a class="reference internal" href="#grouping">7.12.2.5. Grouping</a></li>
|
2598
|
+
<li><a class="reference internal" href="#function-call">7.12.2.6. Function call</a></li>
|
2599
|
+
<li><a class="reference internal" href="#basic-operators">7.12.2.7. Basic operators</a><ul>
|
2600
|
+
<li><a class="reference internal" href="#arithmetic-operators">7.12.2.7.1. Arithmetic operators</a><ul>
|
2601
|
+
<li><a class="reference internal" href="#addition-operator">7.12.2.7.1.1. Addition operator</a></li>
|
2602
|
+
<li><a class="reference internal" href="#subtraction-operator">7.12.2.7.1.2. Subtraction operator</a></li>
|
2603
|
+
<li><a class="reference internal" href="#multiplication-operator">7.12.2.7.1.3. Multiplication operator</a></li>
|
2604
|
+
<li><a class="reference internal" href="#division-operator">7.12.2.7.1.4. Division operator</a></li>
|
2538
2605
|
</ul>
|
2539
2606
|
</li>
|
2540
|
-
<li><a class="reference internal" href="#logical-operators">7.
|
2541
|
-
<li><a class="reference internal" href="#logical-not-operator">7.
|
2542
|
-
<li><a class="reference internal" href="#logical-and-operator">7.
|
2543
|
-
<li><a class="reference internal" href="#logical-or-operator">7.
|
2544
|
-
<li><a class="reference internal" href="#logical-and-not-operator">7.
|
2607
|
+
<li><a class="reference internal" href="#logical-operators">7.12.2.7.2. Logical operators</a><ul>
|
2608
|
+
<li><a class="reference internal" href="#logical-not-operator">7.12.2.7.2.1. Logical NOT operator</a></li>
|
2609
|
+
<li><a class="reference internal" href="#logical-and-operator">7.12.2.7.2.2. Logical AND operator</a></li>
|
2610
|
+
<li><a class="reference internal" href="#logical-or-operator">7.12.2.7.2.3. Logical OR operator</a></li>
|
2611
|
+
<li><a class="reference internal" href="#logical-and-not-operator">7.12.2.7.2.4. Logical AND NOT operator</a></li>
|
2545
2612
|
</ul>
|
2546
2613
|
</li>
|
2547
|
-
<li><a class="reference internal" href="#bitwise-operators">7.
|
2548
|
-
<li><a class="reference internal" href="#bitwise-not-operator">7.
|
2549
|
-
<li><a class="reference internal" href="#bitwise-and-operator">7.
|
2614
|
+
<li><a class="reference internal" href="#bitwise-operators">7.12.2.7.3. Bitwise operators</a><ul>
|
2615
|
+
<li><a class="reference internal" href="#bitwise-not-operator">7.12.2.7.3.1. Bitwise NOT operator</a></li>
|
2616
|
+
<li><a class="reference internal" href="#bitwise-and-operator">7.12.2.7.3.2. Bitwise AND operator</a></li>
|
2550
2617
|
</ul>
|
2551
2618
|
</li>
|
2552
|
-
<li><a class="reference internal" href="#bitwise-or-operator">7.
|
2553
|
-
<li><a class="reference internal" href="#bitwise-xor-operator">7.
|
2554
|
-
<li><a class="reference internal" href="#shift-operators">7.
|
2555
|
-
<li><a class="reference internal" href="#left-shift-operator">7.
|
2556
|
-
<li><a class="reference internal" href="#signed-right-shift-operator">7.
|
2557
|
-
<li><a class="reference internal" href="#unsigned-right-shift-operator">7.
|
2619
|
+
<li><a class="reference internal" href="#bitwise-or-operator">7.12.2.7.4. Bitwise OR operator</a></li>
|
2620
|
+
<li><a class="reference internal" href="#bitwise-xor-operator">7.12.2.7.5. Bitwise XOR operator</a></li>
|
2621
|
+
<li><a class="reference internal" href="#shift-operators">7.12.2.7.6. Shift operators</a><ul>
|
2622
|
+
<li><a class="reference internal" href="#left-shift-operator">7.12.2.7.6.1. Left shift operator</a></li>
|
2623
|
+
<li><a class="reference internal" href="#signed-right-shift-operator">7.12.2.7.6.2. Signed right shift operator</a></li>
|
2624
|
+
<li><a class="reference internal" href="#unsigned-right-shift-operator">7.12.2.7.6.3. Unsigned right shift operator</a></li>
|
2558
2625
|
</ul>
|
2559
2626
|
</li>
|
2560
|
-
<li><a class="reference internal" href="#comparison-operators">7.
|
2561
|
-
<li><a class="reference internal" href="#equal-operator">7.
|
2562
|
-
<li><a class="reference internal" href="#not-equal-operator">7.
|
2563
|
-
<li><a class="reference internal" href="#less-than-operator">7.
|
2564
|
-
<li><a class="reference internal" href="#less-than-or-equal-to-operator">7.
|
2565
|
-
<li><a class="reference internal" href="#greater-than-operator">7.
|
2566
|
-
<li><a class="reference internal" href="#greater-than-or-equal-to-operator">7.
|
2627
|
+
<li><a class="reference internal" href="#comparison-operators">7.12.2.7.7. Comparison operators</a><ul>
|
2628
|
+
<li><a class="reference internal" href="#equal-operator">7.12.2.7.7.1. Equal operator</a></li>
|
2629
|
+
<li><a class="reference internal" href="#not-equal-operator">7.12.2.7.7.2. Not equal operator</a></li>
|
2630
|
+
<li><a class="reference internal" href="#less-than-operator">7.12.2.7.7.3. Less than operator</a></li>
|
2631
|
+
<li><a class="reference internal" href="#less-than-or-equal-to-operator">7.12.2.7.7.4. Less than or equal to operator</a></li>
|
2632
|
+
<li><a class="reference internal" href="#greater-than-operator">7.12.2.7.7.5. Greater than operator</a></li>
|
2633
|
+
<li><a class="reference internal" href="#greater-than-or-equal-to-operator">7.12.2.7.7.6. Greater than or equal to operator</a></li>
|
2567
2634
|
</ul>
|
2568
2635
|
</li>
|
2569
2636
|
</ul>
|
2570
2637
|
</li>
|
2571
|
-
<li><a class="reference internal" href="#assignment-operators">7.
|
2572
|
-
<li><a class="reference internal" href="#addition-assignment-operator">7.
|
2573
|
-
<li><a class="reference internal" href="#subtraction-assignment-operator">7.
|
2574
|
-
<li><a class="reference internal" href="#multiplication-assignment-operator">7.
|
2575
|
-
<li><a class="reference internal" href="#division-assignment-operator">7.
|
2576
|
-
<li><a class="reference internal" href="#modulo-assignment-operator">7.
|
2577
|
-
<li><a class="reference internal" href="#bitwise-left-shift-assignment-operator">7.
|
2578
|
-
<li><a class="reference internal" href="#bitwise-signed-right-shift-assignment-operator">7.
|
2579
|
-
<li><a class="reference internal" href="#bitwise-unsigned-right-shift-assignment-operator">7.
|
2580
|
-
<li><a class="reference internal" href="#bitwise-and-assignment-operator">7.
|
2581
|
-
<li><a class="reference internal" href="#bitwise-or-assignment-operator">7.
|
2582
|
-
<li><a class="reference internal" href="#bitwise-xor-assignment-operator">7.
|
2638
|
+
<li><a class="reference internal" href="#assignment-operators">7.12.2.8. Assignment operators</a><ul>
|
2639
|
+
<li><a class="reference internal" href="#addition-assignment-operator">7.12.2.8.1. Addition assignment operator</a></li>
|
2640
|
+
<li><a class="reference internal" href="#subtraction-assignment-operator">7.12.2.8.2. Subtraction assignment operator</a></li>
|
2641
|
+
<li><a class="reference internal" href="#multiplication-assignment-operator">7.12.2.8.3. Multiplication assignment operator</a></li>
|
2642
|
+
<li><a class="reference internal" href="#division-assignment-operator">7.12.2.8.4. Division assignment operator</a></li>
|
2643
|
+
<li><a class="reference internal" href="#modulo-assignment-operator">7.12.2.8.5. Modulo assignment operator</a></li>
|
2644
|
+
<li><a class="reference internal" href="#bitwise-left-shift-assignment-operator">7.12.2.8.6. Bitwise left shift assignment operator</a></li>
|
2645
|
+
<li><a class="reference internal" href="#bitwise-signed-right-shift-assignment-operator">7.12.2.8.7. Bitwise signed right shift assignment operator</a></li>
|
2646
|
+
<li><a class="reference internal" href="#bitwise-unsigned-right-shift-assignment-operator">7.12.2.8.8. Bitwise unsigned right shift assignment operator</a></li>
|
2647
|
+
<li><a class="reference internal" href="#bitwise-and-assignment-operator">7.12.2.8.9. Bitwise AND assignment operator</a></li>
|
2648
|
+
<li><a class="reference internal" href="#bitwise-or-assignment-operator">7.12.2.8.10. Bitwise OR assignment operator</a></li>
|
2649
|
+
<li><a class="reference internal" href="#bitwise-xor-assignment-operator">7.12.2.8.11. Bitwise XOR assignment operator</a></li>
|
2583
2650
|
</ul>
|
2584
2651
|
</li>
|
2585
|
-
<li><a class="reference internal" href="#original-operators">7.
|
2586
|
-
<li><a class="reference internal" href="#match-operator">7.
|
2587
|
-
<li><a class="reference internal" href="#prefix-search-operator">7.
|
2588
|
-
<li><a class="reference internal" href="#suffix-search-operator">7.
|
2589
|
-
<li><a class="reference internal" href="#near-search-operator">7.
|
2590
|
-
<li><a class="reference internal" href="#similar-search">7.
|
2591
|
-
<li><a class="reference internal" href="#term-extract-operator">7.
|
2652
|
+
<li><a class="reference internal" href="#original-operators">7.12.2.9. Original operators</a><ul>
|
2653
|
+
<li><a class="reference internal" href="#match-operator">7.12.2.9.1. Match operator</a></li>
|
2654
|
+
<li><a class="reference internal" href="#prefix-search-operator">7.12.2.9.2. Prefix search operator</a></li>
|
2655
|
+
<li><a class="reference internal" href="#suffix-search-operator">7.12.2.9.3. Suffix search operator</a></li>
|
2656
|
+
<li><a class="reference internal" href="#near-search-operator">7.12.2.9.4. Near search operator</a></li>
|
2657
|
+
<li><a class="reference internal" href="#similar-search">7.12.2.9.5. Similar search</a></li>
|
2658
|
+
<li><a class="reference internal" href="#term-extract-operator">7.12.2.9.6. Term extract operator</a></li>
|
2659
|
+
<li><a class="reference internal" href="#regular-expression-operator">7.12.2.9.7. Regular expression operator</a></li>
|
2592
2660
|
</ul>
|
2593
2661
|
</li>
|
2594
2662
|
</ul>
|
@@ -2597,18 +2665,16 @@ are also normalized.</p>
|
|
2597
2665
|
|
2598
2666
|
<h4>Previous topic</h4>
|
2599
2667
|
<p class="topless"><a href="query_syntax.html"
|
2600
|
-
title="previous chapter">7.
|
2668
|
+
title="previous chapter">7.12.1. Query syntax</a></p>
|
2601
2669
|
<h4>Next topic</h4>
|
2602
|
-
<p class="topless"><a href="../
|
2603
|
-
title="next chapter">7.
|
2604
|
-
<
|
2605
|
-
|
2606
|
-
<
|
2607
|
-
|
2608
|
-
|
2609
|
-
|
2610
|
-
</div>
|
2611
|
-
<div id="searchbox" style="display: none" role="search">
|
2670
|
+
<p class="topless"><a href="../regular_expression.html"
|
2671
|
+
title="next chapter">7.13. Regular expression</a></p>
|
2672
|
+
<h3>This Page</h3>
|
2673
|
+
<ul class="this-page-menu">
|
2674
|
+
<li><a href="../../_sources/reference/grn_expr/script_syntax.txt"
|
2675
|
+
rel="nofollow">Show Source</a></li>
|
2676
|
+
</ul>
|
2677
|
+
<div id="searchbox" style="display: none">
|
2612
2678
|
<h3>Quick search</h3>
|
2613
2679
|
<form class="search" action="../../search.html" method="get">
|
2614
2680
|
<input type="text" name="q" />
|
@@ -2625,24 +2691,24 @@ are also normalized.</p>
|
|
2625
2691
|
</div>
|
2626
2692
|
<div class="clearer"></div>
|
2627
2693
|
</div>
|
2628
|
-
<div class="related"
|
2694
|
+
<div class="related">
|
2629
2695
|
<h3>Navigation</h3>
|
2630
2696
|
<ul>
|
2631
2697
|
<li class="right" style="margin-right: 10px">
|
2632
2698
|
<a href="../../genindex.html" title="General Index"
|
2633
2699
|
>index</a></li>
|
2634
2700
|
<li class="right" >
|
2635
|
-
<a href="../
|
2701
|
+
<a href="../regular_expression.html" title="7.13. Regular expression"
|
2636
2702
|
>next</a> |</li>
|
2637
2703
|
<li class="right" >
|
2638
|
-
<a href="query_syntax.html" title="7.
|
2704
|
+
<a href="query_syntax.html" title="7.12.1. Query syntax"
|
2639
2705
|
>previous</a> |</li>
|
2640
|
-
<li><a href="../../index.html">Groonga v5.0.
|
2706
|
+
<li><a href="../../index.html">Groonga v5.0.1-42-g4d10df1 documentation</a> »</li>
|
2641
2707
|
<li><a href="../../reference.html" >7. Reference manual</a> »</li>
|
2642
|
-
<li><a href="../grn_expr.html" >7.
|
2708
|
+
<li><a href="../grn_expr.html" >7.12. grn_expr</a> »</li>
|
2643
2709
|
</ul>
|
2644
2710
|
</div>
|
2645
|
-
<div class="footer"
|
2711
|
+
<div class="footer">
|
2646
2712
|
© Copyright 2009-2015, Brazil, Inc.
|
2647
2713
|
</div>
|
2648
2714
|
</body>
|